From 1b9b8cdc7b878db35e288e0316613b24911ce09c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Wed, 3 Jul 2024 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E6=AC=A1=E5=9B=9E=E6=98=BE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TableForm/src/TableForm.vue | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/components/TableForm/src/TableForm.vue b/src/components/TableForm/src/TableForm.vue index e73b602aa..28db8d9a7 100644 --- a/src/components/TableForm/src/TableForm.vue +++ b/src/components/TableForm/src/TableForm.vue @@ -91,7 +91,7 @@ " :disabled="disabledInput(headerItem, row)" style="flex: 1" - @blur.stop="inputStringBlur(headerItem, row[headerItem.field], row, index)" + @blur="inputStringBlur(headerItem, row[headerItem.field], row, index)" /> @@ -123,9 +123,7 @@ :placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" :disabled="itemIsDisabled(headerItem, row)" style="width: 100%" - @input.stop="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')" - @click.stop="" - @focus.stop="" + @input="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')" /> @@ -141,7 +139,7 @@ :min="headerItem?.tableForm?.min" :precision="headerItem?.tableForm?.precision" :disabled="itemIsDisabled(headerItem, row)" - @change.stop=" + @change=" (e) => { inputNumberChange(headerItem.field, $index, row, e) } @@ -164,8 +162,8 @@ :allow-create="headerItem?.tableForm.allowCreate" style="width: 100%" :placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label" - @change.stop="formSelectChange(headerItem.field, $event, row)" - @blur.stop="tableFormSelectOnBlur(headerItem.field, $event, row, $index)" + @change="formSelectChange(headerItem.field, $event, row)" + @blur="tableFormSelectOnBlur(headerItem.field, $event, row, $index)" >