提交 16ef1347 作者: Vben

fix(tree): ensure that the check event is emitted close #400

上级 d836d4b2
......@@ -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,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论