shineout 1.7.2 → 1.7.3

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.
@@ -128,9 +128,9 @@ function parse(date, fmt, options) {
128
128
  const year = date.slice(index, index + 5)
129
129
  const weekIndex = fmt2.indexOf('WW')
130
130
  const week = weekIndex >= 0 ? date.slice(weekIndex, weekIndex + 3) : 1
131
- const result = dayjs(year, 'YYYY')
131
+ const result = dayjs(`${year}-06-15`, 'YYYY-MM-dd')
132
132
  .locale(getDayJsLocate(options))
133
- .isoWeek(week)
133
+ .isoWeek(Number(week))
134
134
  .toDate()
135
135
  return result
136
136
  }
package/es/Form/Form.js CHANGED
@@ -27,6 +27,7 @@ class Form extends Component {
27
27
  getValue: () => this.props.datum.getValue(),
28
28
  validate: () => this.props.datum.validate(),
29
29
  validateFields: fields => this.props.datum.validateFields(fields).catch(() => {}),
30
+ validateFieldsWithError: fields => this.props.datum.validateFields(fields),
30
31
  clearValidate: () => {
31
32
  this.props.datum.validateClear()
32
33
  },
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.2' }
5
+ export default { utils, version: '1.7.3' }
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.2' }
5
+ export default { utils, version: '1.7.3' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
@@ -135,7 +135,7 @@ function parse(date, fmt, options) {
135
135
  var year = date.slice(index, index + 5);
136
136
  var weekIndex = fmt2.indexOf('WW');
137
137
  var week = weekIndex >= 0 ? date.slice(weekIndex, weekIndex + 3) : 1;
138
- var result = (0, _dayjs.default)(year, 'YYYY').locale(getDayJsLocate(options)).isoWeek(week).toDate();
138
+ var result = (0, _dayjs.default)(year + "-06-15", 'YYYY-MM-dd').locale(getDayJsLocate(options)).isoWeek(Number(week)).toDate();
139
139
  return result;
140
140
  }
141
141
 
package/lib/Form/Form.js CHANGED
@@ -63,6 +63,9 @@ function (_Component) {
63
63
  validateFields: function validateFields(fields) {
64
64
  return _this.props.datum.validateFields(fields).catch(function () {});
65
65
  },
66
+ validateFieldsWithError: function validateFieldsWithError(fields) {
67
+ return _this.props.datum.validateFields(fields);
68
+ },
66
69
  clearValidate: function clearValidate() {
67
70
  _this.props.datum.validateClear();
68
71
  },
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.2' }
5
+ export default { utils, version: '1.7.3' }
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.2'
225
+ version: '1.7.3'
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.2",
3
+ "version": "1.7.3",
4
4
  "description": "Shein 前端组件库",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",