@titaui/pc 1.12.8 → 1.12.9-beta.11

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 (262) hide show
  1. package/lib/components/avatar/icon-avatar/index.js +1 -1
  2. package/lib/components/avatar/num-avatar/index.js +1 -1
  3. package/lib/components/book-demo/components/pc/components/content/index.js +1 -1
  4. package/lib/components/button/default-button/index.js +1 -1
  5. package/lib/components/button/icon-btn/index.js +1 -1
  6. package/lib/components/cascader/index.js +1 -1
  7. package/lib/components/cascader/time.js +1 -1
  8. package/lib/components/change-okr-modal/Filter.js +2 -2
  9. package/lib/components/change-okr-modal/Item.js +2 -2
  10. package/lib/components/change-okr-modal/filterTab.js +2 -2
  11. package/lib/components/change-okr-modal/index.js +2 -2
  12. package/lib/components/communication/CommunicationAttachments.js +2 -2
  13. package/lib/components/communication/ConvertUserName.js +2 -2
  14. package/lib/components/communication/index.js +8 -2
  15. package/lib/components/create-okr-modal/fields/okr-case.js +7 -5
  16. package/lib/components/create-okr-modal/index.js +29 -21
  17. package/lib/components/create-okr-modal/kr-items/krDatas.js +3 -2
  18. package/lib/components/create-okr-modal/objectType.js +2 -2
  19. package/lib/components/date-picker/BodyItem.js +3 -3
  20. package/lib/components/date-picker/CalendarBody.js +3 -3
  21. package/lib/components/date-picker/CalendarHeader.js +3 -3
  22. package/lib/components/date-picker/index.js +2 -2
  23. package/lib/components/date-range-picker/index.js +2 -2
  24. package/lib/components/delete-confirm-pop/ConfirmPop.js +2 -2
  25. package/lib/components/dialog/index.js +1 -1
  26. package/lib/components/dialog-confirm/index.js +1 -1
  27. package/lib/components/drawer/headerDrop.js +1 -1
  28. package/lib/components/drawer/index.css +9 -0
  29. package/lib/components/drawer/index.js +12 -9
  30. package/lib/components/drawer-manager/drawerWrapper.js +1 -1
  31. package/lib/components/drawer-manager/index.js +1 -1
  32. package/lib/components/drop-selector/index.js +1 -1
  33. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
  34. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +1 -1
  35. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +1 -1
  36. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +1 -1
  37. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +1 -1
  38. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +1 -1
  39. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +1 -1
  40. package/lib/components/dynamic/dynamic-item/dynamic-learning/index.js +1 -1
  41. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +1 -1
  42. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.js +1 -1
  43. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.js +1 -1
  44. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +1 -1
  45. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +1 -1
  46. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +1 -1
  47. package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +1 -1
  48. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +1 -1
  49. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +1 -1
  50. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  52. package/lib/components/dynamic/dynamic-item/index.js +9 -1
  53. package/lib/components/dynamic/dynamic-list/index.js +19 -2
  54. package/lib/components/eReport/eReportListEmpty.js +2 -2
  55. package/lib/components/eReport/eReportLists/reportList.js +2 -2
  56. package/lib/components/eReport/eReportShare/index.js +2 -2
  57. package/lib/components/eReport/eReportShare/toast/index.js +2 -2
  58. package/lib/components/edit-kr-wight/EditKrWightModal.js +2 -2
  59. package/lib/components/edit-kr-wight/FormItemV2.js +2 -2
  60. package/lib/components/emotions-selector/selector-content.js +2 -2
  61. package/lib/components/emotions-selector/selector-pop.js +2 -2
  62. package/lib/components/ereport-list/index.js +2 -2
  63. package/lib/components/error-boundary/index.js +2 -2
  64. package/lib/components/form/form-fields/date/index.js +1 -1
  65. package/lib/components/form/form-fields/dropdown/index.js +1 -1
  66. package/lib/components/form/form-fields/input/index.js +1 -1
  67. package/lib/components/form/form-fields/user/index.js +1 -1
  68. package/lib/components/help-card/index.js +1 -1
  69. package/lib/components/mblog/components/ConfirmPop.js +2 -2
  70. package/lib/components/mblog/components/MblogAction.js +2 -2
  71. package/lib/components/mblog/components/MblogContent.js +2 -2
  72. package/lib/components/mblog/index.js +2 -2
  73. package/lib/components/menus/components/menu-tree/index.js +1 -1
  74. package/lib/components/menus/components/menu-tree/tree-node/index.js +1 -1
  75. package/lib/components/menus/export-modules/appraisal-menus/index.js +30 -12
  76. package/lib/components/menus/export-modules/appraisal-menus/menu-highlight.js +22 -6
  77. package/lib/components/menus/export-modules/appraisal-menus/menus.js +104 -9
  78. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +19 -1
  79. package/lib/components/menus/export-modules/demo-menus/menus.js +34 -1
  80. package/lib/components/menus/export-modules/okr-menus/menus.js +6 -3
  81. package/lib/components/nav-top/components/app-center/images/chart.svg +22 -0
  82. package/lib/components/nav-top/components/app-center/images/file.svg +20 -0
  83. package/lib/components/nav-top/components/app-center/images/interview.svg +20 -0
  84. package/lib/components/nav-top/components/app-center/images/learning.svg +23 -0
  85. package/lib/components/nav-top/components/app-center/images/okr.svg +22 -0
  86. package/lib/components/nav-top/components/app-center/images/performance.svg +22 -0
  87. package/lib/components/nav-top/components/app-center/images/plan.svg +22 -0
  88. package/lib/components/nav-top/components/app-center/images/project.svg +23 -0
  89. package/lib/components/nav-top/components/app-center/images/summary.svg +23 -0
  90. package/lib/components/nav-top/components/app-center/index.css +154 -0
  91. package/lib/components/nav-top/components/app-center/index.js +157 -0
  92. package/lib/components/nav-top/components/menu/index.js +2 -6
  93. package/lib/components/nav-top/index.css +48 -7
  94. package/lib/components/nav-top/index.js +54 -33
  95. package/lib/components/nav-top/utils.js +464 -1
  96. package/lib/components/okr-detail/auth.js +2 -2
  97. package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +2 -2
  98. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +2 -2
  99. package/lib/components/okr-detail/components/base-okr-type/object-type.js +2 -2
  100. package/lib/components/okr-detail/components/header/o-avatar.js +6 -0
  101. package/lib/components/okr-detail/components/header/o-score.js +1 -1
  102. package/lib/components/okr-detail/components/icon-text/index.js +1 -1
  103. package/lib/components/okr-detail/components/okr-tree/index.js +1 -1
  104. package/lib/components/okr-detail/components/okr-tree/tree-node/index.js +1 -1
  105. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +2 -2
  106. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +3 -3
  107. package/lib/components/okr-flow/export-modal/color.png +0 -0
  108. package/lib/components/okr-flow/export-modal/index.css +28 -13
  109. package/lib/components/okr-flow/export-modal/index.js +82 -34
  110. package/lib/components/okr-flow/export-modal/trans1.png +0 -0
  111. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +2 -2
  112. package/lib/components/okr-review/ReviewPop/components/Toast/index.js +2 -2
  113. package/lib/components/okr-review/ReviewPop/index.js +2 -2
  114. package/lib/components/okr-review/components/ReviewItem/index.js +2 -2
  115. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +2 -2
  116. package/lib/components/okr-review/index.js +2 -2
  117. package/lib/components/operation-records/OperationRecordItem.js +2 -2
  118. package/lib/components/operation-records/index.js +2 -2
  119. package/lib/components/pagination/pagination.js +1 -1
  120. package/lib/components/period-selector/components/button/index.js +1 -1
  121. package/lib/components/period-selector/components/button/style.js +1 -1
  122. package/lib/components/period-selector/index.css +1 -0
  123. package/lib/components/period-selector/index.js +7 -2
  124. package/lib/components/picker/components/panels/date-panel/index.js +1 -1
  125. package/lib/components/picker/components/panels/month-panel/index.js +1 -1
  126. package/lib/components/picker/components/panels/month-panel/month-head.js +1 -1
  127. package/lib/components/picker/components/panels/year-panel/index.js +1 -1
  128. package/lib/components/picker/components/panels/year-panel/year-head.js +1 -1
  129. package/lib/components/picker/picker.js +1 -1
  130. package/lib/components/point-demo/drop-down-box/index.js +1 -1
  131. package/lib/components/point-demo/input/index.js +3 -3
  132. package/lib/components/point-demo/popup/index.js +1 -1
  133. package/lib/components/popup/index.js +1 -1
  134. package/lib/components/praise-record/PraiseRecordItem.js +2 -2
  135. package/lib/components/praise-record/index.js +2 -2
  136. package/lib/components/range-picker-pop/index.js +3 -3
  137. package/lib/components/range-selector-pop/RangeList.js +2 -2
  138. package/lib/components/range-selector-pop/RangeSelectorPop.js +2 -2
  139. package/lib/components/rich-editor/models/schema.js +2 -2
  140. package/lib/components/rich-editor/plugins/block/block-quote/index.js +2 -2
  141. package/lib/components/rich-editor/plugins/block/heading/index.js +2 -2
  142. package/lib/components/rich-editor/plugins/block/lists/index.js +2 -2
  143. package/lib/components/rich-editor/plugins/block/paragraph/index.js +2 -2
  144. package/lib/components/rich-editor/plugins/core/index.js +2 -2
  145. package/lib/components/rich-editor/plugins/extension/alignment/index.js +2 -2
  146. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +2 -2
  147. package/lib/components/rich-editor/plugins/inline/color/index.js +2 -2
  148. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +2 -2
  149. package/lib/components/rich-editor/plugins/inline/em/index.js +2 -2
  150. package/lib/components/rich-editor/plugins/inline/link/index.js +2 -2
  151. package/lib/components/rich-editor/plugins/inline/strong/index.js +2 -2
  152. package/lib/components/rich-editor/plugins/inline/under-line/index.js +2 -2
  153. package/lib/components/rich-editor/react/reactNodeView.js +4 -4
  154. package/lib/components/rich-editor/react/uiProvider.js +2 -2
  155. package/lib/components/rich-editor/ui/Popup/index.js +2 -2
  156. package/lib/components/scroll-container/index.js +2 -2
  157. package/lib/components/scrollbar/index.js +1 -1
  158. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  159. package/lib/components/scrollbar/simplebar-react.js +1 -1
  160. package/lib/components/search-dropdown/index.js +1 -1
  161. package/lib/components/select/Option.js +3 -3
  162. package/lib/components/select/index.js +3 -3
  163. package/lib/components/select-layer/index.js +23 -9
  164. package/lib/components/select-tags/index.js +1 -1
  165. package/lib/components/switch/index.js +1 -1
  166. package/lib/components/table/index.js +1 -1
  167. package/lib/components/tabs/index.js +1 -1
  168. package/lib/components/task-relation-modal/helper.js +1 -56
  169. package/lib/components/task-relation-modal/index.js +1 -1
  170. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +1 -1
  171. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +1 -4
  172. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +1 -1
  173. package/lib/components/task-relation-modal/okr-relation/request-api.js +2 -6
  174. package/lib/components/task-relation-modal/request-api.js +5 -2
  175. package/lib/components/task-relation-modal/tree/work-tree/index.js +27 -31
  176. package/lib/components/task-relation-modal/tree/work-tree/search-form.js +22 -3
  177. package/lib/components/task-relation-modal/tree-node/index.js +1 -1
  178. package/lib/components/task-relation-modal/tree-node/work-node/index.js +11 -11
  179. package/lib/components/task-relation-modal/work-relation/index.js +1 -1
  180. package/lib/components/task-tree/task-item-node/task-node-render.js +1 -1
  181. package/lib/components/task-tree/task-tree.js +1 -1
  182. package/lib/components/textarea/index.js +1 -1
  183. package/lib/components/time-picker/time-picker-selector.js +1 -1
  184. package/lib/components/time-picker/time-picker.js +1 -1
  185. package/lib/components/time-picker/timer-picker-input.js +1 -1
  186. package/lib/components/tita-chart/charts/liquid-ball.js +1 -1
  187. package/lib/components/tita-chart/charts/pie.js +1 -1
  188. package/lib/components/tita-chart/errorBoundary/index.js +2 -2
  189. package/lib/components/tooltip/error-tip.js +1 -1
  190. package/lib/components/tooltip/tooltip.js +10 -5
  191. package/lib/components/tree/index.js +1 -1
  192. package/lib/components/upload/components/uploadedPreview.js +2 -2
  193. package/lib/components/upload/index.js +2 -2
  194. package/lib/components/upvote/index.js +1 -1
  195. package/lib/components/user-selector/category-selector-panel/depart-tree.js +3 -1
  196. package/lib/components/user-selector/category-selector-panel/index.js +1 -0
  197. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +11 -1
  198. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +21 -3
  199. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.css +1 -1
  200. package/lib/components/user-selector/export-modules/multiple-user-selector--bak/index.js +1 -1
  201. package/lib/components/user-selector/request-apis.js +39 -9
  202. package/lib/components/user-selector/searched-panel/index.js +7 -1
  203. package/lib/components/user-selector/select-tree/choose-tree/index.js +1 -1
  204. package/lib/components/user-selector/select-tree/selected-tree/index.js +1 -1
  205. package/lib/components/viewer/ImageListRender.js +2 -2
  206. package/lib/components/viewer/index.js +2 -2
  207. package/lib/components-v1/animate/AnimateChild.js +2 -2
  208. package/lib/components-v1/animate/animate.js +2 -2
  209. package/lib/components-v1/avatar/index.js +2 -2
  210. package/lib/components-v1/buttonv2/ButtonOutlined.js +2 -2
  211. package/lib/components-v1/buttonv2/ButtonRounded.js +2 -2
  212. package/lib/components-v1/buttonv2/DefaultButton.js +2 -2
  213. package/lib/components-v1/confirm/index.js +2 -2
  214. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +2 -2
  215. package/lib/components-v1/dropDownSelector/dropDownSelector.js +2 -2
  216. package/lib/components-v1/input/Input.js +3 -3
  217. package/lib/components-v1/input/InputNumber.js +2 -2
  218. package/lib/components-v1/placement/placement.js +2 -2
  219. package/lib/components-v1/placement/placementInner.js +2 -2
  220. package/lib/components-v1/pop/Pop.js +2 -2
  221. package/lib/components-v1/pop/PopInner.js +2 -2
  222. package/lib/components-v1/portals/Portals.js +2 -2
  223. package/lib/components-v1/progress/CircleProgress.js +2 -2
  224. package/lib/components-v1/progress/LineProgress.js +2 -2
  225. package/lib/components-v1/progress/index.js +2 -2
  226. package/lib/components-v1/radio/radio.js +2 -2
  227. package/lib/components-v1/radio/radioGroup.js +2 -2
  228. package/lib/components-v1/search/index.js +2 -2
  229. package/lib/components-v1/select/Option.js +3 -3
  230. package/lib/components-v1/select/index.js +3 -3
  231. package/lib/components-v1/tabs/index.js +2 -2
  232. package/lib/components-v1/textarea/index.js +2 -2
  233. package/lib/components-v1/transition/index.js +2 -2
  234. package/lib/components-v1/userSelector/UserSelectorPop.js +2 -2
  235. package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +2 -2
  236. package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +2 -2
  237. package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +2 -2
  238. package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +2 -2
  239. package/lib/components-v1/userSelector/components/MultiMode/index.js +2 -2
  240. package/lib/components-v1/userSelector/components/SearchBar.js +2 -2
  241. package/lib/components-v1/userSelector/components/SingleMode.js +2 -2
  242. package/lib/components-v1/userSelector/components/UserItem.js +2 -2
  243. package/lib/components-v1/userSelector/index.js +2 -2
  244. package/lib/pages/aha2021/index.js +5 -5
  245. package/lib/pages/aha2021/new-menu-switcher/index.css +40 -0
  246. package/lib/pages/aha2021/new-menu-switcher/index.js +81 -0
  247. package/lib/pages/aha2021/new-menu-switcher/new-menu-bg.png +0 -0
  248. package/lib/pages/aha2021/request-api.js +15 -0
  249. package/lib/pages/appointment-demo/drop-down-box/index.js +1 -1
  250. package/lib/pages/appointment-demo/input/index.js +3 -3
  251. package/lib/pages/appointment-demo/popup/index.js +1 -1
  252. package/lib/pages/group-management/components/input-form/index.js +3 -3
  253. package/lib/pages/group-management/components/radio/index.js +1 -1
  254. package/lib/pages/group-management/page-view/importGroupStaff/index.js +1 -1
  255. package/lib/pages/group-management/tree/index.js +1 -1
  256. package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +1 -1
  257. package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +1 -1
  258. package/lib/pages/okr-map/level2-search/user.js +1 -0
  259. package/lib/pages/okr-map/share-dialog/index.js +1 -1
  260. package/lib/utils/auth.js +2 -2
  261. package/package.json +1 -1
  262. package/lib/utils/planDataJson.js +0 -11115
