Explorar el Código

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

yuyeqianxun hace 4 años
padre
commit
67df9b8c93
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);
         },