From 121b6b47881c06412aca55bd490e4505b17039db Mon Sep 17 00:00:00 2001 From: weishuodan Date: Mon, 27 Nov 2023 15:35:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=8E=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E6=97=A0=E5=BA=8F=E7=82=B9=E5=87=BB=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/license-plate/index.vue | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/license-plate/index.vue b/components/license-plate/index.vue index ae1187c1..9b93eca2 100644 --- a/components/license-plate/index.vue +++ b/components/license-plate/index.vue @@ -392,10 +392,6 @@ export default { // 抛出展示分离键盘事件 this.$emit('sdKeyboard', this.keyboardViewId) } - // 顺序填写,不可无序点击 - if (!this.keyArray[index + 1] && !this.keyArray[index - 1] && index > 0) { - return - } this.selectedIndex = index }, // 半弹层关闭事件 From 878daa3cff0d23d4a2b83d212ee8390b0a04b001 Mon Sep 17 00:00:00 2001 From: weishuodan Date: Mon, 27 Nov 2023 17:05:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=97=A0=E5=BA=8F=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E9=99=90=E5=88=B6=E5=8F=AF=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/license-plate/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/license-plate/index.vue b/components/license-plate/index.vue index ae1187c1..b0c31908 100644 --- a/components/license-plate/index.vue +++ b/components/license-plate/index.vue @@ -254,6 +254,11 @@ export default { type: String, default: '', }, + // 是否限制无序点击 + disorderClick: { + type: Boolean, + default: true, + }, }, data() { @@ -393,7 +398,7 @@ export default { this.$emit('sdKeyboard', this.keyboardViewId) } // 顺序填写,不可无序点击 - if (!this.keyArray[index + 1] && !this.keyArray[index - 1] && index > 0) { + if (!this.disorderClick && !this.keyArray[index + 1] && !this.keyArray[index - 1] && index > 0) { return } this.selectedIndex = index