From c38a92ad0f1ef4f914a3cdc565add0071e331adc Mon Sep 17 00:00:00 2001
From: shenjunjian <40288193@qq.com>
Date: Sun, 20 Oct 2024 23:30:41 -0700
Subject: [PATCH] fix(notify): fix notify's demos
---
.../pc/app/notify/basic-usage-composition-api.vue | 2 +-
examples/sites/demos/pc/app/notify/basic-usage.vue | 2 +-
.../app/notify/debounceDelay-composition-api.vue | 2 +-
.../sites/demos/pc/app/notify/debounceDelay.vue | 2 +-
.../pc/app/notify/duration-composition-api.vue | 14 ++------------
.../sites/demos/pc/app/notify/duration.spec.ts | 4 ----
examples/sites/demos/pc/app/notify/duration.vue | 13 ++-----------
.../pc/app/notify/showClose-composition-api.vue | 2 +-
examples/sites/demos/pc/app/notify/showClose.vue | 2 +-
.../pc/app/notify/showIcon-composition-api.vue | 2 +-
examples/sites/demos/pc/app/notify/showIcon.vue | 2 +-
.../demos/pc/app/notify/type-composition-api.vue | 2 +-
examples/sites/demos/pc/app/notify/type.vue | 2 +-
.../app/notify/verticalOffset-composition-api.vue | 2 +-
.../sites/demos/pc/app/notify/verticalOffset.vue | 2 +-
15 files changed, 16 insertions(+), 39 deletions(-)
diff --git a/examples/sites/demos/pc/app/notify/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/notify/basic-usage-composition-api.vue
index ccd29933fd..f95257b018 100644
--- a/examples/sites/demos/pc/app/notify/basic-usage-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/basic-usage-composition-api.vue
@@ -22,7 +22,7 @@ function handleClick() {
function handleClickJxs() {
Notify({
type: 'info',
- title: () =>
通知消息的标题
,
+ title: () => 通知消息的标题
,
message: () => (
通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文
),
diff --git a/examples/sites/demos/pc/app/notify/basic-usage.vue b/examples/sites/demos/pc/app/notify/basic-usage.vue
index d6bc6ef047..e89b701d57 100644
--- a/examples/sites/demos/pc/app/notify/basic-usage.vue
+++ b/examples/sites/demos/pc/app/notify/basic-usage.vue
@@ -26,7 +26,7 @@ export default {
handleClickJxs() {
Notify({
type: 'info',
- title: () => 通知消息的标题
,
+ title: () => 通知消息的标题
,
message: () => (
通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文
),
diff --git a/examples/sites/demos/pc/app/notify/debounceDelay-composition-api.vue b/examples/sites/demos/pc/app/notify/debounceDelay-composition-api.vue
index 58c37f2cbe..47487235db 100644
--- a/examples/sites/demos/pc/app/notify/debounceDelay-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/debounceDelay-composition-api.vue
@@ -11,7 +11,7 @@ import { Notify, Button as TinyButton } from '@opentiny/vue'
const handleClick = ref(
Notify({
type: 'info',
- title: (h, params) => 通知消息的标题
,
+ title: '通知消息的标题',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
position: 'top-right',
duration: 1000,
diff --git a/examples/sites/demos/pc/app/notify/debounceDelay.vue b/examples/sites/demos/pc/app/notify/debounceDelay.vue
index 733d28484a..2148a39f1c 100644
--- a/examples/sites/demos/pc/app/notify/debounceDelay.vue
+++ b/examples/sites/demos/pc/app/notify/debounceDelay.vue
@@ -15,7 +15,7 @@ export default {
return {
handleClick: Notify({
type: 'info',
- title: (h, params) => 通知消息的标题
,
+ title: '通知消息的标题',
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
position: 'top-right',
duration: 1000,
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 ee4382594d..868b4f28ec 100644
--- a/examples/sites/demos/pc/app/notify/duration-composition-api.vue
+++ b/examples/sites/demos/pc/app/notify/duration-composition-api.vue
@@ -1,6 +1,5 @@
- 默认4500 ms后自动关闭提示框
500ms后自动关闭提示框
5000ms后自动关闭提示框
@@ -9,19 +8,10 @@