wargerm 0.2.18 → 0.2.19
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/index.esm.js +30 -2
- package/dist/index.js +30 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -10421,7 +10421,19 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10421
10421
|
onFormChange: onFormChange,
|
10422
10422
|
extraColumns: extraColumns || [],
|
10423
10423
|
columns: (columns || []).filter(function (item) {
|
10424
|
-
|
10424
|
+
if (item.hiddenInModalForm) {
|
10425
|
+
return false;
|
10426
|
+
}
|
10427
|
+
|
10428
|
+
if (item.onlyShowInView) {
|
10429
|
+
if (modalFormConfig.type === '查看') {
|
10430
|
+
return true;
|
10431
|
+
} else {
|
10432
|
+
return false;
|
10433
|
+
}
|
10434
|
+
}
|
10435
|
+
|
10436
|
+
return true;
|
10425
10437
|
})
|
10426
10438
|
})), /*#__PURE__*/React.createElement(ProTable, _objectSpread2({
|
10427
10439
|
actionRef: actionRef,
|
@@ -10438,7 +10450,23 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10438
10450
|
render: function render(_, record, index) {
|
10439
10451
|
return tableActionDom(record, index);
|
10440
10452
|
}
|
10441
|
-
}, optionColumnConfig)])
|
10453
|
+
}, optionColumnConfig)]).map(function (item) {
|
10454
|
+
var obj = _objectSpread2({}, item);
|
10455
|
+
|
10456
|
+
if (item.notInitialValueInSearch) {
|
10457
|
+
delete obj.initialValue;
|
10458
|
+
}
|
10459
|
+
|
10460
|
+
return obj;
|
10461
|
+
}) : (columns || []).map(function (item) {
|
10462
|
+
var obj = _objectSpread2({}, item);
|
10463
|
+
|
10464
|
+
if (item.notInitialValueInSearch) {
|
10465
|
+
delete obj.initialValue;
|
10466
|
+
}
|
10467
|
+
|
10468
|
+
return obj;
|
10469
|
+
}),
|
10442
10470
|
search: {
|
10443
10471
|
labelWidth: 'auto',
|
10444
10472
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|
package/dist/index.js
CHANGED
@@ -10454,7 +10454,19 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10454
10454
|
onFormChange: onFormChange,
|
10455
10455
|
extraColumns: extraColumns || [],
|
10456
10456
|
columns: (columns || []).filter(function (item) {
|
10457
|
-
|
10457
|
+
if (item.hiddenInModalForm) {
|
10458
|
+
return false;
|
10459
|
+
}
|
10460
|
+
|
10461
|
+
if (item.onlyShowInView) {
|
10462
|
+
if (modalFormConfig.type === '查看') {
|
10463
|
+
return true;
|
10464
|
+
} else {
|
10465
|
+
return false;
|
10466
|
+
}
|
10467
|
+
}
|
10468
|
+
|
10469
|
+
return true;
|
10458
10470
|
})
|
10459
10471
|
})), /*#__PURE__*/React__default['default'].createElement(ProTable__default['default'], _objectSpread2({
|
10460
10472
|
actionRef: actionRef,
|
@@ -10471,7 +10483,23 @@ var TabelCard = function TabelCard(props, ref) {
|
|
10471
10483
|
render: function render(_, record, index) {
|
10472
10484
|
return tableActionDom(record, index);
|
10473
10485
|
}
|
10474
|
-
}, optionColumnConfig)])
|
10486
|
+
}, optionColumnConfig)]).map(function (item) {
|
10487
|
+
var obj = _objectSpread2({}, item);
|
10488
|
+
|
10489
|
+
if (item.notInitialValueInSearch) {
|
10490
|
+
delete obj.initialValue;
|
10491
|
+
}
|
10492
|
+
|
10493
|
+
return obj;
|
10494
|
+
}) : (columns || []).map(function (item) {
|
10495
|
+
var obj = _objectSpread2({}, item);
|
10496
|
+
|
10497
|
+
if (item.notInitialValueInSearch) {
|
10498
|
+
delete obj.initialValue;
|
10499
|
+
}
|
10500
|
+
|
10501
|
+
return obj;
|
10502
|
+
}),
|
10475
10503
|
search: {
|
10476
10504
|
labelWidth: 'auto',
|
10477
10505
|
optionRender: function optionRender(searchConfig, formProps, dom) {
|