This commit is contained in:
2023-08-15 13:29:52 +08:00
parent 433a4d8f3d
commit c081f0fc29
25 changed files with 1328 additions and 448 deletions

View File

@@ -1,59 +1,16 @@
<template>
<view class="app">
<nut-tabs style="height:100vh" v-model="val" title-scroll name="tab4value" direction="vertical">
<nut-tab-pane v-for="item in 10" :pane-key="item" :title="'Tab '+ item"> Tab {{item}} </nut-tab-pane>
</nut-tabs>
</view>
<nut-tabs style="height:100vh" v-model="val" title-scroll name="tab4value" direction="vertical">
<nut-tab-pane v-for="item in 10" :title="'Tab '+ item"> Tab {{ item }}</nut-tab-pane>
</nut-tabs>
</template>
<script lang="ts" setup>
import {ref, onMounted} from 'vue';
const val = ref('0')
const category = ref([
{
catId: 1,
catName: '手机',
},
{
catId: 2,
catName: '电脑',
},
{
catId: 3,
catName: '家电',
},
{
catId: 4,
catName: '生活',
},
{
catId: 5,
catName: '服饰',
}
])
const categoryChild = ref([
{
catId: 1,
catName: '休闲零食',
},
{}
])
const change = (e: any) => {
console.log(e)
}
const onChange = (e) => {
console.log(e)
}
const val = ref('0');
</script>
<style lang="scss">
.app {
height: 100vh;
}
</style>