From d170cf41d68bbb82179fae1b2332a315465ef93b Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期五, 23 九月 2022 00:49:50 +0800
Subject: [PATCH] #
---
components/t-test/t-test.vue | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/components/t-test/t-test.vue b/components/t-test/t-test.vue
index 26eaefa..b37448d 100644
--- a/components/t-test/t-test.vue
+++ b/components/t-test/t-test.vue
@@ -1,7 +1,7 @@
<template>
<view>
<slot>
- <input style="background-color: azure;" v-model="val" @input="input(val)">
+ <input style="background-color: azure;" v-model="val" @input="input">
</slot>
</view>
</template>
@@ -29,10 +29,8 @@
};
},
methods: {
- input(val) {
- this.val = val
- console.log(this.val);
- this.$emit('input',val);
+ input() {
+ this.$emit('input',this.val);
}
}
}
--
Gitblit v1.9.1