ztxkui 4.2.18-83 → 4.2.18-85

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.
@@ -81,11 +81,13 @@ export var getTableLayoutFullData = function (columns, tableLayout) {
81
81
  column = result;
82
82
  }
83
83
  // 如果业务代码中设置了hideColumn,那么不做自定义显隐控制
84
- if (result.hideColumn !== undefined &&
85
- result.isNoDynamicHide === undefined) {
86
- column.hideColumn = result.hideColumn;
87
- column.isNoDynamicHide = true;
88
- }
84
+ // if (
85
+ // result.hideColumn !== undefined &&
86
+ // result.isNoDynamicHide === undefined
87
+ // ) {
88
+ // column.hideColumn = result.hideColumn;
89
+ // column.isNoDynamicHide = true;
90
+ // }
89
91
  if (!column.fixed) {
90
92
  middleColumns_1.push(column);
91
93
  }
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { TreeSelectProps, SelectValue } from 'antd/lib/tree-select';
3
+ export interface IProps<T> extends TreeSelectProps<T> {
4
+ }
5
+ /**
6
+ * 下拉树
7
+ */
8
+ declare function TreeSelect<VT extends SelectValue = SelectValue>(props: IProps<VT>): JSX.Element;
9
+ declare namespace TreeSelect {
10
+ var SHOW_PARENT: "SHOW_PARENT";
11
+ }
12
+ export default TreeSelect;
@@ -0,0 +1,26 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import React, { useState } from 'react';
13
+ import { TreeSelect as AntdTreeSelect } from 'antd';
14
+ /**
15
+ * 下拉树
16
+ */
17
+ function TreeSelect(props) {
18
+ // 搜索逻辑优化,搜索选中后不清空搜索条件
19
+ var _a = useState(''), searchValue = _a[0], setSearchValue = _a[1];
20
+ var onSearch = function (value) {
21
+ setSearchValue(value);
22
+ };
23
+ return (React.createElement(TreeSelect, __assign({ searchValue: searchValue, onSearch: onSearch }, props)));
24
+ }
25
+ TreeSelect.SHOW_PARENT = AntdTreeSelect.SHOW_PARENT;
26
+ export default TreeSelect;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.18-83",
3
+ "version": "4.2.18-85",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",