@titaui/pc 1.6.8 → 1.6.12

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 (330) hide show
  1. package/lib/components/avatar/index.js +1 -1
  2. package/lib/components/button/icon-btn/index.css +38 -0
  3. package/lib/components/button/icon-btn/index.js +62 -0
  4. package/lib/components/button/index.css +3 -0
  5. package/lib/components/button/index.js +16 -9
  6. package/lib/components/button/rect-btn/index.css +82 -0
  7. package/lib/components/button/rect-btn/index.js +62 -0
  8. package/lib/components/button/text-btn/index.css +0 -0
  9. package/lib/components/button/text-btn/index.js +15 -0
  10. package/lib/components/button/types.js +5 -0
  11. package/lib/components/change-okr/index.js +1 -1
  12. package/lib/components/change-okr/styledComponents.js +1 -1
  13. package/lib/components/communication/style.js +1 -1
  14. package/lib/components/condition-render/index.js +20 -0
  15. package/lib/components/create-okr/constant.js +1 -1
  16. package/lib/components/create-okr/fields/index.js +1 -1
  17. package/lib/components/create-okr/request-api.js +1 -1
  18. package/lib/components/create-okr/style.js +1 -1
  19. package/lib/components/create-okr/utils/helper.js +1 -1
  20. package/lib/components/delete-confirm-pop/style.js +1 -1
  21. package/lib/components/drawer/index.css +3 -1
  22. package/lib/components/drawer/index.js +2 -1
  23. package/lib/components/dropdown-layer/index.js +1 -1
  24. package/lib/components/dynamic/constant.js +1 -1
  25. package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -5
  26. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
  27. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -1
  28. package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -0
  29. package/lib/components/dynamic/dynamic-topping/request-api.js +1 -1
  30. package/lib/components/dynamic/export-module/index.js +1 -1
  31. package/lib/components/dynamic/index.js +1 -1
  32. package/lib/components/dynamic/request-api.js +1 -1
  33. package/lib/components/dynamic/util.js +1 -1
  34. package/lib/components/eReport/eReportLists/style.js +1 -1
  35. package/lib/components/eReport/eReportShare/style.js +1 -1
  36. package/lib/components/eReport/eReportShare/toast/style.js +1 -1
  37. package/lib/components/edit-kr-wight/style/index.js +1 -1
  38. package/lib/components/emotionsSelector/style.js +1 -1
  39. package/lib/components/file-list/index.js +1 -1
  40. package/lib/components/follower-visitor/img/follower-visitor-follower.png +0 -0
  41. package/lib/components/follower-visitor/img/follower-visitor-visitor.png +0 -0
  42. package/lib/components/follower-visitor/index.css +35 -0
  43. package/lib/components/follower-visitor/index.js +152 -0
  44. package/lib/components/follower-visitor/request-api.js +14 -0
  45. package/lib/components/form/form-fields/radios/index.css +25 -0
  46. package/lib/components/form/form-fields/radios/index.js +53 -0
  47. package/lib/components/form/index.js +5 -2
  48. package/lib/components/grid-page/commen-components/index.js +4 -4
  49. package/lib/components/grid-page/commen-components/scroll-tips.js +1 -1
  50. package/lib/components/grid-page/util/network.js +1 -1
  51. package/lib/components/help-card/image/canceled.svg +13 -0
  52. package/lib/components/help-card/image/helpzx.svg +8 -0
  53. package/lib/components/help-card/image/kefu.svg +18 -0
  54. package/lib/components/help-card/image/kefu1.svg +8 -0
  55. package/lib/components/help-card/image/okr-shequ.svg +14 -0
  56. package/lib/components/help-card/image/question.svg +20 -0
  57. package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
  58. package/lib/components/help-card/index.css +219 -0
  59. package/lib/components/help-card/index.js +282 -0
  60. package/lib/components/help-card/request-api.js +34 -0
  61. package/lib/components/invite-people/img/invite-people.png +0 -0
  62. package/lib/components/invite-people/index.css +9 -0
  63. package/lib/components/invite-people/index.js +28 -0
  64. package/lib/components/mblog/common/index.js +3 -3
  65. package/lib/components/mblog/style.js +1 -1
  66. package/lib/components/menus/components/drag-resize/index.css +18 -0
  67. package/lib/components/menus/components/drag-resize/index.js +77 -0
  68. package/lib/components/menus/components/flip-menu-card/back-icon.svg +25 -0
  69. package/lib/components/menus/components/flip-menu-card/flip-back-header.js +28 -0
  70. package/lib/components/menus/components/flip-menu-card/index.css +89 -0
  71. package/lib/components/menus/components/flip-menu-card/index.js +193 -0
  72. package/lib/components/menus/components/flip-menu-card/precls.js +8 -0
  73. package/lib/components/menus/components/menu-card/index.css +29 -0
  74. package/lib/components/menus/components/menu-card/index.js +53 -0
  75. package/lib/components/menus/components/menu-close-btn/index.css +42 -0
  76. package/lib/components/menus/components/menu-close-btn/index.js +40 -0
  77. package/lib/components/menus/components/menu-tree/images/appraisal-menu/PF-shezhi.svg +8 -0
  78. package/lib/components/menus/components/menu-tree/images/appraisal-menu/ZBmuban.svg +8 -0
  79. package/lib/components/menus/components/menu-tree/images/appraisal-menu/bumen.svg +9 -0
  80. package/lib/components/menus/components/menu-tree/images/appraisal-menu/kaohe.svg +10 -0
  81. package/lib/components/menus/components/menu-tree/images/appraisal-menu/uniEA10.svg +8 -0
  82. package/lib/components/menus/components/menu-tree/images/appraisal-menu/untitled.svg +10 -0
  83. package/lib/components/menus/components/menu-tree/images/arrow.svg +9 -0
  84. package/lib/components/menus/components/menu-tree/images/caidan-xiashu.svg +16 -0
  85. package/lib/components/menus/components/menu-tree/images/okr-menu/ditu.svg +18 -0
  86. package/lib/components/menus/components/menu-tree/images/okr-menu/guanzhu.svg +14 -0
  87. package/lib/components/menus/components/menu-tree/images/okr-menu/okr-gongsi.svg +18 -0
  88. package/lib/components/menus/components/menu-tree/images/okr-menu/okr.svg +19 -0
  89. package/lib/components/menus/components/menu-tree/images/okr-menu/rw-zx.svg +16 -0
  90. package/lib/components/menus/components/menu-tree/images/user-concern-add.svg +29 -0
  91. package/lib/components/menus/components/menu-tree/images/yibiao.svg +14 -0
  92. package/lib/components/menus/components/menu-tree/index.css +33 -0
  93. package/lib/components/menus/components/menu-tree/index.js +66 -0
  94. package/lib/components/menus/components/menu-tree/precls.js +8 -0
  95. package/lib/components/menus/components/menu-tree/tree-node/company-all-node.js +48 -0
  96. package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.css +17 -0
  97. package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +41 -0
  98. package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.css +24 -0
  99. package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +73 -0
  100. package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/group-name-node.js} +7 -14
  101. package/lib/components/menus/components/menu-tree/tree-node/index.css +360 -0
  102. package/lib/components/menus/components/menu-tree/tree-node/index.js +91 -0
  103. package/lib/components/menus/components/menu-tree/tree-node/menu-item-node.js +40 -0
  104. package/lib/components/menus/components/menu-tree/tree-node/menu-node.js +36 -0
  105. package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +86 -0
  106. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +56 -0
  107. package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +111 -0
  108. package/lib/components/menus/components/search-colleague/index.css +53 -0
  109. package/lib/components/menus/components/search-colleague/index.js +88 -0
  110. package/lib/components/menus/context.js +14 -0
  111. package/lib/components/menus/export-modules/appraisal-menus/datas.js +109 -0
  112. package/lib/components/menus/export-modules/appraisal-menus/index.css +0 -0
  113. package/lib/components/menus/export-modules/appraisal-menus/index.js +89 -0
  114. package/lib/components/menus/export-modules/depart-menus/helper.js +54 -0
  115. package/lib/components/menus/export-modules/depart-menus/index.css +0 -0
  116. package/lib/components/menus/export-modules/depart-menus/index.js +99 -0
  117. package/lib/components/menus/export-modules/okr-menus/datas.js +189 -0
  118. package/lib/components/menus/export-modules/okr-menus/index.css +33 -0
  119. package/lib/components/menus/export-modules/okr-menus/index.js +166 -0
  120. package/lib/components/menus/export-modules/subordinate-menus/helper.js +25 -0
  121. package/lib/components/menus/export-modules/subordinate-menus/index.js +108 -0
  122. package/lib/components/menus/index.css +20 -0
  123. package/lib/components/menus/index.js +51 -0
  124. package/lib/components/menus/precls.js +8 -0
  125. package/lib/components/menus/request-apis.js +97 -0
  126. package/lib/components/menus/types.js +5 -0
  127. package/lib/components/menus/utils.js +33 -0
  128. package/lib/components/nav-top/components/menu/index.css +90 -0
  129. package/lib/components/nav-top/components/menu/index.js +115 -0
  130. package/lib/components/nav-top/components/user-message/components/empty/index.css +30 -0
  131. package/lib/components/nav-top/components/user-message/components/empty/index.js +36 -0
  132. package/lib/components/nav-top/components/user-message/components/inform/index.css +114 -0
  133. package/lib/components/nav-top/components/user-message/components/inform/index.js +152 -0
  134. package/lib/components/nav-top/components/user-message/components/remind/index.css +159 -0
  135. package/lib/components/nav-top/components/user-message/components/remind/index.js +120 -0
  136. package/lib/components/nav-top/components/user-message/components/reply/index.css +132 -0
  137. package/lib/components/nav-top/components/user-message/components/reply/index.js +100 -0
  138. package/lib/components/nav-top/components/user-message/components/tab-title/index.js +31 -0
  139. package/lib/components/nav-top/components/user-message/components/todos/index.css +129 -0
  140. package/lib/components/nav-top/components/user-message/components/todos/index.js +98 -0
  141. package/lib/components/nav-top/components/user-message/constant.js +39 -0
  142. package/lib/components/nav-top/components/user-message/images/app-tixing.svg +30 -0
  143. package/lib/components/nav-top/components/user-message/images/bell.svg +18 -0
  144. package/lib/components/nav-top/components/user-message/images/empty-img.svg +130 -0
  145. package/lib/components/nav-top/components/user-message/images/user-photo.png +0 -0
  146. package/lib/components/nav-top/components/user-message/index.css +77 -0
  147. package/lib/components/nav-top/components/user-message/index.js +180 -0
  148. package/lib/components/nav-top/components/user-message/msg/index.css +122 -0
  149. package/lib/components/nav-top/components/user-message/msg/index.js +102 -0
  150. package/lib/components/nav-top/components/user-own-menu/index.css +61 -0
  151. package/lib/components/{button/admin-button/drop-down-arrow.js → nav-top/components/user-own-menu/index.js} +29 -54
  152. package/lib/components/nav-top/components/version/index.css +22 -0
  153. package/lib/components/{button/export-button → nav-top/components/version}/index.js +31 -40
  154. package/lib/components/nav-top/constant.js +42 -0
  155. package/lib/components/nav-top/images/app-tixing.svg +30 -0
  156. package/lib/components/nav-top/images/bell.svg +18 -0
  157. package/lib/components/nav-top/images/empty-img.svg +130 -0
  158. package/lib/components/nav-top/images/exit.svg +21 -0
  159. package/lib/components/nav-top/images/home.png +0 -0
  160. package/lib/components/nav-top/images/manage.png +0 -0
  161. package/lib/components/nav-top/images/manage.svg +21 -0
  162. package/lib/components/nav-top/images/open.svg +21 -0
  163. package/lib/components/nav-top/images/own-home.svg +19 -0
  164. package/lib/components/nav-top/images/qiye-o.svg +25 -0
  165. package/lib/components/nav-top/images/set.svg +19 -0
  166. package/lib/components/nav-top/images/user-photo.png +0 -0
  167. package/lib/components/nav-top/images/version.png +0 -0
  168. package/lib/components/nav-top/index.css +89 -0
  169. package/lib/components/nav-top/index.js +137 -0
  170. package/lib/components/nav-top/interface.js +5 -0
  171. package/lib/components/nav-top/mock.js +36 -0
  172. package/lib/components/nav-top/utils.js +77 -0
  173. package/lib/components/okr-detail/auth.js +1 -1
  174. package/lib/components/okr-detail/base-info/util.js +1 -1
  175. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/constant.js +1 -1
  176. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +1 -1
  177. package/lib/components/okr-detail/context.js +1 -1
  178. package/lib/components/okr-detail/detail-header/delete-confirm/style.js +1 -1
  179. package/lib/components/okr-detail/detail-header/enums.js +1 -1
  180. package/lib/components/okr-detail/e-list/constant.js +1 -1
  181. package/lib/components/okr-detail/e-list/util.js +1 -1
  182. package/lib/components/okr-detail/okr-list/create-kr-item/style.js +1 -1
  183. package/lib/components/okr-detail/okr-list/drag-order-kr.js +1 -1
  184. package/lib/components/okr-detail/okr-list/index.js +1 -2
  185. package/lib/components/okr-detail/request-apis.js +1 -1
  186. package/lib/components/okr-detail/schedule/util.js +1 -1
  187. package/lib/components/okr-flow/index.js +1 -1
  188. package/lib/components/okr-flow/mini-map/utils.js +1 -1
  189. package/lib/components/okr-flow/open-data/index.js +1 -1
  190. package/lib/components/okr-flow/request-apis.js +1 -1
  191. package/lib/components/okr-flow/utils/config.js +1 -1
  192. package/lib/components/okr-flow/utils/index.js +1 -1
  193. package/lib/components/okr-flow/utils/tree-handler.js +1 -1
  194. package/lib/components/okr-progress/request-apis.js +1 -1
  195. package/lib/components/okr-progress/util.js +1 -1
  196. package/lib/components/okr-progress-detail/utils.js +1 -1
  197. package/lib/components/okr-progress-modal/helper.js +1 -1
  198. package/lib/components/okr-progress-modal/style.js +1 -1
  199. package/lib/components/okr-progress-modal/textarea/style.js +1 -1
  200. package/lib/components/okr-review/ReviewPop/components/ReviewBody/style.js +1 -1
  201. package/lib/components/okr-review/ReviewPop/style.js +1 -1
  202. package/lib/components/okr-review/components/ReviewItem/style.js +1 -1
  203. package/lib/components/okr-review/components/confirm-pop/style.js +1 -1
  204. package/lib/components/okr-review/style.js +1 -1
  205. package/lib/components/okr-share/common-painter/utils.js +1 -1
  206. package/lib/components/okr-share/pink-card/images.js +1 -1
  207. package/lib/components/okr-share/request-apis.js +1 -1
  208. package/lib/components/okrcase-library/index.css +0 -1
  209. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +1 -1
  210. package/lib/components/okrcase-library/server/network.js +1 -1
  211. package/lib/components/open-data-painter/index.js +1 -1
  212. package/lib/components/operation-records/style.js +1 -1
  213. package/lib/components/period-selector/common.js +2 -2
  214. package/lib/components/period-selector/components/button/style.js +1 -1
  215. package/lib/components/period-selector/components/selector/style.js +1 -1
  216. package/lib/components/period-selector/helper/index.js +1 -1
  217. package/lib/components/period-selector/mockData.js +1 -1
  218. package/lib/components/period-selector/style.js +1 -1
  219. package/lib/components/photo-card/components/card/index.css +196 -0
  220. package/lib/components/photo-card/components/card/index.js +106 -0
  221. package/lib/components/photo-card/data.js +19 -0
  222. package/lib/components/photo-card/images/user-add.svg +19 -0
  223. package/lib/components/photo-card/images/user-photo.png +0 -0
  224. package/lib/components/photo-card/images/user-role.svg +38 -0
  225. package/lib/components/photo-card/index.css +29 -0
  226. package/lib/components/photo-card/index.js +51 -0
  227. package/lib/components/photo-card/types/image.d.js +1 -0
  228. package/lib/components/photo-card/types/react-app-env.d.js +2 -0
  229. package/lib/components/point-demo/drop-down-box/index.css +98 -0
  230. package/lib/components/point-demo/drop-down-box/index.js +159 -0
  231. package/lib/components/point-demo/image/demo-bcg.png +0 -0
  232. package/lib/components/point-demo/image/down.svg +14 -0
  233. package/lib/components/point-demo/image/icon-canceled.svg +7 -0
  234. package/lib/components/point-demo/image/logo.svg +64 -0
  235. package/lib/components/point-demo/index.css +348 -0
  236. package/lib/components/point-demo/index.js +657 -0
  237. package/lib/components/point-demo/input/index.css +74 -0
  238. package/lib/components/point-demo/input/index.js +176 -0
  239. package/lib/components/point-demo/point-demo.js +93 -0
  240. package/lib/components/point-demo/popup/index.css +7 -0
  241. package/lib/components/point-demo/popup/index.js +113 -0
  242. package/lib/components/point-demo/popup/placement.js +44 -0
  243. package/lib/components/point-demo/popup/rc-trigger.css +127 -0
  244. package/lib/components/pop-down-notification/components/SuccessRender.js +1 -1
  245. package/lib/components/pop-down-notification/style/index.js +1 -1
  246. package/lib/components/praise-record/style.js +1 -1
  247. package/lib/components/progress/index.js +1 -1
  248. package/lib/components/publish-dynamic-modal/requist-api.js +1 -1
  249. package/lib/components/radio/radio.js +1 -1
  250. package/lib/components/tabs/index.js +1 -1
  251. package/lib/components/task-relation/helper.js +1 -1
  252. package/lib/components/task-relation/request-api.js +1 -1
  253. package/lib/components/tita-chart/index.js +4 -4
  254. package/lib/components/tita-chart/util/index.js +12 -12
  255. package/lib/components/tita-chart/util/utils.js +1 -1
  256. package/lib/components/tooltip/index.js +1 -1
  257. package/lib/components/tooltip/tooltip-text/index.js +10 -4
  258. package/lib/components/tree/index.js +1 -1
  259. package/lib/components/upload/style.js +1 -1
  260. package/lib/components/upload/util.js +1 -1
  261. package/lib/components/upvote/request-apis.js +1 -1
  262. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +2 -2
  263. package/lib/components/user-selector/export-modules/field-tree-selector/multiple-selector/index.js +2 -2
  264. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +4 -1
  265. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/user-list.js +1 -1
  266. package/lib/components/user-selector/index.js +1 -1
  267. package/lib/components/user-selector/layout/index.css +1 -1
  268. package/lib/components/user-selector/layout/index.js +4 -1
  269. package/lib/components/user-selector/request-apis.js +1 -1
  270. package/lib/components/user-selector/utils.js +1 -1
  271. package/lib/components/version-change-modal/constant.js +45 -0
  272. package/lib/components/version-change-modal/images/header-b.png +0 -0
  273. package/lib/components/version-change-modal/images/header-g.png +0 -0
  274. package/lib/components/version-change-modal/images/header-y.png +0 -0
  275. package/lib/components/version-change-modal/images/okr.png +0 -0
  276. package/lib/components/version-change-modal/images/okre.png +0 -0
  277. package/lib/components/version-change-modal/images/performance.png +0 -0
  278. package/lib/components/version-change-modal/images/performancePlus.png +0 -0
  279. package/lib/components/version-change-modal/images/project.png +0 -0
  280. package/lib/components/version-change-modal/images/title.png +0 -0
  281. package/lib/components/version-change-modal/index.css +150 -0
  282. package/lib/components/version-change-modal/index.js +175 -0
  283. package/lib/components/version-change-modal/interface.js +5 -0
  284. package/lib/components/version-change-modal/request-api.js +41 -0
  285. package/lib/components/viewer/index.js +1 -1
  286. package/lib/components-v1/avatar/styles.js +1 -1
  287. package/lib/components-v1/buttonv2/style/style.js +1 -1
  288. package/lib/components-v1/input/Input.js +1 -1
  289. package/lib/components-v1/input/InputNumber.js +1 -1
  290. package/lib/components-v1/input/style/index.js +1 -1
  291. package/lib/components-v1/popConfirm/style.js +1 -1
  292. package/lib/components-v1/radio/style/index.css +3 -3
  293. package/lib/components-v1/tabs/style.js +1 -1
  294. package/lib/components-v1/textarea/style.js +1 -1
  295. package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
  296. package/lib/components-v1/userSelector/style.js +1 -1
  297. package/lib/index.js +56 -6
  298. package/lib/pages/aha2021/index.css +42 -0
  299. package/lib/pages/aha2021/index.js +62 -0
  300. package/lib/pages/group-management/components/PopDownNotification/components/SuccessRender.js +1 -1
  301. package/lib/pages/group-management/components/PopDownNotification/style/index.js +1 -1
  302. package/lib/pages/group-management/components/openData/index.js +1 -1
  303. package/lib/pages/group-management/groupInterface.js +10 -10
  304. package/lib/pages/home-page/components/data-list/table/columns/index.js +1 -1
  305. package/lib/pages/okr-map/hooks/useStorage.js +2 -2
  306. package/lib/pages/okr-map/open-data/index.js +1 -1
  307. package/lib/pages/okr-map/request-apis.js +1 -1
  308. package/lib/pages/okr-map/utils.js +12 -9
  309. package/lib/pages/personal-info/components/base-info/index.css +36 -0
  310. package/lib/pages/personal-info/components/base-info/index.js +179 -0
  311. package/lib/pages/personal-info/index.css +3 -0
  312. package/lib/pages/personal-info/index.js +27 -0
  313. package/lib/pages/personal-info/request-api.js +32 -0
  314. package/lib/utils/auth.js +1 -1
  315. package/lib/utils/bs-global.js +16 -1
  316. package/lib/utils/format-time.js +1 -1
  317. package/lib/utils/helpers.js +1 -1
  318. package/lib/utils/mblog.js +1 -1
  319. package/lib/utils/open-data.js +1 -1
  320. package/lib/utils/platform.js +1 -1
  321. package/lib/utils/request-v1.js +2 -2
  322. package/lib/utils/request.js +1 -1
  323. package/lib/utils/roundWeight.js +2 -2
  324. package/lib/utils/tools.js +3 -4
  325. package/package.json +2 -1
  326. package/lib/components/button/admin-button/default.js +0 -35
  327. package/lib/components/button/admin-button/index.css +0 -86
  328. package/lib/components/button/admin-button/index.js +0 -40
  329. package/lib/components/button/admin-button/secondary.js +0 -35
  330. package/lib/components/button/export-button/index.css +0 -51
