ztxkui 4.2.23-365 → 4.2.23-366

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.
@@ -111,6 +111,8 @@ var BasicTable = function (_a) {
111
111
  width: 100,
112
112
  dataIndex: 'test2',
113
113
  key: 'test2',
114
+ hideColumn: true,
115
+ isNoDynamicHide: false,
114
116
  },
115
117
  {
116
118
  title: '测试3',
@@ -80,7 +80,8 @@ export var getTableLayoutFullData = function (columns, tableLayout) {
80
80
  column = result;
81
81
  }
82
82
  // 如果业务代码中设置了hideColumn,那么不做自定义显隐控制
83
- if (result.hideColumn !== undefined) {
83
+ if (result.hideColumn !== undefined &&
84
+ result.isNoDynamicHide === undefined) {
84
85
  column.hideColumn = result.hideColumn;
85
86
  column.isNoDynamicHide = true;
86
87
  }
@@ -27,6 +27,8 @@ export interface IValidate {
27
27
  export interface IColumnType<RecordType> extends ColumnType<RecordType> {
28
28
  /**是否隐藏该列 可以传入一个返回boolean值得函数 */
29
29
  hideColumn?: boolean | (() => boolean);
30
+ /**是否禁用自定义配置 */
31
+ isNoDynamicHide?: boolean;
30
32
  /**是否增加必填title, 可以传入一个返回boolean值的函数 */
31
33
  required?: boolean | (() => boolean);
32
34
  /**是否可以编辑 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.23-365",
3
+ "version": "4.2.23-366",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",