榆钱落尽槿花稀 01448b7113 feat: 添加多个静态图片资源及配置文件
新增了多个静态图片资源文件,包括01.png、02.png等,并添加了相关的配置文件和组件,如vue.config.js、package.json等。同时引入了Tuniao UI库,并配置了相关的依赖和设置,以支持项目的开发和构建。
2025-05-09 17:07:24 +08:00

51 lines
940 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="tn-tree-view-class tn-tree-view">
<tn-tree-node
v-for="(item, index) in treeData"
:key="index"
:node="item"
:collapsible="collapsible"
:triangle="triangle"
@click="handleClick"
></tn-tree-node>
</view>
</template>
<script>
//如果未开启easycom模式请自行引入tn-tree-node组件
export default {
name: 'tn-tree-view',
props: {
// 节点信息
treeData: {
type: Array,
default() {
return []
}
},
// 可以折叠
collapsible: {
type: Boolean,
default: true
},
// 显示三角形
triangle: {
type: Boolean,
default: true
}
},
methods: {
handleClick(e) {
this.$emit('click', e)
}
}
}
</script>
<style lang="scss" scoped>
.tn-tree-view {
width: 100%;
position: relative;
}
</style>