diff --git a/examples/sites/demos/pc/app/notify/duration-composition-api.vue b/examples/sites/demos/pc/app/notify/duration-composition-api.vue
index 0c30de15d..ee4382594 100644
--- a/examples/sites/demos/pc/app/notify/duration-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/duration-composition-api.vue
@@ -13,7 +13,7 @@ function baseClick() {
Notify({
type: 'info',
title: (h, params) =>
通知消息的标题
,
- message: '默认4500 ms后自动关闭提示框',
+ message: '默认 4500ms 后自动关闭提示框',
position: 'top-right'
})
}
@@ -22,7 +22,7 @@ function successClick() {
Notify({
type: 'success',
title: (h, params) => 通知消息的标题
,
- message: '500ms后自动关闭提示框',
+ message: '500ms 后自动关闭提示框',
position: 'top-right',
duration: 500
})
@@ -32,7 +32,7 @@ function errorClick() {
Notify({
type: 'error',
title: (h, params) => 通知消息的标题
,
- message: '5000ms后自动关闭提示框',
+ message: '5000ms 后自动关闭提示框',
position: 'top-right',
duration: 5000
})
diff --git a/examples/sites/demos/pc/app/notify/duration.vue b/examples/sites/demos/pc/app/notify/duration.vue
index 7bb7b43c6..04396be80 100644
--- a/examples/sites/demos/pc/app/notify/duration.vue
+++ b/examples/sites/demos/pc/app/notify/duration.vue
@@ -18,7 +18,7 @@ export default {
Notify({
type: 'info',
title: (h, params) => 通知消息的标题
,
- message: '默认4500 ms后自动关闭提示框',
+ message: '默认 4500ms 后自动关闭提示框',
position: 'top-right'
})
},
@@ -26,7 +26,7 @@ export default {
Notify({
type: 'success',
title: (h, params) => 通知消息的标题
,
- message: '500ms后自动关闭提示框',
+ message: '500ms 后自动关闭提示框',
position: 'top-right',
duration: 500
})
@@ -35,7 +35,7 @@ export default {
Notify({
type: 'error',
title: (h, params) => 通知消息的标题
,
- message: '5000ms后自动关闭提示框',
+ message: '5000ms 后自动关闭提示框',
position: 'top-right',
duration: 5000
})
diff --git a/examples/sites/demos/pc/app/notify/notify-events-composition-api.vue b/examples/sites/demos/pc/app/notify/notify-events-composition-api.vue
index e47ecbd46..37e857016 100644
--- a/examples/sites/demos/pc/app/notify/notify-events-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/notify-events-composition-api.vue
@@ -14,7 +14,7 @@ function baseClick() {
title: '通知',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
beforeClose: () => {
- Modal.message({ message: '在通知框关闭前触发的事件,返回 false 可阻止关闭通知框' })
+ Modal.message({ message: '在通知框关闭前触发的事件,返回 false 可阻止关闭通知框', status: 'info' })
return false
},
duration: 500000,
@@ -27,7 +27,7 @@ function baseClick2() {
type: 'info',
title: '通知',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
- onClose: () => Modal.message({ message: '点击关闭按钮时触发事件' }),
+ onClose: () => Modal.message({ message: '点击关闭按钮时触发事件', status: 'info' }),
duration: 500000,
position: 'top-right'
})
diff --git a/examples/sites/demos/pc/app/notify/notify-events.vue b/examples/sites/demos/pc/app/notify/notify-events.vue
index 4bd03d50f..5d91abd2d 100644
--- a/examples/sites/demos/pc/app/notify/notify-events.vue
+++ b/examples/sites/demos/pc/app/notify/notify-events.vue
@@ -19,7 +19,7 @@ export default {
title: '通知',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
beforeClose: () => {
- Modal.message({ message: '在通知框关闭前触发的事件,返回 false 可阻止关闭通知框' })
+ Modal.message({ message: '在通知框关闭前触发的事件,返回 false 可阻止关闭通知框', status: 'info' })
return false
},
duration: 500000,
@@ -31,7 +31,7 @@ export default {
type: 'info',
title: '通知',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
- onClose: () => Modal.message({ message: '点击关闭按钮时触发事件' }),
+ onClose: () => Modal.message({ message: '点击关闭按钮时触发事件', status: 'info' }),
duration: 500000,
position: 'top-right'
})
diff --git a/examples/sites/demos/pc/app/notify/position-composition-api.vue b/examples/sites/demos/pc/app/notify/position-composition-api.vue
index 6a9fc8f8e..0e2dce48d 100644
--- a/examples/sites/demos/pc/app/notify/position-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/position-composition-api.vue
@@ -1,6 +1,6 @@
- 默认bottom-right
+ 默认 bottom-right
top-right
diff --git a/examples/sites/demos/pc/app/notify/position.spec.ts b/examples/sites/demos/pc/app/notify/position.spec.ts
index 508295d25..ff79ae6e4 100644
--- a/examples/sites/demos/pc/app/notify/position.spec.ts
+++ b/examples/sites/demos/pc/app/notify/position.spec.ts
@@ -3,7 +3,7 @@ import { test, expect } from '@playwright/test'
test('显示位置', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('notify#position')
- await page.getByRole('button', { name: '默认bottom-right' }).click()
+ await page.getByRole('button', { name: '默认 bottom-right' }).click()
await page.getByRole('button', { name: 'top-right' }).click()
const bottom = page.locator('.bottom-right')
const bottomBox = await bottom.boundingBox()
diff --git a/examples/sites/demos/pc/app/notify/position.vue b/examples/sites/demos/pc/app/notify/position.vue
index 4be04b845..1cc4715e2 100644
--- a/examples/sites/demos/pc/app/notify/position.vue
+++ b/examples/sites/demos/pc/app/notify/position.vue
@@ -1,6 +1,6 @@
- 默认bottom-right
+ 默认 bottom-right
top-right
diff --git a/examples/sites/demos/pc/app/notify/type-composition-api.vue b/examples/sites/demos/pc/app/notify/type-composition-api.vue
index 162604c3f..df9264a89 100644
--- a/examples/sites/demos/pc/app/notify/type-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/type-composition-api.vue
@@ -1,9 +1,9 @@
- info类型
- success类型
- error类型
- warning类型
+ info 类型
+ success 类型
+ error 类型
+ warning 类型
diff --git a/examples/sites/demos/pc/app/notify/type.spec.ts b/examples/sites/demos/pc/app/notify/type.spec.ts
index f9ad0de6d..c619e4ce2 100644
--- a/examples/sites/demos/pc/app/notify/type.spec.ts
+++ b/examples/sites/demos/pc/app/notify/type.spec.ts
@@ -3,19 +3,19 @@ import { test, expect } from '@playwright/test'
test('消息类型', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('notify#type')
- await page.getByRole('button', { name: 'info类型' }).click()
+ await page.getByRole('button', { name: 'info 类型' }).click()
const info = page.locator('.tiny-notify--info')
await expect(info).toBeVisible()
- await page.getByRole('button', { name: 'success类型' }).click()
+ await page.getByRole('button', { name: 'success 类型' }).click()
const success = page.locator('.tiny-notify--success')
await expect(success).toBeVisible()
- await page.getByRole('button', { name: 'error类型' }).click()
+ await page.getByRole('button', { name: 'error 类型' }).click()
const error = page.locator('.tiny-notify--error')
await expect(error).toBeVisible()
- await page.getByRole('button', { name: 'warning类型' }).click()
+ await page.getByRole('button', { name: 'warning 类型' }).click()
const warning = page.locator('.tiny-notify--warning')
await expect(warning).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/notify/type.vue b/examples/sites/demos/pc/app/notify/type.vue
index 9ba3c1ef3..18c9ffbb7 100644
--- a/examples/sites/demos/pc/app/notify/type.vue
+++ b/examples/sites/demos/pc/app/notify/type.vue
@@ -1,9 +1,9 @@
- info类型
- success类型
- error类型
- warning类型
+ info 类型
+ success 类型
+ error 类型
+ warning 类型
diff --git a/examples/sites/demos/pc/app/notify/webdoc/notify.js b/examples/sites/demos/pc/app/notify/webdoc/notify.js
index 94ce7f084..c9380abfe 100644
--- a/examples/sites/demos/pc/app/notify/webdoc/notify.js
+++ b/examples/sites/demos/pc/app/notify/webdoc/notify.js
@@ -5,7 +5,7 @@ export default {
{
'demoId': 'basic-usage',
'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' },
- 'desc': { 'zh-CN': '', 'en-US': '' },
+ 'desc': { 'zh-CN': '通过函数调用的方式使用组件。', 'en-US': 'Components are used by means of function calls' },
'codeFiles': ['basic-usage.vue']
},
{
@@ -61,9 +61,9 @@ export default {
'demoId': 'showClose',
'name': { 'zh-CN': '不显示关闭按钮', 'en-US': 'The close button is not displayed.' },
'desc': {
- 'zh-CN': 'showClose message
属性设置通知框是否显示关闭按钮,默认值:true 。
\n',
+ 'zh-CN': ' showClose
属性设置通知框是否显示关闭按钮,默认值:true
。
\n',
'en-US':
- 'showClose message
: indicates whether the notification box displays the close button. The default value is true.
\n'
+ 'The showClose property sets whether the notification box displays the close button. The default value is true.
\n'
},
'codeFiles': ['showClose.vue']
},
@@ -139,7 +139,7 @@ export default {
{
'name': 'type',
'type': `'info' | 'success' | 'warning' | 'error'`,
- 'defaultValue': 'info',
+ 'defaultValue': `'info'`,
'desc': {
'zh-CN': '通知消息类型',
'en-US': 'Notification message type'
@@ -159,8 +159,8 @@ export default {
},
{
'name': 'message',
- 'typeAnchorName': 'INotyfyMessage',
- 'type': 'INotyfyMessage',
+ 'typeAnchorName': 'INotifyMessage',
+ 'type': 'INotifyMessage',
'defaultValue': '',
'desc': {
'zh-CN': '通知消息文本,可用 jsx 定制',
@@ -267,9 +267,9 @@ export default {
code: `type INotifyTitle = string | (h: Vue.h, params: { titleClass: string, vm }) => JSX.Element`
},
{
- name: 'INotyfyMessage',
+ name: 'INotifyMessage',
type: 'type',
- code: `type INotyfyMessage = string | (h: Vue.h, params: { messageClass: string, vm }) => JSX.Element`
+ code: `type INotifyMessage = string | (h: Vue.h, params: { messageClass: string, vm }) => JSX.Element`
}
]
}