mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 18:40:22 +08:00
fix(ApiTree): Modify Trigger Selection Event Name
This commit is contained in:
parent
95ca2c3ae6
commit
094a33c0c2
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user