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", {
@@ -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;
@@ -1,7 +1,7 @@
1
1
  .dtable-toast-manager {
2
2
  position: fixed;
3
3
  margin: 0 auto;
4
- max-width: 560;
4
+ max-width: 560px;
5
5
  top: 0;
6
6
  left: 0;
7
7
  right: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "4.3.9-alpha1",
3
+ "version": "4.3.10-alpha1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "2.0.5",