shineout 1.7.1 → 1.7.2

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/Form/Item.js CHANGED
@@ -190,7 +190,7 @@ Item.propTypes = {
190
190
  Item.defaultProps = {
191
191
  ...defaultProps,
192
192
  formItemErrors: [],
193
- keepErrorHeight: true,
193
+ keepErrorHeight: false,
194
194
  }
195
195
 
196
196
  export default Item
@@ -93,7 +93,7 @@ export default curry(Origin =>
93
93
  const { onChange, readOnly, disabled } = this.props
94
94
  if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
95
95
  console.error(
96
- 'You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`'
96
+ 'warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly` or `disabled`'
97
97
  )
98
98
  }
99
99
  const { formDatum, loopContext, name, defaultValue, bindInputToItem, popover } = this.props
@@ -5,6 +5,7 @@ import { paginationClass } from './styles'
5
5
  import Input from '../Input'
6
6
 
7
7
  const inputStyle = { width: 60, display: 'inline-block' }
8
+ const nofunc = () => {}
8
9
 
9
10
  class Jumper extends PureComponent {
10
11
  constructor(props) {
@@ -63,6 +64,7 @@ class Jumper extends PureComponent {
63
64
  <Input
64
65
  key={this.renderRequire}
65
66
  value={current}
67
+ onChange={nofunc}
66
68
  autoFocus={this.autoFocus}
67
69
  onKeyDown={this.handleKeyDown}
68
70
  digits={0}
package/es/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.1' }
5
+ export default { utils, version: '1.7.2' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/es/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.1' }
5
+ export default { utils, version: '1.7.2' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/lib/Form/Item.js CHANGED
@@ -227,7 +227,7 @@ Item.propTypes = (0, _objectSpread2.default)({}, (0, _proptypes.getProps)(_propT
227
227
  });
228
228
  Item.defaultProps = (0, _objectSpread2.default)({}, _proptypes.defaultProps, {
229
229
  formItemErrors: [],
230
- keepErrorHeight: true
230
+ keepErrorHeight: false
231
231
  });
232
232
  var _default = Item; // eslint-disable-next-line
233
233
 
@@ -105,7 +105,7 @@ var _default = (0, _func.curry)(function (Origin) {
105
105
  disabled = _this$props.disabled;
106
106
 
107
107
  if ('value' in this.props && !onChange && disabled !== true && readOnly !== true) {
108
- console.error('You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`');
108
+ console.error('warning: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly` or `disabled`');
109
109
  }
110
110
 
111
111
  var _this$props2 = this.props,
@@ -26,6 +26,8 @@ var inputStyle = {
26
26
  display: 'inline-block'
27
27
  };
28
28
 
29
+ var nofunc = function nofunc() {};
30
+
29
31
  var Jumper =
30
32
  /*#__PURE__*/
31
33
  function (_PureComponent) {
@@ -91,6 +93,7 @@ function (_PureComponent) {
91
93
  }, txt[0], _react.default.createElement(_Input.default, {
92
94
  key: this.renderRequire,
93
95
  value: current,
96
+ onChange: nofunc,
94
97
  autoFocus: this.autoFocus,
95
98
  onKeyDown: this.handleKeyDown,
96
99
  digits: 0,
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.1' }
5
+ export default { utils, version: '1.7.2' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/lib/index.js CHANGED
@@ -222,6 +222,6 @@ exports.Upload = _Upload.default;
222
222
  // Created by scripts/src-index.js.
223
223
  var _default = {
224
224
  utils: utils,
225
- version: '1.7.1'
225
+ version: '1.7.2'
226
226
  };
227
227
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shineout",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Shein 前端组件库",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",