Browse Source

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

yuyeqianxun 4 năm trước cách đây
mục cha
commit
67df9b8c93
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/Tree/src/BasicTree.tsx

+ 1 - 1
src/components/Tree/src/BasicTree.tsx

@@ -250,7 +250,7 @@ export default defineComponent({
           state.selectedKeys = v;
           emit('update:selectedKeys', v);
         },
-        check: (v: CheckKeys) => {
+        onCheck: (v: CheckKeys) => {
           state.checkedKeys = v;
           emit('update:value', v);
         },