@chlp-tech/rpa-ui 0.0.22 → 0.0.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.
|
@@ -213,6 +213,7 @@ var SelectCover = function SelectCover(props) {
|
|
|
213
213
|
}, "\u4FDD\u5B58"))) : /*#__PURE__*/React.createElement(React.Fragment, null));
|
|
214
214
|
};
|
|
215
215
|
var UploadCover = function UploadCover(props) {
|
|
216
|
+
var _props$description;
|
|
216
217
|
var _useState7 = useState(),
|
|
217
218
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
218
219
|
file = _useState8[0],
|
|
@@ -272,15 +273,15 @@ var UploadCover = function UploadCover(props) {
|
|
|
272
273
|
style: {
|
|
273
274
|
display: props.visible ? 'block' : 'none'
|
|
274
275
|
}
|
|
275
|
-
}, /*#__PURE__*/React.createElement(Alert, {
|
|
276
|
+
}, props.description && ((_props$description = props.description) === null || _props$description === void 0 ? void 0 : _props$description.length) > 0 ? /*#__PURE__*/React.createElement(Alert, {
|
|
276
277
|
style: {
|
|
277
278
|
marginTop: 12,
|
|
278
279
|
padding: 8
|
|
279
280
|
},
|
|
280
281
|
type: "info",
|
|
281
282
|
showIcon: true,
|
|
282
|
-
description:
|
|
283
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
283
|
+
description: props.description
|
|
284
|
+
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
284
285
|
className: styles.uploadWrap
|
|
285
286
|
}, /*#__PURE__*/React.createElement(Upload, {
|
|
286
287
|
accept: '.jpg, .jpeg, .png',
|