fix(ApiTree): Modify Trigger Selection Event Name

This commit is contained in:
invalid w 2023-10-14 11:18:48 +08:00
parent 95ca2c3ae6
commit 094a33c0c2

View File

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