From 12d5e958374114425dae7e530656a034e0c38b1a Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期五, 13 十月 2023 16:02:51 +0800
Subject: [PATCH] #

---
 components/z-input/z-input.vue |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/components/z-input/z-input.vue b/components/z-input/z-input.vue
index 0e8f0dc..7ed0848 100644
--- a/components/z-input/z-input.vue
+++ b/components/z-input/z-input.vue
@@ -7,7 +7,7 @@
 					type="text" 
 					:placeholder="placeholder" 
 					v-model="data" 
-					:focus="focusData">
+					:focus="focusData" @input="inputVal">
 					
 				<uni-icons class="p-icon" 
 					type="closeempty" 
@@ -34,7 +34,15 @@
 			};
 		},
 		props: {
+			index: {
+				type: Number,
+				default: 0
+			},
 			desc: {
+				type: String,
+				default: ''
+			},
+			name: {
 				type: String,
 				default: ''
 			},
@@ -48,7 +56,7 @@
 			},
 			placeholder: {
 				type: String,
-				default: '璇疯緭鍏�'
+				default: '鎵爜 / 褰曞叆'
 			},
 			value: {
 				type: [String,Number],
@@ -78,8 +86,10 @@
 					this.$emit('input',val)
 				}
 			},
+			value(val) {
+				this.data = val
+			},
 			focus(f) {
-				console.log(f);
 				this.focusData = !f
 				setTimeout(()=>{
 					this.focusData = f
@@ -96,6 +106,9 @@
 			},
 			clickBtn() {
 				this.$emit('clickBtn');
+			},
+			inputVal() {
+				this.$emit('inputVal',[this.data,this.name]);
 			}
 		}
 	}
@@ -107,6 +120,7 @@
 		align-items: center;
 		min-height: 35px;
 		background-color: #FFF;
+		margin: 8px;
 		/* border-bottom: 1px solid darkgray; */
 	}
 	.put {

--
Gitblit v1.9.1