@titaui/pc 1.11.1 → 1.11.4

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 (302) hide show
  1. package/lib/components/date-picker/BodyItem.js +3 -3
  2. package/lib/components/date-picker/CalendarHeader.js +3 -3
  3. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  4. package/lib/components/drawer-manager/index.js +25 -27
  5. package/lib/components/dynamic/online-broadcast/data.js +7 -1
  6. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  7. package/lib/components/emotions-selector/selector-pop.js +3 -3
  8. package/lib/components/ereport-list/index.js +3 -3
  9. package/lib/components/file-list/components/single-file/index.js +11 -11
  10. package/lib/components/img-viewer/index.css +7 -0
  11. package/lib/components/img-viewer/index.js +47 -8
  12. package/lib/components/mblog/components/MblogAction.js +3 -3
  13. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  14. package/lib/components/okr-progress-modal/index.css +1 -1
  15. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  16. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  17. package/lib/components/okrcase-library/okrcases-components/caseLibrary-main.js +14 -8
  18. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  19. package/lib/components/rich-editor/models/schema.js +6 -6
  20. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  21. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  22. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  23. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  24. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  25. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  26. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  27. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  28. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  29. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  30. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  31. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  32. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  33. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  34. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  35. package/lib/components/select/Option.js +3 -3
  36. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  37. package/lib/components-v1/animate/AnimateChild.js +3 -3
  38. package/lib/components-v1/avatar/index.js +3 -3
  39. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  40. package/lib/components-v1/progress/CircleProgress.js +3 -3
  41. package/lib/components-v1/select/Option.js +3 -3
  42. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  43. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  44. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  45. package/lib/index.js +0 -8
  46. package/package.json +1 -1
  47. package/es/components/cascader/time.js +0 -31
  48. package/es/components/common-share/request-apis.js +0 -56
  49. package/es/components/confidence/heart.js +0 -66
  50. package/es/components/create-okr-modal/fields/index.js +0 -17
  51. package/es/components/create-okr-modal/utils/getCreateOkrSurpassPercent.js +0 -154
  52. package/es/components/date-picker/BodyItem.js +0 -121
  53. package/es/components/date-picker/CalendarBody.js +0 -157
  54. package/es/components/date-picker/CalendarHeader.js +0 -187
  55. package/es/components/date-picker/index.js +0 -157
  56. package/es/components/date-range-picker/index.js +0 -210
  57. package/es/components/dialog/index.js +0 -119
  58. package/es/components/dialog-confirm/index.js +0 -154
  59. package/es/components/drop-selector/icon-item.js +0 -40
  60. package/es/components/drop-selector/index.js +0 -179
  61. package/es/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  62. package/es/components/dynamic/dynamic-liking/mock.js +0 -83
  63. package/es/components/dynamic/dynamic-topping/request-api.js +0 -36
  64. package/es/components/e-priority/index.js +0 -88
  65. package/es/components/e-status-dropdown/index.js +0 -94
  66. package/es/components/grid-layout/commen-components/index.js +0 -73
  67. package/es/components/grid-layout/image/could.js +0 -8
  68. package/es/components/grid-layout/image/lv.js +0 -8
  69. package/es/components/grid-layout/image/tita-mask.js +0 -8
  70. package/es/components/help-card/request-api.js +0 -35
  71. package/es/components/icon-button-list/index.js +0 -65
  72. package/es/components/menus/context.js +0 -18
  73. package/es/components/menus/precls.js +0 -8
  74. package/es/components/okr-detail/auth.js +0 -197
  75. package/es/components/okr-detail/components/ao-nice/index.js +0 -245
  76. package/es/components/okr-detail/components/block-line/index.js +0 -20
  77. package/es/components/okr-detail/components/header/index.js +0 -211
  78. package/es/components/okr-detail/components/icon-text/index.js +0 -116
  79. package/es/components/okr-detail/components/okr-tree/index.js +0 -48
  80. package/es/components/okr-detail/components/okr-tree/precls.js +0 -8
  81. package/es/components/okr-detail/components/okr-tree/tree-node/default-node.js +0 -22
  82. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +0 -88
  83. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +0 -200
  84. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-status-dropdown.js +0 -98
  85. package/es/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +0 -412
  86. package/es/components/okr-detail/components/okr-tree/tree-node/get-process-color.js +0 -62
  87. package/es/components/okr-detail/components/okr-tree/tree-node/index.js +0 -90
  88. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/get-process-color.js +0 -46
  89. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +0 -421
  90. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/index.js +0 -54
  91. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +0 -62
  92. package/es/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +0 -94
  93. package/es/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.js +0 -273
  94. package/es/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.js +0 -207
  95. package/es/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.js +0 -236
  96. package/es/components/okr-detail/components/padding-layout.js +0 -22
  97. package/es/components/okr-detail/components/tab-panel-content/index.js +0 -27
  98. package/es/components/okr-detail/context.js +0 -30
  99. package/es/components/okr-detail/e-list/index.js +0 -243
  100. package/es/components/okr-detail/e-list/precls.js +0 -8
  101. package/es/components/okr-detail/e-list/search-form/fields/e-order.js +0 -172
  102. package/es/components/okr-detail/e-list/search-form/fields/e-status.js +0 -99
  103. package/es/components/okr-detail/e-list/search-form/fields/e-user.js +0 -49
  104. package/es/components/okr-detail/e-list/search-form/index.js +0 -143
  105. package/es/components/okr-detail/error-page/index.js +0 -33
  106. package/es/components/okr-detail/index.js +0 -428
  107. package/es/components/okr-detail/loading/index.js +0 -28
  108. package/es/components/okr-detail/okr-list/add-parent-okr.js +0 -37
  109. package/es/components/okr-detail/okr-list/create-kr-item/heart.js +0 -38
  110. package/es/components/okr-detail/okr-list/drag-order-kr.js +0 -62
  111. package/es/components/okr-detail/okr-list/empty/index.js +0 -48
  112. package/es/components/okr-detail/okr-list/index.js +0 -524
  113. package/es/components/okr-detail/okr-list/warp-parent-okr.js +0 -21
  114. package/es/components/okr-detail/store.js +0 -1
  115. package/es/components/okr-flow/child-node/fields/creator.js +0 -175
  116. package/es/components/okr-flow/child-node/fields/okrClassify.js +0 -31
  117. package/es/components/okr-flow/child-node/fields/okrType.js +0 -21
  118. package/es/components/okr-flow/child-node/helper.js +0 -35
  119. package/es/components/okr-flow/child-node/index.js +0 -110
  120. package/es/components/okr-flow/child-node/kr-node.js +0 -75
  121. package/es/components/okr-flow/child-node/work-node.js +0 -242
  122. package/es/components/okr-flow/context.js +0 -14
  123. package/es/components/okr-flow/empty/index.js +0 -29
  124. package/es/components/okr-flow/export-modules/okr-search-panel/index.js +0 -394
  125. package/es/components/okr-flow/index.js +0 -24
  126. package/es/components/okr-flow/mini-map/index.js +0 -112
  127. package/es/components/okr-flow/mini-map/map.js +0 -145
  128. package/es/components/okr-flow/mini-map/mini-node.js +0 -57
  129. package/es/components/okr-flow/mini-map/utils.js +0 -79
  130. package/es/components/okr-flow/okr-map/index.js +0 -192
  131. package/es/components/okr-flow/open-data/index.js +0 -115
  132. package/es/components/okr-flow/precls.js +0 -8
  133. package/es/components/okr-flow/request-apis.js +0 -118
  134. package/es/components/okr-flow/root-node/index.js +0 -229
  135. package/es/components/okr-flow/utils/config.js +0 -18
  136. package/es/components/okr-flow/utils/helper.js +0 -36
  137. package/es/components/okr-flow/utils/index.js +0 -66
  138. package/es/components/okr-flow/utils/tree-handler.js +0 -323
  139. package/es/components/okr-progress-modal/helper.js +0 -156
  140. package/es/components/okr-progress-modal/request-apis.js +0 -34
  141. package/es/components/okr-share/request-apis.js +0 -56
  142. package/es/components/okrcase-library/server/network.js +0 -407
  143. package/es/components/pagination/locale/en_US.js +0 -22
  144. package/es/components/pagination/locale/zh_CN.js +0 -22
  145. package/es/components/point-demo/drop-down-box/index.js +0 -159
  146. package/es/components/point-demo/index.js +0 -533
  147. package/es/components/point-demo/input/index.js +0 -176
  148. package/es/components/point-demo/point-demo.js +0 -75
  149. package/es/components/point-demo/popup/index.js +0 -113
  150. package/es/components/point-demo/popup/placement.js +0 -44
  151. package/es/components/range-picker-pop/index.js +0 -273
  152. package/es/components/scrollbar/simplebar/helpers.js +0 -59
  153. package/es/components/scrollbar/simplebar/index.js +0 -91
  154. package/es/components/scrollbar/simplebar/scrollbar-width.js +0 -47
  155. package/es/components/scrollbar/simplebar/simplebar.js +0 -852
  156. package/es/components/scrollbar/simplebar-react.js +0 -163
  157. package/es/components/search-dropdown/index.js +0 -40
  158. package/es/components/search-input/index.js +0 -126
  159. package/es/components/select/Option.js +0 -94
  160. package/es/components/select/index.js +0 -330
  161. package/es/components/selector-input/debounce.js +0 -36
  162. package/es/components/selector-input/index.js +0 -109
  163. package/es/components/slider-input/index.js +0 -119
  164. package/es/components/switch/index.js +0 -39
  165. package/es/components/table/index.js +0 -275
  166. package/es/components/tabs/index.js +0 -63
  167. package/es/components/task-relation-modal/tree-node/index.js +0 -58
  168. package/es/components/tita-chart/charts/img/could.js +0 -8
  169. package/es/components/tooltip/error-tip.js +0 -24
  170. package/es/components/tooltip/index.js +0 -21
  171. package/es/components/tree/index.js +0 -79
  172. package/es/components/tree/precls.js +0 -8
  173. package/es/components/upvote/request-apis.js +0 -45
  174. package/es/components/user-selector/action-btns/btn-cancel.js +0 -21
  175. package/es/components/user-selector/action-btns/btn-ok.js +0 -21
  176. package/es/components/user-selector/action-btns/index.js +0 -27
  177. package/es/components/user-selector/context.js +0 -18
  178. package/es/components/user-selector/empty/group.js +0 -55
  179. package/es/components/user-selector/empty/index.js +0 -28
  180. package/es/components/user-selector/export-modules/depart-search-selector/result-part.js +0 -41
  181. package/es/components/user-selector/export-modules/group-selector/index.js +0 -170
  182. package/es/components/user-selector/export-modules/group-selector/searched-panel.js +0 -68
  183. package/es/components/user-selector/export-modules/multiple-user-selector--bak/index.js +0 -246
  184. package/es/components/user-selector/index.js +0 -25
  185. package/es/components/user-selector/layout/index.js +0 -25
  186. package/es/components/user-selector/loading/index.js +0 -18
  187. package/es/components/user-selector/request-apis.js +0 -180
  188. package/es/components/user-selector/searched-panel/index.js +0 -139
  189. package/es/components/user-selector/searched-panel/result-part.js +0 -43
  190. package/es/components/user-selector/select-tree/selected-tree/index.js +0 -91
  191. package/es/components/user-selector/select-tree/tree-nodes/tree-depart-node/index.js +0 -48
  192. package/es/components/user-selector/select-tree/tree-nodes/tree-duties-node/index.js +0 -27
  193. package/es/components/user-selector/select-tree/tree-nodes/tree-group-node/index.js +0 -57
  194. package/es/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +0 -93
  195. package/es/components/user-selector/utils.js +0 -139
  196. package/es/components/viewer/ImageListRender.js +0 -143
  197. package/es/components/viewer/index.js +0 -168
  198. package/es/components/word-cloud/index.js +0 -109
  199. package/es/components/word-cloud/request-apis.js +0 -26
  200. package/es/components-v1/animate/AnimateChild.js +0 -76
  201. package/es/components-v1/animate/animate.js +0 -148
  202. package/es/components-v1/animate/index.js +0 -13
  203. package/es/components-v1/dom/index.js +0 -30
  204. package/es/components-v1/placement/index.js +0 -13
  205. package/es/components-v1/placement/placement.js +0 -111
  206. package/es/components-v1/placement/placementInner.js +0 -139
  207. package/es/components-v1/pop/Pop.js +0 -246
  208. package/es/components-v1/pop/PopInner.js +0 -163
  209. package/es/components-v1/pop/index.js +0 -13
  210. package/es/components-v1/progress/CircleProgress.js +0 -152
  211. package/es/components-v1/progress/LineProgress.js +0 -83
  212. package/es/components-v1/progress/index.js +0 -80
  213. package/es/components-v1/select/Option.js +0 -94
  214. package/es/components-v1/select/index.js +0 -330
  215. package/es/components-v1/utils/animate/animate.js +0 -103
  216. package/es/components-v1/utils/animate/event.js +0 -79
  217. package/es/components-v1/utils/dom/index.js +0 -30
  218. package/es/components-v1/utils/placement/autoAdjustPlacement.js +0 -93
  219. package/es/components-v1/utils/placement/getContainerVisibleArea.js +0 -22
  220. package/es/components-v1/utils/placement/getExpectPlacement.js +0 -49
  221. package/es/components-v1/utils/placement/getPlacementInContainer.js +0 -26
  222. package/es/components-v1/utils/placement/placement.js +0 -76
  223. package/es/index.js +0 -777
  224. package/es/pages/appointment-demo/drop-down-box/index.js +0 -159
  225. package/es/pages/appointment-demo/index.js +0 -649
  226. package/es/pages/appointment-demo/input/index.js +0 -176
  227. package/es/pages/appointment-demo/popup/index.js +0 -113
  228. package/es/pages/appointment-demo/popup/placement.js +0 -44
  229. package/es/pages/group-management/components/checkbox/index.js +0 -28
  230. package/es/pages/group-management/components/input-form/index.js +0 -174
  231. package/es/pages/group-management/components/radio/index.js +0 -21
  232. package/es/pages/group-management/components/table/index.js +0 -174
  233. package/es/pages/group-management/groupInterface.js +0 -293
  234. package/es/pages/group-management/index.js +0 -13
  235. package/es/pages/group-management/page-view/empty.js +0 -111
  236. package/es/pages/group-management/page-view/group-empty.js +0 -66
  237. package/es/pages/group-management/page-view/importGroupStaff/index.js +0 -208
  238. package/es/pages/group-management/page-view/index.js +0 -412
  239. package/es/pages/group-management/page-view/loading/index.js +0 -32
  240. package/es/pages/group-management/table/index.js +0 -104
  241. package/es/pages/group-management/tree/add-group-dialog/index.js +0 -153
  242. package/es/pages/group-management/tree/delete-group-dialog/index.js +0 -82
  243. package/es/pages/group-management/tree/edit-group-dialog/index.js +0 -155
  244. package/es/pages/group-management/tree/group-form/index.js +0 -207
  245. package/es/pages/group-management/tree/index.js +0 -168
  246. package/es/pages/group-management/tree/operation-panel.js +0 -41
  247. package/es/pages/group-management/tree/trigger-render.js +0 -99
  248. package/es/pages/like-ranking/mock.js +0 -366
  249. package/es/pages/okr-map/export-modules/index.js +0 -1
  250. package/es/pages/okr-map/export-modules/okr-map/header/index.js +0 -182
  251. package/es/pages/okr-map/export-modules/okr-map/header/show-kr-confirm.js +0 -47
  252. package/es/pages/okr-map/export-modules/okr-map/okr-map.js +0 -497
  253. package/es/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -69
  254. package/es/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +0 -168
  255. package/es/pages/okr-map/hooks/useStorage.js +0 -96
  256. package/es/pages/okr-map/index.js +0 -18
  257. package/es/pages/okr-map/level2-search/depart.js +0 -53
  258. package/es/pages/okr-map/level2-search/group.js +0 -69
  259. package/es/pages/okr-map/level2-search/index.js +0 -51
  260. package/es/pages/okr-map/level2-search/level2-input.js +0 -46
  261. package/es/pages/okr-map/level2-search/user.js +0 -54
  262. package/es/pages/okr-map/no-okr/index.js +0 -24
  263. package/es/pages/okr-map/number-select/index.js +0 -81
  264. package/es/pages/okr-map/open-data/index.js +0 -115
  265. package/es/pages/okr-map/precls.js +0 -8
  266. package/es/pages/okr-map/request-apis.js +0 -76
  267. package/es/pages/okr-map/share-dialog/index.js +0 -122
  268. package/es/pages/okr-map/unsupport-ie/index.js +0 -83
  269. package/es/pages/okr-map/utils.js +0 -51
  270. package/es/utils/auth.js +0 -294
  271. package/es/utils/bs-global.js +0 -114
  272. package/es/utils/local-storage.js +0 -42
  273. package/es/utils/mblog.js +0 -33
  274. package/es/utils/mock-bsglobal.js +0 -1837
  275. package/es/utils/open-data.js +0 -341
  276. package/es/utils/request-v1.js +0 -115
  277. package/es/utils/request.js +0 -183
  278. package/es/utils/tools.js +0 -286
  279. package/lib/components/picker/components/panels/date-panel/date-body.js +0 -116
  280. package/lib/components/picker/components/panels/date-panel/date-head.js +0 -66
  281. package/lib/components/picker/components/panels/date-panel/index.css +0 -14
  282. package/lib/components/picker/components/panels/date-panel/index.js +0 -49
  283. package/lib/components/picker/components/panels/month-panel/index.css +0 -27
  284. package/lib/components/picker/components/panels/month-panel/index.js +0 -63
  285. package/lib/components/picker/components/panels/month-panel/month-body.js +0 -87
  286. package/lib/components/picker/components/panels/month-panel/month-head.js +0 -47
  287. package/lib/components/picker/components/panels/panel-body/index.js +0 -53
  288. package/lib/components/picker/components/panels/panel-head/index.js +0 -48
  289. package/lib/components/picker/components/panels/year-panel/index.css +0 -23
  290. package/lib/components/picker/components/panels/year-panel/index.js +0 -65
  291. package/lib/components/picker/components/panels/year-panel/year-body.js +0 -92
  292. package/lib/components/picker/components/panels/year-panel/year-head.js +0 -35
  293. package/lib/components/picker/components/picker-trigger/index.css +0 -26
  294. package/lib/components/picker/components/picker-trigger/index.js +0 -85
  295. package/lib/components/picker/context.js +0 -15
  296. package/lib/components/picker/index.css +0 -121
  297. package/lib/components/picker/index.js +0 -13
  298. package/lib/components/picker/picker-panels.js +0 -182
  299. package/lib/components/picker/picker.js +0 -133
  300. package/lib/components/picker/type.js +0 -5
  301. package/lib/components/picker/utils.js +0 -28
  302. package/yarn-error.log +0 -21252
