64 lines
1.2 KiB
TypeScript
64 lines
1.2 KiB
TypeScript
Component({
|
|
options: {
|
|
styleIsolation: 'apply-shared',
|
|
},
|
|
properties: {
|
|
variant: {
|
|
type: String,
|
|
value: 'classic',
|
|
},
|
|
title: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
subtitle: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
previewBg: {
|
|
type: String,
|
|
value: '#f5f5f5',
|
|
},
|
|
previewText: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
ageRange: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
ageBand: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
difficulty: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
img: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
previewImg: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
icon: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
path: {
|
|
type: String,
|
|
value: '',
|
|
},
|
|
},
|
|
methods: {
|
|
onTap() {
|
|
this.triggerEvent('tap', {
|
|
title: this.data.title,
|
|
path: this.data.path,
|
|
});
|
|
},
|
|
},
|
|
});
|