From e31be3e0ef8aef941d1cc65f1b6f5abdc543940d Mon Sep 17 00:00:00 2001 From: wuduoyi Date: Thu, 13 Aug 2020 19:01:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20editor=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/form/editor.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/components/form/editor.md b/docs/components/form/editor.md index 4084ef90..84fd968e 100755 --- a/docs/components/form/editor.md +++ b/docs/components/form/editor.md @@ -1,12 +1,13 @@ --- title: Editor 编辑器 -description: +description: type: 0 group: null menuName: Editor -icon: +icon: order: 19 --- + ## 基本用法 ```schema:height="400" scope="body" @@ -64,11 +65,8 @@ order: 19 除了支持 [普通表单项属性表](./formitem#%E5%B1%9E%E6%80%A7%E8%A1%A8) 中的配置以外,还支持下面一些配置 -| 属性名 | 类型 | 默认值 | 说明 | -| -------- | -------- | ------------ | ---------------- | -| language | `string` | `javascript` | 编辑器高亮的语言 | - - - - - +| 属性名 | 类型 | 默认值 | 说明 | +| -------- | -------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| language | `string` | `javascript` | 编辑器高亮的语言 | +| size | `string` | `md` | 编辑器高度,取值可以是 `md`、`lg`、`xl`、`xxl` | +| options | `object` | | monaco 编辑器的其它配置,比如是否显示行号等,请参考[这里](https://microsoft.github.io/monaco-editor/api/enums/monaco.editor.editoroption.html)。 |