Browse Source

fix: switch emits loading (#912)

安泊尔 4 years ago
parent
commit
d04477a258
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/__VUE/switch/index.taro.vue

+ 1 - 1
src/packages/__VUE/switch/index.taro.vue

@@ -67,7 +67,7 @@ export default create({
       default: ''
     }
   },
-  emits: ['change', 'update:modelValue'],
+  emits: ['change', 'update:modelValue', 'update:loading'],
   setup(props, { emit }) {
     const isActive = computed(() => props.modelValue === props.activeValue);
     const classes = computed(() => {