32 lines
972 B
JavaScript
32 lines
972 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: 'qiniu',
|
||
scrollId: '', // 滚动条所在容器id,不传默认页面编辑器容器id
|
||
},
|
||
});
|