mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
31 lines
488 B
JavaScript
31 lines
488 B
JavaScript
var Zan = require('../../dist/index');
|
|
|
|
Page(Object.assign({}, Zan.Quantity, {
|
|
data: {
|
|
quantity1: {
|
|
quantity: 10,
|
|
min: 1,
|
|
max: 20
|
|
},
|
|
quantity2: {
|
|
quantity: 1,
|
|
min: 1,
|
|
max: 1
|
|
},
|
|
quantity3: {
|
|
quantity: 10,
|
|
min: 1,
|
|
max: 20
|
|
}
|
|
},
|
|
|
|
handleZanQuantityChange(e) {
|
|
var componentId = e.componentId;
|
|
var quantity = e.quantity;
|
|
|
|
this.setData({
|
|
[`${componentId}.quantity`]: quantity
|
|
});
|
|
}
|
|
}));
|