From 57fea2193ac207e2ecc6327fa76ad1c21b7cda16 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期二, 29 十月 2024 12:21:58 +0800
Subject: [PATCH] 取消 input 长度限制

---
 pages/modal/small-wnd/line.vue |   35 +++++++++++++++++++++++++++++++----
 1 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/pages/modal/small-wnd/line.vue b/pages/modal/small-wnd/line.vue
index ee958d2..6de123d 100644
--- a/pages/modal/small-wnd/line.vue
+++ b/pages/modal/small-wnd/line.vue
@@ -1,8 +1,5 @@
 <template>
 	<view class="uni-page-modal-small-wnd-line">
-
-
-
 		<uni-forms ref="baseForm" :modelValue="form" :label-position="control_style=='宸﹀彸甯冨眬' ? 'left':'top'"
 			:label-align="control_style=='宸﹀彸甯冨眬' ? 'right':'left'" :label-width="titleWdith">
 			<view class="uni-group-item" v-for="(group,index) in show_style" :key="group.attrgroup_name">
@@ -18,6 +15,12 @@
 					v-for="(attr,i) in group.attrs" :key="`attr-${index}-${i}`">
 					<uni-forms-item :label="attrLabel(attr)" :required="attrRequired(attr)" :error="errTip[attr.attr]">
 						<view class="input-wrapper">
+							<view class="uni-panel-ext-button" v-if="attr.ext_button==true">
+								<input class="uni-panel-input" type="text" v-model="visible" :disabled="disabled" @on-blur="onChange" />
+								<view class="uni-panel-right-ico">
+									<a @click="onClickExtButton"><i class="ace-icon fa fa-plus-circle"></i></a>
+								</view>
+							</view>
 							<input v-if="attr.type == 'input'" :ref="`ref${attr.attr}`" v-model="form[attr.attr]"
 								:ref="`ref${attr.attr}`" :disabled="!attr.edit" @on-blur="onChange(attr)" />
 							<textarea v-else-if="attr.type == 'textarea'" :ref="`ref${attr.attr}`"
@@ -164,6 +167,28 @@
 			});
 		},
 		methods: {
+			setData(obj) {
+				let that = this;
+				let keys = [];
+				let val, data;
+			
+				Object.keys(obj).forEach(function(key) {
+					keys = key.split(".");
+					val = obj[key];
+					data = that.$data;
+					keys.forEach(function(key2, index) {
+						if (index + 1 == keys.length) {
+							that.$set(data, key2, val);
+						} else {
+							if (!data[key2]) {
+								that.$set(data, key2, {});
+							}
+						}
+						data = data[key2];
+					});
+				});
+			},
+			
 			isValid() {
 				let flag = true;
 				this.show_style.forEach((group) => {
@@ -404,7 +429,9 @@
 					this.showError(ex);
 				}
 			},
-			onClickExtButton(gindex, index) {},
+			onClickExtButton(gindex, index) {
+				
+			},
 			onClickAddPsn(gindex, index) {},
 			onClickAddPrj(gindex, index) {},
 

--
Gitblit v1.9.1