33 lines
735 B
JavaScript
33 lines
735 B
JavaScript
export default OakComponent({
|
||
entity: 'article',
|
||
isList: false,
|
||
projection: {
|
||
id: 1,
|
||
name: 1,
|
||
content: 1,
|
||
articleMenu: {
|
||
id: 1,
|
||
name: 1,
|
||
isArticle: 1,
|
||
},
|
||
},
|
||
data: {},
|
||
formData: function ({ data: article }) {
|
||
return {
|
||
content: article?.content,
|
||
name: article?.name,
|
||
};
|
||
},
|
||
properties: {
|
||
tocClosed: false,
|
||
tocFixed: true,
|
||
tocPosition: 'none',
|
||
highlightBgColor: 'none',
|
||
headerTop: 0, //页面中吸顶部分高度
|
||
className: '',
|
||
scrollId: '', // 滚动条所在容器id,不传默认body
|
||
},
|
||
lifetimes: {},
|
||
methods: {}
|
||
});
|