dtable-ui-component 4.3.9-alpha1 → 4.3.10-alpha1
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.
|
@@ -15,7 +15,7 @@ class CTimeFormatter extends React.Component {
|
|
|
15
15
|
containerClassName
|
|
16
16
|
} = this.props;
|
|
17
17
|
let classname = classnames('dtable-ui cell-formatter-container ctime-formatter', containerClassName);
|
|
18
|
-
if (date
|
|
18
|
+
if (date) {
|
|
19
19
|
date = this.formatDate(date);
|
|
20
20
|
}
|
|
21
21
|
return /*#__PURE__*/React.createElement("div", {
|
package/lib/DateEditor/index.js
CHANGED
|
@@ -4,6 +4,8 @@ import dayjs from 'dayjs';
|
|
|
4
4
|
import { getDateDisplayString } from 'dtable-utils';
|
|
5
5
|
import PCDateEditorPopover from './pc-date-editor-popover';
|
|
6
6
|
import MBDateEditorPopover from './mb-date-editor-popover';
|
|
7
|
+
import 'dayjs/locale/zh-cn';
|
|
8
|
+
import 'dayjs/locale/en-gb';
|
|
7
9
|
import './index.css';
|
|
8
10
|
class DateEditor extends React.Component {
|
|
9
11
|
constructor(props) {
|
|
@@ -15,7 +15,7 @@ class MTimeFormatter extends React.Component {
|
|
|
15
15
|
containerClassName
|
|
16
16
|
} = this.props;
|
|
17
17
|
let classname = classnames('dtable-ui cell-formatter-container ctime-formatter', containerClassName);
|
|
18
|
-
if (date
|
|
18
|
+
if (date) {
|
|
19
19
|
date = this.formatDate(date);
|
|
20
20
|
}
|
|
21
21
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -8,7 +8,7 @@ export default class ClickOutside extends React.Component {
|
|
|
8
8
|
this.isClickedInside = false;
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
this.props.onClickOutside(e);
|
|
11
|
+
this.props.onClickOutside && this.props.onClickOutside(e);
|
|
12
12
|
};
|
|
13
13
|
this.handleMouseDown = () => {
|
|
14
14
|
this.isClickedInside = true;
|
package/lib/toaster/index.css
CHANGED