diff --git a/src/components/selection/StandardSelection.vue b/src/components/selection/StandardSelection.vue index 379e96e7..cda588a9 100644 --- a/src/components/selection/StandardSelection.vue +++ b/src/components/selection/StandardSelection.vue @@ -41,11 +41,21 @@ export default { type: Boolean, required: false, default: false + }, + // 自定义点击标准选择按钮的事件 + customClickFunc: { + type: Function } }, methods: { // 点击选择标准按钮 standardClick () { + if (this.customClickFunc && typeof this.customClickFunc === 'function') { + this.customClickFunc(() => { + this.$refs.standardSelectionModal.open() + }) + return + } this.$refs.standardSelectionModal.open() }, // 输入框输入监听