assui 3.1.70 → 3.1.72
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/es/color-select/index.js +2 -2
- package/es/complex-val-select/index.d.ts +5 -3
- package/es/complex-val-select/index.js +32 -8
- package/es/highlight-textarea/index.js +7 -9
- package/es/img-crop/index.d.ts +0 -12
- package/es/img-crop/index.js +29 -31
- package/es/keep-tab/index.d.ts +0 -3
- package/es/keep-tab/index.js +10 -12
- package/es/label-customize-range-picker/defaultRadioList.js +17 -17
- package/es/label-customize-range-picker/index.js +2 -2
- package/es/messages/index.d.ts +7 -5
- package/es/messages/index.js +5 -0
- package/es/number-input/index.js +2 -4
- package/es/rc-echart/core.d.ts +1 -10
- package/es/rc-echart/core.js +10 -13
- package/es/rc-qrcode/index.d.ts +0 -4
- package/es/rc-qrcode/index.js +4 -6
- package/es/single-img-upload/index.d.ts +1 -6
- package/es/single-img-upload/index.js +16 -18
- package/es/step-number-input/index.d.ts +1 -9
- package/es/step-number-input/index.js +11 -11
- package/lib/color-select/index.js +2 -2
- package/lib/complex-val-select/index.d.ts +5 -3
- package/lib/complex-val-select/index.js +34 -9
- package/lib/highlight-textarea/index.js +7 -9
- package/lib/img-crop/index.d.ts +0 -12
- package/lib/img-crop/index.js +29 -31
- package/lib/keep-tab/index.d.ts +0 -3
- package/lib/keep-tab/index.js +10 -12
- package/lib/label-customize-range-picker/defaultRadioList.js +50 -17
- package/lib/label-customize-range-picker/index.js +2 -2
- package/lib/messages/index.d.ts +7 -5
- package/lib/messages/index.js +6 -0
- package/lib/number-input/index.js +2 -4
- package/lib/rc-echart/core.d.ts +1 -10
- package/lib/rc-echart/core.js +10 -13
- package/lib/rc-qrcode/index.d.ts +0 -4
- package/lib/rc-qrcode/index.js +4 -6
- package/lib/single-img-upload/index.d.ts +1 -6
- package/lib/single-img-upload/index.js +16 -18
- package/lib/step-number-input/index.d.ts +1 -9
- package/lib/step-number-input/index.js +11 -11
- package/package.json +2 -2
|
@@ -32,13 +32,5 @@ export interface StepNumberInputProps {
|
|
|
32
32
|
allowClear?: boolean;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
}
|
|
35
|
-
declare const StepNumberInput:
|
|
36
|
-
(props: StepNumberInputProps): JSX.Element;
|
|
37
|
-
defaultProps: {
|
|
38
|
-
numberType: string;
|
|
39
|
-
precision: number;
|
|
40
|
-
enableMinus: boolean;
|
|
41
|
-
step: number;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
35
|
+
declare const StepNumberInput: (props: StepNumberInputProps) => JSX.Element;
|
|
44
36
|
export default StepNumberInput;
|
|
@@ -104,13 +104,18 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
104
104
|
setValue = _a[1];
|
|
105
105
|
var onChange = props.onChange,
|
|
106
106
|
onBlur = props.onBlur,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
_b = props.numberType,
|
|
108
|
+
numberType = _b === void 0 ? numberType_1.INT : _b,
|
|
109
|
+
_c = props.precision,
|
|
110
|
+
precision = _c === void 0 ? 2 : _c,
|
|
111
|
+
_d = props.step,
|
|
112
|
+
step = _d === void 0 ? 1 : _d,
|
|
110
113
|
max = props.max,
|
|
111
114
|
min = props.min,
|
|
112
115
|
customDisabled = props.disabled,
|
|
113
|
-
|
|
116
|
+
_e = props.enableMinus,
|
|
117
|
+
enableMinus = _e === void 0 ? false : _e,
|
|
118
|
+
restProps = __rest(props, ["onChange", "onBlur", "numberType", "precision", "step", "max", "min", "disabled", "enableMinus"]);
|
|
114
119
|
var isEmpty = (0, isUndefined_1["default"])(value) || value === '';
|
|
115
120
|
var plusNumber = new bignumber_js_1["default"](value).plus(step).toString();
|
|
116
121
|
var minusNumber = new bignumber_js_1["default"](value).minus(step).toString();
|
|
@@ -172,13 +177,8 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
172
177
|
onBlur: onNumberBlur,
|
|
173
178
|
numberType: numberType,
|
|
174
179
|
precision: precision,
|
|
175
|
-
disabled: mergedDisabled
|
|
180
|
+
disabled: mergedDisabled,
|
|
181
|
+
enableMinus: enableMinus
|
|
176
182
|
}, restProps)));
|
|
177
183
|
};
|
|
178
|
-
StepNumberInput.defaultProps = {
|
|
179
|
-
numberType: numberType_1.INT,
|
|
180
|
-
precision: 2,
|
|
181
|
-
enableMinus: false,
|
|
182
|
-
step: 1
|
|
183
|
-
};
|
|
184
184
|
exports["default"] = StepNumberInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.72",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "f82c41ddf42a59ea1ce303251a84b89d36370468"
|
|
84
84
|
}
|