فهرست منبع

Select: remove onOptionDestroy event

Leopoldthecoder 8 سال پیش
والد
کامیت
8e8b172bdc
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 1
      packages/select/src/option.vue
  2. 0 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/option.vue

@@ -149,7 +149,7 @@
     },
 
     beforeDestroy() {
-      this.dispatch('ElSelect', 'onOptionDestroy', this.select.options.indexOf(this));
+      this.select.onOptionDestroy(this.select.options.indexOf(this));
     }
   };
 </script>

+ 0 - 1
packages/select/src/select.vue

@@ -684,7 +684,6 @@
       });
 
       this.$on('handleOptionClick', this.handleOptionSelect);
-      this.$on('onOptionDestroy', this.onOptionDestroy);
       this.$on('setSelected', this.setSelected);
     },