dtable-ui-component 6.0.39-alpha992 → 6.0.39-gzc2

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.
@@ -19,7 +19,7 @@ var _constants = require("../constants");
19
19
  var _lang = require("../lang");
20
20
  require("./index.css");
21
21
  /**
22
- * filter222 = {
22
+ * filter = {
23
23
  * column_key: '',
24
24
  * filter_predicate: '',
25
25
  * filter_term: '',
@@ -32,9 +32,11 @@ class FilterCalendar extends _react.Component {
32
32
  value
33
33
  }, () => {
34
34
  if (this.state.value) {
35
+ console.log('value', this.state.value);
35
36
  const filterStr = this.state.value.format(this.getCalendarFormat()[0]);
36
37
  if (typeof filterStr === 'string') {
37
38
  const changeVal = (0, _dateFormat.filterChangeValue)(filterStr, searchFormat);
39
+ console.log('changeVal', changeVal);
38
40
  onChange(changeVal);
39
41
  }
40
42
  }
@@ -100,6 +102,9 @@ class FilterCalendar extends _react.Component {
100
102
  lang
101
103
  } = this.props;
102
104
  const iszhcn = lang === 'zh-cn';
105
+ console.log('formatDay', this.formatDay);
106
+ console.log('formatMonth', this.formatMonth);
107
+ console.log('formatYear', this.formatYear);
103
108
  if (iszhcn) {
104
109
  now = now.locale('zh-cn');
105
110
  } else {
@@ -119,15 +124,15 @@ class FilterCalendar extends _react.Component {
119
124
  firstDayOfWeek
120
125
  } = this.props;
121
126
  const state = this.state;
127
+ const calendarFormat = this.getCalendarFormat();
122
128
  const inputStr = state.value ? state.value.format(this.columnDataFormat) : '';
123
- const displayContentValue = (0, _dateFormat.renderFilterInputFormat)(inputStr, this.columnDataFormat, (0, _dateFormat.delimate)(this.columnDataFormat));
129
+ const displayContentValue = (0, _dateFormat.renderFilterInputFormat)(inputStr, calendarFormat[0], (0, _dateFormat.delimate)(calendarFormat[0]));
124
130
  if (isReadOnly) return /*#__PURE__*/_react.default.createElement("input", {
125
131
  className: "ant-calendar-picker-input ant-input form-control",
126
132
  value: displayContentValue,
127
133
  disabled: true
128
134
  });
129
- const calendarFormat = this.getCalendarFormat();
130
- const calendarFormat1 = ['YYYY-MM-DD'];
135
+ console.log('calendarFormat', calendarFormat, displayContentValue);
131
136
  const clearStyle = {
132
137
  position: 'absolute',
133
138
  top: '15px',
@@ -145,7 +150,8 @@ class FilterCalendar extends _react.Component {
145
150
  style: {
146
151
  zIndex: 1001
147
152
  },
148
- format: calendarFormat1,
153
+ dateInputPlaceholder: calendarFormat[0],
154
+ format: calendarFormat,
149
155
  defaultValue: this.defaultCalendarValue,
150
156
  showDateInput: true,
151
157
  focusablePanel: false,
@@ -350,6 +350,8 @@ class FilterItem extends _react.default.Component {
350
350
  const inputRangeLabel = [_dtableUtils.FILTER_TERM_MODIFIER_TYPE.EXACT_DATE, _dtableUtils.FILTER_TERM_MODIFIER_TYPE.NUMBER_OF_DAYS_AGO, _dtableUtils.FILTER_TERM_MODIFIER_TYPE.NUMBER_OF_DAYS_FROM_NOW, _dtableUtils.FILTER_TERM_MODIFIER_TYPE.THE_NEXT_NUMBERS_OF_DAYS, _dtableUtils.FILTER_TERM_MODIFIER_TYPE.THE_PAST_NUMBERS_OF_DAYS];
351
351
  if (inputRangeLabel.indexOf(filter_term_modifier) > -1) {
352
352
  if (filter_term_modifier === 'exact_date') {
353
+ console.log('filterTerm', this.state.filterTerm);
354
+ console.log('filterColumn', filterColumn);
353
355
  return /*#__PURE__*/_react.default.createElement(_filterCalendar.default, {
354
356
  lang: lang,
355
357
  value: this.state.filterTerm,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.39-alpha992",
3
+ "version": "6.0.39-gzc2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",