33 lines
957 B
JavaScript
33 lines
957 B
JavaScript
export default OakComponent({
|
|
entity: 'articleMenu',
|
|
isList: true,
|
|
methods: {
|
|
gotoDoc() {
|
|
const { onMenuView } = this.props;
|
|
onMenuView && onMenuView();
|
|
},
|
|
gotoArticleDetail(oakId) {
|
|
const { onArticleView } = this.props;
|
|
onArticleView && onArticleView(oakId);
|
|
},
|
|
},
|
|
properties: {
|
|
entity: '',
|
|
entityId: '',
|
|
show: 'edit',
|
|
articleMenuId: '',
|
|
articleId: '',
|
|
tocPosition: 'none',
|
|
highlightBgColor: 'none',
|
|
onMenuView: () => undefined,
|
|
onMenuViewById: (articleMenuId) => undefined,
|
|
onArticleView: (articleId) => undefined,
|
|
onArticlePreview: (content, title) => undefined,
|
|
onArticleEdit: (articleId) => undefined,
|
|
setCopyArticleUrl: (articleId) => '',
|
|
origin: null,
|
|
scrollId: '',
|
|
activeColor: undefined, //目录高亮颜色
|
|
},
|
|
});
|