@@ -15,28 +15,43 @@
15
15
  display: flex;
16
16
  align-items: center;
17
17
  padding: 0 32px 10px;
18
- color: #89919F;
19
18
  }
20
19
 
21
- .export-map-modal__color-trigger {
22
- border-radius: 4px;
23
- display: inline-block;
24
- width: 30px;
20
+ .export-map-modal__setting-color {
25
21
  height: 30px;
22
+ display: flex;
23
+ align-items: center;
24
+ padding: 0 12px;
25
+ background: #FFFFFF;
26
+ border-radius: 16px;
27
+ border: 1px solid #E9ECF0;
28
+ font-size: 14px;
29
+ font-weight: 400;
30
+ color: #141C28;
31
+ margin-right: 12px;
32
+ }
33
+
34
+ .export-map-modal__setting-color:hover {
35
+ border: 1px solid #2879ff;
36
+ }
37
+
38
+ .export-map-modal__setting-color-trigger {
39
+ cursor: pointer;
40
+ width: 20px;
41
+ height: 20px;
26
42
  background: url("./color.png") no-repeat;
27
43
  background-size: cover;
28
- cursor: pointer;
44
+ border-radius: 16px;
45
+ margin-right: 4px;
29
46
  }
30
47
 
31
- .export-map-modal__color-trans {
32
- border-radius: 4px;
33
- display: inline-block;
34
- width: 30px;
35
- height: 30px;
48
+ .export-map-modal__setting-color-trans {
49
+ cursor: pointer;
50
+ width: 20px;
51
+ height: 20px;
36
52
  background: url("./trans1.png") no-repeat;
37
53
  background-size: cover;
38
- margin-left: 10px;
39
- cursor: pointer;
54
+ border-radius: 16px;
40
55
  }
41
56
 
42
57
  .export-map-modal .titaui-color-picker {
@@ -21,6 +21,10 @@ var _toast = _interopRequireDefault(require("../../toast"));
21
21
 
22
22
  var _dialog = _interopRequireDefault(require("../../dialog"));
23
23
 
24
+ var _tooltip = _interopRequireDefault(require("../../tooltip"));
25
+
26
+ var _selectLayer = _interopRequireDefault(require("../../select-layer"));
27
+
24
28
  var _utils = require("../utils");
25
29
 
26
30
  var _context2 = require("../context");
@@ -101,8 +105,25 @@ var ExportMapModal = function ExportMapModal(props) {
101
105
  isExport = _useState6[0],
102
106
  setIsExport = _useState6[1];
103
107
 
108
+ var _useState7 = (0, _react.useState)({
109
+ label: (0, _getLocale.getLocale)('Rep_NewS_HDmode'),
110
+ value: 20
111
+ }),
112
+ _useState8 = _slicedToArray(_useState7, 2),
113
+ model = _useState8[0],
114
+ setModel = _useState8[1];
115
+
104
116
  var modalRef = (0, _react.useRef)();
105
117
  var virtualElements = (0, _react.useRef)([]);
118
+ var models = [{
119
+ label: (0, _getLocale.getLocale)('Rep_NewS_Standardmode'),
120
+ value: 10,
121
+ toolText: (0, _getLocale.getLocale)('Rep_NewS_SmallFileSuita')
122
+ }, {
123
+ label: (0, _getLocale.getLocale)('Rep_NewS_HDmode'),
124
+ value: 20,
125
+ toolText: (0, _getLocale.getLocale)('Rep_NewS_LargeileSize')
126
+ }];
106
127
  (0, _react.useEffect)(function () {
107
128
  if ((0, _bsGlobal.isWx)() && window.WWOpenData) {
108
129
  if (window.WWOpenData.enableCanvasSharing) {
@@ -134,7 +155,7 @@ var ExportMapModal = function ExportMapModal(props) {
134
155
 
135
156
  canvas = document.createElement('canvas'); // 创建一个canvas节点
136
157
 
137
- scale = 20; // 定义任意放大倍数 支持小数
158
+ scale = model.value; // 定义任意放大倍数 支持小数
138
159
 
139
160
  canvas.width = width * scale; // 定义canvas 宽度 * 缩放
140
161
 
@@ -211,41 +232,29 @@ var ExportMapModal = function ExportMapModal(props) {
211
232
  scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
212
233
  });
213
234
  (0, _requestApis.getBase64DownloadUrl)(imgUrl.split(',')[1]).then(function (url) {
214
- var image = new Image(); // @ts-ignore
235
+ // const image = new Image()
236
+ // @ts-ignore
215
237
  // window.titaTracker && window.titaTracker("action").record({
216
238
  // actionName: userId+'租户:'+telentId+'我获得了地址'+url.Data.obj,
217
239
  // actionGroup: 'okr地图接口',
218
240
  // productName: 'okr地图导出',
219
241
  // });
220
-
221
242
  Sentry.withScope(function (scope) {
222
243
  scope.setTag('error-level', "P0");
223
244
  scope.setTag('error-type', '地图导出-图片地址');
224
245
  scope.setExtra('userMessage', userId + '租户:' + telentId + '我得到了图片大小为:' + size + ',路径为' + imgUrl);
225
246
  });
226
-
227
- _toast["default"].Warning('图片上传成功,准备本地下载', {
228
- canClose: true
229
- });
230
-
231
- image.setAttribute('crossOrigin', 'anonymous');
232
-
233
- image.onload = function () {
234
- if (!url.Data.obj) {
235
- _toast["default"].Error('导出失败,请稍后重试', {
236
- canClose: false
237
- });
238
- }
239
-
240
- var a = document.createElement('a'); // 生成一个a元素
241
-
242
- var event = new MouseEvent('click'); // 创建一个单击事件
243
-
244
- a.download = 'okr地图'; // 设置图片名称
245
-
246
- a.href = url.Data.obj; // 将生成的URL设置为a
247
-
248
- a.dispatchEvent(event); // 触发a的单击事件
247
+ var newUrl = url.Data.obj;
248
+ var x = new XMLHttpRequest();
249
+ x.open("GET", newUrl, true);
250
+ x.responseType = 'blob';
251
+
252
+ x.onload = function (e) {
253
+ var url = window.URL.createObjectURL(x.response);
254
+ var a = document.createElement('a');
255
+ a.href = url;
256
+ a.download = model.value === 20 ? '高清图片' : '标清图片';
257
+ a.click();
249
258
 
250
259
  _toast["default"].Success('导出成功');
251
260
 
@@ -256,7 +265,24 @@ var ExportMapModal = function ExportMapModal(props) {
256
265
  }
257
266
  };
258
267
 
259
- image.src = imgUrl;
268
+ x.send(); // image.setAttribute('crossOrigin', 'anonymous')
269
+ // image.onload = async() => {
270
+ // if (!url.Data.obj) {
271
+ // Toast.Error('导出失败,请稍后重试', { canClose: false })
272
+ // }
273
+ // await downloadFile(url.Data.obj,model.value===20?'高清分享图片':'标准分享图片')
274
+ // // const a = document.createElement('a') // 生成一个a元素
275
+ // // const event = new MouseEvent('click') // 创建一个单击事件
276
+ // // a.download = '123' // 设置图片名称
277
+ // // a.href = url.Data.obj // 将生成的URL设置为a
278
+ // // a.dispatchEvent(event) // 触发a的单击事件
279
+ // Toast.Success('导出成功')
280
+ // setIsExport(false)
281
+ // if (onCloseHandler) {
282
+ // onCloseHandler()
283
+ // }
284
+ // }
285
+ // image.src = imgUrl
260
286
  });
261
287
  })["catch"](function (err) {
262
288
  setIsExport(false);
@@ -296,6 +322,10 @@ var ExportMapModal = function ExportMapModal(props) {
296
322
  setMapInstance(instance);
297
323
  };
298
324
 
325
+ var onChangeHandler = function onChangeHandler(data) {
326
+ setModel(data);
327
+ };
328
+
299
329
  var colorChangeHandler = function colorChangeHandler(colors) {
300
330
  setBgColor(colors ? colors.color : 'none');
301
331
  };
@@ -317,7 +347,7 @@ var ExportMapModal = function ExportMapModal(props) {
317
347
  title: (0, _getLocale.getLocale)('OKR_Ali_Exportmap'),
318
348
  noFooterLine: true,
319
349
  visible: visible,
320
- width: "1000px",
350
+ width: "840px",
321
351
  onClose: onCloseHandler,
322
352
  onOk: confirmHandler,
323
353
  onCancel: onCloseHandler,
@@ -327,9 +357,11 @@ var ExportMapModal = function ExportMapModal(props) {
327
357
  forceRender: true
328
358
  }, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
329
359
  className: "export-map-modal__setting"
360
+ }, /*#__PURE__*/_react["default"].createElement("div", {
361
+ className: "export-map-modal__setting-color"
330
362
  }, /*#__PURE__*/_react["default"].createElement("span", {
331
363
  style: {
332
- marginRight: 10
364
+ marginRight: 16
333
365
  }
334
366
  }, (0, _getLocale.getLocale)('OKR_Ali_Selectbackground')), /*#__PURE__*/_react["default"].createElement(_rcColorPicker["default"], {
335
367
  animation: "slide-up",
@@ -337,12 +369,28 @@ var ExportMapModal = function ExportMapModal(props) {
337
369
  onChange: colorChangeHandler,
338
370
  className: "titaui-color-picker",
339
371
  mode: "HSB"
372
+ }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
373
+ overlay: (0, _getLocale.getLocale)('Mod_Customization'),
374
+ placement: "top"
340
375
  }, /*#__PURE__*/_react["default"].createElement("span", {
341
- className: "export-map-modal__color-trigger"
342
- })), /*#__PURE__*/_react["default"].createElement("span", {
343
- className: "export-map-modal__color-trans",
376
+ className: "export-map-modal__setting-color-trigger"
377
+ }))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
378
+ overlay: (0, _getLocale.getLocale)('OKR_Ali_Butt_Transparent'),
379
+ placement: "top"
380
+ }, /*#__PURE__*/_react["default"].createElement("span", {
381
+ className: "export-map-modal__setting-color-trans",
344
382
  onClick: colorChangeHandler
345
- })), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
383
+ }))), /*#__PURE__*/_react["default"].createElement(_selectLayer["default"], {
384
+ onChangeSelect: onChangeHandler,
385
+ items: models,
386
+ initValue: model.value
387
+ }, /*#__PURE__*/_react["default"].createElement("div", {
388
+ className: "titaui-search-dropdown"
389
+ }, /*#__PURE__*/_react["default"].createElement("span", {
390
+ className: "titaui-search-dropdown__text"
391
+ }, model.label), /*#__PURE__*/_react["default"].createElement("span", {
392
+ className: "tu-icon-sort-down"
393
+ })))), /*#__PURE__*/_react["default"].createElement("div", null, visible && /*#__PURE__*/_react["default"].createElement(_context2.CommonContext.Provider, {
346
394
  value: {
347
395
  direction: direction,
348
396
  showkr: showkr,
@@ -361,7 +409,7 @@ var ExportMapModal = function ExportMapModal(props) {
361
409
  zoomOnDoubleClick: false,
362
410
  paneMoveable: false,
363
411
  style: {
364
- height: 600,
412
+ height: 446,
365
413
  width: '100%',
366
414
  background: bgColor
367
415
  }
@@ -69,7 +69,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
69
69
 
70
70
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
71
71
 
72
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
72
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
73
73
 
74
74
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
75
75
 
@@ -79,7 +79,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
79
79
 
80
80
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
81
81
 
82
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
82
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
83
83
 
84
84
  var ReviewBody = /*#__PURE__*/function (_PureComponent) {
85
85
  _inherits(ReviewBody, _PureComponent);
@@ -23,7 +23,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
23
23
 
24
24
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
25
 
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
26
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
27
 
28
28
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
29
 
@@ -33,7 +33,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
33
33
 
34
34
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
35
35
 
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
36
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
37
 
38
38
  var Toast = /*#__PURE__*/function (_PureComponent) {
39
39
  _inherits(Toast, _PureComponent);
@@ -41,7 +41,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
41
41
 
42
42
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
43
43
 
44
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
44
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
45
45
 
46
46
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
47
47
 
@@ -51,7 +51,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
51
51
 
52
52
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
53
53
 
54
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
54
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
55
55
 
56
56
  var ReviewPop = /*#__PURE__*/function (_PureComponent) {
57
57
  _inherits(ReviewPop, _PureComponent);
@@ -27,7 +27,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
27
27
 
28
28
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
29
 
30
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
30
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
31
 
32
32
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
33
 
@@ -37,7 +37,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
37
37
 
38
38
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
39
 
40
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
40
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
41
 
42
42
  var ReviewItem = /*#__PURE__*/function (_PureComponent) {
43
43
  _inherits(ReviewItem, _PureComponent);
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var popContainer = document.body;
45
45
 
@@ -45,7 +45,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
45
45
 
46
46
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
47
47
 
48
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
48
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
49
 
50
50
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
51
51
 
@@ -55,7 +55,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
55
55
 
56
56
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
57
57
 
58
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
58
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
59
59
 
60
60
  var Review = /*#__PURE__*/function (_PureComponent) {
61
61
  _inherits(Review, _PureComponent);
@@ -29,7 +29,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
29
29
 
30
30
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
31
31
 
32
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
32
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
33
33
 
34
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
35
35
 
@@ -39,7 +39,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
39
39
 
40
40
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
41
41
 
42
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
42
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
43
43
 
44
44
  var OperationRecordItem = /*#__PURE__*/function (_Component) {
45
45
  _inherits(OperationRecordItem, _Component);
@@ -35,7 +35,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
35
35
 
36
36
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
37
37
 
38
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
38
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
39
39
 
40
40
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
41
41
 
@@ -45,7 +45,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
45
45
 
46
46
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
47
47
 
48
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
48
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
49
49
 
50
50
  var OperationRecord = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(OperationRecord, _PureComponent);
@@ -29,7 +29,7 @@ var _excluded = ["className", "size"];
29
29
 
30
30
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
31
 
32
- function _extends() { _extends = Object.assign || 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); }
32
+ 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); }
33
33
 
34
34
  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; }
35
35
 
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
18
  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; }
19
19
 
20
- function _extends() { _extends = Object.assign || 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); }
20
+ 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); }
21
21
 
22
22
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
23
 
@@ -13,7 +13,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
13
13
 
14
14
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
15
15
 
16
- var DefaultWrapper = _styledComponents["default"].button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: inline-flex;\n\n align-items: center;\n justify-content: center;\n color: #6f7886;\n cursor: pointer;\n outline: none;\n transition: color 0.3s ease, border 0.3s ease;\n background: transparent;\n border-radius: 3px;\n border: 1px solid #e9ecf0;\n &.btn-size-m {\n min-width: 90px;\n height: 36px;\n padding: 0 18px;\n font-size: 14px;\n font-weight: 400;\n }\n &.btn-size-s {\n min-width: 68px;\n height: 26px;\n padding: 0 20px;\n font-size: 13px;\n font-weight: 400;\n }\n :hover {\n color: #2879ff;\n border-color: #2879ff;\n }\n :disabled {\n cursor: not-allowed;\n background-color: #f0f2f5;\n color: #a4acb9;\n border: none;\n :hover {\n border: none;\n color: #bfc7d5;\n opacity: 1;\n background-color: #f0f2f5;\n }\n }\n"])));
16
+ var DefaultWrapper = _styledComponents["default"].button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: inline-flex;\n\n align-items: center;\n justify-content: center;\n color: #6f7886;\n cursor: pointer;\n outline: none;\n transition: color 0.3s ease, border 0.3s ease;\n background: transparent;\n border-radius: 3px;\n border: 1px solid #e9ecf0;\n &.btn-size-m {\n min-width: 90px;\n height: 36px;\n border-radius: 18px;\n padding: 0 18px;\n font-size: 14px;\n font-weight: 400;\n }\n &.btn-size-s {\n min-width: 68px;\n height: 26px;\n padding: 0 20px;\n font-size: 13px;\n font-weight: 400;\n }\n :hover {\n color: #2879ff;\n border-color: #2879ff;\n }\n :disabled {\n cursor: not-allowed;\n background-color: #f0f2f5;\n color: #a4acb9;\n border: none;\n :hover {\n border: none;\n color: #bfc7d5;\n opacity: 1;\n background-color: #f0f2f5;\n }\n }\n"])));
17
17
 
18
18
  exports.DefaultWrapper = DefaultWrapper;
19
19
  var PrimaryWrapper = (0, _styledComponents["default"])(DefaultWrapper)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: #ffffff;\n background: #2879ff;\n border: none;\n :hover {\n color: #ffffff;\n background-color: #5c8eff;\n border: none;\n }\n"])));
@@ -6,6 +6,7 @@
6
6
  font-size: 16px;
7
7
  transform: scale(0.5);
8
8
  margin-left: 4px;
9
+ color: #6f7886;
9
10
  }
10
11
 
11
12
  .titaui-period-selector__down-arrow {
@@ -52,9 +52,12 @@ function PeriodSelector(_ref) {
52
52
  onChange = _ref.onChange,
53
53
  getPopupContainer = _ref.getPopupContainer,
54
54
  selected = _ref.selected,
55
+ lastSelected = _ref.lastSelected,
55
56
  selectorClass = _ref.selectorClass,
56
57
  _ref$showCustom = _ref.showCustom,
57
58
  showCustom = _ref$showCustom === void 0 ? true : _ref$showCustom,
59
+ _ref$isShowCustom = _ref.isShowCustom,
60
+ isShowCustom = _ref$isShowCustom === void 0 ? true : _ref$isShowCustom,
58
61
  _ref$showFullCycle = _ref.showFullCycle,
59
62
  showFullCycle = _ref$showFullCycle === void 0 ? true : _ref$showFullCycle,
60
63
  _ref$showMonth = _ref.showMonth,
@@ -110,6 +113,8 @@ function PeriodSelector(_ref) {
110
113
  (0, _react.useEffect)(function () {
111
114
  if (selected) {
112
115
  setSelectedPeriod(selected);
116
+ } else if (lastSelected) {
117
+ setSelectedPeriod(lastSelected);
113
118
  }
114
119
  }, []);
115
120
  (0, _react.useEffect)(function () {
@@ -124,7 +129,7 @@ function PeriodSelector(_ref) {
124
129
 
125
130
  if (selected) {
126
131
  setSelectedPeriod(selected);
127
- } else {
132
+ } else if (lastSelected) {} else {
128
133
  setSelectedPeriod((0, _common.getDefalutCycle)(res.Data));
129
134
  onChange && onChange((0, _common.getDefalutCycle)(res.Data));
130
135
  }
@@ -143,7 +148,7 @@ function PeriodSelector(_ref) {
143
148
  var popup = /*#__PURE__*/_react["default"].createElement(_selector["default"], {
144
149
  className: selectorClass,
145
150
  selected: selectedPeriod,
146
- showCustom: isFetch ? cycleSetting.isOpenCustom : showCustom,
151
+ showCustom: isShowCustom ? isFetch ? cycleSetting.isOpenCustom : showCustom : isShowCustom,
147
152
  showFullCycle: showFullCycle,
148
153
  showMonth: isFetch ? cycleSetting.isOpenMonth : showMonth,
149
154
  showQuarter: isFetch ? cycleSetting.isOpenQuarter : showQuarter,
@@ -21,7 +21,7 @@ require("./index.css");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
24
- function _extends() { _extends = Object.assign || 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); }
24
+ 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); }
25
25
 
26
26
  var DatePanel = function DatePanel(props) {
27
27
  var viewDate = props.viewDate,
@@ -23,7 +23,7 @@ var _excluded = ["viewDate", "onPanelChange", "onViewDateChange"];
23
23
 
24
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
25
 
26
- function _extends() { _extends = Object.assign || 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); }
26
+ 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); }
27
27
 
28
28
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
29
29
 
@@ -19,7 +19,7 @@ var _excluded = ["viewDate", "onPrevYear", "onNextYear", "onYearClick"];
19
19
 
20
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
21
 
22
- function _extends() { _extends = Object.assign || 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); }
22
+ 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); }
23
23
 
24
24
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
25
 
@@ -21,7 +21,7 @@ require("./index.css");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
24
- function _extends() { _extends = Object.assign || 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); }
24
+ 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); }
25
25
 
26
26
  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; }
27
27
 
@@ -15,7 +15,7 @@ var _panelHead = _interopRequireDefault(require("../panel-head"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
17
 
18
- function _extends() { _extends = Object.assign || 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); }
18
+ 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); }
19
19
 
20
20
  var YearPanelHead = function YearPanelHead(props) {
21
21
  var onPrevDecadeYear = props.onPrevDecadeYear,
@@ -33,7 +33,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
33
33
 
34
34
  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; }
35
35
 
36
- function _extends() { _extends = Object.assign || 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); }
36
+ 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); }
37
37
 
38
38
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
39
39
 
@@ -21,7 +21,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
21
21
 
22
22
  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; }
23
23
 
24
- function _extends() { _extends = Object.assign || 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); }
24
+ 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); }
25
25
 
26
26
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
27
27