fix(ApiTree): Modify Trigger Selection Event Name

pull/38/head
xingyu 2023-10-15 17:37:36 +08:00
parent 42e633e4db
commit 60a79422f3
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ async function fetch() {
</script> </script>
<template> <template>
<Tree v-bind="getAttrs as any" @change="handleChange"> <Tree v-bind="getAttrs" @select="handleChange">
<template v-for="item in Object.keys(slots)" #[item]="data"> <template v-for="item in Object.keys(slots)" #[item]="data">
<slot :name="item" v-bind="data || {}" /> <slot :name="item" v-bind="data || {}" />
</template> </template>