Merge pull request #749 from nwind/master

Editor 增加 sm 大小的配置
This commit is contained in:
liaoxuezhi 2020-07-10 11:17:24 +08:00 committed by GitHub
commit 90c10d74c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@
- `type` 请设置成 `editor` 或者 `bat-editor`、`c-editor`、`coffeescript-editor`、`cpp-editor`、`csharp-editor`、`css-editor`、`dockerfile-editor`、`fsharp-editor`、`go-editor`、`handlebars-editor`、`html-editor`、`ini-editor`、`java-editor`、`javascript-editor`、`json-editor`、`less-editor`、`lua-editor`、`markdown-editor`、`msdax-editor`、`objective-c-editor`、`php-editor`、`plaintext-editor`、`postiats-editor`、`powershell-editor`、`pug-editor`、`python-editor`、`r-editor`、`razor-editor`、`ruby-editor`、`sb-editor`、`scss-editor`、`sol-editor`、`sql-editor`、`swift-editor`、`typescript-editor`、`vb-editor`、`xml-editor`、`yaml-editor`。 - `type` 请设置成 `editor` 或者 `bat-editor`、`c-editor`、`coffeescript-editor`、`cpp-editor`、`csharp-editor`、`css-editor`、`dockerfile-editor`、`fsharp-editor`、`go-editor`、`handlebars-editor`、`html-editor`、`ini-editor`、`java-editor`、`javascript-editor`、`json-editor`、`less-editor`、`lua-editor`、`markdown-editor`、`msdax-editor`、`objective-c-editor`、`php-editor`、`plaintext-editor`、`postiats-editor`、`powershell-editor`、`pug-editor`、`python-editor`、`r-editor`、`razor-editor`、`ruby-editor`、`sb-editor`、`scss-editor`、`sol-editor`、`sql-editor`、`swift-editor`、`typescript-editor`、`vb-editor`、`xml-editor`、`yaml-editor`。
- `language` 默认为 `javascript``type``editor` 的时候有用。 - `language` 默认为 `javascript``type``editor` 的时候有用。
- `size` 编辑器高度,取值可以是 `md`、`lg`、`xl`、`xxl`。 - `size` 编辑器高度,取值可以是 `sm`、`md`、`lg`、`xl`、`xxl`。
- `options` monaco 编辑器的其它配置,比如是否显示行号等,请参考[这里](https://microsoft.github.io/monaco-editor/api/enums/monaco.editor.editoroption.html)。 - `options` monaco 编辑器的其它配置,比如是否显示行号等,请参考[这里](https://microsoft.github.io/monaco-editor/api/enums/monaco.editor.editoroption.html)。
- **还有更多通用配置请参考** [FormItem](./FormItem.md) - **还有更多通用配置请参考** [FormItem](./FormItem.md)

View File

@ -23,6 +23,14 @@
border-color: $Form-input-onFocused-borderColor; border-color: $Form-input-onFocused-borderColor;
} }
&--sm {
min-height: 100px;
> .#{$ns}MonacoEditor {
min-height: 100px;
}
}
&--md { &--md {
min-height: 250px; min-height: 250px;