@@ -1,174 +0,0 @@
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"] = _default;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _rcTable = _interopRequireDefault(require("rc-table"));
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- var _rcPagination = _interopRequireDefault(require("rc-pagination"));
17
-
18
- var _checkbox = _interopRequireDefault(require("../../../../components/checkbox"));
19
-
20
- require("rc-table/assets/index.css");
21
-
22
- require("rc-pagination/assets/index.css");
23
-
24
- require("./index.scss");
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
-
28
- 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); }
29
-
30
- 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; }
31
-
32
- function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
33
-
34
- function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
35
-
36
- function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
37
-
38
- function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
39
-
40
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
41
-
42
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
43
-
44
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
45
-
46
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
47
-
48
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
49
-
50
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
51
-
52
- var preCls = "tita-components";
53
-
54
- var mapTableRowKey = function mapTableRowKey(data) {
55
- if (data && data.length > 0) {
56
- data.map(function (item, i) {
57
- data[i].key = i;
58
- });
59
- }
60
-
61
- return data;
62
- };
63
-
64
- function _default(props) {
65
- var prefixCls = props.prefixCls,
66
- columns = props.columns,
67
- tableData = props.tableData,
68
- pageSize = props.pageSize,
69
- pageNum = props.pageNum,
70
- tableLayout = props.tableLayout,
71
- setPageNum = props.setPageNum,
72
- total = props.total,
73
- rowSelection = props.rowSelection;
74
-
75
- var _useState = (0, _react.useState)(function () {
76
- return mapTableRowKey(tableData);
77
- }),
78
- _useState2 = _slicedToArray(_useState, 2),
79
- tdata = _useState2[0],
80
- setTdata = _useState2[1];
81
-
82
- (0, _react.useEffect)(function () {
83
- setTdata(mapTableRowKey(tableData));
84
- }, tableData);
85
-
86
- if (rowSelection) {
87
- var rowSelected = rowSelection.rowSelected,
88
- setRowSelected = rowSelection.setRowSelected;
89
-
90
- var has = function has(id) {
91
- var status = false;
92
- rowSelected.map(function (item) {
93
- if (item === id) {
94
- status = true;
95
- }
96
- });
97
- return status;
98
- };
99
-
100
- var onCheckAllHandler = function onCheckAllHandler(checked) {
101
- var arr = [];
102
-
103
- if (checked) {
104
- for (var i = 0; i < tdata.length; i++) {
105
- arr.push(i);
106
- }
107
- }
108
-
109
- setRowSelected(arr);
110
- };
111
-
112
- var onCheckHandler = function onCheckHandler(checked, id) {
113
- var arr = _toConsumableArray(rowSelected);
114
-
115
- if (checked) {
116
- arr.push(id);
117
- arr.sort(function (a, b) {
118
- return a - b;
119
- });
120
- } else {
121
- arr.map(function (item, i) {
122
- if (item === id) {
123
- arr.splice(i, 1);
124
- }
125
- });
126
- }
127
-
128
- setRowSelected(arr);
129
- };
130
-
131
- var selectCloumn = {
132
- title: /*#__PURE__*/_react["default"].createElement("span", {
133
- className: (0, _classnames["default"])("".concat(preCls, "__select-td"))
134
- }, " ", /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
135
- className: "tita-checkbox",
136
- checked: rowSelected.length === tdata.length,
137
- onChange: onCheckAllHandler
138
- }), " "),
139
- dataIndex: "key",
140
- key: "key",
141
- width: 23,
142
- render: function render(id, data) {
143
- return /*#__PURE__*/_react["default"].createElement("span", {
144
- key: id,
145
- className: (0, _classnames["default"])("".concat(preCls, "__select-td"))
146
- }, /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
147
- className: "tita-checkbox",
148
- checked: has(id),
149
- name: id,
150
- onChange: onCheckHandler
151
- }));
152
- }
153
- };
154
- rowSelection && columns.unshift(selectCloumn);
155
- }
156
-
157
- return /*#__PURE__*/_react["default"].createElement("div", {
158
- className: (0, _classnames["default"])("".concat(preCls, "__table"))
159
- }, /*#__PURE__*/_react["default"].createElement(_rcTable["default"], {
160
- prefixCls: prefixCls || "rc-table",
161
- columns: columns,
162
- data: tdata,
163
- tableLayout: tableLayout || "auto"
164
- }), /*#__PURE__*/_react["default"].createElement("div", {
165
- className: (0, _classnames["default"])("".concat(preCls, "__table-pagination"))
166
- }, /*#__PURE__*/_react["default"].createElement(_rcPagination["default"], {
167
- pageSize: pageSize || 10,
168
- total: total,
169
- current: pageNum,
170
- onChange: function onChange(current) {
171
- return setPageNum(current);
172
- }
173
- })));
174
- }
@@ -1,293 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.addGroup = addGroup;
7
- exports.addGroupStaff = addGroupStaff;
8
- exports.deleteGroupType = deleteGroupType;
9
- exports.editGroup = editGroup;
10
- exports.getApiUrl = getApiUrl;
11
- exports.getDomain = getDomain;
12
- exports.getGroupList = getGroupList;
13
- exports.getTenantInfo = getTenantInfo;
14
- exports.getUserInfo = getUserInfo;
15
- exports.getVisible = getVisible;
16
- exports.isWx = exports.isDingDing = void 0;
17
- exports.removeGroupStaff = removeGroupStaff;
18
- exports.searchGroupStaffList = searchGroupStaffList;
19
- exports.searchUserDetail = searchUserDetail;
20
- exports.taker = taker;
21
-
22
- 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; }
23
-
24
- 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; }
25
-
26
- 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; }
27
-
28
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
29
-
30
- function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
31
-
32
- var tenantId = BSGlobal && BSGlobal.tenantInfo.Id || 0;
33
- var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
34
-
35
- function getTenantInfo() {
36
- return BSGlobal && BSGlobal.tenantInfo;
37
- }
38
-
39
- function getUserInfo() {
40
- return BSGlobal && BSGlobal.loginUserInfo;
41
- } // 模拟获取基础路径
42
-
43
-
44
- function getDomain() {
45
- if (!window.location.hostname.match(/dev/)) return "";
46
- return "http://www.tita.gift";
47
- }
48
- /**
49
- * 封装taker
50
- * @param {路由} url
51
- */
52
-
53
-
54
- function taker(_x, _x2, _x3) {
55
- return _taker.apply(this, arguments);
56
- }
57
- /**
58
- * 拼接 v1 url
59
- * @param {v1/之后的路径} url
60
- */
61
-
62
-
63
- function _taker() {
64
- _taker = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(url, method, body) {
65
- var header,
66
- settings,
67
- bodyStr,
68
- key,
69
- response,
70
- data,
71
- _args = arguments;
72
- return regeneratorRuntime.wrap(function _callee$(_context) {
73
- while (1) {
74
- switch (_context.prev = _context.next) {
75
- case 0:
76
- header = _args.length > 3 && _args[3] !== undefined ? _args[3] : {};
77
- settings = {};
78
-
79
- if (method) {
80
- settings.headers = _objectSpread({
81
- Accept: "application/json, application/xml, text/play, text/html, *.*",
82
- "Content-Type": "application/json; charset=utf-8"
83
- }, header);
84
- settings.method = method;
85
- }
86
-
87
- if (body) settings.body = JSON.stringify(body);
88
-
89
- if (settings.headers) {
90
- if (settings.headers["Content-Type"] == "application/x-www-form-urlencoded") {
91
- bodyStr = "";
92
-
93
- for (key in body) {
94
- bodyStr += "".concat(key, "=").concat(body[key], "&");
95
- }
96
-
97
- bodyStr.substring(0, bodyStr.length - 1);
98
- settings.body = bodyStr;
99
- }
100
- }
101
-
102
- settings.credentials = "same-origin"; // 有些组件里的参数已经做过一次编码****
103
-
104
- url = encodeURI(decodeURI(url));
105
- _context.next = 9;
106
- return fetch(url, settings);
107
-
108
- case 9:
109
- response = _context.sent;
110
- _context.next = 12;
111
- return response.json();
112
-
113
- case 12:
114
- data = _context.sent;
115
- return _context.abrupt("return", data);
116
-
117
- case 14:
118
- case "end":
119
- return _context.stop();
120
- }
121
- }
122
- }, _callee);
123
- }));
124
- return _taker.apply(this, arguments);
125
- }
126
-
127
- function getApiUrl(url) {
128
- var apiServer = getDomain(); // 获取基础路径***
129
-
130
- return "".concat(apiServer, "/api/v1/").concat(tenantId, "/").concat(userId, "/").concat(url);
131
- }
132
- /**
133
- * 检索群组列表
134
- * @param {*}
135
- */
136
-
137
-
138
- function getGroupList() {
139
- var url = getApiUrl("group/getAll?sourceFrom=fromback");
140
- return taker(url, "GET").then(function (res) {
141
- return res;
142
- });
143
- }
144
- /**
145
- * 添加群组列表
146
- * @param {群组名} groupName
147
- * @param {类型} groupvisible 0是全部,1是选特定人
148
- * @param {群组可使用人} groupvisible
149
- */
150
-
151
-
152
- function addGroup(obj) {
153
- var apiUrl = getApiUrl("group/add");
154
- return taker(apiUrl, "POST", {
155
- groupName: obj.groupName,
156
- groupVisiblity: obj.groupVisiblity,
157
- selectUserids: obj.selectUserids,
158
- selectDepartmentIds: obj.selectDepartmentIds,
159
- selectGroupIds: obj.selectGroupIds
160
- }).then(function (res) {
161
- return res;
162
- });
163
- }
164
- /**
165
- * 编辑群组列表前要获取群组可见范围
166
- * @param {群组名称} groupName
167
- * @param {群组id} groupId
168
- * @param {群组可使用人} groupvisible
169
- */
170
-
171
-
172
- function getVisible(groupId) {
173
- var apiUrl = getApiUrl("group/getVisible");
174
- var url = "".concat(apiUrl, "?groupId=").concat(groupId);
175
- return taker(url, "GET").then(function (res) {
176
- return res;
177
- });
178
- }
179
- /**
180
- * 编辑群组列表
181
- * @param {群组名称} groupName
182
- * @param {群组id} groupId
183
- * @param {群组可使用人} groupvisible
184
- */
185
-
186
-
187
- function editGroup(obj) {
188
- var apiUrl = getApiUrl("group/edit");
189
- return taker(apiUrl, "POST", {
190
- groupName: obj.groupName,
191
- groupId: obj.groupId,
192
- groupVisiblity: obj.groupVisiblity,
193
- selectUserids: obj.selectUserids,
194
- selectDepartmentIds: obj.selectDepartmentIds,
195
- selectGroupIds: obj.selectGroupIds
196
- }).then(function (res) {
197
- return res;
198
- });
199
- }
200
- /**
201
- * 删除群组
202
- * @param {群组名称} groupName
203
- * @param {群组id} groupId
204
- * @param {群组可使用人} groupvisible
205
- */
206
-
207
-
208
- function deleteGroupType(id) {
209
- var apiUrl = getApiUrl("group/delete");
210
- var url = "".concat(apiUrl, "?groupId=").concat(id);
211
- return taker(url, "POST").then(function (res) {
212
- return res;
213
- });
214
- }
215
- /**
216
- * 检索群组人员列表
217
- * @param {群组id} groupid
218
- * @param {群组当前页} groupPageNum
219
- */
220
-
221
-
222
- function searchGroupStaffList(groupid, groupPageNum, keyword) {
223
- var apiUrl = getApiUrl("group/user/get");
224
- return taker(apiUrl, "POST", {
225
- groupid: groupid,
226
- pagenum: groupPageNum,
227
- pagesize: 10,
228
- keyWords: keyword
229
- }).then(function (res) {
230
- return res;
231
- });
232
- }
233
- /**
234
- * 添加员工
235
- * @param {群组id} groupId
236
- * @param {selectedStaffList} list 选人列表的所有信息
237
- * groupid,(selectUserids或者selectDepartmentIds或者selectGroupIds必填)
238
- */
239
-
240
-
241
- function addGroupStaff(opt) {
242
- var apiUrl = getApiUrl("group/user/add");
243
- return taker(apiUrl, "POST", _objectSpread({}, opt)).then(function (res) {
244
- return res;
245
- });
246
- }
247
- /**
248
- * 移除员工
249
- * @param {群组id} groupId
250
- * @param {selectedStaffList} list 选人列表的所有信息
251
- */
252
-
253
-
254
- function removeGroupStaff(list, groupId) {
255
- var apiUrl = getApiUrl("group/user/remove");
256
- return taker(apiUrl, "POST", {
257
- groupid: groupId,
258
- selectUserids: list
259
- }).then(function (res) {
260
- return res;
261
- });
262
- }
263
- /**
264
- * 获取用户添加时的部门、群组信息
265
- * @param {群组id} groupId
266
- */
267
-
268
-
269
- function searchUserDetail(groupId) {
270
- var apiUrl = getApiUrl("group/user/detail");
271
- var url = "".concat(apiUrl, "?groupId=").concat(groupId);
272
- return taker(url, "get");
273
- }
274
- /*
275
- * 判断是钉钉
276
- */
277
-
278
-
279
- var isDingDing = function isDingDing() {
280
- return getTenantInfo().Source == 861;
281
- };
282
- /*
283
- * 判断是企业微信
284
- */
285
-
286
-
287
- exports.isDingDing = isDingDing;
288
-
289
- var isWx = function isWx() {
290
- return getTenantInfo().Source == 860;
291
- };
292
-
293
- exports.isWx = isWx;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _pageView = _interopRequireDefault(require("./page-view"));
9
-
10
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
- var _default = _pageView["default"];
13
- exports["default"] = _default;
@@ -1,111 +0,0 @@
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"] = _default;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _userSelector = _interopRequireDefault(require("../../../components/user-selector"));
15
-
16
- var _importGroupStaff = _interopRequireDefault(require("./importGroupStaff"));
17
-
18
- var _toast = _interopRequireDefault(require("../../../components/toast"));
19
-
20
- var _groupInterface = require("../groupInterface");
21
-
22
- require("./index.scss");
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 _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
31
-
32
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
-
34
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
-
36
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
-
38
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
-
40
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
-
42
- var preCls = "user-group-page";
43
-
44
- function _default(props) {
45
- var selectedGroupId = props.selectedGroupId;
46
-
47
- var _useState = (0, _react.useState)(false),
48
- _useState2 = _slicedToArray(_useState, 2),
49
- visible = _useState2[0],
50
- setVisible = _useState2[1];
51
-
52
- var _useState3 = (0, _react.useState)(false),
53
- _useState4 = _slicedToArray(_useState3, 2),
54
- importVisible = _useState4[0],
55
- setImportVisible = _useState4[1];
56
-
57
- var onAddGroupHandler = function onAddGroupHandler(selectedUsers) {
58
- var departments = selectedUsers.departments,
59
- users = selectedUsers.users,
60
- groups = selectedUsers.groups;
61
- (0, _groupInterface.addGroupStaff)({
62
- groupid: selectedGroupId,
63
- selectUserids: users.map(function (it) {
64
- return it.userId;
65
- }),
66
- selectDepartmentIds: departments.map(function (it) {
67
- return it.id;
68
- }),
69
- selectGroupIds: groups.map(function (it) {
70
- return it.id;
71
- })
72
- }).then(function (res) {
73
- if (res.Code === 1) {
74
- setVisible(false);
75
- props.getPageData();
76
- } else {
77
- _toast["default"].Error(res.Message);
78
- }
79
- });
80
- };
81
-
82
- var onDialogCloseHandler = function onDialogCloseHandler() {
83
- setVisible(false);
84
- };
85
-
86
- return /*#__PURE__*/_react["default"].createElement("div", {
87
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty"))
88
- }, /*#__PURE__*/_react["default"].createElement("div", {
89
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box"))
90
- }, /*#__PURE__*/_react["default"].createElement("img", {
91
- src: require("../images/kong.png")
92
- }), /*#__PURE__*/_react["default"].createElement("p", null, "\u5F53\u524D\u7FA4\u7EC4\u4E0B\u65E0\u5458\u5DE5"), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
93
- multiple: true,
94
- selectNodes: {},
95
- onOk: onAddGroupHandler,
96
- sourceFrom: "fromback",
97
- position: "center",
98
- trigger: /*#__PURE__*/_react["default"].createElement("span", {
99
- className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--gray"))
100
- }, getLocale("Pro_page_Ext_Tab_Addnow")),
101
- className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--gray"))
102
- }), /*#__PURE__*/_react["default"].createElement("span", {
103
- className: (0, _classnames["default"])("".concat(preCls, "__btn ").concat(preCls, "__btn--blue")),
104
- onClick: function onClick() {
105
- return setImportVisible(true);
106
- }
107
- }, "\u6279\u91CF\u5BFC\u5165"))), /*#__PURE__*/_react["default"].createElement(_importGroupStaff["default"], {
108
- visible: importVisible,
109
- setVisible: setImportVisible
110
- }));
111
- }
@@ -1,66 +0,0 @@
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"] = _default;
9
-
10
- var _react = _interopRequireWildcard(require("react"));
11
-
12
- var _classnames = _interopRequireDefault(require("classnames"));
13
-
14
- var _index = _interopRequireDefault(require("../tree/add-group-dialog/index"));
15
-
16
- require("./index.scss");
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- 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); }
21
-
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
-
24
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
25
-
26
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
27
-
28
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
29
-
30
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
-
32
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
33
-
34
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
-
36
- var preCls = "user-group-page";
37
-
38
- function _default(props) {
39
- var getGroup = props.getGroup;
40
-
41
- var _useState = (0, _react.useState)(false),
42
- _useState2 = _slicedToArray(_useState, 2),
43
- visible = _useState2[0],
44
- setVisible = _useState2[1];
45
-
46
- return /*#__PURE__*/_react["default"].createElement("div", {
47
- className: (0, _classnames["default"])("".concat(preCls, "__page-groupEmpty"))
48
- }, /*#__PURE__*/_react["default"].createElement("div", {
49
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty"))
50
- }, /*#__PURE__*/_react["default"].createElement("div", {
51
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box"))
52
- }, /*#__PURE__*/_react["default"].createElement("img", {
53
- src: require("../images/kong.png")
54
- }), /*#__PURE__*/_react["default"].createElement("div", {
55
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box-text"))
56
- }, "\u60A8\u53EF\u4EE5\u6839\u636E\u89D2\u8272\u3001\u56E2\u961F\u7B49\u8BBE\u7F6E\u7FA4\u7EC4\uFF0C", /*#__PURE__*/_react["default"].createElement("br", null), "\u8BBE\u7F6E\u540E\u53EF\u4EE5\u6839\u636E\u7FA4\u7EC4\u6DFB\u52A0\u4EBA\u5458\uFF0C\u7ACB\u5373", /*#__PURE__*/_react["default"].createElement("span", {
57
- className: (0, _classnames["default"])("".concat(preCls, "__page-empty-box-btn")),
58
- onClick: function onClick() {
59
- return setVisible(true);
60
- }
61
- }, "\u6DFB\u52A0\u7FA4\u7EC4")))), /*#__PURE__*/_react["default"].createElement(_index["default"], {
62
- visible: visible,
63
- setVisible: setVisible,
64
- getGroup: getGroup
65
- }));
66
- }