feat: 完成首页UI展示初版开发

This commit is contained in:
R524809
2026-03-31 10:59:25 +08:00
parent 1b45ba7d11
commit b18dbcb0d1
17 changed files with 258 additions and 10 deletions
@@ -0,0 +1,22 @@
Component({
options: {
styleIsolation: 'apply-shared',
},
properties: {
tabs: {
type: Array,
value: [],
},
activeTab: {
type: String,
value: '',
},
},
methods: {
onTabTap(e: WechatMiniprogram.TouchEvent) {
const id = (e.currentTarget.dataset.id as string) || '';
if (!id) return;
this.triggerEvent('change', { id });
},
},
});