shineout 1.12.13-beta.8 → 1.12.13
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/css/Input/Input.js +3 -2
- package/css/Input/Number.js +2 -0
- package/css/Table/Sorter.js +2 -2
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +277 -187
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Input/Input.js +3 -2
- package/es/Input/Number.js +2 -0
- package/es/Table/Sorter.js +2 -2
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Input/Input.js +3 -2
- package/lib/Input/Number.js +2 -0
- package/lib/Table/Sorter.js +2 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/css/Input/Input.js
CHANGED
|
@@ -221,7 +221,7 @@ function (_PureComponent) {
|
|
|
221
221
|
if (!shouldKeepUndefined && !this.invalidNumber(newVal)) {
|
|
222
222
|
if (this.getTrim()) newVal = newVal.trim();
|
|
223
223
|
var change = forceChange || onChange;
|
|
224
|
-
change(newVal);
|
|
224
|
+
if (!this.props.cancelBlurChange) change(newVal);
|
|
225
225
|
e.target.value = newVal;
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -336,7 +336,8 @@ Input.propTypes = {
|
|
|
336
336
|
clearToUndefined: _propTypes.default.bool,
|
|
337
337
|
placeholder: _propTypes.default.string,
|
|
338
338
|
coin: _propTypes.default.bool,
|
|
339
|
-
trim: _propTypes.default.bool
|
|
339
|
+
trim: _propTypes.default.bool,
|
|
340
|
+
cancelBlurChange: _propTypes.default.bool
|
|
340
341
|
};
|
|
341
342
|
Input.defaultProps = {
|
|
342
343
|
type: 'text'
|
package/css/Input/Number.js
CHANGED
|
@@ -231,6 +231,7 @@ function (_PureComponent) {
|
|
|
231
231
|
onKeyDown: this.handleKeyDown,
|
|
232
232
|
onKeyUp: this.handleKeyUp,
|
|
233
233
|
onBlur: this.handleBlur,
|
|
234
|
+
cancelBlurChange: true,
|
|
234
235
|
type: "number"
|
|
235
236
|
}))]);
|
|
236
237
|
};
|
|
@@ -255,6 +256,7 @@ function (_PureComponent) {
|
|
|
255
256
|
onKeyDown: this.handleKeyDown,
|
|
256
257
|
onKeyUp: this.handleKeyUp,
|
|
257
258
|
onBlur: this.handleBlur,
|
|
259
|
+
cancelBlurChange: true,
|
|
258
260
|
type: "number"
|
|
259
261
|
}))].concat(this.renderArrowGroup());
|
|
260
262
|
};
|
package/css/Table/Sorter.js
CHANGED
|
@@ -46,8 +46,8 @@ function (_PureComponent) {
|
|
|
46
46
|
defaultOrder = _this$props.defaultOrder,
|
|
47
47
|
current = _this$props.current,
|
|
48
48
|
keyStr = _this$props.keyStr;
|
|
49
|
-
if (current.length
|
|
50
|
-
var item = current[0];
|
|
49
|
+
if (current.length > 1) return;
|
|
50
|
+
var item = current[0] || {};
|
|
51
51
|
var changed = keyStr === item.key && defaultOrder === item.order;
|
|
52
52
|
if (defaultOrder && !changed && !item.manual) this.handleChange(defaultOrder, false);
|
|
53
53
|
};
|
package/css/index.d.ts
CHANGED