@seafile/seafile-calendar 0.0.29-alpha72 → 0.0.29-alpha73
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/dist/rc-calendar.js
CHANGED
@@ -6891,7 +6891,8 @@ var CalendarRightPanel = function (_React$Component) {
|
|
6891
6891
|
};
|
6892
6892
|
|
6893
6893
|
_this.state = {
|
6894
|
-
highlightTime: _this.props.value || null
|
6894
|
+
highlightTime: _this.props.value || null,
|
6895
|
+
localeFormat: _this.props.format[0]
|
6895
6896
|
};
|
6896
6897
|
_this.timeRef = __WEBPACK_IMPORTED_MODULE_3_react___default.a.createRef();
|
6897
6898
|
_this.times = _this.getTimes();
|
@@ -6936,13 +6937,12 @@ var CalendarRightPanel = function (_React$Component) {
|
|
6936
6937
|
'ul',
|
6937
6938
|
null,
|
6938
6939
|
this.times.map(function (time) {
|
6939
|
-
|
6940
6940
|
console.log('1111', selectedDate + ' ' + time);
|
6941
6941
|
var parts = Object(__WEBPACK_IMPORTED_MODULE_6__util__["d" /* formatDateLocal */])(selectedDate, _this2.state.localeFormat);
|
6942
6942
|
var current = __WEBPACK_IMPORTED_MODULE_5_dayjs___default()(selectedDate + ' ' + time).year(parts[0]);
|
6943
|
-
|
6944
|
-
current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
|
6945
6943
|
console.log('current', current);
|
6944
|
+
current = isZhcn ? current.locale('zh-cn') : current.locale('en-gb');
|
6945
|
+
// console.log('current', current);
|
6946
6946
|
return __WEBPACK_IMPORTED_MODULE_3_react___default.a.createElement(
|
6947
6947
|
'li',
|
6948
6948
|
{
|
@@ -6972,7 +6972,9 @@ CalendarRightPanel.propTypes = {
|
|
6972
6972
|
onSelect: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
6973
6973
|
onClickRightPanelTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func,
|
6974
6974
|
locale: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.object,
|
6975
|
-
defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string
|
6975
|
+
defaultMinutesTime: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string,
|
6976
|
+
format: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.oneOfType([__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string, __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.arrayOf(__WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.string)])
|
6977
|
+
|
6976
6978
|
};
|
6977
6979
|
/* harmony default export */ __webpack_exports__["a"] = (CalendarRightPanel);
|
6978
6980
|
|