feat: 完成分龄页开发
This commit is contained in:
@@ -3,10 +3,18 @@ Component({
|
||||
styleIsolation: 'apply-shared',
|
||||
},
|
||||
properties: {
|
||||
variant: {
|
||||
type: String,
|
||||
value: 'classic',
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
subtitle: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
previewBg: {
|
||||
type: String,
|
||||
value: '#f5f5f5',
|
||||
@@ -19,6 +27,10 @@ Component({
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
ageBand: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
difficulty: {
|
||||
type: String,
|
||||
value: '',
|
||||
@@ -27,10 +39,25 @@ Component({
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
previewImg: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
icon: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
path: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
this.triggerEvent('tap');
|
||||
this.triggerEvent('tap', {
|
||||
title: this.data.title,
|
||||
path: this.data.path,
|
||||
});
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user