mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-18 18:02:43 +00:00
fix(tree): ensure that the check event is emitted close #400
This commit is contained in:
@@ -39,7 +39,7 @@
|
|||||||
name: 'BasicTree',
|
name: 'BasicTree',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
props: basicProps,
|
props: basicProps,
|
||||||
emits: ['update:expandedKeys', 'update:selectedKeys', 'update:value', 'change'],
|
emits: ['update:expandedKeys', 'update:selectedKeys', 'update:value', 'change', 'check'],
|
||||||
setup(props, { attrs, slots, emit }) {
|
setup(props, { attrs, slots, emit }) {
|
||||||
const state = reactive<State>({
|
const state = reactive<State>({
|
||||||
checkStrictly: props.checkStrictly,
|
checkStrictly: props.checkStrictly,
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
state.checkedKeys = v;
|
state.checkedKeys = v;
|
||||||
const rawVal = toRaw(v);
|
const rawVal = toRaw(v);
|
||||||
emit('change', rawVal);
|
emit('change', rawVal);
|
||||||
|
emit('check', rawVal);
|
||||||
emit('update:value', rawVal);
|
emit('update:value', rawVal);
|
||||||
},
|
},
|
||||||
onRightClick: handleRightClick,
|
onRightClick: handleRightClick,
|
||||||
|
Reference in New Issue
Block a user