ztxkui 2.9.8 → 2.9.9

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.
@@ -92,7 +92,7 @@ var FormDemo = function () {
92
92
  return (React.createElement(React.Fragment, null,
93
93
  React.createElement(Form, { name: "test-list", form: form },
94
94
  React.createElement(SearchContainer, { dark: true },
95
- React.createElement(SearchLeft, { configInfo: configInfoMemo },
95
+ React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true },
96
96
  React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", rules: [
97
97
  {
98
98
  required: true,
@@ -127,7 +127,7 @@ var FormDemo = function () {
127
127
  React.createElement(Select, { allowClear: true },
128
128
  React.createElement(Select.Option, { value: "1" }, "\u662F"),
129
129
  React.createElement(Select.Option, { value: "0" }, "\u5426"))),
130
- React.createElement(SearchItem, { name: "test1", label: "\u90E8\u95E8\u540D\u79F0" },
130
+ React.createElement(SearchItem, { name: "test1", label: "", hiddenLabelName: "\u6D4B\u8BD5\u90E8\u95E8\u4E0D\u663E\u793A" },
131
131
  React.createElement(Checkbox.Group, null,
132
132
  React.createElement(Checkbox, { value: "1" }, "\u662F"),
133
133
  React.createElement(Checkbox, { value: "2" }, "\u5426"))),
@@ -4,6 +4,8 @@ export interface ISearchLayout {
4
4
  label?: string;
5
5
  show?: boolean;
6
6
  disabled?: boolean;
7
+ hiddenLabelName?: string;
8
+ [props: string]: any;
7
9
  }
8
10
  /**
9
11
  * @description 将动态配置存在本地存储中
@@ -98,10 +98,11 @@ dynamicStorageKey // 动态列配置的key值
98
98
  // 遍历当前子元素
99
99
  React.Children.forEach(children, function (item) {
100
100
  if (item === null || item === void 0 ? void 0 : item.props) {
101
- var _a = item.props, name_2 = _a.name, label = _a.label, disabled = _a.disabled;
101
+ var _a = item.props, name_2 = _a.name, label = _a.label, hiddenLabelName = _a.hiddenLabelName, disabled = _a.disabled;
102
102
  _initDynamicList_1.push({
103
103
  name: name_2,
104
104
  label: label,
105
+ hiddenLabelName: hiddenLabelName,
105
106
  show: true,
106
107
  disabled: disabled,
107
108
  });
@@ -109,6 +110,7 @@ dynamicStorageKey // 动态列配置的key值
109
110
  _currentDynamicList_1.push({
110
111
  name: name_2,
111
112
  label: label,
113
+ hiddenLabelName: hiddenLabelName,
112
114
  show: true,
113
115
  disabled: disabled,
114
116
  });
@@ -60,6 +60,6 @@ var SearchDrawer = function (_a) {
60
60
  return (React.createElement(Drawer, { className: "search-drawer", title: "\u67E5\u8BE2\u6761\u4EF6\u5207\u6362", placement: "right", visible: visible, closable: false, maskClosable: false, footer: renderFooter() },
61
61
  React.createElement(DndProvider, { backend: HTML5Backend, context: window },
62
62
  React.createElement(Checkbox.Group, { value: checkedValues, onChange: onCheckboxChange }, dynamicList.map(function (item, index) { return (React.createElement(Sortable, { key: item.name, type: "search-drawer", index: index, onMoveItem: onMoveItem },
63
- React.createElement(Checkbox, { value: item.name }, item.label || item.name))); })))));
63
+ React.createElement(Checkbox, { value: item.name }, item.label || item.hiddenLabelName || item.name))); })))));
64
64
  };
65
65
  export default memo(SearchDrawer);
@@ -14,6 +14,8 @@ export interface ISearchItem extends FormItemProps {
14
14
  configname?: string;
15
15
  /**不需要自动配置 */
16
16
  noauto?: string;
17
+ /**不显示label,但是作为动态表单配置启用 */
18
+ hiddenLabelName?: string;
17
19
  }
18
20
  declare const SearchItem: React.FC<ISearchItem>;
19
21
  export default SearchItem;
@@ -4,6 +4,8 @@ export interface ISearchLayout {
4
4
  label?: string;
5
5
  show?: boolean;
6
6
  disabled?: boolean;
7
+ hiddenLabelName?: string;
8
+ [props: string]: any;
7
9
  }
8
10
  export interface ISearchLeft {
9
11
  isDynamic?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "2.9.8",
3
+ "version": "2.9.9",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",