ztxkui 2.4.2 → 2.4.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.
- package/dist/DemoCom/TableDemo.js +218 -1
- package/dist/DemoCom/TestCom.d.ts +18 -0
- package/dist/DemoCom/TestCom.js +178 -0
- package/dist/components/Table/table.js +1 -1
- package/dist/components/business/SearchContainer/search-drawer.js +1 -1
- package/dist/components/business/SearchContainer/search-item.js +1 -3
- package/package.json +1 -1
|
@@ -17,6 +17,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
17
17
|
import React, { useEffect, useState, useCallback, useRef } from 'react';
|
|
18
18
|
import Table from 'components/Table';
|
|
19
19
|
import EnhanceSelect from 'components/EnhanceSelect';
|
|
20
|
+
import TestCom from './TestCom';
|
|
20
21
|
import { DatePicker } from 'index';
|
|
21
22
|
import dayjs from 'dayjs';
|
|
22
23
|
import update from 'immutability-helper';
|
|
@@ -108,6 +109,179 @@ export var getTableLayoutFullData = function (columns, tableLayout) {
|
|
|
108
109
|
}
|
|
109
110
|
return columns;
|
|
110
111
|
};
|
|
112
|
+
var list1 = [
|
|
113
|
+
{
|
|
114
|
+
id: '010101',
|
|
115
|
+
name: '重轨',
|
|
116
|
+
aboutField: {
|
|
117
|
+
// 品名
|
|
118
|
+
brand: {
|
|
119
|
+
isRequired: 1,
|
|
120
|
+
addonBefore: null,
|
|
121
|
+
addonAfter: null,
|
|
122
|
+
unit: null,
|
|
123
|
+
connector: ' ', // 连接符
|
|
124
|
+
},
|
|
125
|
+
// 材质
|
|
126
|
+
texture: {
|
|
127
|
+
isRequired: 1,
|
|
128
|
+
addonBefore: null,
|
|
129
|
+
addonAfter: null,
|
|
130
|
+
unit: null,
|
|
131
|
+
connector: ' ', // 连接符
|
|
132
|
+
},
|
|
133
|
+
// 规格,一个产品层次可能对应多个规格
|
|
134
|
+
specifications: [
|
|
135
|
+
{
|
|
136
|
+
title: '单位重量',
|
|
137
|
+
isRequired: 1,
|
|
138
|
+
addonBefore: null,
|
|
139
|
+
addonAfter: null,
|
|
140
|
+
unit: 'kg/m',
|
|
141
|
+
connector: '*', // 连接符
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
title: '长度',
|
|
145
|
+
isRequired: 1,
|
|
146
|
+
addonBefore: null,
|
|
147
|
+
addonAfter: null,
|
|
148
|
+
unit: 'm',
|
|
149
|
+
connector: null, // 连接符
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
// 产地
|
|
153
|
+
placesteel: {
|
|
154
|
+
isRequired: 1,
|
|
155
|
+
addonBefore: null,
|
|
156
|
+
addonAfter: null,
|
|
157
|
+
unit: null,
|
|
158
|
+
connector: null, // 连接符
|
|
159
|
+
},
|
|
160
|
+
// 型号
|
|
161
|
+
model: null,
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: '010102',
|
|
166
|
+
name: '轻轨',
|
|
167
|
+
aboutField: {
|
|
168
|
+
// 品名
|
|
169
|
+
brand: {
|
|
170
|
+
isRequired: 1,
|
|
171
|
+
addonBefore: null,
|
|
172
|
+
addonAfter: null,
|
|
173
|
+
unit: null,
|
|
174
|
+
connector: ' ', // 连接符
|
|
175
|
+
},
|
|
176
|
+
// 材质
|
|
177
|
+
texture: {
|
|
178
|
+
isRequired: 1,
|
|
179
|
+
addonBefore: null,
|
|
180
|
+
addonAfter: null,
|
|
181
|
+
unit: null,
|
|
182
|
+
connector: ' ', // 连接符
|
|
183
|
+
},
|
|
184
|
+
// 规格,一个产品层次可能对应多个规格
|
|
185
|
+
specifications: [
|
|
186
|
+
{
|
|
187
|
+
title: '单位重量',
|
|
188
|
+
isRequired: 1,
|
|
189
|
+
addonBefore: null,
|
|
190
|
+
addonAfter: null,
|
|
191
|
+
unit: 'kg/m',
|
|
192
|
+
connector: '*', // 连接符
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: '长度',
|
|
196
|
+
isRequired: 1,
|
|
197
|
+
addonBefore: null,
|
|
198
|
+
addonAfter: null,
|
|
199
|
+
unit: 'm',
|
|
200
|
+
connector: null, // 连接符
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
// 产地
|
|
204
|
+
placesteel: {
|
|
205
|
+
isRequired: 1,
|
|
206
|
+
addonBefore: null,
|
|
207
|
+
addonAfter: null,
|
|
208
|
+
unit: null,
|
|
209
|
+
connector: null, // 连接符
|
|
210
|
+
},
|
|
211
|
+
// 型号
|
|
212
|
+
model: null,
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
id: '010203',
|
|
217
|
+
name: '角钢',
|
|
218
|
+
aboutField: {
|
|
219
|
+
// 品名
|
|
220
|
+
brand: {
|
|
221
|
+
isRequired: 1,
|
|
222
|
+
addonBefore: null,
|
|
223
|
+
addonAfter: null,
|
|
224
|
+
unit: null,
|
|
225
|
+
connector: ' ', // 连接符
|
|
226
|
+
},
|
|
227
|
+
// 材质
|
|
228
|
+
texture: {
|
|
229
|
+
isRequired: 1,
|
|
230
|
+
addonBefore: null,
|
|
231
|
+
addonAfter: null,
|
|
232
|
+
unit: null,
|
|
233
|
+
connector: null, // 连接符
|
|
234
|
+
},
|
|
235
|
+
// 规格,一个产品层次可能对应多个规格
|
|
236
|
+
specifications: [
|
|
237
|
+
{
|
|
238
|
+
title: '边宽度1',
|
|
239
|
+
isRequired: 1,
|
|
240
|
+
addonBefore: null,
|
|
241
|
+
addonAfter: null,
|
|
242
|
+
unit: null,
|
|
243
|
+
connector: '*',
|
|
244
|
+
valueType: 'select',
|
|
245
|
+
source: '/api/test/111',
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
title: '边宽度2',
|
|
249
|
+
isRequired: 1,
|
|
250
|
+
addonBefore: null,
|
|
251
|
+
addonAfter: null,
|
|
252
|
+
unit: null,
|
|
253
|
+
connector: '*', // 连接符
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
title: '边厚度',
|
|
257
|
+
isRequired: 1,
|
|
258
|
+
addonBefore: null,
|
|
259
|
+
addonAfter: null,
|
|
260
|
+
unit: 'mm',
|
|
261
|
+
connector: ' ', // 连接符
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
title: '长度',
|
|
265
|
+
isRequired: 1,
|
|
266
|
+
addonBefore: null,
|
|
267
|
+
addonAfter: null,
|
|
268
|
+
unit: 'm',
|
|
269
|
+
connector: '', // 连接符
|
|
270
|
+
},
|
|
271
|
+
],
|
|
272
|
+
// 产地
|
|
273
|
+
placesteel: {
|
|
274
|
+
isRequired: 1,
|
|
275
|
+
addonBefore: null,
|
|
276
|
+
addonAfter: null,
|
|
277
|
+
unit: null,
|
|
278
|
+
connector: ' ', // 连接符
|
|
279
|
+
},
|
|
280
|
+
// 型号
|
|
281
|
+
model: null,
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
];
|
|
111
285
|
var TableDemo = function () {
|
|
112
286
|
var _a = useGetTableRecords(), records = _a.records, setRecords = _a.setRecords;
|
|
113
287
|
var _b = useGetSelectList(), list = _b.list, loading = _b.loading, setLoading = _b.setLoading;
|
|
@@ -136,6 +310,49 @@ var TableDemo = function () {
|
|
|
136
310
|
key: 'index',
|
|
137
311
|
render: function (_text, _record, index) { return "" + (index + 1); },
|
|
138
312
|
},
|
|
313
|
+
{
|
|
314
|
+
title: '产品层次',
|
|
315
|
+
width: 100,
|
|
316
|
+
dataIndex: 'key2',
|
|
317
|
+
key: 'key2',
|
|
318
|
+
render: function (text, record, index) {
|
|
319
|
+
return (React.createElement(EnhanceSelect, { value: text, list: list1, dataKey: "id", titleKey: "name", onChange: function (value, option, fullData) {
|
|
320
|
+
var newRecord = {
|
|
321
|
+
key2: value,
|
|
322
|
+
key2Name: fullData === null || fullData === void 0 ? void 0 : fullData.name,
|
|
323
|
+
aboutField: fullData === null || fullData === void 0 ? void 0 : fullData.aboutField,
|
|
324
|
+
};
|
|
325
|
+
onEditableSaveHandle(newRecord, index);
|
|
326
|
+
} }));
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
title: '物料选择相关',
|
|
331
|
+
width: 700,
|
|
332
|
+
dataIndex: 'key1',
|
|
333
|
+
key: 'key1',
|
|
334
|
+
shouldCellUpdate: function (record, preRecord) {
|
|
335
|
+
if (lengthChange) {
|
|
336
|
+
setLengthChange(false);
|
|
337
|
+
return true;
|
|
338
|
+
}
|
|
339
|
+
if (moveChange) {
|
|
340
|
+
setMoveChange(false);
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
return record.key1 !== preRecord.key1 || record.key2 !== preRecord.key2;
|
|
344
|
+
},
|
|
345
|
+
render: function (text, record, index) {
|
|
346
|
+
var aboutField;
|
|
347
|
+
try {
|
|
348
|
+
aboutField = JSON.stringify(record === null || record === void 0 ? void 0 : record.aboutField);
|
|
349
|
+
}
|
|
350
|
+
catch (err) {
|
|
351
|
+
console.log(err);
|
|
352
|
+
}
|
|
353
|
+
return React.createElement(TestCom, { aboutField: aboutField, controleType: "disabled" });
|
|
354
|
+
},
|
|
355
|
+
},
|
|
139
356
|
{
|
|
140
357
|
title: '测试字段1',
|
|
141
358
|
width: 120,
|
|
@@ -381,7 +598,7 @@ var TableDemo = function () {
|
|
|
381
598
|
// 新增删除行
|
|
382
599
|
onAddAndDelHandle: onAddAndDelHandle,
|
|
383
600
|
// 表格行拖拽
|
|
384
|
-
onMoveRow: onMoveRowHandle
|
|
601
|
+
onMoveRow: onMoveRowHandle }),
|
|
385
602
|
React.createElement("div", null,
|
|
386
603
|
React.createElement("button", { onClick: function () { return console.log(records); } }, "\u83B7\u53D6\u6570\u636E"))));
|
|
387
604
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.scss';
|
|
3
|
+
export interface IAboutField {
|
|
4
|
+
isRequired: any;
|
|
5
|
+
addonBefore: any;
|
|
6
|
+
addonAfter: any;
|
|
7
|
+
unit: any;
|
|
8
|
+
connector: any;
|
|
9
|
+
title?: string;
|
|
10
|
+
}
|
|
11
|
+
interface IProps {
|
|
12
|
+
value?: any;
|
|
13
|
+
onChange?: any;
|
|
14
|
+
aboutField?: any;
|
|
15
|
+
controleType?: 'disabled' | 'hide';
|
|
16
|
+
}
|
|
17
|
+
declare const MaterialComp: React.FC<IProps>;
|
|
18
|
+
export default MaterialComp;
|
|
@@ -0,0 +1,178 @@
|
|
|
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, { useMemo, useEffect, useState } from 'react';
|
|
13
|
+
import Form from '../components/Form';
|
|
14
|
+
import SearchContainer from '../components/business/SearchContainer';
|
|
15
|
+
import Input from '../components/Input';
|
|
16
|
+
import Modal from '../components/Modal';
|
|
17
|
+
import EnhanceSelect from 'components/EnhanceSelect';
|
|
18
|
+
import './style.scss';
|
|
19
|
+
import Button from 'components/Button';
|
|
20
|
+
var SearchItem = SearchContainer.SearchItem, SearchLeft = SearchContainer.SearchLeft;
|
|
21
|
+
/**
|
|
22
|
+
* 品名:brand
|
|
23
|
+
* 材质:texture
|
|
24
|
+
* 规格:specifications
|
|
25
|
+
* 产地:placesteel
|
|
26
|
+
* 型号:model
|
|
27
|
+
*/
|
|
28
|
+
var width = '120px';
|
|
29
|
+
var initConfigInfo = {
|
|
30
|
+
brand: {
|
|
31
|
+
isChangeable: 0,
|
|
32
|
+
isDisplay: 1,
|
|
33
|
+
},
|
|
34
|
+
texture: {
|
|
35
|
+
isChangeable: 0,
|
|
36
|
+
isDisplay: 1,
|
|
37
|
+
},
|
|
38
|
+
specifications: {
|
|
39
|
+
isChangeable: 0,
|
|
40
|
+
isDisplay: 1,
|
|
41
|
+
},
|
|
42
|
+
placesteel: {
|
|
43
|
+
isChangeable: 0,
|
|
44
|
+
isDisplay: 1,
|
|
45
|
+
},
|
|
46
|
+
model: {
|
|
47
|
+
isChangeable: 0,
|
|
48
|
+
isDisplay: 1,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
var list = [
|
|
52
|
+
{
|
|
53
|
+
id: '1',
|
|
54
|
+
name: '&11kg*8',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
id: '2',
|
|
58
|
+
name: '33m*44mm',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
id: '3',
|
|
62
|
+
name: '@17$22*22 22&',
|
|
63
|
+
},
|
|
64
|
+
];
|
|
65
|
+
var MaterialComp = function (_a) {
|
|
66
|
+
var value = _a.value, onChange = _a.onChange, aboutField = _a.aboutField, controleType = _a.controleType;
|
|
67
|
+
var form = Form.useForm()[0];
|
|
68
|
+
var _b = useState(initConfigInfo), configInfo = _b[0], setConfigInfo = _b[1];
|
|
69
|
+
console.log('test render');
|
|
70
|
+
var controlConfigInfo = useMemo(function () {
|
|
71
|
+
return controleType === 'hide'
|
|
72
|
+
? {
|
|
73
|
+
isDisplay: 0,
|
|
74
|
+
isChangeable: 1,
|
|
75
|
+
}
|
|
76
|
+
: {
|
|
77
|
+
isDisplay: 1,
|
|
78
|
+
isChangeable: 0,
|
|
79
|
+
};
|
|
80
|
+
}, [controleType]);
|
|
81
|
+
var aboutFieldObj = useMemo(function () {
|
|
82
|
+
if (!aboutField) {
|
|
83
|
+
return {};
|
|
84
|
+
}
|
|
85
|
+
var _aboutFieldObj;
|
|
86
|
+
try {
|
|
87
|
+
_aboutFieldObj = JSON.parse(aboutField);
|
|
88
|
+
return _aboutFieldObj;
|
|
89
|
+
}
|
|
90
|
+
catch (err) {
|
|
91
|
+
console.log(err);
|
|
92
|
+
return {};
|
|
93
|
+
}
|
|
94
|
+
}, [aboutField]);
|
|
95
|
+
/**
|
|
96
|
+
* 根据外部参数变更内部内容
|
|
97
|
+
*/
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
var _configInfo = {};
|
|
100
|
+
Object.keys(aboutFieldObj).forEach(function (key) {
|
|
101
|
+
var _a;
|
|
102
|
+
if (key === 'specifications') {
|
|
103
|
+
// 规格需要做不同的处理
|
|
104
|
+
if (!aboutFieldObj[key]) {
|
|
105
|
+
_configInfo[key] = __assign({}, controlConfigInfo);
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
var isRequired = (_a = aboutFieldObj[key]) === null || _a === void 0 ? void 0 : _a.some(function (item) {
|
|
109
|
+
return item.isRequired ? true : false;
|
|
110
|
+
});
|
|
111
|
+
_configInfo[key] = {
|
|
112
|
+
isDisplay: 1,
|
|
113
|
+
isChangeable: 1,
|
|
114
|
+
isRequired: isRequired ? 1 : 0,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
var isRequired = (aboutFieldObj[key] || {}).isRequired;
|
|
120
|
+
if (!aboutFieldObj[key]) {
|
|
121
|
+
_configInfo[key] = __assign({}, controlConfigInfo);
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
_configInfo[key] = {
|
|
125
|
+
isDisplay: 1,
|
|
126
|
+
isChangeable: 1,
|
|
127
|
+
isRequired: isRequired ? 1 : 0,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
if (Object.keys(_configInfo).length !== 0) {
|
|
133
|
+
setConfigInfo(_configInfo);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
setConfigInfo(initConfigInfo);
|
|
137
|
+
}
|
|
138
|
+
}, [controlConfigInfo, aboutFieldObj]);
|
|
139
|
+
return (React.createElement(Form, { name: "test-list", form: form, className: "table-form" },
|
|
140
|
+
React.createElement(SearchContainer, null,
|
|
141
|
+
React.createElement(SearchLeft, { configInfo: configInfo },
|
|
142
|
+
React.createElement(SearchItem, { style: { width: width }, label: "\u54C1\u540D", name: "brand" },
|
|
143
|
+
React.createElement(Input, null)),
|
|
144
|
+
React.createElement(SearchItem, { style: { width: width }, label: "\u6750\u8D28", name: "texture" },
|
|
145
|
+
React.createElement(Input, null)),
|
|
146
|
+
React.createElement(SearchItem, { style: { width: '162px' }, label: "\u89C4\u683C", name: "specifications" },
|
|
147
|
+
React.createElement(SpecificationsComp, { config: aboutFieldObj === null || aboutFieldObj === void 0 ? void 0 : aboutFieldObj.specifications })),
|
|
148
|
+
React.createElement(SearchItem, { style: { width: width }, label: "\u4EA7\u5730", name: "placesteel" },
|
|
149
|
+
React.createElement(Input, null)),
|
|
150
|
+
React.createElement(SearchItem, { style: { width: width }, label: "\u578B\u53F7", name: "model" },
|
|
151
|
+
React.createElement(Input, null))))));
|
|
152
|
+
};
|
|
153
|
+
var SpecificationsComp = function (_a) {
|
|
154
|
+
var value = _a.value, onChange = _a.onChange, config = _a.config, disabled = _a.disabled;
|
|
155
|
+
var _b = useState(false), visible = _b[0], setVisible = _b[1];
|
|
156
|
+
/**
|
|
157
|
+
* @description 模态框设置
|
|
158
|
+
*/
|
|
159
|
+
var dataConfig = function () {
|
|
160
|
+
console.log(config);
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* @description 模态框关闭隐藏
|
|
164
|
+
*/
|
|
165
|
+
var openModal = function () {
|
|
166
|
+
dataConfig();
|
|
167
|
+
setVisible(true);
|
|
168
|
+
};
|
|
169
|
+
var closeModal = function () {
|
|
170
|
+
setVisible(false);
|
|
171
|
+
};
|
|
172
|
+
return (React.createElement(React.Fragment, null,
|
|
173
|
+
React.createElement(EnhanceSelect, { defaultList: list, disabled: disabled, value: value, onChange: onChange, dropdownMatchSelectWidth: 130 }),
|
|
174
|
+
React.createElement(Button, { type: "primary", size: "small", disabled: disabled, onClick: openModal }, "\u65B0\u5EFA"),
|
|
175
|
+
React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title: "\u9009\u62E9\u89C4\u683C", width: "60%" },
|
|
176
|
+
React.createElement("div", null, "\u9009\u62E9\u89C4\u683C"))));
|
|
177
|
+
};
|
|
178
|
+
export default MaterialComp;
|
|
@@ -150,7 +150,7 @@ function Table(props) {
|
|
|
150
150
|
// }
|
|
151
151
|
}, [onMoveRow]);
|
|
152
152
|
return (React.createElement("div", { style: { position: 'relative', overflow: 'hidden' } },
|
|
153
|
-
React.createElement(DndProvider, { backend: HTML5Backend },
|
|
153
|
+
React.createElement(DndProvider, { backend: HTML5Backend, context: window },
|
|
154
154
|
React.createElement(AntTable, __assign({ className: classes, bordered: bordered, pagination: pagination, scroll: scroll ? scroll : _scroll, columns: newColumns, dataSource: dataSource, components: onMoveRow || onEditableSave ? components : undefined, onRow: onMoveRow
|
|
155
155
|
? function (record, index) {
|
|
156
156
|
return ({
|
|
@@ -58,7 +58,7 @@ var SearchDrawer = function (_a) {
|
|
|
58
58
|
React.createElement(Button, { type: "default", onClick: onReset }, "\u91CD\u7F6E"),
|
|
59
59
|
React.createElement(Button, { type: "primary", onClick: onSureHandle }, "\u786E\u5B9A"))); };
|
|
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
|
-
React.createElement(DndProvider, { backend: HTML5Backend },
|
|
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
63
|
React.createElement(Checkbox, { value: item.name }, item.label || item.name))); })))));
|
|
64
64
|
};
|
|
@@ -45,9 +45,7 @@ var SearchItem = function (_a) {
|
|
|
45
45
|
'zt-search__left__item--noborder': noBorder,
|
|
46
46
|
'zt-search__left__item--nolabel': noLabel,
|
|
47
47
|
});
|
|
48
|
-
return (React.createElement("div", { className: classes, style: {
|
|
49
|
-
width: getWidthStr(width),
|
|
50
|
-
} },
|
|
48
|
+
return (React.createElement("div", { className: classes, style: __assign({ width: getWidthStr(width) }, style) },
|
|
51
49
|
React.createElement(Item, __assign({}, restProps), children)));
|
|
52
50
|
};
|
|
53
51
|
export default SearchItem;
|