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
This commit is contained in:
16
miniprogram/components/chip/index.js
Normal file
16
miniprogram/components/chip/index.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user