Skip to content

Commit 7ec5dac

Browse files
committed
perf: add checkbox event declar
1 parent ec73097 commit 7ec5dac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.jest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const libDir = process.env.LIB_DIR;
22

33
const transformIgnorePatterns = [
44
'/dist/',
5-
'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir
5+
// 'node_modules/[^/]+?/(?!(es|node_modules)/)', // Ignore modules without es dir
66
];
77

88
module.exports = {

components/checkbox/Checkbox.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export default {
2323
indeterminate: PropTypes.bool,
2424
type: PropTypes.string.def('checkbox'),
2525
autofocus: PropTypes.bool,
26+
onChange: PropTypes.func,
27+
'onUpdate:checked': PropTypes.func,
2628
},
2729

2830
setup() {

0 commit comments

Comments
 (0)