fix(tree): ensure that the check event is emitted close #400
| | |
| | | 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, |
| | |
| | | state.checkedKeys = v; |
| | | const rawVal = toRaw(v); |
| | | emit('change', rawVal); |
| | | emit('check', rawVal); |
| | | emit('update:value', rawVal); |
| | | }, |
| | | onRightClick: handleRightClick, |