This commit is contained in:
xuziqiang
2024-05-15 17:29:42 +08:00
commit d0155dbe3c
7296 changed files with 1832517 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<template>
<a-tree v-bind="getBindValue">
<template #[item]="data" v-for="item in Object.keys($slots)" :key="item">
<slot :name="item" v-bind="data || {}"></slot>
</template>
</a-tree>
</template>
<script lang="ts">
import { computed, defineComponent } from 'vue';
export default defineComponent({
name: 'NsTree',
setup(props, { attrs }) {
const getBindValue = computed(() => ({
...attrs,
...props,
}));
return { getBindValue };
},
});
</script>
<style lang="less" scoped></style>