Browse Source

fix(ApiTree): Modify Trigger Selection Event Name

invalid w 1 year ago
parent
commit
094a33c0c2
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/components/Form/src/components/ApiTree.vue

+ 1 - 2
src/components/Form/src/components/ApiTree.vue

@@ -1,5 +1,5 @@
 <template>
-  <a-tree v-bind="getAttrs" @change="handleChange">
+  <a-tree v-bind="getAttrs" @select="handleChange">
     <template #[item]="data" v-for="item in Object.keys($slots)">
       <slot :name="item" v-bind="data || {}"></slot>
     </template>
@@ -36,7 +36,6 @@
           ...attrs,
         };
       });
-
       function handleChange(...args) {
         emit('change', ...args);
       }