@tntd/monaco-editor 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -20
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -101,26 +101,6 @@ const defaultThemeColor = {
|
|
|
101
101
|
| updateOptions | 更新编辑器配置 | (options: object) => void |
|
|
102
102
|
| insertText | 在光标位置插入文本 | (content: string) => void |
|
|
103
103
|
|
|
104
|
-
### Diff 模式配置
|
|
105
|
-
|
|
106
|
-
当 `isDiff={true}` 时,需要提供以下额外配置:
|
|
107
|
-
|
|
108
|
-
```jsx
|
|
109
|
-
<MonacoEditor
|
|
110
|
-
isDiff={true}
|
|
111
|
-
original="原始代码"
|
|
112
|
-
modified="修改后的代码"
|
|
113
|
-
language="javascript"
|
|
114
|
-
/>
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
### 公式编辑模式
|
|
118
|
-
|
|
119
|
-
当 `isFormula={true}` 时,支持以下特性:
|
|
120
|
-
|
|
121
|
-
- 自定义语言高亮规则
|
|
122
|
-
- 特殊的主题配置
|
|
123
|
-
- 通过 `modeField` 配置公式编辑规则
|
|
124
104
|
|
|
125
105
|
### 插件系统
|
|
126
106
|
|