@titaui/pc 1.12.6 → 1.12.7-beta.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 (191) hide show
  1. package/lib/components/attachments-preview/index.css +11 -0
  2. package/lib/components/attachments-preview/index.js +112 -0
  3. package/lib/components/auto-save/img/failed.svg +17 -0
  4. package/lib/components/auto-save/img/success.svg +16 -0
  5. package/lib/components/auto-save/index.css +39 -0
  6. package/lib/components/auto-save/index.js +78 -0
  7. package/lib/components/auto-save/interface.js +5 -0
  8. package/lib/components/dialog-upload/img/doc.svg +1 -0
  9. package/lib/components/dialog-upload/img/other.svg +1 -0
  10. package/lib/components/dialog-upload/img/pdf.svg +1 -0
  11. package/lib/components/dialog-upload/img/ppt.svg +1 -0
  12. package/lib/components/dialog-upload/img/radio.svg +1 -0
  13. package/lib/components/dialog-upload/img/video.svg +1 -0
  14. package/lib/components/dialog-upload/img/xls.svg +1 -0
  15. package/lib/components/dialog-upload/index.css +77 -0
  16. package/lib/components/dialog-upload/index.js +330 -0
  17. package/lib/components/dialog-upload/type.js +35 -0
  18. package/lib/components/dialog-upload/uploaded-preview.css +77 -0
  19. package/lib/components/dialog-upload/uploaded-preview.js +132 -0
  20. package/lib/components/dialog-upload/util.js +131 -0
  21. package/lib/components/dynamic/dynamic-item/components/comments-dialog/encourage.js +119 -0
  22. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/APP-shoucang-m.png +0 -0
  23. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/ascore.png +0 -0
  24. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curEfforts.png +0 -0
  25. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGood.png +0 -0
  26. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/curGreat.png +0 -0
  27. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/efforts.png +0 -0
  28. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/good.png +0 -0
  29. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/great.png +0 -0
  30. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/halfscore.png +0 -0
  31. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/loading.gif +0 -0
  32. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/score.png +0 -0
  33. package/lib/components/dynamic/dynamic-item/components/comments-dialog/img/top.svg +14 -0
  34. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.css +68 -0
  35. package/lib/components/dynamic/dynamic-item/components/comments-dialog/index.js +116 -0
  36. package/lib/components/dynamic/dynamic-item/components/comments-dialog/rate.js +143 -0
  37. package/lib/components/dynamic/dynamic-item/components/header/img/evalute.png +0 -0
  38. package/lib/components/dynamic/dynamic-item/components/header/img/fighting.png +0 -0
  39. package/lib/components/dynamic/dynamic-item/components/header/img/happy.png +0 -0
  40. package/lib/components/dynamic/dynamic-item/components/header/img/long-story.png +0 -0
  41. package/lib/components/dynamic/dynamic-item/components/header/img/pressure.png +0 -0
  42. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.css +170 -0
  43. package/lib/components/dynamic/dynamic-item/components/okr-progress/index.js +120 -0
  44. package/lib/components/dynamic/dynamic-item/components/okr-progress/interface.js +5 -0
  45. package/lib/components/dynamic/dynamic-item/components/okr-progress/request-api.js +10 -0
  46. package/lib/components/dynamic/dynamic-item/components/okr-progress/utils.js +10 -0
  47. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.css +8 -0
  48. package/lib/components/dynamic/dynamic-item/components/progress/components/kr-progress/index.js +26 -0
  49. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.css +8 -0
  50. package/lib/components/dynamic/dynamic-item/components/progress/components/o-progress/index.js +26 -0
  51. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.css +197 -0
  52. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/index.js +220 -0
  53. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/request-api.js +20 -0
  54. package/lib/components/dynamic/dynamic-item/components/progress/components/okr-progress/util.js +134 -0
  55. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.css +10 -0
  56. package/lib/components/dynamic/dynamic-item/components/progress/components/task-progress/index.js +60 -0
  57. package/lib/components/dynamic/dynamic-item/components/progress/index.css +25 -0
  58. package/lib/components/dynamic/dynamic-item/components/progress/index.js +71 -0
  59. package/lib/components/dynamic/dynamic-item/components/progress/interface.js +5 -0
  60. package/lib/components/dynamic/dynamic-item/components/schedule/index.css +31 -0
  61. package/lib/components/dynamic/dynamic-item/components/schedule/index.js +59 -0
  62. package/lib/components/dynamic/dynamic-item/components/schedule/interface.js +5 -0
  63. package/lib/components/dynamic/dynamic-item/components/summary-header/img/evalute.png +0 -0
  64. package/lib/components/dynamic/dynamic-item/components/summary-header/img/fighting.png +0 -0
  65. package/lib/components/dynamic/dynamic-item/components/summary-header/img/happy.png +0 -0
  66. package/lib/components/dynamic/dynamic-item/components/summary-header/img/long-story.png +0 -0
  67. package/lib/components/dynamic/dynamic-item/components/summary-header/img/pressure.png +0 -0
  68. package/lib/components/dynamic/dynamic-item/components/summary-header/index.css +136 -0
  69. package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +348 -0
  70. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.css +24 -0
  71. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/index.js +52 -0
  72. package/lib/components/dynamic/dynamic-item/components/table-row-o-project/interface.js +5 -0
  73. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.css +50 -0
  74. package/lib/components/dynamic/dynamic-item/components/table-row-okr/index.js +65 -0
  75. package/lib/components/dynamic/dynamic-item/components/table-row-okr/interface.js +5 -0
  76. package/lib/components/dynamic/dynamic-item/components/task-progress/index.css +201 -0
  77. package/lib/components/dynamic/dynamic-item/components/task-progress/index.js +95 -0
  78. package/lib/components/dynamic/dynamic-item/components/task-progress/interface.js +5 -0
  79. package/lib/components/dynamic/dynamic-item/components/task-progress/utils.js +10 -0
  80. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-big.png +0 -0
  81. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/come-on-small.png +0 -0
  82. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/evaluate-big.png +0 -0
  83. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-big.png +0 -0
  84. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/nice-small.png +0 -0
  85. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-big.png +0 -0
  86. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/img/very-good-small.png +0 -0
  87. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.css +32 -0
  88. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/evalute/index.js +43 -0
  89. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.css +37 -0
  90. package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +79 -0
  91. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/evalute.png +0 -0
  92. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/fighting.png +0 -0
  93. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/happy.png +0 -0
  94. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/long-story.png +0 -0
  95. package/lib/components/dynamic/dynamic-item/dynamic-new-report/img/pressure.png +0 -0
  96. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.css +155 -0
  97. package/lib/components/dynamic/dynamic-item/dynamic-new-report/index.js +155 -0
  98. package/lib/components/dynamic/dynamic-item/index.js +4 -3
  99. package/lib/components/import-modal/helper.js +179 -0
  100. package/lib/components/import-modal/image/loading.gif +0 -0
  101. package/lib/components/import-modal/import-okr-modal/index.css +18 -0
  102. package/lib/components/import-modal/import-okr-modal/index.js +132 -0
  103. package/lib/components/import-modal/import-task-modal/index.css +18 -0
  104. package/lib/components/import-modal/import-task-modal/index.js +240 -0
  105. package/lib/components/import-modal/import-task-modal/search-form.js +135 -0
  106. package/lib/components/import-modal/index.css +30 -0
  107. package/lib/components/import-modal/index.js +20 -0
  108. package/lib/components/import-modal/radio.js +62 -0
  109. package/lib/components/import-modal/request-api.js +204 -0
  110. package/lib/components/import-modal/search/category-select.js +74 -0
  111. package/lib/components/import-modal/search/okr-classify-select.js +74 -0
  112. package/lib/components/import-modal/search/okr-status-select.js +74 -0
  113. package/lib/components/import-modal/search/okr-type-select.js +87 -0
  114. package/lib/components/import-modal/search/principal.js +135 -0
  115. package/lib/components/import-modal/search/relation.js +77 -0
  116. package/lib/components/import-modal/search/search-dropdown/index.css +50 -0
  117. package/lib/components/import-modal/search/search-dropdown/index.js +32 -0
  118. package/lib/components/import-modal/search/task-relation.js +83 -0
  119. package/lib/components/import-modal/search/task-status-select.js +87 -0
  120. package/lib/components/import-modal/search/work-relation.js +83 -0
  121. package/lib/components/import-modal/search/work-status-select.js +74 -0
  122. package/lib/components/import-modal/tree/okr-tree/index.css +61 -0
  123. package/lib/components/import-modal/tree/okr-tree/index.js +265 -0
  124. package/lib/components/import-modal/tree/okr-tree/search-form.js +161 -0
  125. package/lib/components/import-modal/tree/task-work-tree/index.css +123 -0
  126. package/lib/components/import-modal/tree/task-work-tree/index.js +187 -0
  127. package/lib/components/import-modal/tree-node/index.css +0 -0
  128. package/lib/components/import-modal/tree-node/index.js +51 -0
  129. package/lib/components/import-modal/tree-node/kr-node/index.css +58 -0
  130. package/lib/components/import-modal/tree-node/kr-node/index.js +108 -0
  131. package/lib/components/import-modal/tree-node/milestone-node/index.css +61 -0
  132. package/lib/components/import-modal/tree-node/milestone-node/index.js +118 -0
  133. package/lib/components/import-modal/tree-node/o-node/index.css +46 -0
  134. package/lib/components/import-modal/tree-node/o-node/index.js +138 -0
  135. package/lib/components/import-modal/tree-node/work-node/index.css +51 -0
  136. package/lib/components/import-modal/tree-node/work-node/index.js +108 -0
  137. package/lib/components/menus/components/menu-tree/images/summary-menu/caidan-enjoy.svg +14 -0
  138. package/lib/components/menus/components/menu-tree/images/summary-menu/my-setup.svg +18 -0
  139. package/lib/components/menus/components/menu-tree/images/summary-menu/my-zongjie.svg +15 -0
  140. package/lib/components/menus/components/menu-tree/images/summary-menu/zongjie-s.svg +15 -0
  141. package/lib/components/menus/components/menu-tree/tree-node/index.css +120 -0
  142. package/lib/components/menus/components/menu-tree/tree-node/index.js +22 -2
  143. package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +74 -0
  144. package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +74 -0
  145. package/lib/components/menus/export-modules/summary-menus/depart-menus/helper.js +56 -0
  146. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.css +32 -0
  147. package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +201 -0
  148. package/lib/components/menus/export-modules/summary-menus/index.css +9 -0
  149. package/lib/components/menus/export-modules/summary-menus/index.js +134 -0
  150. package/lib/components/menus/export-modules/summary-menus/menu-highlight.js +76 -0
  151. package/lib/components/menus/export-modules/summary-menus/menus.js +199 -0
  152. package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +199 -0
  153. package/lib/components/menus/i18n.js +8 -0
  154. package/lib/components/menus/index.js +6 -0
  155. package/lib/components/nav-top/components/menu/index.js +1 -1
  156. package/lib/components/new-confidence/constant.js +53 -0
  157. package/lib/components/new-confidence/img/1.svg +40 -0
  158. package/lib/components/new-confidence/img/10.svg +33 -0
  159. package/lib/components/new-confidence/img/2.svg +40 -0
  160. package/lib/components/new-confidence/img/3.svg +40 -0
  161. package/lib/components/new-confidence/img/4.svg +40 -0
  162. package/lib/components/new-confidence/img/5.svg +40 -0
  163. package/lib/components/new-confidence/img/6.svg +40 -0
  164. package/lib/components/new-confidence/img/7.svg +40 -0
  165. package/lib/components/new-confidence/img/8.svg +40 -0
  166. package/lib/components/new-confidence/img/9.svg +40 -0
  167. package/lib/components/new-confidence/index.css +62 -0
  168. package/lib/components/new-confidence/index.js +115 -0
  169. package/lib/components/new-confidence/interface.js +5 -0
  170. package/lib/components/okr-detail/components/o-progress-update/index.js +8 -4
  171. package/lib/components/okr-progress/components/o-progress-update/index.js +4 -2
  172. package/lib/components/picker/components/panels/week-panel/index.css +42 -0
  173. package/lib/components/picker/components/panels/week-panel/index.js +49 -0
  174. package/lib/components/picker/components/panels/week-panel/week-body.js +127 -0
  175. package/lib/components/picker/components/panels/week-panel/week-head.js +80 -0
  176. package/lib/components/picker/components/picker-trigger/index.js +3 -2
  177. package/lib/components/picker/picker-panels.js +45 -4
  178. package/lib/components/picker/picker.js +7 -3
  179. package/lib/components/rate/index.js +52 -0
  180. package/lib/components/rich-editor-at/components/index.css +66 -0
  181. package/lib/components/rich-editor-at/components/index.js +188 -0
  182. package/lib/components/rich-editor-at/index.css +40 -0
  183. package/lib/components/rich-editor-at/index.js +108 -0
  184. package/lib/components/rich-editor-upload/index.css +11 -0
  185. package/lib/components/rich-editor-upload/index.js +84 -0
  186. package/lib/components/search-input/index.js +5 -0
  187. package/lib/components/textarea/index.js +7 -5
  188. package/lib/index.js +40 -0
  189. package/lib/utils/bs-global.js +1 -1
  190. package/lib/utils/helpers.js +8 -0
  191. package/package.json +2 -1
