2018-05-07 22:38:35 +08:00

34 lines
463 B
JavaScript

Page(Object.assign({}, {
data: {
stepper1: {
stepper: 10,
min: 1,
max: 20
},
stepper2: {
stepper: 10,
min: 1,
max: 20
},
stepper3: {
stepper: 10,
min: 1,
max: 20,
step: 2
}
},
handleZanStepperChange({
detail: stepper,
target: {
dataset: {
componentId
}
}
}) {
this.setData({
[`${componentId}.stepper`]: stepper
});
}
}));