#
whycq
2022-12-23 6f3ff9eeafc40021cf139b374b56eef5052e876a
components/t-test/t-test.vue
@@ -1,7 +1,7 @@
<template>
   <view>
      <slot>
         <input style="background-color: azure;" v-model="val" @input="change(val)">
         <input style="background-color: azure;" v-model="val" @input="input">
      </slot>
   </view>
</template>
@@ -29,10 +29,8 @@
         };
      },
      methods: {
         change(val) {
            this.val = val
            console.log(this.val);
            this.$emit('input',val);
         input() {
            this.$emit('input',this.val);
         }
      }
   }