assui 2.0.146 → 2.1.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/es/button-drawer/index.d.ts +1 -1
- package/es/button-modal/index.d.ts +1 -1
- package/es/copy-to-clipboard/style/index.css +58 -43
- package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/es/highlight-textarea/getRanges.js +9 -7
- package/es/highlight-textarea/index.js +3 -3
- package/es/highlight-textarea/style/index.css +169 -41
- package/es/highlight-textarea/types.js +1 -0
- package/es/img-crop/index.js +7 -7
- package/es/img-crop/style/index.css +1784 -0
- package/es/img-crop/style/index.less +1 -1
- package/es/keep-tab/style/index.css +40 -23
- package/es/label-auto-complete/style/index.css +1784 -0
- package/es/label-auto-complete/style/index.less +1 -1
- package/es/label-customize-range-picker/defaultRadioList.d.ts +17 -1
- package/es/label-customize-range-picker/defaultRadioList.js +33 -28
- package/es/label-customize-range-picker/index.d.ts +3 -1
- package/es/label-customize-range-picker/index.js +6 -3
- package/es/label-customize-range-picker/style/index.css +1784 -0
- package/es/label-customize-range-picker/style/index.less +1 -1
- package/es/label-date-picker/index.js +1 -1
- package/es/label-date-picker/style/index.css +1784 -0
- package/es/label-date-picker/style/index.less +1 -1
- package/es/label-number-input/index.js +1 -1
- package/es/label-range-picker/style/index.css +1784 -0
- package/es/label-range-picker/style/index.less +1 -1
- package/es/label-select/style/index.css +1784 -0
- package/es/label-select/style/index.less +1 -1
- package/es/label-tree-select/style/index.css +1784 -0
- package/es/label-tree-select/style/index.less +1 -1
- package/es/number-input/index.js +4 -4
- package/es/number-input/utils.js +1 -1
- package/es/rich-text-editor/style/index.css +6 -5
- package/es/single-img-upload/index.js +1 -1
- package/es/single-img-upload/style/index.css +1784 -0
- package/es/single-img-upload/style/index.less +1 -1
- package/es/step-number-input/index.js +8 -8
- package/es/step-number-input/style/index.css +1784 -0
- package/es/step-number-input/style/index.less +1 -1
- package/es/text-input/index.js +8 -6
- package/es/text-input/style/index.css +169 -41
- package/lib/beautiful-dnd/index.js +13 -7
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/button-drawer/index.js +18 -12
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +14 -8
- package/lib/condition-input/index.js +17 -11
- package/lib/condition-input/parse2RegexOption.js +3 -3
- package/lib/copy-to-clipboard/index.js +15 -9
- package/lib/copy-to-clipboard/style/index.css +58 -43
- package/lib/highlight-textarea/HighlighedContents.js +2 -2
- package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/lib/highlight-textarea/getRanges.js +10 -8
- package/lib/highlight-textarea/index.js +19 -13
- package/lib/highlight-textarea/style/index.css +169 -41
- package/lib/img-crop/EasyCrop.js +13 -7
- package/lib/img-crop/index.js +21 -15
- package/lib/img-crop/style/index.css +1784 -0
- package/lib/img-crop/style/index.less +1 -1
- package/lib/index.js +38 -31
- package/lib/keep-tab/index.js +17 -11
- package/lib/keep-tab/style/index.css +40 -23
- package/lib/label-auto-complete/index.js +5 -5
- package/lib/label-auto-complete/style/index.css +1784 -0
- package/lib/label-auto-complete/style/index.less +1 -1
- package/lib/label-condition-input/index.js +5 -5
- package/lib/label-customize-range-picker/defaultRadioList.d.ts +17 -1
- package/lib/label-customize-range-picker/defaultRadioList.js +35 -29
- package/lib/label-customize-range-picker/index.d.ts +3 -1
- package/lib/label-customize-range-picker/index.js +23 -14
- package/lib/label-customize-range-picker/style/index.css +1784 -0
- package/lib/label-customize-range-picker/style/index.less +1 -1
- package/lib/label-date-picker/index.js +5 -5
- package/lib/label-date-picker/style/index.css +1784 -0
- package/lib/label-date-picker/style/index.less +1 -1
- package/lib/label-input/index.js +5 -5
- package/lib/label-number-input/index.js +6 -6
- package/lib/label-range-picker/index.js +3 -3
- package/lib/label-range-picker/style/index.css +1784 -0
- package/lib/label-range-picker/style/index.less +1 -1
- package/lib/label-select/index.js +5 -5
- package/lib/label-select/style/index.css +1784 -0
- package/lib/label-select/style/index.less +1 -1
- package/lib/label-text-area/index.js +4 -4
- package/lib/label-tree-select/index.js +4 -4
- package/lib/label-tree-select/style/index.css +1784 -0
- package/lib/label-tree-select/style/index.less +1 -1
- package/lib/number-input/index.js +21 -15
- package/lib/number-input/utils.js +8 -4
- package/lib/rc-echart/core.js +21 -15
- package/lib/rc-echart/index.js +13 -7
- package/lib/rc-qrcode/index.js +14 -8
- package/lib/rc-qrcode/useQrcode.js +4 -3
- package/lib/rc-transition-group/index.js +13 -7
- package/lib/rich-text-editor/index.js +1 -1
- package/lib/rich-text-editor/style/index.css +6 -5
- package/lib/single-img-upload/index.js +18 -12
- package/lib/single-img-upload/style/index.css +1784 -0
- package/lib/single-img-upload/style/index.less +1 -1
- package/lib/sortable-hoc/index.js +13 -7
- package/lib/split-pane/index.js +13 -7
- package/lib/step-number-input/index.js +32 -26
- package/lib/step-number-input/style/index.css +1784 -0
- package/lib/step-number-input/style/index.less +1 -1
- package/lib/text-area/index.js +14 -8
- package/lib/text-input/index.js +8 -6
- package/lib/text-input/style/index.css +169 -41
- package/package.json +4 -3
|
@@ -104,9 +104,9 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
104
104
|
var newNumber = '';
|
|
105
105
|
|
|
106
106
|
if (symbol === PLUS) {
|
|
107
|
-
newNumber = maxCondition ? ""
|
|
107
|
+
newNumber = maxCondition ? "".concat(max) : plusNumber;
|
|
108
108
|
} else {
|
|
109
|
-
newNumber = minCondition ? ""
|
|
109
|
+
newNumber = minCondition ? "".concat(min) : minusNumber;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
if (value === undefined) {
|
|
@@ -131,26 +131,26 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
131
131
|
|
|
132
132
|
if (!isUndefined(max) && Number(resultValue) > max) {
|
|
133
133
|
if (isUndefined(value)) {
|
|
134
|
-
setInputValue(""
|
|
134
|
+
setInputValue("".concat(max));
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
if (onChange) {
|
|
138
|
-
onChange(""
|
|
138
|
+
onChange("".concat(max));
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
if (!isUndefined(min) && Number(resultValue) < min) {
|
|
143
143
|
if (isUndefined(value)) {
|
|
144
|
-
setInputValue(""
|
|
144
|
+
setInputValue("".concat(min));
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
if (onChange) {
|
|
148
|
-
onChange(""
|
|
148
|
+
onChange("".concat(min));
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
if (onBlur) {
|
|
153
|
-
onBlur(""
|
|
153
|
+
onBlur("".concat(resultValue) || '');
|
|
154
154
|
}
|
|
155
155
|
};
|
|
156
156
|
|
|
@@ -173,7 +173,7 @@ var StepNumberInput = function StepNumberInput(props) {
|
|
|
173
173
|
'disabled-btn': isEmpty || maxCondition
|
|
174
174
|
})
|
|
175
175
|
}, "+"),
|
|
176
|
-
value: ""
|
|
176
|
+
value: "".concat(resultValue),
|
|
177
177
|
onChange: onNumberChange,
|
|
178
178
|
onBlur: onNumberBlur,
|
|
179
179
|
numberType: numberType,
|