@tuya-miniapp/smart-ui 2.13.0 → 2.13.1-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/picker-column/index.wxs +1 -1
- package/dist/popover/index.js +4 -0
- package/dist/popover/index.wxml +1 -1
- package/dist/stepper/index.js +1 -1
- package/lib/picker-column/index.wxs +1 -1
- package/lib/popover/index.js +4 -0
- package/lib/popover/index.wxml +1 -1
- package/lib/stepper/index.js +1 -1
- package/package.json +1 -1
|
@@ -77,7 +77,7 @@ function wrapperStyle(data) {
|
|
|
77
77
|
}, {});
|
|
78
78
|
|
|
79
79
|
var styleObj = {
|
|
80
|
-
'text-indent': data.unit ? '-
|
|
80
|
+
'text-indent': data.unit ? '-4px' : '0',
|
|
81
81
|
transition: !data.changeAnimation ? 'none' : 'transform ' + data.animationTime + 'ms cubic-bezier(0.2, 0.9, 0.25, 1)',
|
|
82
82
|
'line-height': addUnit(data.itemHeight),
|
|
83
83
|
transform: 'rotateX(' + rotate + 'deg)'
|
package/dist/popover/index.js
CHANGED
package/dist/popover/index.wxml
CHANGED
package/dist/stepper/index.js
CHANGED
|
@@ -184,7 +184,7 @@ SmartComponent({
|
|
|
184
184
|
const diff = type === 'minus' ? -this.data.step : +this.data.step;
|
|
185
185
|
const value = this.format(add(+this.data.currentValue, diff), true);
|
|
186
186
|
this.emitChange(value);
|
|
187
|
-
this.$emit(type);
|
|
187
|
+
this.$emit(type, value);
|
|
188
188
|
tyApi.vibrateShort({ type: 'light' });
|
|
189
189
|
},
|
|
190
190
|
longPressStep() {
|
|
@@ -77,7 +77,7 @@ function wrapperStyle(data) {
|
|
|
77
77
|
}, {});
|
|
78
78
|
|
|
79
79
|
var styleObj = {
|
|
80
|
-
'text-indent': data.unit ? '-
|
|
80
|
+
'text-indent': data.unit ? '-4px' : '0',
|
|
81
81
|
transition: !data.changeAnimation ? 'none' : 'transform ' + data.animationTime + 'ms cubic-bezier(0.2, 0.9, 0.25, 1)',
|
|
82
82
|
'line-height': addUnit(data.itemHeight),
|
|
83
83
|
transform: 'rotateX(' + rotate + 'deg)'
|
package/lib/popover/index.js
CHANGED
package/lib/popover/index.wxml
CHANGED
package/lib/stepper/index.js
CHANGED
|
@@ -201,7 +201,7 @@ function equal(value1, value2) {
|
|
|
201
201
|
var diff = type === 'minus' ? -this.data.step : +this.data.step;
|
|
202
202
|
var value = this.format(add(+this.data.currentValue, diff), true);
|
|
203
203
|
this.emitChange(value);
|
|
204
|
-
this.$emit(type);
|
|
204
|
+
this.$emit(type, value);
|
|
205
205
|
ty_1.default.vibrateShort({ type: 'light' });
|
|
206
206
|
},
|
|
207
207
|
longPressStep: function () {
|