Skip to content

Commit

Permalink
Merge pull request #843 from wsd000/feat_license_plate_keyboard
Browse files Browse the repository at this point in the history
feat: 车牌号输入顺序增加无序点击配置
  • Loading branch information
qifeng0748 authored Nov 27, 2023
2 parents c88aa86 + b418717 commit 94c7eff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/license-plate/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,11 @@ export default {
type: String,
default: '',
},
// 是否可无序点击
disorderClick: {
type: Boolean,
default: true,
},
},
data() {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 94c7eff

Please sign in to comment.