@guo514360255/antd-lib 1.4.18 → 1.4.20
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.
|
@@ -188,7 +188,7 @@ var CustomModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
188
188
|
}, descProps || {}), columns === null || columns === void 0 ? void 0 : columns.filter(function (item) {
|
|
189
189
|
return !item.hideInDetail;
|
|
190
190
|
}).map(function (item, index) {
|
|
191
|
-
var _item$fieldProps;
|
|
191
|
+
var _item$fieldProps, _item$fieldProps2;
|
|
192
192
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
193
193
|
key: item.dataIndex
|
|
194
194
|
}, /*#__PURE__*/React.createElement(Descriptions.Item, _extends({
|
|
@@ -196,7 +196,7 @@ var CustomModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
196
196
|
label: "".concat(item.title)
|
|
197
197
|
}, ((_item$fieldProps = item.fieldProps) === null || _item$fieldProps === void 0 ? void 0 : _item$fieldProps.descriptionsItemProps) || {}), item.type === 'upload' ? /*#__PURE__*/React.createElement(DescImage, {
|
|
198
198
|
data: detail[item.dataIndex]
|
|
199
|
-
}) : handleDetailValue(item, detail[item.dataIndex], index) || '-'));
|
|
199
|
+
}) : handleDetailValue(item, detail[item.dataIndex], index) || '-', /*#__PURE__*/React.createElement("span", null, ((_item$fieldProps2 = item.fieldProps) === null || _item$fieldProps2 === void 0 ? void 0 : _item$fieldProps2.suffix) || '')));
|
|
200
200
|
}))), /*#__PURE__*/React.createElement(Spin, {
|
|
201
201
|
spinning: loading,
|
|
202
202
|
fullscreen: true
|
|
@@ -265,7 +265,9 @@ var CustomFormModal = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
265
265
|
autoComplete: "off",
|
|
266
266
|
ref: formRef,
|
|
267
267
|
clearOnDestroy: true
|
|
268
|
-
}, handleColumns(Array.isArray(formColumns) && formColumns.length ? formColumns
|
|
268
|
+
}, handleColumns(Array.isArray(formColumns) && formColumns.length ? formColumns.filter(function (item) {
|
|
269
|
+
return !item.hideInForm;
|
|
270
|
+
}) : columns || []).map(function (item) {
|
|
269
271
|
var defaultPlaceholder = getPlaceholder(item.type, item.title);
|
|
270
272
|
return item.type === 'list' ? /*#__PURE__*/React.createElement(Form.List, {
|
|
271
273
|
name: item.dataIndex,
|