@@ -3,21 +3,21 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
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
6
  exports.getTenantInfo = getTenantInfo;
14
7
  exports.getUserInfo = getUserInfo;
8
+ exports.getDomain = getDomain;
9
+ exports.taker = taker;
10
+ exports.getApiUrl = getApiUrl;
11
+ exports.getGroupList = getGroupList;
12
+ exports.addGroup = addGroup;
15
13
  exports.getVisible = getVisible;
16
- exports.isWx = exports.isDingDing = void 0;
17
- exports.removeGroupStaff = removeGroupStaff;
14
+ exports.editGroup = editGroup;
15
+ exports.deleteGroupType = deleteGroupType;
18
16
  exports.searchGroupStaffList = searchGroupStaffList;
17
+ exports.addGroupStaff = addGroupStaff;
18
+ exports.removeGroupStaff = removeGroupStaff;
19
19
  exports.searchUserDetail = searchUserDetail;
20
- exports.taker = taker;
20
+ exports.isWx = exports.isDingDing = void 0;
21
21
 
22
22
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
23
23
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.okrUpdateColumns = exports.okrAlignColumns = exports.myOkrColumns = void 0;
6
+ exports.myOkrColumns = exports.okrUpdateColumns = exports.okrAlignColumns = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.getHashQuery = exports["default"] = void 0;
6
+ exports["default"] = exports.getHashQuery = void 0;
7
7
 
