From aea54338ad3573b686fb60c2694824323e9108fc Mon Sep 17 00:00:00 2001 From: chenxi-20 <76168465+chenxi-20@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:28:25 +0800 Subject: [PATCH] docs(components): Test document walkthrough (#1274) --- examples/sites/demos/pc/app/anchor/change-composition-api.vue | 2 +- examples/sites/demos/pc/app/anchor/change.vue | 2 +- examples/sites/demos/pc/app/anchor/webdoc/anchor.js | 2 +- examples/sites/demos/pc/app/search/webdoc/search.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/sites/demos/pc/app/anchor/change-composition-api.vue b/examples/sites/demos/pc/app/anchor/change-composition-api.vue index 5a028df91..f7f944b3d 100644 --- a/examples/sites/demos/pc/app/anchor/change-composition-api.vue +++ b/examples/sites/demos/pc/app/anchor/change-composition-api.vue @@ -42,6 +42,6 @@ const links = ref([ ]) function handleChange(link) { - Modal.message(`change${link}`) + Modal.message({ message: `change${link}`, status: 'info' }) } diff --git a/examples/sites/demos/pc/app/anchor/change.vue b/examples/sites/demos/pc/app/anchor/change.vue index bd871ec69..3a1b3f272 100644 --- a/examples/sites/demos/pc/app/anchor/change.vue +++ b/examples/sites/demos/pc/app/anchor/change.vue @@ -49,7 +49,7 @@ export default { }, methods: { handleChange(link) { - Modal.message(`change${link}`) + Modal.message({ message: `change${link}`, status: 'info' }) } } } diff --git a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js index 714bf008e..7cbb56fb3 100644 --- a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js +++ b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js @@ -88,7 +88,7 @@ export default { }, { 'name': 'type', - 'type': '"line" | "dot"', + 'type': `'line' | 'dot'`, 'defaultValue': `'line'`, 'desc': { 'zh-CN': '锚点类型', diff --git a/examples/sites/demos/pc/app/search/webdoc/search.js b/examples/sites/demos/pc/app/search/webdoc/search.js index 4d8c992f8..370fffc75 100644 --- a/examples/sites/demos/pc/app/search/webdoc/search.js +++ b/examples/sites/demos/pc/app/search/webdoc/search.js @@ -25,7 +25,7 @@ export default { 'demoId': 'mini-mode', 'name': { 'zh-CN': '迷你模式', 'en-US': 'Mini mode' }, 'desc': { - 'zh-CN': '通过 mini 设置为mini模式。', + 'zh-CN': '通过 mini 设置为 mini 模式。', 'en-US': 'Set to mini mode through mini .' }, 'codeFiles': ['mini-mode.vue']