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() {