Browse Source

fix: icon url watch

richard1015 5 years ago
parent
commit
dbad8599ca
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/packages/icon/icon.vue

+ 5 - 0
src/packages/icon/icon.vue

@@ -31,6 +31,11 @@ export default {
       icon:null
       icon:null
     };
     };
   },
   },
+  watch:{
+    url(val){
+      this.icon=val
+    }
+  },
   created() {
   created() {
     if(this.url){         
     if(this.url){         
       this.icon =this.url;
       this.icon =this.url;