فهرست منبع

fix: feedback page component example duration

nian 2 ماه پیش
والد
کامیت
c7aeca9059
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      src/views/feedback/discreteApi.ts
  2. 1 1
      src/views/feedback/index.vue

+ 2 - 1
src/views/feedback/discreteApi.ts

@@ -10,7 +10,7 @@ const { getModalModifier } = useComponentModifier()
 export const useMessageDiscrete = (type: MessageType = 'info') => {
   message.create(`${type} - 与Setup里调用单独分开显示`, {
     type,
-    duration: 0,
+    duration: 5000,
     closable: true,
   })
 }
@@ -32,5 +32,6 @@ export const useNotificationDiscrete = (type: NotificationType = 'info') => {
     type,
     content: '又要说点啥呢',
     meta: '我是 Setup 外的 Notification, 出现位置当然可以不一样',
+    duration: 5000,
   })
 }

+ 1 - 1
src/views/feedback/index.vue

@@ -314,7 +314,7 @@ const createDialogApi = (type: ModalProps['type'] = 'success') => {
             notification.success({
               content: '说点啥呢',
               meta: '我不到啊',
-              duration: 0,
+              duration: 5000,
             })
           "
         >