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.
- package/css/DatePicker/utils.js +1 -1
- package/css/Form/Form.js +3 -0
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +7 -4
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/DatePicker/utils.js +2 -2
- package/es/Form/Form.js +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/DatePicker/utils.js +1 -1
- package/lib/Form/Form.js +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/DatePicker/utils.js
CHANGED
|
@@ -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
|
|
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
package/es/index.js
CHANGED
package/lib/DatePicker/utils.js
CHANGED
|
@@ -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
package/lib/index.js
CHANGED