Browse Source

fix: fix radio switch warning

suzigang 3 years ago
parent
commit
2e7d6b180c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/packages/__VUE/radio/demo.vue
  2. 1 1
      src/packages/__VUE/switch/index.vue

+ 1 - 1
src/packages/__VUE/radio/demo.vue

@@ -87,7 +87,7 @@ export default createDemo({
       radioVal3: 1,
       radioVal4: 1,
       radioVal5: 1,
-      radioVal6: 1
+      radioVal6: '1'
     });
     const handleChange = (value: any) => {
       console.log(value);

+ 1 - 1
src/packages/__VUE/switch/index.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(() => {