@chlp-tech/rpa-ui 0.0.1

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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +43 -0
  3. package/dist/account-select/imgs/down.svg +24 -0
  4. package/dist/account-select/imgs/fb-disabled.svg +27 -0
  5. package/dist/account-select/imgs/fb.svg +20 -0
  6. package/dist/account-select/imgs/up.svg +20 -0
  7. package/dist/account-select/index.d.ts +39 -0
  8. package/dist/account-select/index.js +221 -0
  9. package/dist/account-select/index.module.less +58 -0
  10. package/dist/ai-empty/index.d.ts +3 -0
  11. package/dist/ai-empty/index.js +51 -0
  12. package/dist/ai-empty/index.module.less +60 -0
  13. package/dist/batch-label/index.d.ts +14 -0
  14. package/dist/batch-label/index.js +215 -0
  15. package/dist/batch-label/index.module.less +96 -0
  16. package/dist/card-scroll/index.d.ts +6 -0
  17. package/dist/card-scroll/index.js +75 -0
  18. package/dist/components/modal/index.d.ts +16 -0
  19. package/dist/components/modal/index.js +70 -0
  20. package/dist/cover-modal/boll.gif +0 -0
  21. package/dist/cover-modal/delete.svg +24 -0
  22. package/dist/cover-modal/index.d.ts +20 -0
  23. package/dist/cover-modal/index.js +410 -0
  24. package/dist/cover-modal/index.module.less +76 -0
  25. package/dist/cover-modal/question.svg +1 -0
  26. package/dist/cover-modal/upload.png +0 -0
  27. package/dist/custom.d.ts +10 -0
  28. package/dist/drawer-task/img/back.png +0 -0
  29. package/dist/drawer-task/img/close.svg +18 -0
  30. package/dist/drawer-task/img/icon.svg +20 -0
  31. package/dist/drawer-task/index.d.ts +24 -0
  32. package/dist/drawer-task/index.js +130 -0
  33. package/dist/drawer-task/index.module.less +85 -0
  34. package/dist/dynamic-form/index.d.ts +33 -0
  35. package/dist/dynamic-form/index.js +154 -0
  36. package/dist/excel-import/excel-import.module.less +32 -0
  37. package/dist/excel-import/index.d.ts +10 -0
  38. package/dist/excel-import/index.js +76 -0
  39. package/dist/form-item/index.d.ts +12 -0
  40. package/dist/form-item/index.js +34 -0
  41. package/dist/form-item/index.module.less +45 -0
  42. package/dist/index.d.ts +22 -0
  43. package/dist/index.js +22 -0
  44. package/dist/label-select/imgs/close.svg +24 -0
  45. package/dist/label-select/imgs/plus.svg +24 -0
  46. package/dist/label-select/index.d.ts +10 -0
  47. package/dist/label-select/index.js +173 -0
  48. package/dist/label-select/index.module.less +25 -0
  49. package/dist/layout/index.d.ts +3 -0
  50. package/dist/layout/index.js +10 -0
  51. package/dist/layout/index.module.less +6 -0
  52. package/dist/link-filter/index.d.ts +25 -0
  53. package/dist/link-filter/index.js +242 -0
  54. package/dist/link-filter/index.module.less +7 -0
  55. package/dist/media-play/close.svg +1 -0
  56. package/dist/media-play/index.d.ts +13 -0
  57. package/dist/media-play/index.js +245 -0
  58. package/dist/media-play/index.module.less +196 -0
  59. package/dist/media-play/play.svg +17 -0
  60. package/dist/modal-wrapper/index.d.ts +17 -0
  61. package/dist/modal-wrapper/index.js +66 -0
  62. package/dist/publish-account/imgs/close.svg +25 -0
  63. package/dist/publish-account/imgs/fb.svg +20 -0
  64. package/dist/publish-account/imgs/ins.svg +36 -0
  65. package/dist/publish-account/imgs/tk.svg +31 -0
  66. package/dist/publish-account/imgs/tt.svg +21 -0
  67. package/dist/publish-account/imgs/yt.svg +25 -0
  68. package/dist/publish-account/index.d.ts +31 -0
  69. package/dist/publish-account/index.js +118 -0
  70. package/dist/publish-account/index.module.less +70 -0
  71. package/dist/publish-status/imgs/fail.svg +22 -0
  72. package/dist/publish-status/imgs/process.svg +24 -0
  73. package/dist/publish-status/imgs/publish.svg +24 -0
  74. package/dist/publish-status/imgs/success.svg +22 -0
  75. package/dist/publish-status/imgs/wait.svg +22 -0
  76. package/dist/publish-status/index.d.ts +5 -0
  77. package/dist/publish-status/index.js +55 -0
  78. package/dist/publish-status/index.module.less +8 -0
  79. package/dist/release-manage/index.d.ts +6 -0
  80. package/dist/release-manage/index.js +5 -0
  81. package/dist/release-manage/release-title/index.d.ts +10 -0
  82. package/dist/release-manage/release-title/index.js +94 -0
  83. package/dist/release-manage/release-title/index.module.less +21 -0
  84. package/dist/release-manage/release-title/plus.svg +20 -0
  85. package/dist/release-video-card/imgs/detail.svg +21 -0
  86. package/dist/release-video-card/imgs/edit.svg +19 -0
  87. package/dist/release-video-card/imgs/fail.svg +22 -0
  88. package/dist/release-video-card/imgs/fb.svg +20 -0
  89. package/dist/release-video-card/imgs/ins.svg +34 -0
  90. package/dist/release-video-card/imgs/more.svg +18 -0
  91. package/dist/release-video-card/imgs/new.svg +22 -0
  92. package/dist/release-video-card/imgs/play.svg +17 -0
  93. package/dist/release-video-card/imgs/process.svg +24 -0
  94. package/dist/release-video-card/imgs/publish.svg +24 -0
  95. package/dist/release-video-card/imgs/success.svg +22 -0
  96. package/dist/release-video-card/imgs/tk.svg +29 -0
  97. package/dist/release-video-card/imgs/tw.svg +21 -0
  98. package/dist/release-video-card/imgs/wait.svg +22 -0
  99. package/dist/release-video-card/imgs/yt.svg +25 -0
  100. package/dist/release-video-card/imgs/ytb.svg +1 -0
  101. package/dist/release-video-card/index.d.ts +35 -0
  102. package/dist/release-video-card/index.js +221 -0
  103. package/dist/release-video-card/index.module.less +223 -0
  104. package/dist/sound-wave/index.d.ts +3 -0
  105. package/dist/sound-wave/index.js +22 -0
  106. package/dist/sound-wave/index.module.less +105 -0
  107. package/dist/text-ellipsis/index.d.ts +8 -0
  108. package/dist/text-ellipsis/index.js +57 -0
  109. package/dist/text-ellipsis/index.module.less +8 -0
  110. package/dist/utils/index.d.ts +8 -0
  111. package/dist/utils/index.js +101 -0
  112. package/dist/video-list/delete.svg +26 -0
  113. package/dist/video-list/index.d.ts +46 -0
  114. package/dist/video-list/index.js +219 -0
  115. package/dist/video-list/index.module.less +127 -0
  116. package/package.json +83 -0
