Files
doodle-mini/miniprogram/components3.0/worksheet-card/worksheet-card.ts
T
2026-05-06 17:28:51 +08:00

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,
});
},
},
});