From 256cdc2b267f0286667cffd0143d988cca675355 Mon Sep 17 00:00:00 2001 From: sengoku-f <31064651+sengoku-f@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E9=80=92=E7=82=B9=E5=87=BB=E4=BA=8B?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E4=BC=A0=E9=80=92=E6=9C=AA=E5=A3=B0=E6=98=8E?= =?UTF-8?q?=E4=B8=BA=20props=20=E7=9A=84=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/runtime/index.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bb779bb..9400fda 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ksw-rpom-icon-vue", - "version": "0.1.3", + "version": "0.1.4", "license": "ISC", "description": "KSW RPOM ICON", "main": "packages/cjs/index.js", diff --git a/src/runtime/index.js b/src/runtime/index.js index 98df910..6001411 100644 --- a/src/runtime/index.js +++ b/src/runtime/index.js @@ -45,6 +45,10 @@ export function IconWrapper(name, spin, render) { "span", { class: cls.join(" "), + // 传递事件监听器 + on: this.$listeners, + // 传递未声明为 props 的属性 + attrs: this.$attrs, }, [render(h, this)] );