wargerm 0.2.4 → 0.2.5
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/components/WForm/index.d.ts +1 -0
- package/dist/index.esm.js +4 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
@@ -48,6 +48,7 @@ export interface WFormProps extends FormProps {
|
|
48
48
|
style?: React.CSSProperties;
|
49
49
|
columns: ColumnProps[];
|
50
50
|
disabled?: boolean;
|
51
|
+
disabledHideInSearch?: boolean;
|
51
52
|
onSubmit?: (params: Record<string, any>) => void;
|
52
53
|
onReset?: () => void;
|
53
54
|
formRef?: MutableRefObject<FormInstance>;
|
package/dist/index.esm.js
CHANGED
@@ -7532,7 +7532,7 @@ Table.defaultProps = {
|
|
7532
7532
|
rowKey: 'key'
|
7533
7533
|
};
|
7534
7534
|
|
7535
|
-
var _excluded$5 = ["columns", "className", "style", "search", "disabled", "onSubmit", "onReset"];
|
7535
|
+
var _excluded$5 = ["columns", "className", "style", "search", "disabled", "disabledHideInSearch", "onSubmit", "onReset"];
|
7536
7536
|
var RangePicker$2 = Index$2.RangePicker;
|
7537
7537
|
|
7538
7538
|
var WForm = function WForm(props, ref) {
|
@@ -7541,6 +7541,7 @@ var WForm = function WForm(props, ref) {
|
|
7541
7541
|
style = props.style,
|
7542
7542
|
search = props.search,
|
7543
7543
|
disabled = props.disabled,
|
7544
|
+
disabledHideInSearch = props.disabledHideInSearch,
|
7544
7545
|
onSubmit = props.onSubmit,
|
7545
7546
|
onReset = props.onReset,
|
7546
7547
|
extraProps = _objectWithoutProperties(props, _excluded$5);
|
@@ -7560,7 +7561,7 @@ var WForm = function WForm(props, ref) {
|
|
7560
7561
|
setColumnsFields = _useState4[1];
|
7561
7562
|
|
7562
7563
|
var filterFormColumns = columns.filter(function (c) {
|
7563
|
-
return !c.hideInSearch;
|
7564
|
+
return !c.hideInSearch || disabledHideInSearch;
|
7564
7565
|
}).sort(function (a, b) {
|
7565
7566
|
return (b.order || 0) - (a.order || 0);
|
7566
7567
|
});
|
@@ -9545,6 +9546,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9545
9546
|
ref: formRef,
|
9546
9547
|
disabled: disabled,
|
9547
9548
|
onSubmit: onSubmit,
|
9549
|
+
disabledHideInSearch: true,
|
9548
9550
|
search: search,
|
9549
9551
|
columns: columns
|
9550
9552
|
}));
|
@@ -9848,7 +9850,6 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9848
9850
|
search: modalFormSearch
|
9849
9851
|
}, modalConfig), {}, {
|
9850
9852
|
columns: (columns || []).filter(function (item) {
|
9851
|
-
delete item.hideInSearch;
|
9852
9853
|
return !item.hiddenInModalForm;
|
9853
9854
|
})
|
9854
9855
|
})), /*#__PURE__*/React.createElement(ProTable, _objectSpread2({
|
package/dist/index.js
CHANGED
@@ -7565,7 +7565,7 @@ Table.defaultProps = {
|
|
7565
7565
|
rowKey: 'key'
|
7566
7566
|
};
|
7567
7567
|
|
7568
|
-
var _excluded$5 = ["columns", "className", "style", "search", "disabled", "onSubmit", "onReset"];
|
7568
|
+
var _excluded$5 = ["columns", "className", "style", "search", "disabled", "disabledHideInSearch", "onSubmit", "onReset"];
|
7569
7569
|
var RangePicker$2 = Index$2.RangePicker;
|
7570
7570
|
|
7571
7571
|
var WForm = function WForm(props, ref) {
|
@@ -7574,6 +7574,7 @@ var WForm = function WForm(props, ref) {
|
|
7574
7574
|
style = props.style,
|
7575
7575
|
search = props.search,
|
7576
7576
|
disabled = props.disabled,
|
7577
|
+
disabledHideInSearch = props.disabledHideInSearch,
|
7577
7578
|
onSubmit = props.onSubmit,
|
7578
7579
|
onReset = props.onReset,
|
7579
7580
|
extraProps = _objectWithoutProperties(props, _excluded$5);
|
@@ -7593,7 +7594,7 @@ var WForm = function WForm(props, ref) {
|
|
7593
7594
|
setColumnsFields = _useState4[1];
|
7594
7595
|
|
7595
7596
|
var filterFormColumns = columns.filter(function (c) {
|
7596
|
-
return !c.hideInSearch;
|
7597
|
+
return !c.hideInSearch || disabledHideInSearch;
|
7597
7598
|
}).sort(function (a, b) {
|
7598
7599
|
return (b.order || 0) - (a.order || 0);
|
7599
7600
|
});
|
@@ -9578,6 +9579,7 @@ var ModalForm = function ModalForm(props, ref) {
|
|
9578
9579
|
ref: formRef,
|
9579
9580
|
disabled: disabled,
|
9580
9581
|
onSubmit: onSubmit,
|
9582
|
+
disabledHideInSearch: true,
|
9581
9583
|
search: search,
|
9582
9584
|
columns: columns
|
9583
9585
|
}));
|
@@ -9881,7 +9883,6 @@ var TabelCard = function TabelCard(props, ref) {
|
|
9881
9883
|
search: modalFormSearch
|
9882
9884
|
}, modalConfig), {}, {
|
9883
9885
|
columns: (columns || []).filter(function (item) {
|
9884
|
-
delete item.hideInSearch;
|
9885
9886
|
return !item.hiddenInModalForm;
|
9886
9887
|
})
|
9887
9888
|
})), /*#__PURE__*/React__default['default'].createElement(ProTable__default['default'], _objectSpread2({
|