@vtx/components 4.0.0-beta.22 → 4.0.0-beta.23
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.
|
@@ -419,7 +419,9 @@ VtxExportAsync.propTypes = {
|
|
|
419
419
|
refreshTime: PropTypes.number,
|
|
420
420
|
downloadInNewTab: PropTypes.bool,
|
|
421
421
|
enableCustomSelect: PropTypes.bool,
|
|
422
|
-
headers: PropTypes.object
|
|
422
|
+
headers: PropTypes.object,
|
|
423
|
+
beforeExport: PropTypes.object,
|
|
424
|
+
historyHeaders: PropTypes.object
|
|
423
425
|
};
|
|
424
426
|
export { VtxExportAsync };
|
|
425
427
|
export default VtxExportAsync;
|
|
@@ -68,9 +68,11 @@ export default function FormItem(props) {
|
|
|
68
68
|
}
|
|
69
69
|
if (['Input', 'InputNumber', 'VtxInput', 'TextArea'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
70
70
|
return '请输入' + label;
|
|
71
|
+
// return '请输入'
|
|
71
72
|
}
|
|
72
|
-
if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
73
|
+
if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid', 'VtxTreeSelect'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
73
74
|
return '请选择' + label;
|
|
75
|
+
// return '请选择'
|
|
74
76
|
}
|
|
75
77
|
if (['RangePicker'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
76
78
|
return undefined;
|
|
@@ -80,8 +82,9 @@ export default function FormItem(props) {
|
|
|
80
82
|
};
|
|
81
83
|
var renderItem = function renderItem(child) {
|
|
82
84
|
if ( /*#__PURE__*/isValidElement(child)) {
|
|
85
|
+
var _child$props;
|
|
83
86
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
84
|
-
placeholder: initPlaceholder(props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
87
|
+
placeholder: initPlaceholder(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
85
88
|
});
|
|
86
89
|
}
|
|
87
90
|
return child;
|
|
@@ -427,6 +427,8 @@ VtxExportAsync.propTypes = {
|
|
|
427
427
|
refreshTime: _propTypes.default.number,
|
|
428
428
|
downloadInNewTab: _propTypes.default.bool,
|
|
429
429
|
enableCustomSelect: _propTypes.default.bool,
|
|
430
|
-
headers: _propTypes.default.object
|
|
430
|
+
headers: _propTypes.default.object,
|
|
431
|
+
beforeExport: _propTypes.default.object,
|
|
432
|
+
historyHeaders: _propTypes.default.object
|
|
431
433
|
};
|
|
432
434
|
var _default = exports.default = VtxExportAsync;
|
|
@@ -74,9 +74,11 @@ function FormItem(props) {
|
|
|
74
74
|
}
|
|
75
75
|
if (['Input', 'InputNumber', 'VtxInput', 'TextArea'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
76
76
|
return '请输入' + label;
|
|
77
|
+
// return '请输入'
|
|
77
78
|
}
|
|
78
|
-
if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
79
|
+
if (['Select', 'VtxColorPicker', 'VtxSelect', 'VtxCombogrid', 'VtxTreeSelect'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
79
80
|
return '请选择' + label;
|
|
81
|
+
// return '请选择'
|
|
80
82
|
}
|
|
81
83
|
if (['RangePicker'].includes(type === null || type === void 0 ? void 0 : type.displayName)) {
|
|
82
84
|
return undefined;
|
|
@@ -86,8 +88,9 @@ function FormItem(props) {
|
|
|
86
88
|
};
|
|
87
89
|
var renderItem = function renderItem(child) {
|
|
88
90
|
if ( /*#__PURE__*/(0, _react.isValidElement)(child)) {
|
|
91
|
+
var _child$props;
|
|
89
92
|
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
90
|
-
placeholder: initPlaceholder(props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
93
|
+
placeholder: initPlaceholder(child === null || child === void 0 || (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.placeholder, label, child === null || child === void 0 ? void 0 : child.type)
|
|
91
94
|
});
|
|
92
95
|
}
|
|
93
96
|
return child;
|