add doc
This commit is contained in:
29
packages/dooringx-doc/src/docs/3.2.md
Normal file
29
packages/dooringx-doc/src/docs/3.2.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
title: 左侧面板
|
||||
sTitle: dooringx-lib插件开发
|
||||
order: 10
|
||||
---
|
||||
|
||||
左侧面板传入leftRenderListCategory即可。
|
||||
|
||||
```js
|
||||
leftRenderListCategory: [
|
||||
{
|
||||
type: 'basic',
|
||||
icon: <HighlightOutlined />,
|
||||
displayName: '基础组件',
|
||||
},
|
||||
{
|
||||
type: 'xxc',
|
||||
icon: <ContainerOutlined />,
|
||||
custom: true,
|
||||
customRender: <div>我是自定义渲染</div>,
|
||||
},
|
||||
],
|
||||
```
|
||||
|
||||
type是分类,左侧组件显示在哪个分类由该字段决定。
|
||||
|
||||
icon则是左侧分类小图标。
|
||||
|
||||
当custom为true时,可以使用customRender自定义渲染。
|
Reference in New Issue
Block a user