mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
补充 editor 属性文档
This commit is contained in:
parent
d1b23bd62f
commit
e6f39fa102
@ -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)。 |
|
||||
|
Loading…
Reference in New Issue
Block a user