@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: "Tiktok\u6682\u4E0D\u652F\u6301\u4E0A\u4F20\u5C01\u9762\uFF0C\u4E0A\u4F20\u5C01\u9762\u4FDD\u5B58\u540E\uFF0CTiktok\u5C01\u9762\u9ED8\u8BA4\u89C6\u9891\u7B2C\u4E00\u5E27"
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",