Browse Source

fix(ApiTree): Modify Trigger Selection Event Name

pull/3151/head
invalid w 3 years ago
parent
commit
094a33c0c2
  1. 3
      src/components/Form/src/components/ApiTree.vue

3
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);
}

Loading…
Cancel
Save