浏览代码

fix: switch emits loading (#912)

安泊尔 4 年之前
父节点
当前提交
d04477a258
共有 1 个文件被更改,包括 1 次插入1 次删除
  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(() => {