es-grid-template 1.1.4 → 1.1.5-3

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.
@@ -248,7 +248,7 @@ const InternalTable = props => {
248
248
  key: col.field ?? col.dataIndex ?? col.key,
249
249
  title: t ? t(col.headerText ?? col.title) : col.headerText ?? col.title,
250
250
  ellipsis: col.ellipsis !== false,
251
- align: col.textAlign ?? col.align,
251
+ align: col.textAlign ?? col.align ?? col.type === 'number' ? 'right' : undefined,
252
252
  fixed: col.frozen ? col.frozen.toLowerCase() : col.fixed
253
253
  };
254
254
  if (col.children) {
@@ -381,7 +381,9 @@ const TableGrid = props => {
381
381
  };
382
382
  return /*#__PURE__*/React.createElement(Table.Summary.Cell, {
383
383
  key: col.key,
384
- index: index
384
+ index: index,
385
+ align: col.align ?? 'right',
386
+ className: 'ui-rc-table-cell-ellipsis'
385
387
  }, col.summaryTemplate ? col.summaryTemplate(cellValue, col.key) : numericFormatter(cellValue, numericFormatProps));
386
388
  })));
387
389
  },
@@ -78,6 +78,7 @@ const Grid = props => {
78
78
  components: {
79
79
  ...components
80
80
  },
81
+ format: format,
81
82
  columns: mergedColumns,
82
83
  style: {
83
84
  ...style,
@@ -257,7 +257,7 @@ const InternalTable = props => {
257
257
  key: col.field ?? col.dataIndex ?? col.key,
258
258
  title: t ? t(col.headerText ?? col.title) : col.headerText ?? col.title,
259
259
  ellipsis: col.ellipsis !== false,
260
- align: col.textAlign ?? col.align,
260
+ align: col.textAlign ?? col.align ?? col.type === 'number' ? 'right' : undefined,
261
261
  fixed: col.frozen ? col.frozen.toLowerCase() : col.fixed
262
262
  };
263
263
  if (col.children) {
@@ -390,7 +390,9 @@ const TableGrid = props => {
390
390
  };
391
391
  return /*#__PURE__*/_react.default.createElement(_rcMasterUi.Table.Summary.Cell, {
392
392
  key: col.key,
393
- index: index
393
+ index: index,
394
+ align: col.align ?? 'right',
395
+ className: 'ui-rc-table-cell-ellipsis'
394
396
  }, col.summaryTemplate ? col.summaryTemplate(cellValue, col.key) : (0, _reactNumericComponent.numericFormatter)(cellValue, numericFormatProps));
395
397
  })));
396
398
  },
@@ -87,6 +87,7 @@ const Grid = props => {
87
87
  components: {
88
88
  ...components
89
89
  },
90
+ format: format,
90
91
  columns: mergedColumns,
91
92
  style: {
92
93
  ...style,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-grid-template",
3
- "version": "1.1.4",
3
+ "version": "1.1.5-3",
4
4
  "description": "es-grid-template",
5
5
  "keywords": [
6
6
  "react",
@@ -98,5 +98,8 @@
98
98
  "peerDependencies": {
99
99
  "react": ">=16.9.0",
100
100
  "react-dom": ">=16.9.0"
101
+ },
102
+ "umi": {
103
+ "configFile": "config.ts"
101
104
  }
102
105
  }