Compare commits

...

2 Commits

Author SHA1 Message Date
winter_born
84f4f2667e 1 2026-04-15 15:05:52 +08:00
winter_born
af1acb6771 first commit 2026-04-15 15:03:43 +08:00
2 changed files with 14 additions and 5 deletions

1
README.md Normal file
View File

@@ -0,0 +1 @@
# files_second

View File

@@ -1,9 +1,12 @@
<template>
<view>
<uni-segmented-control :current="current" :values="" @clickItem=""></uni-segmented-control>
<view class="headers_top">
学习心得
</view>
<uni-segmented-control :current="current" :values="value" @clickItem="oncheck()" activeColor="red" styleType="text"></uni-segmented-control>
<view class="content">
<view v-show="current === 0">
选项卡1的内容
</view>
<view v-show="current === 1">
选项卡2的内容
@@ -17,15 +20,20 @@
data() {
return {
current:0,
value:["学习感言","学习历史"]
}
},
methods: {
oncheck(e){
if(this.current != e.currentIndex){
this.current = e.currentIndex
}
}
}
}
</script>
<style>
.headers_top{font-size:1.3rem;font-weight: bold;text-align: center;}
</style>