@chlp-tech/rpa-ui 0.0.22 → 0.0.24

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.
@@ -24,6 +24,7 @@ export interface ICoverModalV2Props {
24
24
  handleUpload: (file: File) => Promise<string>;
25
25
  onClose?: () => void;
26
26
  zIndex?: number;
27
+ description?: string;
27
28
  onSubmit?: (key: 'selectCover' | 'uploadCover' | string, data: string | number) => void;
28
29
  }
29
30
  declare const CoverModal: FC<CoverModalProps>;
@@ -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',
@@ -469,7 +470,8 @@ export var CoverModalV2 = function CoverModalV2(props) {
469
470
  },
470
471
  handleSubmit: handleSubmit,
471
472
  handleUpload: props.handleUpload,
472
- defaultData: props.defaultData
473
+ defaultData: props.defaultData,
474
+ description: props.description
473
475
  })));
474
476
  };
475
477
  export default CoverModal;
package/package.json CHANGED
@@ -1,9 +1,23 @@
1
1
  {
2
2
  "name": "@chlp-tech/rpa-ui",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "rpa-ui",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "start": "npm run dev",
9
+ "dev": "dumi dev",
10
+ "build": "father build",
11
+ "build:watch": "father dev",
12
+ "docs:build": "dumi build",
13
+ "docs:preview": "dumi preview",
14
+ "prepare": "husky install && dumi setup",
15
+ "doctor": "father doctor",
16
+ "lint": "npm run lint:es && npm run lint:css",
17
+ "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
18
+ "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
19
+ "prepublishOnly": "father doctor && npm run build"
20
+ },
7
21
  "authors": [],
8
22
  "license": "MIT",
9
23
  "files": [
@@ -36,15 +50,11 @@
36
50
  },
37
51
  "buildConfig": {
38
52
  "esm": {
39
- "output": {
40
- "mode": "esm"
41
- },
53
+ "output": { "mode": "esm" },
42
54
  "platform": "browser"
43
55
  },
44
56
  "cjs": {
45
- "output": {
46
- "mode": "cjs"
47
- }
57
+ "output": { "mode": "cjs" }
48
58
  },
49
59
  "external": [
50
60
  "react",
@@ -94,17 +104,5 @@
94
104
  "dayjs": "^1.11.13",
95
105
  "js-md5": "^0.8.3",
96
106
  "styled-components": "^6.1.12"
97
- },
98
- "scripts": {
99
- "start": "npm run dev",
100
- "dev": "dumi dev",
101
- "build": "father build",
102
- "build:watch": "father dev",
103
- "docs:build": "dumi build",
104
- "docs:preview": "dumi preview",
105
- "doctor": "father doctor",
106
- "lint": "npm run lint:es && npm run lint:css",
107
- "lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
108
- "lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\""
109
107
  }
110
- }
108
+ }