@@ -0,0 +1,11 @@
1
+ .attachments-preview {
2
+ display: grid;
3
+ grid-template-columns: 1fr 1fr;
4
+ column-gap: 10px;
5
+ row-gap: 10px;
6
+ }
7
+
8
+ .attachments-preview-item {
9
+ margin: 5px 10px 5px 0;
10
+ width: 344px;
11
+ }
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _imgViewer = _interopRequireDefault(require("../img-viewer"));
13
+
14
+ var _dialogUpload = _interopRequireDefault(require("../dialog-upload"));
15
+
16
+ var _util = require("../dialog-upload/util");
17
+
18
+ var _uploadedPreview = _interopRequireDefault(require("../dialog-upload/uploaded-preview"));
19
+
20
+ require("./index.css");
21
+
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
+
24
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
+
26
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
+
28
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
+
30
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31
+
32
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
+
34
+ var prefix = 'attachments-preview';
35
+
36
+ var AttachmentsPreview = function AttachmentsPreview(props) {
37
+ var attachments = props.attachments,
38
+ _props$enableDelete = props.enableDelete,
39
+ enableDelete = _props$enableDelete === void 0 ? true : _props$enableDelete,
40
+ onChange = props.onChange,
41
+ onUploadFile = props.onUploadFile,
42
+ _props$enableUploadFi = props.enableUploadFile,
43
+ enableUploadFile = _props$enableUploadFi === void 0 ? true : _props$enableUploadFi;
44
+ var previewRef = (0, _react.useRef)();
45
+
46
+ var onSubmithandler = function onSubmithandler(index, option) {
47
+ switch (option) {
48
+ case 'cancel':
49
+ case 'delete':
50
+ {
51
+ onChange(attachments.filter(function (f) {
52
+ return f.Id != attachments[index].Id;
53
+ }));
54
+ break;
55
+ }
56
+
57
+ case 'preview':
58
+ {
59
+ if ((0, _util.isImg)(attachments[index].MediaType)) {
60
+ var i = attachments.filter(function (f) {
61
+ return (0, _util.isImg)(f.MediaType);
62
+ }).findIndex(function (f) {
63
+ return f.Id == attachments[index].Id;
64
+ });
65
+ previewRef.current.show(i);
66
+ } else {
67
+ window.open(attachments[index].ClientUrl);
68
+ }
69
+
70
+ break;
71
+ }
72
+
73
+ case 'download':
74
+ {
75
+ window.open(attachments[index].DownloadUrl);
76
+ break;
77
+ }
78
+ }
79
+ };
80
+
81
+ if (!attachments.length && !enableUploadFile) return null;
82
+ return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_imgViewer["default"], {
83
+ data: attachments.filter(function (f) {
84
+ return (0, _util.isImg)(f.MediaType);
85
+ }).map(function (f) {
86
+ return _objectSpread(_objectSpread({}, f), {}, {
87
+ previewUrl: f.ClientUrl
88
+ });
89
+ }),
90
+ ref: previewRef,
91
+ showDownload: true
92
+ }), /*#__PURE__*/_react["default"].createElement("div", {
93
+ className: prefix
94
+ }, attachments.map(function (item, index) {
95
+ return /*#__PURE__*/_react["default"].createElement(_uploadedPreview["default"], {
96
+ className: "".concat(prefix, "__item"),
97
+ key: index,
98
+ index: index,
99
+ uploadResultItem: _objectSpread(_objectSpread({}, item), {}, {
100
+ uploadStatus: 3,
101
+ percentComplete: 100,
102
+ Deleteable: enableDelete
103
+ }),
104
+ onSubmit: onSubmithandler
105
+ });
106
+ }), enableUploadFile && /*#__PURE__*/_react["default"].createElement(_dialogUpload["default"], {
107
+ onSubmit: onUploadFile
108
+ })));
109
+ };
110
+
111
+ var _default = AttachmentsPreview;
112
+ exports["default"] = _default;
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="3、写总结" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="2、写总结-默认" transform="translate(-1892.000000, -545.000000)" fill="#FFFFFF">
6
+ <g id="编组-8" transform="translate(1855.000000, 540.000000)">
7
+ <g id="编组-25" transform="translate(36.000000, 1.000000)">
8
+ <g id="编组-2" transform="translate(0.000000, 3.000000)">
9
+ <g id="canceled" transform="translate(1.500000, 1.500000)">
10
+ <path d="M2.10266504,1.57233496 L4.4885,3.9585 L6.87563582,1.57233496 C7.00116148,1.44680929 7.19353713,1.42887705 7.33816279,1.51853824 L7.4059659,1.57233496 C7.55241251,1.71878157 7.55241251,1.95621843 7.4059659,2.10266504 L7.4059659,2.10266504 L5.0195,4.4885 L7.4059659,6.87563582 C7.55241251,7.02208243 7.55241251,7.25951929 7.4059659,7.4059659 C7.25951929,7.55241251 7.02208243,7.55241251 6.87563582,7.4059659 L4.4885,5.0195 L2.10266504,7.4059659 C1.97713938,7.53149157 1.78476373,7.5494238 1.64013807,7.45976262 L1.57233496,7.4059659 C1.42588835,7.25951929 1.42588835,7.02208243 1.57233496,6.87563582 L1.57233496,6.87563582 L3.9585,4.4885 L1.57233496,2.10266504 C1.42588835,1.95621843 1.42588835,1.71878157 1.57233496,1.57233496 C1.71878157,1.42588835 1.95621843,1.42588835 2.10266504,1.57233496 Z" id="形状结合"></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="3、写总结" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="4、写总结-填写内容后" transform="translate(-57.000000, -23.000000)">
6
+ <g id="编组-25" transform="translate(56.000000, 19.000000)">
7
+ <g id="编组-2" transform="translate(0.000000, 3.000000)">
8
+ <g id="finished" transform="translate(1.500000, 1.006729)">
9
+ <rect id="矩形" x="0" y="0.493270771" width="9" height="9"></rect>
10
+ <path d="M1.6125,1.65577077 C1.8160965,1.65577077 1.98179744,1.81802093 1.98735593,2.02027434 L1.9875,2.03077077 L1.9875,4.82720422 C1.9875,5.11323548 2.21624071,5.34584148 2.50077581,5.35207589 L2.5125,5.35220422 L7.3875,5.35220422 C7.59460678,5.35220422 7.7625,5.52009744 7.7625,5.72720422 C7.7625,5.93080072 7.60024985,6.09650166 7.39799643,6.10206015 L7.3875,6.10220422 L2.5125,6.10220422 C1.81537857,6.10220422 1.24893007,5.54272693 1.23767081,4.84828868 L1.2375,4.82720422 L1.2375,2.03077077 C1.2375,1.82366399 1.40539322,1.65577077 1.6125,1.65577077 Z" id="路径" fill="#FFFFFF" fill-rule="nonzero" transform="translate(4.500000, 3.878987) rotate(-45.000000) translate(-4.500000, -3.878987) "></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,39 @@
1
+ .titaui-auto-save {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ }
5
+
6
+ .titaui-auto-save__icon-wrapper {
7
+ display: inline-flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+ width: 12px;
11
+ height: 12px;
12
+ min-width: 12px;
13
+ border-radius: 50%;
14
+ color: #ffffff;
15
+ }
16
+
17
+ .titaui-auto-save__icon-wrapper--success {
18
+ background: #5ad8a6;
19
+ }
20
+
21
+ .titaui-auto-save__icon-wrapper--failed {
22
+ background: #F05E5E;
23
+ }
24
+
25
+ .titaui-auto-save__icon {
26
+ width: 10px;
27
+ height: 10px;
28
+ }
29
+
30
+ .titaui-auto-save__text {
31
+ margin-left: 4px;
32
+ font-size: 12px;
33
+ color: #a4acb9;
34
+ line-height: 18px;
35
+ }
36
+
37
+ .titaui-auto-save__text--loading {
38
+ margin-left: 0;
39
+ }
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ var _getLocale = require("../../utils/getLocale");
15
+
16
+ var _success = _interopRequireDefault(require("./img/success.svg"));
17
+
18
+ var _failed = _interopRequireDefault(require("./img/failed.svg"));
19
+
20
+ var _toast = _interopRequireDefault(require("../toast"));
21
+
22
+ require("./index.css");
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
27
+
28
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
+
30
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
+
32
+ var prefix = 'titaui-auto-save';
33
+
34
+ var AutoSave = function AutoSave(_ref) {
35
+ var _classNames;
36
+
37
+ var _ref$isSuccess = _ref.isSuccess,
38
+ isSuccess = _ref$isSuccess === void 0 ? true : _ref$isSuccess,
39
+ _ref$loading = _ref.loading,
40
+ loading = _ref$loading === void 0 ? false : _ref$loading;
41
+ var renderSaveIcon = (0, _react.useMemo)(function () {
42
+ var imgSrc = _success["default"];
43
+
44
+ if (!isSuccess) {
45
+ imgSrc = _failed["default"];
46
+ }
47
+
48
+ return /*#__PURE__*/_react["default"].createElement("img", {
49
+ className: "".concat(prefix, "__icon"),
50
+ src: imgSrc
51
+ });
52
+ }, [isSuccess, loading]);
53
+ var renderText = (0, _react.useMemo)(function () {
54
+ if (loading) {
55
+ return "".concat((0, _getLocale.getLocale)('Rtx_Saving'), "...");
56
+ } else if (isSuccess) {
57
+ return (0, _getLocale.getLocale)('Rep_NewS_SaveDraft');
58
+ } else {
59
+ _toast["default"].Error((0, _getLocale.getLocale)('Mod_Netexcfailed'));
60
+
61
+ return (0, _getLocale.getLocale)('Mod_SaveFailure');
62
+ }
63
+ }, [loading, isSuccess]);
64
+ return /*#__PURE__*/_react["default"].createElement("span", {
65
+ className: prefix
66
+ }, !loading && /*#__PURE__*/_react["default"].createElement("span", {
67
+ className: (0, _classnames["default"])("".concat(prefix, "__icon-wrapper"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "__icon-wrapper--success"), isSuccess), _defineProperty(_classNames, "".concat(prefix, "__icon-wrapper--failed"), !isSuccess), _classNames))
68
+ }, renderSaveIcon), /*#__PURE__*/_react["default"].createElement("span", {
69
+ className: (0, _classnames["default"])("".concat(prefix, "__text"), _defineProperty({}, "".concat(prefix, "__text--loading"), loading))
70
+ }, renderText));
71
+ };
72
+
73
+ AutoSave.defaultProps = {
74
+ isSuccess: true,
75
+ loading: false
76
+ };
77
+ var _default = AutoSave;
78
+ exports["default"] = _default;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#2879FF" offset="0%"/><stop stop-color="#005BDC" offset="100%"/></linearGradient><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="b"><stop stop-color="#88BCFF" offset="0%"/><stop stop-color="#2879FF" offset="100%"/></linearGradient><filter x="-31.7%" y="-38%" width="163.3%" height="176%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".8" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".4" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.105882353 0 0 0 0 0.435294118 0 0 0 0 0.952941176 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(6.533 8.773)"><path d="M.677 4.775h9.846a.677.677 0 1 1 0 1.355H.677a.677.677 0 1 1 0-1.355z" fill="#D2E3FF"/><path d="M.677 1.162h4.246a.677.677 0 0 1 0 1.355H.677a.677.677 0 0 1 0-1.355z" fill="#FFF"/><path d="M.677 8.351h9.846a.677.677 0 1 1 0 1.355H.677a.677.677 0 0 1 0-1.355z" fill="#A8C9FF"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#26D8F0" offset="0%"/><stop stop-color="#00A7BD" offset="100%"/></linearGradient><linearGradient x1="50%" y1="99.348%" x2="50%" y2="0%" id="b"><stop stop-color="#00BDD6" offset="0%"/><stop stop-color="#9EF4FF" offset="100%"/></linearGradient><filter x="-31.7%" y="-35.3%" width="163.3%" height="170.6%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".8" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".4" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0.741176471 0 0 0 0 0.839215686 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 7.677h15.555c.86 0 1.556.669 1.556 1.493v14.176c0 .825-.696 1.493-1.556 1.493H8.09c-.86 0-1.556-.668-1.556-1.493V9.17c0-.824.697-1.493 1.556-1.493z" fill="url(#a)" fill-rule="nonzero" transform="translate(0 .452)"/><path d="M20.291 2.258c.84 0 1.521.674 1.521 1.505v19.57c0 .832.681 1.506 1.521 1.506H4.321c-.84 0-1.521-.674-1.521-1.506V3.763c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero" transform="translate(0 .452)"/><g filter="url(#c)" transform="translate(6.3 8.6)" fill-rule="nonzero"><path d="M8.846 1.02H3.395l1.267 2.198A2 2 0 0 0 6.38 4.22l4.126.031V2.664c0-.916-.753-1.643-1.66-1.643zm0 1.175c.268 0 .486.21.486.47v.399l-3.416-.02-.49-.85h3.42z" fill="#C7F8FF"/><path d="M3.298 0H1.403C.628 0 0 .628 0 1.403v7.964c0 .775.628 1.403 1.403 1.403h9.193a1.403 1.403 0 0 0 1.403-1.403L12 4.545l-.006-.126a1.4 1.4 0 0 0-1.373-1.27l-4.678-.037L4.615.807C4.331.337 3.856 0 3.298 0zM1.403 1.174h1.895c.094 0 .222.09.306.23l1.49 2.585c.104.18.295.291.503.293l5.01.04c.12.002.219.102.22.225l-.002 4.82a.23.23 0 0 1-.229.23H1.403a.23.23 0 0 1-.23-.23V1.403a.23.23 0 0 1 .23-.23z" fill="#FFF"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#FD4F54" offset="0%"/><stop stop-color="#CD1116" offset="100%"/></linearGradient><linearGradient x1="50%" y1="100%" x2="50%" y2="0%" id="b"><stop stop-color="#EC3C3C" offset="0%"/><stop stop-color="#FF8383" offset="100%"/></linearGradient><linearGradient x1="47.638%" y1="10.393%" x2="52.642%" y2="90.65%" id="d"><stop stop-color="#FFF" offset="0%"/><stop stop-color="#F6AFAF" offset="45.302%"/><stop stop-color="#FFF" offset="100%"/></linearGradient><filter x="-15.6%" y="-15.6%" width="131.2%" height="131.2%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".25" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.878431373 0 0 0 0 0.125490196 0 0 0 0 0.125490196 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(4 6.032)" fill-rule="nonzero"><path d="m11.249.837.176.048.189.062c.729.268 1.145.751 1.297 1.338.31 1.258-.573 2.82-2.161 4.553l-.334.355.101.388c.175.649.362 1.257.564 1.823l.155.417.131.33.215.099c1.977.926 3.282 1.856 3.643 2.845l.045.141.032.143c.103.492-.05.963-.441 1.359-.329.282-.684.43-1.06.43-1.233 0-2.347-1.514-3.368-3.854l-.082-.188-.421-.174a24.406 24.406 0 0 0-1.997-.705l-.49-.143L7.043 10l-.206.136c-1.307.845-2.517 1.418-3.54 1.549l-.217.02-.21.008c-.924 0-1.603-.48-1.851-1.311-.172-.587-.078-1.098.184-1.43.4-.557 1.189-.824 2.353-.824.815 0 1.813.13 2.908.379l.322.076.345-.251c.414-.31.815-.636 1.195-.97l.374-.338.28-.267-.04-.192c-.412-2.088-.448-3.81.134-4.852l.092-.151.096-.135c.465-.59 1.17-.801 1.986-.609zm.968 11.202.039.07c.628 1.126 1.235 1.783 1.545 1.783.033 0 .077-.018.145-.075.085-.085.094-.119.08-.18-.073-.369-.656-.928-1.695-1.534l-.114-.064zm-8.66-2.594c-.813 0-1.194.138-1.303.27l-.024.046c-.024.053-.027.134.016.289.065.26.22.386.625.386.511 0 1.225-.234 2.084-.68l.27-.146-.089-.016a10.444 10.444 0 0 0-1.345-.145l-.234-.004zM9.333 8.21l-.263.229-.337.283-.374.305.172.052c.36.112.723.235 1.078.364l.12.045-.067-.195a21.92 21.92 0 0 1-.205-.656l-.124-.427zm1.348-6.148a.506.506 0 0 0-.418.193c-.348.437-.439 1.523-.247 2.97l.061.414.085-.095c1.02-1.189 1.577-2.254 1.512-2.853l-.016-.095c-.031-.158-.143-.297-.471-.415l-.134-.043a.994.994 0 0 0-.372-.076z" fill="#FFF"/><path d="m10.416 7.193.101.388c.175.649.362 1.257.564 1.823l.155.417.131.33c.817 2.33 1.982 3.858 3.494 4.587-.329.282-.684.43-1.06.43-1.233 0-2.347-1.514-3.368-3.854l-.082-.188a25.48 25.48 0 0 1-.766-2.113 27.948 27.948 0 0 1-.605-2.237l-.038-.192c-.413-2.088-.449-3.81.133-4.852l.092-.151.096-.135c.465-.59 1.17-.801 1.986-.609l.176.048.189.062c.729.268 1.684 1.674-.427 1.23-1.408-.297-1.665 1.375-.77 5.016z" fill="url(#d)"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#F0A326" offset="0%"/><stop stop-color="#D68500" offset="100%"/></linearGradient><linearGradient x1="50%" y1="99.348%" x2="50%" y2="0%" id="b"><stop stop-color="#F0A326" offset="0%"/><stop stop-color="#FFDA9E" offset="100%"/></linearGradient><filter x="-47.5%" y="-34.5%" width="195%" height="169.1%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".8" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".4" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.839215686 0 0 0 0 0.521568627 0 0 0 0 0 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(8 9)"><path d="M.933 9.687V2.7a.7.7 0 1 1 1.4 0v6.987a.7.7 0 1 1-1.4 0z" fill="#FFDA9E"/><path d="M4.57 0c2.222 0 3.333.91 3.333 2.745 0 1.847-1.125 2.77-3.36 2.77H.933a.608.608 0 0 1-.56-.592.597.597 0 0 1 .656-.586l3.423.002c.706 0 1.215-.126 1.542-.38.314-.252.484-.657.484-1.214 0-.557-.17-.961-.497-1.189-.327-.253-.837-.38-1.53-.38H.934a.602.602 0 0 1-.56-.589C.373.263.645 0 .98 0L.932.003.933 0z" fill="#FFF" fill-rule="nonzero"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#F026D8" offset="0%"/><stop stop-color="#BD00A7" offset="100%"/></linearGradient><linearGradient x1="50%" y1="99.348%" x2="50%" y2=".295%" id="b"><stop stop-color="#F026D8" offset="0%"/><stop stop-color="#FF9EF4" offset="100%"/></linearGradient><filter x="-31.7%" y="-31.7%" width="163.3%" height="163.3%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".8" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".4" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.839215686 0 0 0 0 0 0 0 0 0 0.741176471 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(6 8.37)" fill-rule="nonzero"><path d="M3.285 5.04a.567.567 0 0 1-.081-1.129l3.902-.703a.568.568 0 0 1 .166 1.12l-3.902.704a.448.448 0 0 1-.085.007z" fill="#FFC7F8"/><path d="M10.926.137a.569.569 0 0 1 .197.43v8.059a.566.566 0 0 1-.032.187c-.148.82-.946 1.447-1.903 1.447-1.063 0-1.928-.772-1.928-1.72s.865-1.72 1.928-1.72c.285 0 .556.056.8.156v-5.75l.484-1.22a.57.57 0 0 1 .454.131zM9.187 7.955c-.43 0-.792.268-.792.585 0 .317.363.585.793.585.43 0 .792-.268.792-.585 0-.317-.363-.585-.793-.585z" fill="#FFF"/><path d="M3.287 10.278a.568.568 0 0 1-.568-.567V1.652c0-.281.205-.52.483-.561l7.27-1.085a.57.57 0 0 1 .65.561c-.002.165-.035.287-.1.365a.49.49 0 0 1-.27.159l-6.9 1.051v7.57a.564.564 0 0 1-.565.566z" fill="#FFF"/><path d="M1.927 7.905c1.062 0 1.927.772 1.927 1.72s-.865 1.72-1.927 1.72C.864 11.344 0 10.572 0 9.624s.864-1.72 1.927-1.72zm0 1.135c-.43 0-.793.267-.793.585 0 .317.363.585.793.585.43 0 .793-.268.793-.585 0-.318-.364-.585-.793-.585z" fill="#FFF"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#A226F0" offset="0%"/><stop stop-color="#7500BD" offset="100%"/></linearGradient><linearGradient x1="50%" y1="99.348%" x2="50%" y2="0%" id="b"><stop stop-color="#A226F0" offset="0%"/><stop stop-color="#DA9EFF" offset="100%"/></linearGradient><filter x="-31.7%" y="-31.7%" width="163.3%" height="163.3%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".8" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".4" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.458823529 0 0 0 0 0 0 0 0 0 0.741176471 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(6 8)"><path d="M6 10.6h5.3a.7.7 0 0 1 0 1.4H6v-1.4z" fill="#EAC7FF"/><circle stroke="#FFF" stroke-width="1.4" cx="6" cy="6" r="5.3"/><path d="M5.032 7.75c.842 0 2.916-.746 2.916-1.75S5.874 4.25 5.032 4.25c-.843 0-.843 3.5 0 3.5z" stroke="#FFF" stroke-width="1.2" stroke-linejoin="round"/></g></g></svg>
@@ -0,0 +1 @@
1
+ <svg width="28" height="28" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient x1="100%" y1="29.782%" x2="83.621%" y2="29.782%" id="a"><stop stop-color="#3FC87D" offset="0%"/><stop stop-color="#009B46" offset="100%"/></linearGradient><linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="b"><stop stop-color="#21E9AA" offset="0%"/><stop stop-color="#00BF77" offset="100%"/></linearGradient><filter x="-20.8%" y="-22.7%" width="141.7%" height="145.5%" filterUnits="objectBoundingBox" id="c"><feOffset dy=".5" in="SourceAlpha" result="shadowOffsetOuter1"/><feGaussianBlur stdDeviation=".25" in="shadowOffsetOuter1" result="shadowBlurOuter1"/><feColorMatrix values="0 0 0 0 0.0745098039 0 0 0 0 0.662745098 0 0 0 0 0.337254902 0 0 0 1 0" in="shadowBlurOuter1" result="shadowMatrixOuter1"/><feMerge><feMergeNode in="shadowMatrixOuter1"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><g fill="none" fill-rule="evenodd"><path d="M0 .452h28v27.097H0z"/><path d="M8.089 8.129h15.555c.86 0 1.556.668 1.556 1.492v14.177c0 .824-.696 1.492-1.556 1.492H8.09c-.86 0-1.556-.668-1.556-1.492V9.621c0-.824.697-1.492 1.556-1.492z" fill="url(#a)" fill-rule="nonzero"/><path d="M20.291 2.71c.84 0 1.521.674 1.521 1.505v19.57c0 .831.681 1.505 1.521 1.505H4.321c-.84 0-1.521-.674-1.521-1.505V4.215c0-.831.681-1.505 1.521-1.505h15.97z" fill="url(#b)" fill-rule="nonzero"/><g filter="url(#c)" transform="translate(6.067 9.032)"><path d="M10.99 8.129H1.143a.677.677 0 1 1 0-1.355h9.845a.677.677 0 0 1 0 1.355z" fill="#A1EDD3"/><path d="M2.567 9.461V.926a.7.7 0 1 1 1.4 0V9.46a.7.7 0 0 1-1.4 0z" fill="#FFF"/></g></g></svg>
@@ -0,0 +1,77 @@
1
+ .titaui-dialog-upload__content {
2
+ max-height: 442px;
3
+ min-height: 82px;
4
+ padding: 0 32px;
5
+ overflow: auto;
6
+ }
7
+
8
+ .titaui-dialog-upload__preview {
9
+ margin: 10px 0;
10
+ }
11
+
12
+ .titaui-dialog-upload__footer {
13
+ width: 100%;
14
+ height: 36px;
15
+ display: flex;
16
+ align-items: center;
17
+ }
18
+
19
+ .titaui-dialog-upload__footer .tu-icon-cus-fujian {
20
+ color: #2879ff;
21
+ display: flex;
22
+ align-items: center;
23
+ cursor: pointer;
24
+ }
25
+
26
+ .titaui-dialog-upload__footer .tu-icon-cus-fujian::before {
27
+ margin-right: 4px;
28
+ }
29
+
30
+ .titaui-dialog-upload__footer .tu-icon-cus-fujian:hover {
31
+ color: #5c8eff;
32
+ }
33
+
34
+ .titaui-dialog-upload__dialog-upload-btn.tu-icon-H5-add-s {
35
+ display: inline-flex;
36
+ align-items: center;
37
+ justify-content: center;
38
+ font-size: 24px;
39
+ color: #c0c7d4;
40
+ width: 60px;
41
+ height: 60px;
42
+ background: #ffffff;
43
+ border-radius: 8px;
44
+ border: 1px solid #e9ecf0;
45
+ cursor: pointer;
46
+ }
47
+
48
+ .titaui-dialog-upload__dialog-upload-btn.tu-icon-H5-add-s:hover {
49
+ color: #2879ff;
50
+ border: 1px solid #2879ff;
51
+ }
52
+
53
+ .rc-upload {
54
+ outline: none;
55
+ }
56
+
57
+ .dialog-upload-file-action-wrapper {
58
+ width: 20px;
59
+ height: 20px;
60
+ border: 1px solid #dfe3ea;
61
+ border-radius: 50%;
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ box-sizing: border-box;
66
+ margin-left: 10px;
67
+ color: #3f4755;
68
+ }
69
+
70
+ .dialog-upload-file-action-wrapper:hover .action-icon {
71
+ color: #2879ff;
72
+ }
73
+
74
+ .dialog-upload-file-action-wrapper .action-icon {
75
+ font-size: 16px;
76
+ transform: scale(0.8);
77
+ }