mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-23 20:00:19 +08:00
fix(tree): ensure that the check event is emitted close #400
This commit is contained in:
parent
d836d4b251
commit
16ef13477c
@ -39,7 +39,7 @@
|
||||
name: 'BasicTree',
|
||||
inheritAttrs: false,
|
||||
props: basicProps,
|
||||
emits: ['update:expandedKeys', 'update:selectedKeys', 'update:value', 'change'],
|
||||
emits: ['update:expandedKeys', 'update:selectedKeys', 'update:value', 'change', 'check'],
|
||||
setup(props, { attrs, slots, emit }) {
|
||||
const state = reactive<State>({
|
||||
checkStrictly: props.checkStrictly,
|
||||
@ -92,6 +92,7 @@
|
||||
state.checkedKeys = v;
|
||||
const rawVal = toRaw(v);
|
||||
emit('change', rawVal);
|
||||
emit('check', rawVal);
|
||||
emit('update:value', rawVal);
|
||||
},
|
||||
onRightClick: handleRightClick,
|
||||
|
Loading…
Reference in New Issue
Block a user