#
whycq
2022-09-23 66ec61e66cf31508c08b30a28ee0bb64e45f87bb
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(val)">
      </slot>
   </view>
</template>
@@ -29,7 +29,7 @@
         };
      },
      methods: {
         change(val) {
         input(val) {
            this.val = val
            console.log(this.val);
            this.$emit('input',val);