From df4ea0853a3e16fc87b5f55b216f5d265f23e263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Wed, 15 Nov 2023 10:34:28 +0800 Subject: [PATCH] =?UTF-8?q?bug=20=E8=87=AA=E5=AE=9A=E4=B9=89=E6=AF=94?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/selection/StandardSelection.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() }, // 输入框输入监听