Files
fitness-coach/miniprogram/components/chip/index.js
wm b3b58e66fb feat: init fitness-coach (backend + miniprogram)
- backend: NestJS service with exercise/plan data
- miniprogram: WeChat mini program client
- exclude node_modules, dist, runtime data-store, local env
2026-07-22 00:35:40 +08:00

17 lines
344 B
JavaScript

Component({
properties: {
label: { type: String, value: '' },
active: { type: Boolean, value: false },
color: { type: String, value: '' },
value: { type: String, value: '' }
},
methods: {
onTap() {
this.triggerEvent('tap', {
value: this.data.value,
label: this.data.label
});
}
}
});