mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-03-07 08:14:01 +08:00
修改$t为$tn
修改部分函数api的名称
This commit is contained in:
@@ -194,15 +194,15 @@
|
||||
this.inputValue += e
|
||||
} else if (this.mode === 'car') {
|
||||
// 判断输入的值是否正确
|
||||
if (this.currentLicensePlateIndex === 0 && !this.$t.test.chinese(e)) {
|
||||
this.$t.message.toast('车牌归属地选择错误')
|
||||
if (this.currentLicensePlateIndex === 0 && !this.$tn.test.chinese(e)) {
|
||||
this.$tn.message.toast('车牌归属地选择错误')
|
||||
return
|
||||
} else if (this.currentLicensePlateIndex === 1 && !this.$t.test.letter(e)) {
|
||||
this.$t.message.toast('车牌归属地字母选择错误')
|
||||
} else if (this.currentLicensePlateIndex === 1 && !this.$tn.test.letter(e)) {
|
||||
this.$tn.message.toast('车牌归属地字母选择错误')
|
||||
return
|
||||
}
|
||||
if (this.currentLicensePlateIndex !== 0 && !this.$t.test.enOrNum(e)) {
|
||||
this.$t.message.toast('车牌号码选择错误')
|
||||
if (this.currentLicensePlateIndex !== 0 && !this.$tn.test.enOrNum(e)) {
|
||||
this.$tn.message.toast('车牌号码选择错误')
|
||||
return
|
||||
}
|
||||
// this.licensePlateValue[this.currentLicensePlateIndex] = e
|
||||
@@ -216,11 +216,11 @@
|
||||
},
|
||||
// 点击了取消按钮
|
||||
onCancel() {
|
||||
this.$t.message.toast('点击了取消按钮')
|
||||
this.$tn.message.toast('点击了取消按钮')
|
||||
},
|
||||
// 点击了确认按钮
|
||||
onConfirm() {
|
||||
this.$t.message.toast('点击了确认按钮')
|
||||
this.$tn.message.toast('点击了确认按钮')
|
||||
this.value = false
|
||||
},
|
||||
// 点击了退格按钮
|
||||
|
||||
Reference in New Issue
Block a user