wargerm 0.2.17 → 0.2.21
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/README.zh-CN.md +40 -40
- package/dist/index.esm.js +288 -180
- package/dist/index.js +286 -178
- package/package.json +78 -78
package/dist/index.js
CHANGED
@@ -562,41 +562,39 @@ var WSelect = function WSelect(props) {
|
|
562
562
|
setResList = _useState6[1];
|
563
563
|
|
564
564
|
React.useEffect(function () {
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
}
|
565
|
+
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
566
|
+
var res, node;
|
567
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
568
|
+
while (1) {
|
569
|
+
switch (_context.prev = _context.next) {
|
570
|
+
case 0:
|
571
|
+
if (!request) {
|
572
|
+
_context.next = 8;
|
573
|
+
break;
|
574
|
+
}
|
576
575
|
|
577
|
-
|
578
|
-
|
576
|
+
_context.next = 3;
|
577
|
+
return request();
|
579
578
|
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
579
|
+
case 3:
|
580
|
+
res = _context.sent;
|
581
|
+
setResList(res);
|
582
|
+
onLoad && onLoad(res);
|
583
|
+
node = res.map(function (item) {
|
584
|
+
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'].Option, {
|
585
|
+
key: item.value,
|
586
|
+
value: item.value
|
587
|
+
}, item.label);
|
588
|
+
});
|
589
|
+
setChildrenNode(node);
|
591
590
|
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
}
|
591
|
+
case 8:
|
592
|
+
case "end":
|
593
|
+
return _context.stop();
|
596
594
|
}
|
597
|
-
}
|
598
|
-
})
|
599
|
-
}
|
595
|
+
}
|
596
|
+
}, _callee);
|
597
|
+
}))();
|
600
598
|
|
601
599
|
var valueEnumNode = [];
|
602
600
|
var options = [];
|
@@ -626,7 +624,7 @@ var WSelect = function WSelect(props) {
|
|
626
624
|
|
627
625
|
onLoad && onLoad(options);
|
628
626
|
setValueEnumList(valueEnumNode);
|
629
|
-
}, [resList]);
|
627
|
+
}, [JSON.stringify(resList)]);
|
630
628
|
return /*#__PURE__*/React__default['default'].createElement(_Select__default['default'], _objectSpread2({}, extraProps), request ? childrenNode : valueEnum ? valueEnumList : children);
|
631
629
|
};
|
632
630
|
|
@@ -9234,7 +9232,9 @@ function invariant(condition, message) {
|
|
9234
9232
|
if (isProduction$1) {
|
9235
9233
|
throw new Error(prefix);
|
9236
9234
|
}
|
9237
|
-
|
9235
|
+
var provided = typeof message === 'function' ? message() : message;
|
9236
|
+
var value = provided ? prefix + ": " + provided : prefix;
|
9237
|
+
throw new Error(value);
|
9238
9238
|
}
|
9239
9239
|
|
9240
9240
|
function addLeadingSlash(path) {
|
@@ -10152,7 +10152,8 @@ var ModalForm = function ModalForm(props, ref) {
|
|
10152
10152
|
|
10153
10153
|
var ModalForm$1 = /*#__PURE__*/React__default['default'].forwardRef(ModalForm);
|
10154
10154
|
|
10155
|
-
var _excluded$f = ["columns", "extraColumns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"]
|
10155
|
+
var _excluded$f = ["columns", "extraColumns", "request", "modalFormSearch", "tableAction", "renderTableBar", "className", "style", "onFormChange", "modalConfig", "optionColumnConfig"],
|
10156
|
+
_excluded2$3 = ["actionMethod"];
|
10156
10157
|
|
10157
10158
|
var TabelCard = function TabelCard(props, ref) {
|
10158
10159
|
var columns = props.columns,
|
@@ -10193,164 +10194,243 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10193
10194
|
setModalFormConfig(options);
|
10194
10195
|
};
|
10195
10196
|
|
10196
|
-
var
|
10197
|
-
|
10198
|
-
|
10199
|
-
|
10200
|
-
|
10201
|
-
|
10202
|
-
|
10203
|
-
|
10204
|
-
|
10205
|
-
|
10206
|
-
|
10207
|
-
|
10208
|
-
|
10209
|
-
|
10210
|
-
|
10211
|
-
|
10212
|
-
|
10213
|
-
case 0:
|
10214
|
-
if (!item.actionMethod) {
|
10215
|
-
_context.next = 3;
|
10216
|
-
break;
|
10217
|
-
}
|
10218
|
-
|
10219
|
-
_context.next = 3;
|
10220
|
-
return item.actionMethod(values, function () {
|
10221
|
-
var _actionRef$current;
|
10197
|
+
var actionHandler = {
|
10198
|
+
view: function view(item, record, index) {
|
10199
|
+
openFormModel({
|
10200
|
+
type: '查看',
|
10201
|
+
record: record,
|
10202
|
+
modalOnOk: function () {
|
10203
|
+
var _modalOnOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
10204
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
10205
|
+
while (1) {
|
10206
|
+
switch (_context.prev = _context.next) {
|
10207
|
+
case 0:
|
10208
|
+
case "end":
|
10209
|
+
return _context.stop();
|
10210
|
+
}
|
10211
|
+
}
|
10212
|
+
}, _callee);
|
10213
|
+
}));
|
10222
10214
|
|
10223
|
-
|
10224
|
-
|
10225
|
-
|
10215
|
+
function modalOnOk() {
|
10216
|
+
return _modalOnOk.apply(this, arguments);
|
10217
|
+
}
|
10226
10218
|
|
10227
|
-
|
10228
|
-
|
10229
|
-
|
10230
|
-
|
10219
|
+
return modalOnOk;
|
10220
|
+
}(),
|
10221
|
+
index: index
|
10222
|
+
});
|
10223
|
+
},
|
10224
|
+
edit: function edit(item, record, index) {
|
10225
|
+
openFormModel({
|
10226
|
+
type: '编辑',
|
10227
|
+
record: record,
|
10228
|
+
modalOnOk: function () {
|
10229
|
+
var _modalOnOk2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(values, loading) {
|
10230
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
10231
|
+
while (1) {
|
10232
|
+
switch (_context2.prev = _context2.next) {
|
10233
|
+
case 0:
|
10234
|
+
if (!item.actionMethod) {
|
10235
|
+
_context2.next = 3;
|
10236
|
+
break;
|
10231
10237
|
}
|
10232
|
-
}, _callee);
|
10233
|
-
}));
|
10234
10238
|
|
10235
|
-
|
10236
|
-
|
10237
|
-
|
10239
|
+
_context2.next = 3;
|
10240
|
+
return item.actionMethod(values, function () {
|
10241
|
+
var _actionRef$current;
|
10238
10242
|
|
10239
|
-
|
10240
|
-
|
10241
|
-
|
10242
|
-
});
|
10243
|
-
}
|
10244
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.EditOutlined, null), " \u7F16\u8F91"));
|
10245
|
-
} else if (item.type === 'view') {
|
10246
|
-
return /*#__PURE__*/React__default['default'].createElement(_Tooltip__default['default'], {
|
10247
|
-
title: "\u67E5\u770B",
|
10248
|
-
key: "view"
|
10249
|
-
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
10250
|
-
onClick: function onClick() {
|
10251
|
-
return openFormModel({
|
10252
|
-
type: '查看',
|
10253
|
-
record: record,
|
10254
|
-
modalOnOk: function () {
|
10255
|
-
var _modalOnOk2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
10256
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
10257
|
-
while (1) {
|
10258
|
-
switch (_context2.prev = _context2.next) {
|
10259
|
-
case 0:
|
10260
|
-
case "end":
|
10261
|
-
return _context2.stop();
|
10262
|
-
}
|
10263
|
-
}
|
10264
|
-
}, _callee2);
|
10265
|
-
}));
|
10243
|
+
loading();
|
10244
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current = actionRef.current) === null || _actionRef$current === void 0 ? void 0 : _actionRef$current.reload();
|
10245
|
+
}, record);
|
10266
10246
|
|
10267
|
-
|
10268
|
-
|
10247
|
+
case 3:
|
10248
|
+
case "end":
|
10249
|
+
return _context2.stop();
|
10269
10250
|
}
|
10251
|
+
}
|
10252
|
+
}, _callee2);
|
10253
|
+
}));
|
10270
10254
|
|
10271
|
-
|
10272
|
-
|
10273
|
-
|
10274
|
-
});
|
10275
|
-
},
|
10276
|
-
key: "view"
|
10277
|
-
}, /*#__PURE__*/React__default['default'].createElement(icons.EyeOutlined, null), " \u67E5\u770B"));
|
10278
|
-
} else if (item.type === 'delete') {
|
10279
|
-
return /*#__PURE__*/React__default['default'].createElement(_Tooltip__default['default'], {
|
10280
|
-
title: "\u5220\u9664",
|
10281
|
-
key: "delete"
|
10282
|
-
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
10283
|
-
onClick: function onClick() {
|
10284
|
-
return _Modal__default['default'].confirm({
|
10285
|
-
title: '删除',
|
10286
|
-
icon: /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null),
|
10287
|
-
content: '是否确定要删除吗?',
|
10288
|
-
okText: '确认',
|
10289
|
-
cancelText: '取消',
|
10290
|
-
onOk: function () {
|
10291
|
-
var _onOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
10292
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
10293
|
-
while (1) {
|
10294
|
-
switch (_context3.prev = _context3.next) {
|
10295
|
-
case 0:
|
10296
|
-
if (!item.actionMethod) {
|
10297
|
-
_context3.next = 3;
|
10298
|
-
break;
|
10299
|
-
}
|
10255
|
+
function modalOnOk(_x, _x2) {
|
10256
|
+
return _modalOnOk2.apply(this, arguments);
|
10257
|
+
}
|
10300
10258
|
|
10301
|
-
|
10302
|
-
|
10303
|
-
|
10259
|
+
return modalOnOk;
|
10260
|
+
}(),
|
10261
|
+
index: index
|
10262
|
+
});
|
10263
|
+
},
|
10264
|
+
delete: function _delete(item, record, index) {
|
10265
|
+
_Modal__default['default'].confirm({
|
10266
|
+
title: '删除',
|
10267
|
+
icon: /*#__PURE__*/React__default['default'].createElement(icons.ExclamationCircleOutlined, null),
|
10268
|
+
content: '是否确定要删除吗?',
|
10269
|
+
okText: '确认',
|
10270
|
+
cancelText: '取消',
|
10271
|
+
onOk: function () {
|
10272
|
+
var _onOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
10273
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
10274
|
+
while (1) {
|
10275
|
+
switch (_context3.prev = _context3.next) {
|
10276
|
+
case 0:
|
10277
|
+
if (!item.actionMethod) {
|
10278
|
+
_context3.next = 3;
|
10279
|
+
break;
|
10280
|
+
}
|
10304
10281
|
|
10305
|
-
|
10306
|
-
|
10282
|
+
_context3.next = 3;
|
10283
|
+
return item.actionMethod(record, function () {
|
10284
|
+
var _actionRef$current2;
|
10307
10285
|
|
10308
|
-
|
10309
|
-
|
10310
|
-
return _context3.stop();
|
10311
|
-
}
|
10312
|
-
}
|
10313
|
-
}, _callee3);
|
10314
|
-
}));
|
10286
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current2 = actionRef.current) === null || _actionRef$current2 === void 0 ? void 0 : _actionRef$current2.reload();
|
10287
|
+
});
|
10315
10288
|
|
10316
|
-
|
10317
|
-
|
10289
|
+
case 3:
|
10290
|
+
case "end":
|
10291
|
+
return _context3.stop();
|
10318
10292
|
}
|
10293
|
+
}
|
10294
|
+
}, _callee3);
|
10295
|
+
}));
|
10319
10296
|
|
10320
|
-
|
10321
|
-
|
10322
|
-
|
10323
|
-
|
10324
|
-
|
10325
|
-
}
|
10326
|
-
}
|
10327
|
-
|
10328
|
-
|
10329
|
-
|
10330
|
-
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
10331
|
-
while (1) {
|
10332
|
-
switch (_context4.prev = _context4.next) {
|
10333
|
-
case 0:
|
10334
|
-
if (!item.actionMethod) {
|
10335
|
-
_context4.next = 3;
|
10336
|
-
break;
|
10337
|
-
}
|
10297
|
+
function onOk() {
|
10298
|
+
return _onOk.apply(this, arguments);
|
10299
|
+
}
|
10300
|
+
|
10301
|
+
return onOk;
|
10302
|
+
}()
|
10303
|
+
});
|
10304
|
+
},
|
10305
|
+
extraAction: function extraAction(item, record, index) {
|
10306
|
+
var _item$actionRender;
|
10338
10307
|
|
10308
|
+
return (_item$actionRender = item.actionRender) === null || _item$actionRender === void 0 ? void 0 : _item$actionRender.call(item, record, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
10309
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
10310
|
+
while (1) {
|
10311
|
+
switch (_context4.prev = _context4.next) {
|
10312
|
+
case 0:
|
10313
|
+
if (!item.actionMethod) {
|
10339
10314
|
_context4.next = 3;
|
10340
|
-
|
10341
|
-
|
10315
|
+
break;
|
10316
|
+
}
|
10342
10317
|
|
10343
|
-
|
10344
|
-
|
10318
|
+
_context4.next = 3;
|
10319
|
+
return item.actionMethod(record, function () {
|
10320
|
+
var _actionRef$current3;
|
10345
10321
|
|
10346
|
-
|
10347
|
-
|
10348
|
-
|
10349
|
-
|
10322
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current3 = actionRef.current) === null || _actionRef$current3 === void 0 ? void 0 : _actionRef$current3.reload();
|
10323
|
+
});
|
10324
|
+
|
10325
|
+
case 3:
|
10326
|
+
case "end":
|
10327
|
+
return _context4.stop();
|
10350
10328
|
}
|
10351
|
-
}
|
10352
|
-
}
|
10329
|
+
}
|
10330
|
+
}, _callee4);
|
10331
|
+
})), index);
|
10332
|
+
},
|
10333
|
+
more: function more(item, record, index) {
|
10334
|
+
var menus = !item.subMenus ? [] : item.subMenus.map(function (b) {
|
10335
|
+
var btn = actionConfig[b.key];
|
10336
|
+
|
10337
|
+
if (btn) {
|
10338
|
+
b.name = btn.title;
|
10339
|
+
b.icon = btn.icon;
|
10340
|
+
}
|
10341
|
+
|
10342
|
+
return b;
|
10343
|
+
});
|
10344
|
+
|
10345
|
+
var selectHandler = function selectHandler(key, item, record, index) {
|
10346
|
+
var _item$actionMethod;
|
10347
|
+
|
10348
|
+
if (key == 'more') {
|
10349
|
+
// No more recursion
|
10350
|
+
return;
|
10351
|
+
}
|
10352
|
+
|
10353
|
+
var customMenu = menus.find(function (m) {
|
10354
|
+
return m.key === key;
|
10355
|
+
});
|
10356
|
+
|
10357
|
+
var _item = _objectSpread2(_objectSpread2({}, customMenu), {}, {
|
10358
|
+
type: key
|
10359
|
+
});
|
10360
|
+
|
10361
|
+
var handler = actionHandler[key];
|
10362
|
+
|
10363
|
+
if (handler) {
|
10364
|
+
return handler(_item, record, index);
|
10365
|
+
}
|
10366
|
+
|
10367
|
+
return (_item$actionMethod = _item.actionMethod) === null || _item$actionMethod === void 0 ? void 0 : _item$actionMethod.call(_item, record, function () {
|
10368
|
+
var _actionRef$current4;
|
10369
|
+
|
10370
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current4 = actionRef.current) === null || _actionRef$current4 === void 0 ? void 0 : _actionRef$current4.reload();
|
10371
|
+
});
|
10372
|
+
};
|
10373
|
+
|
10374
|
+
var m = _toConsumableArray(menus).map(function (e) {
|
10375
|
+
if (!('actionMethod' in e)) {
|
10376
|
+
return e;
|
10377
|
+
}
|
10378
|
+
|
10379
|
+
var actionMethod = e.actionMethod,
|
10380
|
+
b = _objectWithoutProperties(e, _excluded2$3);
|
10381
|
+
|
10382
|
+
return _objectSpread2({}, b);
|
10383
|
+
});
|
10384
|
+
|
10385
|
+
return /*#__PURE__*/React__default['default'].createElement(ProTable.TableDropdown, {
|
10386
|
+
key: "actionGroup",
|
10387
|
+
children: /*#__PURE__*/React__default['default'].createElement(icons.MoreOutlined, null),
|
10388
|
+
menus: m,
|
10389
|
+
onSelect: function onSelect(key) {
|
10390
|
+
return selectHandler(key, item, record, index);
|
10391
|
+
}
|
10392
|
+
});
|
10393
|
+
}
|
10394
|
+
};
|
10395
|
+
var actionConfig = {
|
10396
|
+
view: {
|
10397
|
+
title: '查看',
|
10398
|
+
key: 'view',
|
10399
|
+
icon: /*#__PURE__*/React__default['default'].createElement(icons.EyeOutlined, null)
|
10400
|
+
},
|
10401
|
+
edit: {
|
10402
|
+
title: '编辑',
|
10403
|
+
key: 'edit',
|
10404
|
+
icon: /*#__PURE__*/React__default['default'].createElement(icons.EditOutlined, null)
|
10405
|
+
},
|
10406
|
+
delete: {
|
10407
|
+
title: '删除',
|
10408
|
+
key: 'delete',
|
10409
|
+
icon: /*#__PURE__*/React__default['default'].createElement(icons.DeleteOutlined, null)
|
10410
|
+
}
|
10411
|
+
};
|
10412
|
+
|
10413
|
+
var tableActionDom = function tableActionDom(record, index) {
|
10414
|
+
return tableAction === null || tableAction === void 0 ? void 0 : tableAction.map(function (item) {
|
10415
|
+
var _actionHandler$item$t2;
|
10416
|
+
|
10417
|
+
var btn = actionConfig[item.type];
|
10418
|
+
|
10419
|
+
if (btn) {
|
10420
|
+
return /*#__PURE__*/React__default['default'].createElement(_Tooltip__default['default'], {
|
10421
|
+
title: btn.title,
|
10422
|
+
key: btn.key
|
10423
|
+
}, /*#__PURE__*/React__default['default'].createElement("a", {
|
10424
|
+
key: btn.key,
|
10425
|
+
onClick: function onClick() {
|
10426
|
+
var _actionHandler$item$t;
|
10427
|
+
|
10428
|
+
return (_actionHandler$item$t = actionHandler[item.type]) === null || _actionHandler$item$t === void 0 ? void 0 : _actionHandler$item$t.call(actionHandler, item, record, index);
|
10429
|
+
}
|
10430
|
+
}, btn.icon, " ", btn.title));
|
10353
10431
|
}
|
10432
|
+
|
10433
|
+
return (_actionHandler$item$t2 = actionHandler[item.type]) === null || _actionHandler$item$t2 === void 0 ? void 0 : _actionHandler$item$t2.call(actionHandler, item, record, index);
|
10354
10434
|
});
|
10355
10435
|
};
|
10356
10436
|
|
@@ -10380,10 +10460,10 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10380
10460
|
|
10381
10461
|
_context5.next = 3;
|
10382
10462
|
return item.actionMethod(values, function () {
|
10383
|
-
var _actionRef$
|
10463
|
+
var _actionRef$current5;
|
10384
10464
|
|
10385
10465
|
loading();
|
10386
|
-
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
10466
|
+
actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current5 = actionRef.current) === null || _actionRef$current5 === void 0 ? void 0 : _actionRef$current5.reload();
|
10387
10467
|
});
|
10388
10468
|
|
10389
10469
|
case 3:
|
@@ -10408,9 +10488,9 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10408
10488
|
|
10409
10489
|
return (_item$actionRender2 = item.actionRender) === null || _item$actionRender2 === void 0 ? void 0 : _item$actionRender2.call(item, actionRef, function () {
|
10410
10490
|
item.actionMethod && item.actionMethod(actionRef, function () {
|
10411
|
-
var _actionRef$
|
10491
|
+
var _actionRef$current6;
|
10412
10492
|
|
10413
|
-
return actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$
|
10493
|
+
return actionRef === null || actionRef === void 0 ? void 0 : (_actionRef$current6 = actionRef.current) === null || _actionRef$current6 === void 0 ? void 0 : _actionRef$current6.reload();
|
10414
10494
|
});
|
10415
10495
|
});
|
10416
10496
|
}
|
@@ -10456,7 +10536,19 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10456
10536
|
onFormChange: onFormChange,
|
10457
10537
|
extraColumns: extraColumns || [],
|
10458
10538
|
columns: (columns || []).filter(function (item) {
|
10459
|
-
|
10539
|
+
if (item.hiddenInModalForm) {
|
10540
|
+
return false;
|
10541
|
+
}
|
10542
|
+
|
10543
|
+
if (item.onlyShowInView) {
|
10544
|
+
if (modalFormConfig.type === '查看') {
|
10545
|
+
return true;
|
10546
|
+
} else {
|
10547
|
+
return false;
|
10548
|
+
}
|
10549
|
+
}
|
10550
|
+
|
10551
|
+
return true;
|
10460
10552
|
})
|
10461
10553
|
})), /*#__PURE__*/React__default['default'].createElement(ProTable__default['default'], _objectSpread2({
|
10462
10554
|
actionRef: actionRef,
|
@@ -10473,7 +10565,23 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10473
10565
|
render: function render(_, record, index) {
|
10474
10566
|
return tableActionDom(record, index);
|
10475
10567
|
}
|
10476
|
-
}, optionColumnConfig)])
|
10568
|
+
}, optionColumnConfig)]).map(function (item) {
|
10569
|
+
var obj = _objectSpread2({}, item);
|
10570
|
+
|
10571
|
+
if (item.notInitialValueInSearch) {
|
10572
|
+
delete obj.initialValue;
|
10573
|
+
}
|
10574
|
+
|
10575
|
+
return obj;
|
10576
|
+
}) : (columns || []).map(function (item) {
|
10577
|
+
var obj = _objectSpread2({}, item);
|
10578
|
+
|
10579
|
+
if (item.notInitialValueInSearch) {
|
10580
|
+
delete obj.initialValue;
|
10581
|
+
}
|
10582
|
+
|
10583
|
+
return obj;
|
10584
|
+
}),
|
10477
10585
|
search: {
|
10478
10586
|
labelWidth: 'auto',
|
10479
10587
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|