Commit 67df9b8c93a26b0edb4f3d5d5c589d355803cea0

Authored by yuyeqianxun
Committed by GitHub
1 parent e8aedefb

fix: Repair tree component click to select (#33)

src/components/Tree/src/BasicTree.tsx
@@ -250,7 +250,7 @@ export default defineComponent({ @@ -250,7 +250,7 @@ export default defineComponent({
250 state.selectedKeys = v; 250 state.selectedKeys = v;
251 emit('update:selectedKeys', v); 251 emit('update:selectedKeys', v);
252 }, 252 },
253 - check: (v: CheckKeys) => { 253 + onCheck: (v: CheckKeys) => {
254 state.checkedKeys = v; 254 state.checkedKeys = v;
255 emit('update:value', v); 255 emit('update:value', v);
256 }, 256 },