From bea9c5f1efc24d45578d2f45652eb19e11e9ce3a Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 27 Jul 2020 13:50:57 +0800 Subject: [PATCH] perf: button add onClick props --- components/_util/transButton.jsx | 1 + components/button/buttonTypes.js | 1 + package.json | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/_util/transButton.jsx b/components/_util/transButton.jsx index 80039a0ce..7bf79bb06 100644 --- a/components/_util/transButton.jsx +++ b/components/_util/transButton.jsx @@ -18,6 +18,7 @@ const TransButton = { inheritAttrs: false, props: { noStyle: PropTypes.bool, + onClick: PropTypes.func, }, methods: { diff --git a/components/button/buttonTypes.js b/components/button/buttonTypes.js index 2e763e074..0e6a97da6 100644 --- a/components/button/buttonTypes.js +++ b/components/button/buttonTypes.js @@ -11,4 +11,5 @@ export default () => ({ ghost: PropTypes.bool, block: PropTypes.bool, icon: PropTypes.any, + onClick: PropTypes.func, }); diff --git a/package.json b/package.json index f4ce97dc5..31c62af09 100644 --- a/package.json +++ b/package.json @@ -77,7 +77,7 @@ "@commitlint/config-conventional": "^8.0.0", "@octokit/rest": "^16.0.0", "@vue/cli-plugin-eslint": "^4.0.0", - "@vue/compiler-sfc": "^3.0.0-rc.2", + "@vue/compiler-sfc": "^3.0.0-rc.4", "@vue/server-test-utils": "1.0.0-beta.16", "@vue/test-utils": "^2.0.0-beta.0", "acorn": "^7.0.0", @@ -153,7 +153,7 @@ "through2": "^3.0.0", "typescript": "^3.9.7", "url-loader": "^3.0.0", - "vue": "^3.0.0-rc.2", + "vue": "^3.0.0-rc.4", "vue-antd-md-loader": "^1.1.0", "vue-clipboard2": "0.3.1", "vue-draggable-resizable": "^2.1.0",