ztxkui 4.3.46 → 4.3.47

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.
@@ -69,12 +69,17 @@ var BasicTable = function (_a) {
69
69
  dataIndex: 'test8',
70
70
  key: 'test8',
71
71
  },
72
- {
73
- title: '测试9',
74
- width: 100,
75
- dataIndex: 'test9',
76
- key: 'test9',
77
- },
72
+ false
73
+ ? {
74
+ title: '测试9',
75
+ width: 100,
76
+ dataIndex: 'test9',
77
+ key: 'test9',
78
+ }
79
+ : {
80
+ title: '',
81
+ width: 100,
82
+ },
78
83
  {
79
84
  title: '测试10',
80
85
  width: 100,
@@ -91,6 +96,6 @@ var BasicTable = function (_a) {
91
96
  React.createElement("br", null),
92
97
  React.createElement("b", null, "\u5217\u4F38\u7F29\uFF1B"),
93
98
  "isResizableColumn\u5C5E\u6027\u9ED8\u8BA4\u4E3Atrue\uFF0C\u5982\u679C\u4E0D\u9700\u8981\u5217\u4F38\u7F29\u53EF\u4EE5\u4F20\u5165false"),
94
- React.createElement(Table, { dataSource: dataSource, columns: columns, rowKey: "id", showColumnDynamic: true, showColumnDynamicKey: dynamicKey || 'symbol-id-1' })));
99
+ React.createElement(Table, { dataSource: dataSource, columns: columns, rowKey: "id", showColumnDynamic: true, showColumnDynamicKey: dynamicKey || 'symbol-id-1', scroll: { x: 1000, y: 300 } })));
95
100
  };
96
101
  export default BasicTable;
@@ -1,4 +1,4 @@
1
- export var dataSource = new Array(300).fill(1).map(function (item, index) {
1
+ export var dataSource = new Array(30).fill(1).map(function (item, index) {
2
2
  return {
3
3
  id: "test-" + index,
4
4
  test1: "test1-" + index,
@@ -8,13 +8,10 @@ import React from 'react';
8
8
  // 路由配置
9
9
  // store
10
10
  // 自定义组件
11
- // import BasicTable from './BasicTable';
12
- import EditableTable from './EditableTable';
13
- import ModalTable from './ModalTable';
11
+ import BasicTable from './BasicTable';
14
12
  // 其他文件
15
13
  var TableDemo = function () {
16
14
  return (React.createElement("div", null,
17
- React.createElement(EditableTable, null),
18
- React.createElement(ModalTable, null)));
15
+ React.createElement(BasicTable, null)));
19
16
  };
20
17
  export default TableDemo;
@@ -388,7 +388,9 @@ function getNewColumns(basicConfig, editableConfig, dynamicConfig, otherConfig)
388
388
  }
389
389
  // 添加render字段
390
390
  if (!_column.render) {
391
- _column.render = function (text, record, index) { return React.createElement(EmptyText, null, text); };
391
+ _column.render = function (text, record, index) {
392
+ return React.createElement(EmptyText, null, typeof text === 'object' ? '' : text);
393
+ };
392
394
  }
393
395
  // 添加表头提示信息
394
396
  if (_column.headTooltip) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.3.46",
3
+ "version": "4.3.47",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",