Skip to content

Commit 0cee7b9

Browse files
authored
docs(module:code-editor): fix typo (#7800)
rename SageUrl to SafeUrl
1 parent bc673e7 commit 0cee7b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/code-editor/doc/index.en-US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ You can set the default configuration of the `CodeEditor` component through the
9191
9292
| Parameter | Description | Type | Default |
9393
| --- | --- | --- | --- |
94-
| `assetsRoot` | Where should the component load resource of monaco editor | `string` \| `SageUrl` | - |
94+
| `assetsRoot` | Where should the component load resource of monaco editor | `string` \| `SafeUrl` | - |
9595
| `defaultEditorOption` | Default options. [Please refer to the doc of monaco editor](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IEditorOptions.html) | `IEditorConstructionOptions` | `{}` |
9696
| `onLoad` | The hook invoked when the resource of monaco editor is loaded. At this moment and afterwards the global variable `monaco` is usable (`window.MonacoEnvironment = { globalAP: true }` is required if monaco-editor's version is greater or equal to 0.22.0) | `() => void` | - |
9797
| `onFirstEditorInit` | The hook invoked when the first monaco editor is initialized | `() => void` | - |

components/code-editor/doc/index.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ npm install monaco-editor
9898

9999
| 属性 | 说明 | 类型 | 默认值 |
100100
| --- | --- | --- | --- |
101-
| `assetsRoot` | 组件加载 monaco editor 资源文件的位置 | `string` \| `SageUrl` | - |
101+
| `assetsRoot` | 组件加载 monaco editor 资源文件的位置 | `string` \| `SafeUrl` | - |
102102
| `defaultEditorOption` | 默认的编辑器设置,[参考 monaco editor 的定义](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ieditorconstructionoptions.html) | `IEditorConstructionOptions` | `{}` |
103103
| `onLoad` | 当 monaco editor 资源加载完毕时触发的钩子,此时全局对象 `monaco` 可用 (monaco-editor 版本不小于 0.22.0 时需定义 `window.MonacoEnvironment = { globalAP: true }`) | `() => void` | - |
104104
| `onFirstEditorInit` | 当第一个编辑器请求初始化时触发的钩子 | `() => void` | - |

0 commit comments

Comments
 (0)