bug 自定义比对的校验
This commit is contained in:
@@ -41,11 +41,21 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
// 自定义点击标准选择按钮的事件
|
||||||
|
customClickFunc: {
|
||||||
|
type: Function
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击选择标准按钮
|
// 点击选择标准按钮
|
||||||
standardClick () {
|
standardClick () {
|
||||||
|
if (this.customClickFunc && typeof this.customClickFunc === 'function') {
|
||||||
|
this.customClickFunc(() => {
|
||||||
|
this.$refs.standardSelectionModal.open()
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.$refs.standardSelectionModal.open()
|
this.$refs.standardSelectionModal.open()
|
||||||
},
|
},
|
||||||
// 输入框输入监听
|
// 输入框输入监听
|
||||||
|
|||||||
Reference in New Issue
Block a user