From 7ec5dac8448580d464a60065294114709641a0fe Mon Sep 17 00:00:00 2001 From: tanjinzhou <415800467@qq.com> Date: Mon, 7 Sep 2020 17:19:28 +0800 Subject: [PATCH] perf: add checkbox event declar --- .jest.js | 2 +- components/checkbox/Checkbox.jsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.jest.js b/.jest.js index 171aff90a..2e4b24314 100644 --- a/.jest.js +++ b/.jest.js @@ -2,7 +2,7 @@ const libDir = process.env.LIB_DIR; const transformIgnorePatterns = [ '/dist/', - 'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir + // 'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir ]; module.exports = { diff --git a/components/checkbox/Checkbox.jsx b/components/checkbox/Checkbox.jsx index 5e8bd44ac..69e33d28f 100644 --- a/components/checkbox/Checkbox.jsx +++ b/components/checkbox/Checkbox.jsx @@ -23,6 +23,8 @@ export default { indeterminate: PropTypes.bool, type: PropTypes.string.def('checkbox'), autofocus: PropTypes.bool, + onChange: PropTypes.func, + 'onUpdate:checked': PropTypes.func, }, setup() {