feat: 完成首页UI展示初版开发
This commit is contained in:
@@ -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 });
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user