Files
2025-08-15 14:05:08 +08:00

18 lines
260 B
JavaScript

Component({
data: {
count: 4,
},
methods: {
toNext() {
this.setData({ count: this.data.count + 1 });
},
onCascader(e) {
const { current } = e.detail;
this.setData({
count: current + 1,
});
},
},
});