@@ -0,0 +1,130 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useMemo, useState, forwardRef, useImperativeHandle, useEffect } from "react";
8
+ import { Drawer, Image, Avatar } from "antd";
9
+ // @ts-ignore
10
+ import Close from "./img/close.svg";
11
+ // @ts-ignore
12
+ import Back from "./img/back.png";
13
+ // @ts-ignore
14
+ import styles from "./index.module.less";
15
+ var ActivateTab = function ActivateTab(props) {
16
+ return /*#__PURE__*/React.createElement("div", {
17
+ className: styles["active_wrap"],
18
+ onClick: function onClick() {
19
+ return props.onClick(props.id);
20
+ }
21
+ }, /*#__PURE__*/React.createElement("div", {
22
+ className: props.isActive ? styles["active_wrap__active"] : styles["active_wrap__no_active"]
23
+ }, /*#__PURE__*/React.createElement(Avatar, {
24
+ shape: "square",
25
+ src: props.isActive ? props.icon : props.icon2,
26
+ size: 24
27
+ }), /*#__PURE__*/React.createElement("div", null, props.content)));
28
+ };
29
+ var DrawerTask = /*#__PURE__*/forwardRef(function (props, ref) {
30
+ var _props$menu, _props$menu4;
31
+ var _useState = useState(!!props.open),
32
+ _useState2 = _slicedToArray(_useState, 2),
33
+ internalOpen = _useState2[0],
34
+ setInternalOpen = _useState2[1];
35
+ var _useState3 = useState(props.defaultTab || ((_props$menu = props.menu) === null || _props$menu === void 0 || (_props$menu = _props$menu.items) === null || _props$menu === void 0 || (_props$menu = _props$menu[0]) === null || _props$menu === void 0 ? void 0 : _props$menu.key)),
36
+ _useState4 = _slicedToArray(_useState3, 2),
37
+ activeItem = _useState4[0],
38
+ setActiveItem = _useState4[1];
39
+ useEffect(function () {
40
+ if (props.open !== undefined) {
41
+ setInternalOpen(props.open);
42
+ }
43
+ }, [props.open]);
44
+ useEffect(function () {
45
+ if (props.defaultTab) {
46
+ setActiveItem(props.defaultTab);
47
+ }
48
+ }, [props.defaultTab]);
49
+ var renderBody = useMemo(function () {
50
+ var _props$menu2;
51
+ return (_props$menu2 = props.menu) === null || _props$menu2 === void 0 || (_props$menu2 = _props$menu2.items) === null || _props$menu2 === void 0 || (_props$menu2 = _props$menu2.find(function (item) {
52
+ return item.key === activeItem;
53
+ })) === null || _props$menu2 === void 0 ? void 0 : _props$menu2.component;
54
+ }, [activeItem, props]);
55
+ var handleOpen = function handleOpen() {
56
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
57
+ props.onOpen && props.onOpen();
58
+ setInternalOpen(true);
59
+ };
60
+ var handleClose = function handleClose() {
61
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
62
+ props.onClose && props.onClose();
63
+ setInternalOpen(false);
64
+ };
65
+ useImperativeHandle(ref, function () {
66
+ return {
67
+ openDrawer: handleOpen,
68
+ closeDrawer: handleClose
69
+ };
70
+ });
71
+ var currentActiveTabItem = useMemo(function () {
72
+ var _props$menu3;
73
+ return (_props$menu3 = props.menu) === null || _props$menu3 === void 0 || (_props$menu3 = _props$menu3.items) === null || _props$menu3 === void 0 || (_props$menu3 = _props$menu3.filter(function (item) {
74
+ return item.key === activeItem;
75
+ })) === null || _props$menu3 === void 0 ? void 0 : _props$menu3[0];
76
+ }, [activeItem]);
77
+ var renderBack = function renderBack() {
78
+ if ( /*#__PURE__*/React.isValidElement(props.back)) {
79
+ return props.back;
80
+ }
81
+ return /*#__PURE__*/React.createElement("div", {
82
+ className: styles['backBtn'],
83
+ onClick: props.onClickBack
84
+ }, /*#__PURE__*/React.createElement(Image, {
85
+ width: 32,
86
+ height: 32,
87
+ src: Back,
88
+ preview: false
89
+ }));
90
+ };
91
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
92
+ onClick: handleOpen
93
+ }, props.children), /*#__PURE__*/React.createElement(Drawer, {
94
+ open: internalOpen,
95
+ width: props.width || 880,
96
+ closable: false,
97
+ bodyStyle: {
98
+ padding: 0
99
+ }
100
+ }, /*#__PURE__*/React.createElement("div", {
101
+ className: styles["drawer_wrap"]
102
+ }, /*#__PURE__*/React.createElement("div", {
103
+ className: styles["drawer_wrap__left"]
104
+ }, props.back && renderBack(), (_props$menu4 = props.menu) === null || _props$menu4 === void 0 || (_props$menu4 = _props$menu4.items) === null || _props$menu4 === void 0 ? void 0 : _props$menu4.map(function (item) {
105
+ return /*#__PURE__*/React.createElement(ActivateTab, {
106
+ key: item.key,
107
+ id: item.key,
108
+ isActive: activeItem === item.key,
109
+ content: item.label,
110
+ icon: item.icon,
111
+ icon2: item.icon2,
112
+ onClick: function onClick(key) {
113
+ return setActiveItem(key);
114
+ }
115
+ });
116
+ })), /*#__PURE__*/React.createElement("div", {
117
+ className: styles["drawer_wrap__right"]
118
+ }, /*#__PURE__*/React.createElement("div", {
119
+ className: styles["drawer_wrap__right__title"]
120
+ }, /*#__PURE__*/React.createElement("div", null, (currentActiveTabItem === null || currentActiveTabItem === void 0 ? void 0 : currentActiveTabItem.title) || props.title), /*#__PURE__*/React.createElement("div", {
121
+ className: styles["cursor"],
122
+ onClick: handleClose
123
+ }, /*#__PURE__*/React.createElement(Image, {
124
+ src: Close,
125
+ preview: false
126
+ }))), /*#__PURE__*/React.createElement("div", {
127
+ className: styles["drawer_wrap__right__body"]
128
+ }, renderBody)))));
129
+ });
130
+ export default DrawerTask;
@@ -0,0 +1,85 @@
1
+ .drawer_wrap {
2
+ display: flex;
3
+ height: 100%;
4
+
5
+ &__left {
6
+ padding: 12px;
7
+ border-right: 1px solid #ECEFF4;
8
+ transition: border-color 0.3s ease-in-out;
9
+ }
10
+
11
+ &__right {
12
+ width: 100%;
13
+ transition: width 0.3s ease-in-out;
14
+
15
+ &__title {
16
+ padding: 16px 24px;
17
+ display: flex;
18
+ justify-content: space-between;
19
+ font-weight: 500;
20
+ font-size: 18px;
21
+ color: #142A51;
22
+ line-height: 25px;
23
+ text-align: left;
24
+ font-style: normal;
25
+ border-bottom: 1px solid #ECEFF4;
26
+ transition: border-color 0.3s ease-in-out, color 0.3s ease-in-out;
27
+ }
28
+
29
+ &__body {
30
+ padding: 24px;
31
+ transition: padding 0.3s ease-in-out;
32
+ }
33
+ }
34
+ }
35
+
36
+ .active_wrap {
37
+ border-radius: 8px;
38
+ font-weight: 400;
39
+ font-size: 14px;
40
+ color: #142A51;
41
+ line-height: 20px;
42
+ text-align: center;
43
+ font-style: normal;
44
+ white-space: nowrap;
45
+ margin-bottom: 12px;
46
+ cursor: pointer;
47
+ transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
48
+
49
+ &__active {
50
+ color: #004FD3;
51
+ background: #E9F1FF;
52
+ padding: 6px 14px;
53
+ border-radius: 8px;
54
+ transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
55
+ }
56
+
57
+ &__no_active {
58
+ color: #142A51;
59
+ background: #fff;
60
+ padding: 6px 14px;
61
+ transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
62
+ }
63
+ }
64
+
65
+ .cursor {
66
+ cursor: pointer;
67
+ transition: transform 0.2s ease-in-out;
68
+
69
+ &:hover {
70
+ transform: rotate(90deg);
71
+ }
72
+ }
73
+
74
+ .backBtn {
75
+ width: 40px;
76
+ height: 40px;
77
+ background-color: #ECEFF4;
78
+ border-radius: 8px;
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: center;
82
+ cursor: pointer;
83
+ margin: 0 auto;
84
+ margin-bottom: 16px;
85
+ }
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { FormProps } from 'antd';
3
+ export interface FormFilterSchema {
4
+ type: 'select' | 'rangeDate' | 'input';
5
+ name: string;
6
+ label: string;
7
+ placeholder?: string;
8
+ api?: (params?: any) => Promise<any>;
9
+ options?: any[];
10
+ fieldNames?: {
11
+ label: string;
12
+ value: string;
13
+ };
14
+ isMultiple?: boolean;
15
+ dataNames?: {
16
+ label: string;
17
+ value: string;
18
+ };
19
+ keys?: string[];
20
+ rules?: any[];
21
+ maxCount?: number;
22
+ }
23
+ interface FormItemProps {
24
+ formFilterSchema: FormFilterSchema[];
25
+ formWrapper?: boolean;
26
+ formProps?: FormProps;
27
+ columnSpan?: number;
28
+ params?: {
29
+ [key: string]: any;
30
+ };
31
+ }
32
+ declare const _default: React.ForwardRefExoticComponent<FormItemProps & React.RefAttributes<unknown>>;
33
+ export default _default;
@@ -0,0 +1,154 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
10
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
+ import React, { forwardRef, useState, useEffect } from "react";
18
+ import { Form, Input, Select, DatePicker, Row, Col } from 'antd';
19
+ var RangePicker = DatePicker.RangePicker;
20
+ var DynamicForm = function DynamicForm(_ref, ref) {
21
+ var formFilterSchema = _ref.formFilterSchema,
22
+ _ref$formWrapper = _ref.formWrapper,
23
+ formWrapper = _ref$formWrapper === void 0 ? true : _ref$formWrapper,
24
+ formProps = _ref.formProps,
25
+ _ref$columnSpan = _ref.columnSpan,
26
+ columnSpan = _ref$columnSpan === void 0 ? 24 : _ref$columnSpan,
27
+ params = _ref.params;
28
+ var _Form$useForm = Form.useForm(),
29
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
30
+ form = _Form$useForm2[0];
31
+ var _useState = useState({}),
32
+ _useState2 = _slicedToArray(_useState, 2),
33
+ options = _useState2[0],
34
+ setOptions = _useState2[1];
35
+ var _useState3 = useState({}),
36
+ _useState4 = _slicedToArray(_useState3, 2),
37
+ loading = _useState4[0],
38
+ setLoading = _useState4[1];
39
+ useEffect(function () {
40
+ formFilterSchema.forEach( /*#__PURE__*/function () {
41
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(filter) {
42
+ var apiParams, response, data, _filter$dataNames, label, value;
43
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
44
+ while (1) switch (_context.prev = _context.next) {
45
+ case 0:
46
+ if (!filter.api) {
47
+ _context.next = 18;
48
+ break;
49
+ }
50
+ setLoading(function (prev) {
51
+ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, filter.name, true));
52
+ });
53
+ _context.prev = 2;
54
+ apiParams = params ? params[filter.name] : undefined;
55
+ _context.next = 6;
56
+ return filter.api(apiParams);
57
+ case 6:
58
+ response = _context.sent;
59
+ data = response.data;
60
+ if (filter.dataNames) {
61
+ _filter$dataNames = filter.dataNames, label = _filter$dataNames.label, value = _filter$dataNames.value;
62
+ if (label.includes('+')) {
63
+ data = data.map(function (item) {
64
+ return {
65
+ label: item[label.split('+')[0]] + item[label.split('+')[1]],
66
+ value: item[value]
67
+ };
68
+ });
69
+ }
70
+ }
71
+ setOptions(function (prev) {
72
+ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, filter.name, data));
73
+ });
74
+ _context.next = 15;
75
+ break;
76
+ case 12:
77
+ _context.prev = 12;
78
+ _context.t0 = _context["catch"](2);
79
+ console.error(_context.t0, filter.name);
80
+ case 15:
81
+ _context.prev = 15;
82
+ setLoading(function (prev) {
83
+ return _objectSpread(_objectSpread({}, prev), {}, _defineProperty({}, filter.name, false));
84
+ });
85
+ return _context.finish(15);
86
+ case 18:
87
+ case "end":
88
+ return _context.stop();
89
+ }
90
+ }, _callee, null, [[2, 12, 15, 18]]);
91
+ }));
92
+ return function (_x) {
93
+ return _ref2.apply(this, arguments);
94
+ };
95
+ }());
96
+ }, [formFilterSchema, params]);
97
+ var renderFormItem = function renderFormItem(filter) {
98
+ var _filter$options;
99
+ switch (filter.type) {
100
+ case 'input':
101
+ return /*#__PURE__*/React.createElement(Col, {
102
+ key: filter.name,
103
+ span: columnSpan
104
+ }, /*#__PURE__*/React.createElement(Form.Item, {
105
+ name: filter.name,
106
+ label: filter.label,
107
+ rules: filter.rules
108
+ }, /*#__PURE__*/React.createElement(Input, {
109
+ allowClear: true,
110
+ placeholder: filter.placeholder
111
+ })));
112
+ case 'select':
113
+ return /*#__PURE__*/React.createElement(Col, {
114
+ key: filter.name,
115
+ span: columnSpan
116
+ }, /*#__PURE__*/React.createElement(Form.Item, {
117
+ name: filter.name,
118
+ label: filter.label,
119
+ rules: filter.rules
120
+ }, /*#__PURE__*/React.createElement(Select, {
121
+ placeholder: filter.placeholder,
122
+ loading: loading[filter.name],
123
+ mode: filter.isMultiple ? 'multiple' : undefined,
124
+ options: (_filter$options = filter.options) !== null && _filter$options !== void 0 ? _filter$options : options[filter.name],
125
+ fieldNames: filter.fieldNames,
126
+ maxCount: filter === null || filter === void 0 ? void 0 : filter.maxCount,
127
+ allowClear: true
128
+ })));
129
+ case 'rangeDate':
130
+ return /*#__PURE__*/React.createElement(Col, {
131
+ key: filter.name,
132
+ span: columnSpan
133
+ }, /*#__PURE__*/React.createElement(Form.Item, filter, /*#__PURE__*/React.createElement(RangePicker, null)));
134
+ default:
135
+ return null;
136
+ }
137
+ };
138
+ var formItems = formFilterSchema.map(function (filter) {
139
+ return renderFormItem(filter);
140
+ });
141
+ return formWrapper ? /*#__PURE__*/React.createElement(Form, _extends({
142
+ ref: ref,
143
+ form: form,
144
+ layout: "vertical"
145
+ }, formProps), /*#__PURE__*/React.createElement(Row, {
146
+ gutter: [16, 16]
147
+ }, formItems)) : /*#__PURE__*/React.createElement(Row, {
148
+ gutter: 16
149
+ }, formItems);
150
+ };
151
+
152
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
153
+ // @ts-ignore
154
+ export default /*#__PURE__*/forwardRef(DynamicForm);
@@ -0,0 +1,32 @@
1
+ .title {
2
+ font-weight: 500;
3
+ font-size: 18px;
4
+ color: #142A51;
5
+ line-height: 25px;
6
+ text-align: left;
7
+ font-style: normal;
8
+ }
9
+
10
+ .step_text {
11
+ font-weight: 400;
12
+ font-size: 14px;
13
+ color: #142A51;
14
+ line-height: 20px;
15
+ text-align: left;
16
+ font-style: normal;
17
+ margin-bottom: 12px;
18
+ }
19
+
20
+ .step_desc {
21
+ font-weight: 400;
22
+ font-size: 14px;
23
+ color: #5E626C;
24
+ line-height: 20px;
25
+ text-align: left;
26
+ font-style: normal;
27
+ margin-top: 24px;
28
+ }
29
+
30
+ .button_bottom {
31
+ margin-bottom: 24px;
32
+ }
@@ -0,0 +1,10 @@
1
+ import React, { FC } from "react";
2
+ interface Props {
3
+ children: React.ReactNode;
4
+ downloadFile: string;
5
+ onOk: (data: any) => void;
6
+ downloadIcon: React.ReactNode;
7
+ uploadIcon: React.ReactNode;
8
+ }
9
+ declare const ExcelImport: FC<Props>;
10
+ export default ExcelImport;
@@ -0,0 +1,76 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import React, { useState } from "react";
8
+ import ModalWrapper from "../components/modal";
9
+ import { Button, Upload, message } from "antd";
10
+ // @ts-ignore
11
+ import styles from "./excel-import.module.less";
12
+ var ExcelImport = function ExcelImport(_ref) {
13
+ var children = _ref.children,
14
+ downloadFile = _ref.downloadFile,
15
+ onOk = _ref.onOk,
16
+ downloadIcon = _ref.downloadIcon,
17
+ uploadIcon = _ref.uploadIcon;
18
+ var _useState = useState([]),
19
+ _useState2 = _slicedToArray(_useState, 2),
20
+ fileList = _useState2[0],
21
+ setFileList = _useState2[1];
22
+ var onOpen = function onOpen() {
23
+ setFileList([]);
24
+ };
25
+ var onSuccess = function onSuccess() {
26
+ return new Promise(function (resolve, reject) {
27
+ if (!fileList.length) {
28
+ message.error("请选择文件");
29
+ reject(new Error("请选择文件"));
30
+ } else {
31
+ onOk === null || onOk === void 0 || onOk(fileList);
32
+ resolve();
33
+ }
34
+ });
35
+ };
36
+ return /*#__PURE__*/React.createElement(ModalWrapper, {
37
+ title: /*#__PURE__*/React.createElement("div", {
38
+ className: styles['title']
39
+ }, "Excel\u5BFC\u5165"),
40
+ onOpen: onOpen,
41
+ onSuccess: onSuccess,
42
+ content: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
43
+ className: styles['step_text']
44
+ }, "1\u3001\u8BF7\u6309\u7167\u6A21\u677F\u683C\u5F0F\u51C6\u5907\u9700\u8981\u5BFC\u5165\u7684\u6570\u636E\uFF0C\u6700\u591A\u652F\u6301200\u884C"), /*#__PURE__*/React.createElement(Button, {
45
+ type: 'primary',
46
+ icon: downloadIcon,
47
+ className: styles['button_bottom'],
48
+ onClick: function onClick() {
49
+ return window.open(downloadFile);
50
+ }
51
+ }, "\u4E0B\u8F7D\u5BFC\u5165\u6570\u636E"), /*#__PURE__*/React.createElement("div", {
52
+ className: styles['step_text']
53
+ }, "2\u3001\u9009\u62E9\u9700\u8981\u5BFC\u5165\u7684\u6587\u4EF6"), /*#__PURE__*/React.createElement(Upload, {
54
+ accept: '.xls,.xlsx',
55
+ maxCount: 1,
56
+ fileList: fileList,
57
+ showUploadList: true,
58
+ beforeUpload: function beforeUpload(file, fileList) {
59
+ if (file.size / 1024 / 1024 > 10) {
60
+ message.error("单个文件不能超过10MB");
61
+ } else {
62
+ setFileList(fileList);
63
+ }
64
+ return false;
65
+ },
66
+ onRemove: function onRemove() {
67
+ setFileList([]);
68
+ }
69
+ }, /*#__PURE__*/React.createElement(Button, {
70
+ icon: uploadIcon
71
+ }, "\u4E0A\u4F20\u6587\u4EF6")), /*#__PURE__*/React.createElement("div", {
72
+ className: styles['step_desc']
73
+ }, "\u652F\u6301\u6269\u5C55\u540D\uFF1Axls\u3001xlsx\uFF0C\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC710MB"))
74
+ }, children);
75
+ };
76
+ export default ExcelImport;
@@ -0,0 +1,12 @@
1
+ import React, { FC } from "react";
2
+ interface FormItemProps {
3
+ label: string;
4
+ required?: boolean;
5
+ rightContent?: React.ReactNode;
6
+ leftContent?: React.ReactNode;
7
+ bottomContent?: React.ReactNode;
8
+ children: React.ReactElement;
9
+ onChange?: (value: any) => void;
10
+ }
11
+ declare const FormItem: FC<FormItemProps>;
12
+ export default FormItem;
@@ -0,0 +1,34 @@
1
+ import React, { cloneElement } from "react";
2
+ import styles from "./index.module.less";
3
+ var FormItem = function FormItem(_ref) {
4
+ var label = _ref.label,
5
+ _ref$required = _ref.required,
6
+ required = _ref$required === void 0 ? false : _ref$required,
7
+ rightContent = _ref.rightContent,
8
+ children = _ref.children,
9
+ _onChange = _ref.onChange,
10
+ leftContent = _ref.leftContent,
11
+ bottomContent = _ref.bottomContent;
12
+ var childWithProps = /*#__PURE__*/cloneElement(children, {
13
+ onChange: function onChange(e) {
14
+ if (_onChange) {
15
+ _onChange(e);
16
+ }
17
+ if (children.props.onChange) {
18
+ children.props.onChange(e);
19
+ }
20
+ }
21
+ });
22
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
23
+ className: styles.form_item_wrap
24
+ }, /*#__PURE__*/React.createElement("div", {
25
+ className: styles.form_item_label
26
+ }, required && /*#__PURE__*/React.createElement("div", {
27
+ className: styles.required_asterisk
28
+ }, "*"), /*#__PURE__*/React.createElement("div", {
29
+ className: styles.label_text
30
+ }, label), leftContent), /*#__PURE__*/React.createElement("div", {
31
+ className: styles.form_item_content
32
+ }, rightContent)), childWithProps, bottomContent && /*#__PURE__*/React.createElement("div", null, bottomContent));
33
+ };
34
+ export default FormItem;
@@ -0,0 +1,45 @@
1
+ .form_item_wrap {
2
+ display: flex;
3
+ align-items: center;
4
+ margin-bottom: 8px;
5
+ justify-content: space-between;
6
+ width: 100%;
7
+ }
8
+
9
+ .form_item_label {
10
+ display: flex;
11
+ align-items: center;
12
+ margin-right: 16px;
13
+ font-family: PingFangSC, PingFang SC;
14
+ font-weight: 400;
15
+ font-size: 14px;
16
+ color: #FA4441;
17
+ line-height: 20px;
18
+ text-align: left;
19
+ font-style: normal;
20
+ }
21
+
22
+ .required_asterisk {
23
+ color: red;
24
+ margin-right: 4px;
25
+ font-size: 14px;
26
+ display: inline-block;
27
+ vertical-align: middle;
28
+ }
29
+
30
+
31
+ .label_text {
32
+ font-size: 14px;
33
+ color: #333;
34
+ margin-right: 8px;
35
+ }
36
+
37
+ .form_item_content {
38
+ font-family: PingFangSC, PingFang SC;
39
+ font-weight: 400;
40
+ font-size: 12px;
41
+ color: #9EA7B5;
42
+ line-height: 17px;
43
+ text-align: center;
44
+ font-style: normal;
45
+ }
@@ -0,0 +1,22 @@
1
+ export { default as CardScroll } from './card-scroll';
2
+ export { default as ExcelImport } from './excel-import';
3
+ export { default as LinkFilter } from './link-filter';
4
+ export { default as ModalWrapper } from './modal-wrapper';
5
+ export { default as ReleaseComponent } from "./release-manage";
6
+ export { default as ReleaseVideoCard } from "./release-video-card";
7
+ export { default as Layout } from "./layout";
8
+ export { default as MediaPlay } from "./media-play";
9
+ export { default as TextEllipsis } from "./text-ellipsis";
10
+ export { default as DynamicForm } from "./dynamic-form";
11
+ export { default as DrawerTask } from "./drawer-task";
12
+ export { default as StatusTag } from "./publish-status";
13
+ export { default as AccountComponent } from "./publish-account";
14
+ export { default as AccountSelectList } from "./account-select";
15
+ export { default as LabelSelect } from "./label-select";
16
+ export { default as BatchLabel } from "./batch-label";
17
+ export { default as VideoList } from "./video-list";
18
+ export { default as FormItem } from "./form-item";
19
+ export { default as SoundWave } from "./sound-wave";
20
+ export { default as AiEmpty } from "./ai-empty";
21
+ export { default as CoverModal } from './cover-modal';
22
+ export { mapToMockData } from "./utils";