Browse Source

fix: notify标签展示问题

shenqistart 5 years ago
parent
commit
4590a58ca4
3 changed files with 6 additions and 2 deletions
  1. 3 0
      src/packages/notify/demo.vue
  2. 3 0
      src/packages/notify/doc.md
  3. 0 2
      src/packages/notify/notify.vue

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

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

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

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

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

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