1
0
mirror of synced 2026-04-05 07:48:35 +08:00

docs: 添加render教程

This commit is contained in:
roymondchen
2022-07-07 19:15:32 +08:00
committed by jia000
parent 8b70edeaf2
commit dd1a8e22c5
7 changed files with 369 additions and 48 deletions

View File

@@ -80,6 +80,13 @@ import { FolderOpened, SwitchButton, Tickets } from '@element-plus/icons';
::: tip
icon使用的是[element-plus icon](https://element-plus.org/zh-CN/component/icon.html)
也可直接使用url例如
```js
{
icon: 'https://vfiles.gtimg.cn/vupload/20220614/9cc3091655207317835.png'
}
```
:::
::: warning
@@ -119,6 +126,17 @@ import ModListPanel from '../components/sidebars/ModListPanel.vue';
}
```
::: tip
icon使用的是[element-plus icon](https://element-plus.org/zh-CN/component/icon.html)
也可直接使用url例如
```js
{
icon: 'https://vfiles.gtimg.cn/vupload/20220614/9cc3091655207317835.png'
}
```
:::
### menu
- **类型:** [MenuBarData](https://github.com/Tencent/tmagic-editor/blob/master/packages/editor/src/type.ts)
@@ -177,6 +195,17 @@ import { ArrowLeft, Coin } from '@element-plus/icons';
}
```
::: tip
icon使用的是[element-plus icon](https://element-plus.org/zh-CN/component/icon.html)
也可直接使用url例如
```js
{
icon: 'https://vfiles.gtimg.cn/vupload/20220614/9cc3091655207317835.png'
}
```
:::
### render
- **类型:** Function