8
8
  var _react = require("react");
9
9
 
@@ -25,7 +25,7 @@ var getHashQuery = function getHashQuery(queryKey) {
25
25
  var queryValue;
26
26
  var urlHash = decodeURIComponent(window.location.hash);
27
27
  var hashQueryStr = urlHash.split('?')[1];
28
- hashQueryStr.split('&').forEach(function (it) {
28
+ hashQueryStr && hashQueryStr.split('&').forEach(function (it) {
29
29
  var _it$split = it.split('='),
30
30
  _it$split2 = _slicedToArray(_it$split, 2),
31
31
  key = _it$split2[0],
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.isWechat = exports.getSource = exports.getOpenId = exports.OpenUserName = exports.OpenDepartmentName = void 0;
8
+ exports.OpenDepartmentName = exports.OpenUserName = exports.getOpenId = exports.isWechat = exports.getSource = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.onUpdateKr = exports.getShareUrl = exports.checkTenantOkrExist = void 0;
6
+ exports.checkTenantOkrExist = exports.onUpdateKr = exports.getShareUrl = void 0;
7
7
 
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
 
@@ -3,21 +3,24 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.closeFullscreen = exports.OkrTypeSetting = void 0;
7
6
  exports.getBSGlobal = getBSGlobal;
8
- exports.tenantName = exports.tenantLogo = exports.openFullscreen = exports.okrTypeMap = void 0;
7
+ exports.okrTypeMap = exports.OkrTypeSetting = exports.tenantLogo = exports.tenantName = exports.closeFullscreen = exports.openFullscreen = void 0;
9
8
 
10
9
  var openFullscreen = function openFullscreen() {
11
10
  // 隐藏侧边栏和头部
12
- document.querySelector('.tu-page-nav').style.display = 'none';
13
- document.querySelector('.tu-page-header').style.display = 'none';
11
+ if (!getBSGlobal("tenantInfo").isNewIndex) {
12
+ document.querySelector(".tu-page-nav").style.display = "none";
13
+ document.querySelector(".tu-page-header").style.display = "none";
14
+ }
14
15
  };
15
16
 
16
17
  exports.openFullscreen = openFullscreen;
17
18
 
18
19
  var closeFullscreen = function closeFullscreen() {
19
- document.querySelector('.tu-page-nav').style.display = 'block';
20
- document.querySelector('.tu-page-header').style.display = 'block';
20
+ if (!getBSGlobal("tenantInfo").isNewIndex) {
21
+ document.querySelector(".tu-page-nav").style.display = "block";
22
+ document.querySelector(".tu-page-header").style.display = "block";
23
+ }
21
24
  };
22
25
 
23
26
  exports.closeFullscreen = closeFullscreen;
@@ -26,11 +29,11 @@ function getBSGlobal(name) {
26
29
  return name ? BSGlobal && BSGlobal[name] : BSGlobal;
27
30
  }
28
31
 
29
- var tenantName = getBSGlobal('tenantInfo').Name || '';
32
+ var tenantName = getBSGlobal("tenantInfo").Name || "";
30
33
  exports.tenantName = tenantName;
31
- var tenantLogo = getBSGlobal('tenantInfo').Logo || '';
34
+ var tenantLogo = getBSGlobal("tenantInfo").Logo || "";
32
35
  exports.tenantLogo = tenantLogo;
33
- var KRSetting = (getBSGlobal('OkrAdvancedSetting') || {}).KRSetting; // KRSetting
36
+ var KRSetting = (getBSGlobal("OkrAdvancedSetting") || {}).KRSetting; // KRSetting
34
37
 
35
38
  var OkrTypeSetting = (KRSetting || {}).OkrTypeSetting || false; // 是否开启目标类型 true | false
36
39
 
@@ -0,0 +1,36 @@
1
+ .titaui-personal-info-base-info {
2
+ background: #ffffff;
3
+ box-shadow: 0px 0px 8px 0px rgba(127, 145, 180, 0.1);
4
+ border-radius: 12px;
5
+ padding: 20px 32px;
6
+ font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
7
+ }
8
+
9
+ .titaui-personal-info-base-info__header {
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: space-between;
13
+ margin-bottom: 12px;
14
+ }
15
+
16
+ .titaui-personal-info-base-info__header-title {
17
+ font-size: 16px;
18
+ font-weight: 600;
19
+ color: #141c28;
20
+ line-height: 24px;
21
+ position: relative;
22
+ display: inline-flex;
23
+ align-items: center;
24
+ }
25
+
26
+ .titaui-personal-info-base-info__header-title::before {
27
+ content: "";
28
+ width: 4px;
29
+ height: 16px;
30
+ background: linear-gradient(90deg, #4e90ff 0%, #2879ff 100%);
31
+ border-radius: 2px;
32
+ display: inline-block;
33
+ position: absolute;
34
+ left: -8px;
35
+ top: 3px;
36
+ }
@@ -0,0 +1,179 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+
10
+ var _react = _interopRequireWildcard(require("react"));
11
+
12
+ var _button = require("../../../../components/button");
13
+
14
+ var _form = _interopRequireWildcard(require("../../../../components/form"));
15
+
16
+ var _requestApi = require("../../request-api");
17
+
18
+ var _popDownNotification = require("../../../../components/pop-down-notification");
19
+
20
+ require("./index.css");
21
+
22
+ 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); }
23
+
24
+ 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; }
25
+
26
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
27
+
28
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
29
+
30
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
31
+
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+
34
+ 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."); }
35
+
36
+ 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); }
37
+
38
+ 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; }
39
+
40
+ 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; }
41
+
42
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
+
44
+ var prefix = "titaui-personal-info-base-info";
45
+
46
+ var BaseInfo = function BaseInfo() {
47
+ var formRef = (0, _react.useRef)();
48
+
49
+ var _useState = (0, _react.useState)({
50
+ name: "",
51
+ email: "",
52
+ mobile: ""
53
+ }),
54
+ _useState2 = _slicedToArray(_useState, 2),
55
+ userInfo = _useState2[0],
56
+ setUserInfo = _useState2[1];
57
+
58
+ var _useState3 = (0, _react.useState)(true),
59
+ _useState4 = _slicedToArray(_useState3, 2),
60
+ isDisable = _useState4[0],
61
+ setIsDisable = _useState4[1];
62
+
63
+ var handleSaveInfo = function handleSaveInfo() {
64
+ //校验
65
+ var err = formRef.current.verifing({
66
+ truonlyFirstErrore: false
67
+ });
68
+
69
+ if (err.length > 0) {
70
+ return;
71
+ } else {
72
+ (0, _requestApi.saveUserInfo)({
73
+ data: userInfo
74
+ }).then(function (resp) {
75
+ if (resp.Code === 1) {
76
+ _popDownNotification.Toast.Success("更新成功", {
77
+ canClose: false
78
+ });
79
+ } else {
80
+ _popDownNotification.Toast.Error(resp.Message, {
81
+ canClose: false
82
+ });
83
+ }
84
+ });
85
+ }
86
+ };
87
+
88
+ var handleNameChange = function handleNameChange(value) {
89
+ setUserInfo(_objectSpread(_objectSpread({}, userInfo), {}, {
90
+ name: value || ""
91
+ }));
92
+ };
93
+
94
+ var handlePhoneChange = function handlePhoneChange(value) {
95
+ setUserInfo(_objectSpread(_objectSpread({}, userInfo), {}, {
96
+ mobile: value || ""
97
+ }));
98
+ };
99
+
100
+ var handleEmailChange = function handleEmailChange(value) {
101
+ setUserInfo(_objectSpread(_objectSpread({}, userInfo), {}, {
102
+ email: value || ""
103
+ }));
104
+ };
105
+
106
+ (0, _react.useEffect)(function () {
107
+ (0, _requestApi.getUserInfoFun)().then(function (resp) {
108
+ if (resp.Code === 1) {
109
+ setUserInfo(resp.Data);
110
+ } else {
111
+ _popDownNotification.Toast.Error(resp.Message, {
112
+ canClose: false
113
+ });
114
+ }
115
+ });
116
+ }, []);
117
+ (0, _react.useEffect)(function () {
118
+ if (userInfo.name && userInfo.mobile) {
119
+ setIsDisable(false);
120
+ } else {
121
+ setIsDisable(true);
122
+ }
123
+ }, [userInfo]);
124
+ return /*#__PURE__*/_react["default"].createElement("div", {
125
+ className: prefix
126
+ }, /*#__PURE__*/_react["default"].createElement("div", {
127
+ className: "".concat(prefix, "__header")
128
+ }, /*#__PURE__*/_react["default"].createElement("span", {
129
+ className: "".concat(prefix, "__header-title")
130
+ }, "\u57FA\u672C\u4FE1\u606F"), /*#__PURE__*/_react["default"].createElement(_button.RectBtn, {
131
+ type: "primary",
132
+ text: "保存",
133
+ disabled: isDisable,
134
+ onClick: handleSaveInfo
135
+ })), /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_form["default"], {
136
+ ref: formRef
137
+ }, /*#__PURE__*/_react["default"].createElement(_form.FormFields.Input, {
138
+ name: "name",
139
+ label: "姓名",
140
+ placeholder: "请输入姓名",
141
+ type: "text",
142
+ require: true,
143
+ verifies: [{
144
+ "tip": "姓名不能为空",
145
+ "test": /\S/
146
+ }],
147
+ value: userInfo.name,
148
+ onChange: handleNameChange
149
+ }), /*#__PURE__*/_react["default"].createElement(_form.FormFields.Input, {
150
+ name: "phone",
151
+ type: "text",
152
+ label: "手机号码",
153
+ placeholder: "请输入联系手机号码",
154
+ require: true,
155
+ value: userInfo.mobile,
156
+ verifies: [{
157
+ "tip": "手机号不能为空",
158
+ "test": /^[\s\S]+$/
159
+ }, {
160
+ "tip": "请输入11位手机号",
161
+ "test": /^1[3456789]\d{9}$/
162
+ }],
163
+ onChange: handlePhoneChange
164
+ }), /*#__PURE__*/_react["default"].createElement(_form.FormFields.Input, {
165
+ name: "email",
166
+ type: "text",
167
+ label: "电子邮箱",
168
+ value: userInfo.email,
169
+ placeholder: "请输入联系邮箱",
170
+ verifies: [{
171
+ "tip": "邮箱格式错误",
172
+ "test": /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/
173
+ }],
174
+ onChange: handleEmailChange
175
+ }))));
176
+ };
177
+
178
+ var _default = BaseInfo;
179
+ exports["default"] = _default;
@@ -0,0 +1,3 @@
1
+ .titaui-personal-info {
2
+ margin-top: 20px;
3
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+
8
+ var _react = _interopRequireDefault(require("react"));
9
+
10
+ var _baseInfo = _interopRequireDefault(require("./components/base-info"));
11
+
12
+ var _aha = require("../aha2021");
13
+
14
+ require("./index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ var prefix = "titaui-personal-info";
19
+
20
+ var PersonalInfo = function PersonalInfo() {
21
+ return /*#__PURE__*/_react["default"].createElement(_aha.ContentTemplate, null, /*#__PURE__*/_react["default"].createElement("div", {
22
+ className: prefix
23
+ }, /*#__PURE__*/_react["default"].createElement(_baseInfo["default"], null)));
24
+ };
25
+
26
+ var _default = PersonalInfo;
27
+ exports["default"] = _default;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.saveUserInfo = exports.getUserInfoFun = void 0;
7
+
8
+ var _qs = _interopRequireDefault(require("qs"));
9
+
10
+ var _request = require("../../utils/request");
11
+
12
+ var _bsGlobal = require("../../utils/bs-global");
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ var getUserInfoFun = function getUserInfoFun() {
17
+ return (0, _request.rget)("v2")("user/geteditinfo?to_user_id=".concat((0, _bsGlobal.getUserInfo)().Id));
18
+ };
19
+
20
+ exports.getUserInfoFun = getUserInfoFun;
21
+
22
+ var saveUserInfo = function saveUserInfo(_ref) {
23
+ var data = _ref.data;
24
+ return (0, _request.rput)("v1")("manage/user/update", data, {
25
+ "headers": {
26
+ "Content-Type": "application/x-www-form-urlencoded"
27
+ },
28
+ "transformRequest": _qs["default"].stringify
29
+ });
30
+ };
31
+
32
+ exports.saveUserInfo = saveUserInfo;
package/lib/utils/auth.js CHANGED
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.hasSuperior = exports.OAuth = exports.KRAuth = exports.EAuth = exports.DynamicManagerAuth = exports.BaseAuth = void 0;
8
+ exports.DynamicManagerAuth = exports.hasSuperior = exports.EAuth = exports.KRAuth = exports.OAuth = exports.BaseAuth = void 0;
9
9
 
10
10
  var _bsGlobal = require("./bs-global");
11
11
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.hasWebHead = exports.getUserInfo = exports.getUploadMaxSize = exports.getTenantInfo = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getAppHead = exports.formatNum = void 0;
7
6
  exports.isWx = isWx;
7
+ exports.hasWebHead = exports.formatNum = exports.getAppHead = exports.getUploadMaxSize = exports.getSource = exports.getVersion = exports.getOkrAdvancedSetting = exports.getBSGlobal = exports.getTenantInfo = exports.getUserInfo = void 0;
8
8
 
9
9
  var _mockBsglobal = require("./mock-bsglobal");
10
10
 
@@ -36,6 +36,21 @@ var getOkrAdvancedSetting = function getOkrAdvancedSetting() {
36
36
 
37
37
  exports.getOkrAdvancedSetting = getOkrAdvancedSetting;
38
38
 
39
+ var getVersion = function getVersion() {
40
+ // version 1 试用版
41
+ if (window.location.host.indexOf("127.0.0.1") !== -1) return _mockBsglobal.BSGlobal["tenantAuthentication"].Version;
42
+ return window.BSGlobal["tenantAuthentication"].Version;
43
+ };
44
+
45
+ exports.getVersion = getVersion;
46
+
47
+ var getSource = function getSource() {
48
+ var info = getBSGlobal("tenantInfo");
49
+ return info.Source;
50
+ };
51
+
52
+ exports.getSource = getSource;
53
+
39
54
  var getUploadMaxSize = function getUploadMaxSize() {
40
55
  var info = getBSGlobal("tenantInfo");
41
56
  var isDingDing = info.Source == 861;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.timeFormat = exports.showWeekLastDay = exports.showWeekFirstDay = exports.showNextWeekFirstDay = exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.getTimeString = exports.getNextDayOfYear = exports.getFirstDayOfYear = void 0;
6
+ exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.showNextWeekFirstDay = exports.showWeekLastDay = exports.showWeekFirstDay = exports.getNextDayOfYear = exports.getFirstDayOfYear = exports.timeFormat = exports.getTimeString = void 0;
7
7
 
8
8
  var getTimeString = function getTimeString(time, nowTime) {
9
9
  if (!time) {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.cssSupport = cssSupport;
7
- exports.getTenantInfo = getTenantInfo;
8
7
  exports.getUploadMaxSize = getUploadMaxSize;
8
+ exports.getTenantInfo = getTenantInfo;
9
9
  exports.isDingDing = void 0;
10
10
 
11
11
  var _bsGlobal = require("./bs-global");
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
7
6
  exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
7
+ exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
8
8
 
9
9
  // html标签转义
10
10
  function htmlEncodeByRegExp(str) {
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.parseTag = exports.parseString = exports.isWechat = exports.isPlatform = exports.getSource = exports.getOpenId = exports.OpenUserName = exports.OpenDepartmentName = void 0;
8
+ exports.parseString = exports.parseTag = exports.isPlatform = exports.OpenDepartmentName = exports.OpenUserName = exports.getOpenId = exports.isWechat = exports.getSource = void 0;
9
9
 
10
10
  var _react = _interopRequireWildcard(require("react"));
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.isPlatform = exports.isFeishu = exports.isDD = exports.getPlatformConfig = exports.PlatformItem = void 0;
6
+ exports.PlatformItem = exports.isFeishu = exports.isDD = exports.getPlatformConfig = exports.isPlatform = void 0;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.taker = taker;
6
7
  exports.getApiUrl = getApiUrl;
7
- exports.getApiUrl2 = getApiUrl2;
8
8
  exports.getApiUrl3 = getApiUrl3;
9
- exports.taker = taker;
9
+ exports.getApiUrl2 = getApiUrl2;
10
10
 
11
11
  var _bsGlobal = require("./bs-global");
12
12
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.rput = exports.rpost = exports.rget = exports.rdelete = exports.postForTableList = void 0;
6
+ exports.postForTableList = exports.rdelete = exports.rput = exports.rget = exports.rpost = void 0;
7
7
 
8
8
  var _axios = _interopRequireDefault(require("axios"));
9
9
 
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.RoundWeight = RoundWeight;
7
+ exports.ReCalibratePrecision = ReCalibratePrecision;
6
8
  exports.AccAdd = AccAdd;
7
9
  exports.AccMul = AccMul;
8
- exports.ReCalibratePrecision = ReCalibratePrecision;
9
- exports.RoundWeight = RoundWeight;
10
10
 
11
11
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
12
12
 
@@ -3,12 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
7
+ exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
6
8
  exports.changeQueryString = changeQueryString;
7
9
  exports.getQueryString = getQueryString;
8
- exports.highLightWord = exports.hexToRgba = exports.getUrlForUserPage = void 0;
9
- exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
10
- exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
11
- exports.unHighLight = void 0;
10
+ exports.getUrlForUserPage = exports.hexToRgba = exports.unHighLight = exports.highLightWord = void 0;
12
11
 
13
12
  var _platform = require("./platform");
14
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.6.8",
3
+ "version": "1.6.12",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -74,6 +74,7 @@
74
74
  "rc-dialog": "8.5.2",
75
75
  "rc-drawer": "^4.3.1",
76
76
  "rc-input-number": "^5.0.0",
77
+ "rc-overflow": "^1.2.2",
77
78
  "rc-pagination": "^3.1.6",
78
79
  "rc-queue-anim": "1.4.1",
79
80
  "rc-select": "^12.1.7",
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
-
8
- var _react = _interopRequireDefault(require("react"));
9
-
10
- var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
- require("./index.css");
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
-
16
- var preCls = "admin-button";
17
-
18
- var _default = function _default(_ref) {
19
- var onClick = _ref.onClick,
20
- id = _ref.id,
21
- children = _ref.children,
22
- style = _ref.style;
23
-
24
- var onHandleClick = function onHandleClick() {
25
- onClick && onClick(id);
26
- };
27
-
28
- return /*#__PURE__*/_react["default"].createElement("div", {
29
- className: (0, _classnames["default"])("".concat(preCls, "-default ").concat(preCls, "-btn")),
30
- onClick: onHandleClick,
31
- style: style
32
- }, children);
33
- };
34
-
35
- exports["default"] = _default;