Selaa lähdekoodia

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

yuyeqianxun 4 vuotta sitten
vanhempi
commit
67df9b8c93
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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);
         },