dtable-ui-component 0.3.10 → 0.3.11-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.
@@ -140,19 +140,11 @@ var FormulaFormatter = /*#__PURE__*/function (_React$Component) {
140
140
  if (Array.isArray(value)) {
141
141
  value = getFormulaArrayValue(value);
142
142
 
143
- if (array_type === CellType.DATE || resultType === FORMULA_RESULT_TYPE.DATE) {
144
- value = value.map(function (item) {
145
- return item.replace('T', ' ').replace('Z', '');
146
- });
147
- } else if (array_type === CellType.LONG_TEXT) {
143
+ if (array_type === CellType.LONG_TEXT) {
148
144
  value = value.map(function (item) {
149
145
  return convertValueToDtableLongTextValue(item);
150
146
  });
151
147
  }
152
- } else {
153
- if (resultType === FORMULA_RESULT_TYPE.DATE) {
154
- value = value.replace('T', ' ').replace('Z', '');
155
- }
156
148
  }
157
149
 
158
150
  if (resultType === FORMULA_RESULT_TYPE.ARRAY) {
@@ -21,6 +21,9 @@
21
21
  overflow: hidden;
22
22
  text-overflow: ellipsis;
23
23
  white-space: nowrap;
24
+ height: 2.375rem;
25
+ line-height: 2.375rem;
26
+ width: 100%;
24
27
  }
25
28
 
26
29
  .dtable-ui.dtable-row-expand-formatter .dtable-ui.multiple-select-formatter .dtable-ui.select-item {
@@ -143,19 +143,11 @@ var RowExpandFormulaFormatter = /*#__PURE__*/function (_React$Component) {
143
143
  if (Array.isArray(value)) {
144
144
  value = getFormulaArrayValue(value);
145
145
 
146
- if (array_type === CellType.DATE || result_type === FORMULA_RESULT_TYPE.DATE) {
147
- value = value.map(function (item) {
148
- return item.replace('T', ' ').replace('Z', '');
149
- });
150
- } else if (array_type === CellType.LONG_TEXT) {
146
+ if (array_type === CellType.LONG_TEXT) {
151
147
  value = value.map(function (item) {
152
148
  return convertValueToDtableLongTextValue(item);
153
149
  });
154
150
  }
155
- } else {
156
- if (result_type === FORMULA_RESULT_TYPE.DATE && typeof value === 'string') {
157
- value = value.replace('T', ' ').replace('Z', '');
158
- }
159
151
  }
160
152
 
161
153
  if (result_type === FORMULA_RESULT_TYPE.ARRAY) {
@@ -82,7 +82,7 @@ var RowExpandLinkFormatter = /*#__PURE__*/function (_Component) {
82
82
 
83
83
  return /*#__PURE__*/React.createElement(DateFormatter, {
84
84
  key: "link-".concat(displayColumnType, "-").concat(index),
85
- value: value.replace('T', ' ').replace('Z', ''),
85
+ value: value,
86
86
  format: format,
87
87
  containerClassName: "row-expand-link-item"
88
88
  });
@@ -108,7 +108,7 @@ var DTABLE_VALUE = {
108
108
  '_ctime': '2022-05-12T02:03:46.777+00:00',
109
109
  '_last_modifier': 'bing.an@seafile.com',
110
110
  '_mtime': '2023-06-13T09:27:16.290+00:00',
111
- '0000': '这里需要支持对记录的编辑。最上方(在 "我的开票信息/行详情信息" 这一排)提供一个保存按钮。这里需要支持对记录的编辑。最上方(在 "我的开票信息/行详情信息" 这一排)提供一个保存按钮。测试',
111
+ '0000': 'qwertyuiopasdfghjklzxcvbnm,.这里需要支持对记录的编辑。最上方(在 "我的开票信息/行详情信息" 这一排)提供一个保存按钮。这里需要支持对记录的编辑。最上方(在 "我的开票信息/行详情信息" 这一排)提供一个保存按钮。测试',
112
112
  'wI6R': 1008,
113
113
  '0bPT': [],
114
114
  'RBN9': '409842',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.3.10",
3
+ "version": "0.3.11-alpha1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "dtable-utils": "0.0.2",