oak-general-business/es/components/articleMenu/treeManager/index.js

32 lines
972 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
},
});