From e6a02c8b09a796e436a501e9b87d19e25c34c9d1 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期日, 07 四月 2024 15:53:37 +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 1151edb..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="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);
 			}
 		}
 	}

--
Gitblit v1.9.1