Skip to content

Commit af4209a

Browse files
SkyBird233HouLiXieBuRou
authored andcommitted
feat: lazy load Mocano Editor
1 parent c3acbbe commit af4209a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/paste/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ const handleChange = (uploadFile, uploadFiles) => {
129129
class="theme-border-primary mb-[10px] w-full rounded-none border-2 py-[10px]"
130130
:placeholder="textValue.placeholder1" />
131131
<!-- 内容编辑器 -->
132-
<MonacoEditor
132+
<LazyMonacoEditor
133133
v-model="pasteFormData.content"
134+
hydrate-on-visible
134135
class="theme-border-primary h-[50vh] rounded-none border-2"
135136
:lang="pasteFormData.language" />
136137
<!-- 文件选择器 -->

0 commit comments

Comments
 (0)