ソースを参照

fix: notify标签展示问题

shenqistart 5 年 前
コミット
4590a58ca4

+ 3 - 0
src/packages/notify/demo.vue

@@ -125,6 +125,9 @@ export default {
     },
     },
     showNotify() {
     showNotify() {
       this.show = true;
       this.show = true;
+      setTimeout(() => {
+        this.show = false;
+      }, 200);
     },
     },
     defaultNotify() {
     defaultNotify() {
       this.$notify.setDefaultOptions({
       this.$notify.setDefaultOptions({

+ 3 - 0
src/packages/notify/doc.md

@@ -73,6 +73,9 @@ export default {
 ```javascript
 ```javascript
     mounted(){
     mounted(){
       this.show = true;
       this.show = true;
+      setTimeout(() => {
+        this.show = false;
+      }, 200);
     }
     }
 ```
 ```
 ## 修改默认配置
 ## 修改默认配置

+ 0 - 2
src/packages/notify/notify.vue

@@ -20,8 +20,6 @@
 <script>
 <script>
 import { overlayProps, getProps } from '../popup/index';
 import { overlayProps, getProps } from '../popup/index';
 import Popup from './../popup/popup.vue';
 import Popup from './../popup/popup.vue';
-console.log(overlayProps, 'overlayProps');
-
 export default {
 export default {
   name: 'nut-notify',
   name: 'nut-notify',
   props: {
   props: {