@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
@@ -0,0 +1,77 @@
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 _classnames = _interopRequireDefault(require("classnames"));
13
+
14
+ require("./index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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); }
19
+
20
+ 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; }
21
+
22
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
23
+
24
+ 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."); }
25
+
26
+ 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); }
27
+
28
+ 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; }
29
+
30
+ 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; }
31
+
32
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
+
34
+ var preCls = 'titaui-drag-width';
35
+
36
+ var _default = function _default(props) {
37
+ var container = props.container;
38
+ var dragRef = (0, _react.useRef)();
39
+
40
+ var _useState = (0, _react.useState)(180),
41
+ _useState2 = _slicedToArray(_useState, 1),
42
+ minWidth = _useState2[0];
43
+
44
+ var _useState3 = (0, _react.useState)(600),
45
+ _useState4 = _slicedToArray(_useState3, 1),
46
+ maxWidth = _useState4[0]; // 拖拽
47
+
48
+
49
+ (0, _react.useEffect)(function () {
50
+ var m_pos;
51
+
52
+ var resize = function resize(e) {
53
+ var dx = m_pos - e.x;
54
+ m_pos = e.x;
55
+ var width = parseInt(getComputedStyle(container.current, '').width) - dx;
56
+ if (width < minWidth) return;
57
+ if (width > maxWidth) return;
58
+ container.current.style.width = parseInt(getComputedStyle(container.current, '').width) - dx + 'px';
59
+ };
60
+
61
+ dragRef.current.addEventListener('mousedown', function (e) {
62
+ m_pos = e.x;
63
+ document.addEventListener('mousemove', resize, false);
64
+ }, false);
65
+ document.addEventListener('mouseup', function () {
66
+ document.removeEventListener('mousemove', resize, false);
67
+ }, false);
68
+ }, []);
69
+ return /*#__PURE__*/_react["default"].createElement("div", {
70
+ className: (0, _classnames["default"])(preCls)
71
+ }, /*#__PURE__*/_react["default"].createElement("div", {
72
+ ref: dragRef,
73
+ className: (0, _classnames["default"])("".concat(preCls, "__darg"))
74
+ }));
75
+ };
76
+
77
+ exports["default"] = _default;
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="15px" height="15px" viewBox="0 0 15 15" version="1.1" xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink">
4
+ <title>切片</title>
5
+ <defs>
6
+ <filter id="filter-1">
7
+ <feColorMatrix in="SourceGraphic" type="matrix"
8
+ values="0 0 0 0 0.537255 0 0 0 0 0.568627 0 0 0 0 0.623529 0 0 0 1.000000 0"></feColorMatrix>
9
+ </filter>
10
+ </defs>
11
+ <g id="OKR" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
12
+ <g id="公司全部/隔级-交互规范" transform="translate(-102.000000, -189.000000)">
13
+ <g id="主菜单" transform="translate(90.000000, 175.000000)">
14
+ <g id="fanhui" transform="translate(12.000000, 12.000000)" filter="url(#filter-1)">
15
+ <g transform="translate(0.000000, 2.000000)">
16
+ <path
17
+ d="M7.1513176,1.19047619 C7.2838216,1.19047619 7.40368534,1.2445956 7.49001031,1.33193593 C7.52467053,1.35125463 7.55807707,1.37663963 7.58840961,1.40697217 L7.58840961,1.40697217 L11.2923023,5.11086483 C11.4782662,5.29682878 11.4782662,5.59833591 11.2923023,5.78429986 C11.1063383,5.97026381 10.8048312,5.97026381 10.6188672,5.78429986 L10.6188672,5.78429986 L7.62685996,2.79147619 L7.62750807,12.6190476 C7.62750807,12.8820404 7.41431033,13.0952381 7.1513176,13.0952381 C6.88832486,13.0952381 6.67512712,12.8820404 6.67512712,12.6190476 L6.67485996,2.79147619 L3.68376795,5.78429986 C3.49780401,5.97026381 3.19629687,5.97026381 3.01033292,5.78429986 C2.82436898,5.59833591 2.82436898,5.29682878 3.01033292,5.11086483 L6.71422559,1.40697217 C6.74455812,1.37663963 6.77796466,1.35125463 6.8134424,1.33081716 C6.89894985,1.2445956 7.01881359,1.19047619 7.1513176,1.19047619 Z"
18
+ id="形状结合" fill="#3F4755"
19
+ transform="translate(7.151318, 7.142857) rotate(-90.000000) translate(-7.151318, -7.142857) "></path>
20
+ </g>
21
+ </g>
22
+ </g>
23
+ </g>
24
+ </g>
25
+ </svg>
@@ -0,0 +1,28 @@
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
+ var _precls = _interopRequireDefault(require("./precls"));
13
+
14
+ require("./index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ var _default = function _default(props) {
19
+ var onClick = props.onClick;
20
+ return /*#__PURE__*/_react["default"].createElement("div", {
21
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back-action")),
22
+ onClick: onClick
23
+ }, /*#__PURE__*/_react["default"].createElement("span", {
24
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back-action-icon"))
25
+ }), /*#__PURE__*/_react["default"].createElement("span", null, "\u8FD4\u56DE"));
26
+ };
27
+
28
+ exports["default"] = _default;
@@ -0,0 +1,89 @@
1
+ @charset "UTF-8";
2
+
3
+ .titaui-flip-card {
4
+ background-color: transparent;
5
+ perspective: 1000px;
6
+ transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0s;
7
+ opacity: 1;
8
+ will-change: opacity;
9
+ }
10
+
11
+ .titaui-flip-card__fixed-hide-icon {
12
+ display: inline-block;
13
+ position: fixed;
14
+ top: 74px;
15
+ left: -12px;
16
+ }
17
+
18
+ .titaui-flip-card__fixed-hide-icon > div {
19
+ box-shadow: 0px 0px 16px 0px rgba(127, 145, 180, 0.2);
20
+ }
21
+
22
+ .titaui-flip-card__inner {
23
+ position: relative;
24
+ width: 100%;
25
+ height: 100%;
26
+ text-align: center;
27
+ transition: transform 0.6s;
28
+ transform-style: preserve-3d;
29
+ }
30
+
31
+ .titaui-flip-card__inner-front, .titaui-flip-card__inner-back {
32
+ position: absolute;
33
+ width: 100%;
34
+ height: 100%;
35
+ backface-visibility: hidden;
36
+ -webkit-backface-visibility: hidden;
37
+ /* Chrome 和 Safari */
38
+ -moz-backface-visibility: hidden;
39
+ /* Firefox */
40
+ -ms-backface-visibility: hidden;
41
+ /* Internet Explorer */
42
+ }
43
+
44
+ .titaui-flip-card--is-float {
45
+ position: absolute;
46
+ transform: translate(0) translateY(40px) translateZ(0);
47
+ box-shadow: 0px 0px 16px 0px rgba(127, 145, 180, 0.2);
48
+ }
49
+
50
+ .titaui-flip-card--is-float-hide {
51
+ transform: translate(calc(-100%)) translateY(40px) translateZ(0);
52
+ opacity: 0;
53
+ }
54
+
55
+ .titaui-flip-card--is-back .titaui-flip-card__inner {
56
+ transform: rotateY(-180deg);
57
+ }
58
+
59
+ .titaui-flip-card__inner-front {
60
+ z-index: 1;
61
+ }
62
+
63
+ .titaui-flip-card__inner-back {
64
+ transform: rotateY(180deg);
65
+ z-index: 10;
66
+ }
67
+
68
+ .titaui-flip-card__inner-back-action {
69
+ position: absolute;
70
+ display: flex;
71
+ align-items: center;
72
+ top: 12px;
73
+ left: 12px;
74
+ height: 18px;
75
+ font-size: 12px;
76
+ font-family: Resource-Han-Rounded-CN-Normal, Resource-Han-Rounded-CN;
77
+ font-weight: 400;
78
+ color: #89919f;
79
+ line-height: 18px;
80
+ cursor: pointer;
81
+ }
82
+
83
+ .titaui-flip-card__inner-back-action-icon {
84
+ display: inline-block;
85
+ height: 14px;
86
+ width: 14px;
87
+ margin-right: 2px;
88
+ background: url(./back-icon.svg) transparent no-repeat 50% 50%;
89
+ }
@@ -0,0 +1,193 @@
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 _reactDom = _interopRequireDefault(require("react-dom"));
13
+
14
+ var _classnames = _interopRequireDefault(require("classnames"));
15
+
16
+ var _menuCard = _interopRequireDefault(require("../menu-card"));
17
+
18
+ var _flipBackHeader = _interopRequireDefault(require("./flip-back-header"));
19
+
20
+ var _menuCloseBtn = _interopRequireDefault(require("../menu-close-btn"));
21
+
22
+ var _precls = _interopRequireDefault(require("./precls"));
23
+
24
+ require("./index.css");
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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
33
+
34
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
+
36
+ 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."); }
37
+
38
+ 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); }
39
+
40
+ 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; }
41
+
42
+ 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; }
43
+
44
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
45
+
46
+ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
47
+ var _classNames;
48
+
49
+ var children = props.children,
50
+ defaultWidth = props.defaultWidth,
51
+ collapseMenu = props.collapseMenu;
52
+
53
+ var _useState = (0, _react.useState)(false),
54
+ _useState2 = _slicedToArray(_useState, 2),
55
+ isBack = _useState2[0],
56
+ setIsBack = _useState2[1];
57
+
58
+ var _useState3 = (0, _react.useState)(false),
59
+ _useState4 = _slicedToArray(_useState3, 2),
60
+ isFloat = _useState4[0],
61
+ setIsFloat = _useState4[1];
62
+
63
+ var _useState5 = (0, _react.useState)(false),
64
+ _useState6 = _slicedToArray(_useState5, 2),
65
+ isFloatHide = _useState6[0],
66
+ setIsFloatHide = _useState6[1];
67
+
68
+ var hideFloatRef = (0, _react.useRef)();
69
+ var flipCardRef = (0, _react.useRef)();
70
+ var flipFrontRef = (0, _react.useRef)();
71
+ var flipBackRef = (0, _react.useRef)();
72
+
73
+ var goBackHandler = function goBackHandler() {
74
+ flipFrontRef.current.style.display = 'block';
75
+ setTimeout(function () {
76
+ flipBackRef.current.style.display = 'none';
77
+ }, 600);
78
+ setIsBack(false);
79
+ };
80
+
81
+ var nextHandler = function nextHandler() {
82
+ flipBackRef.current.style.display = 'block';
83
+ setTimeout(function () {
84
+ flipFrontRef.current.style.display = 'none';
85
+ }, 600);
86
+ setIsBack(true);
87
+ };
88
+
89
+ (0, _react.useImperativeHandle)(ref, function () {
90
+ return {
91
+ 'next': nextHandler,
92
+ 'goback': goBackHandler
93
+ };
94
+ });
95
+
96
+ var onMenuHideHandler = function onMenuHideHandler() {
97
+ collapseMenu(!isFloat); // 最外层菜单with=0
98
+
99
+ setIsFloat(!isFloat); // 浮动菜单,设置阴影
100
+
101
+ setTimeout(function () {
102
+ // 1秒后隐藏菜单到左侧
103
+ setIsFloatHide(!isFloatHide);
104
+ }, !isFloat ? 200 : 0);
105
+ };
106
+
107
+ var onFixedHideIconMouseEnter = function onFixedHideIconMouseEnter() {
108
+ setIsFloatHide(false);
109
+ };
110
+
111
+ var removeCloseFloat = function removeCloseFloat(e) {
112
+ if (hideFloatRef.current) clearTimeout(hideFloatRef.current);
113
+ }; // 隐藏浮动的菜单(通用)
114
+
115
+
116
+ var onFixedHideIcon = function onFixedHideIcon(e) {
117
+ if (!isFloat) return;
118
+ removeCloseFloat(e);
119
+ hideFloatRef.current = setTimeout(function () {
120
+ setIsFloatHide(true);
121
+ }, 400);
122
+ };
123
+
124
+ var onFixedHideIconClickHandler = function onFixedHideIconClickHandler(e) {
125
+ collapseMenu(false);
126
+ setIsFloat(false);
127
+ setIsFloatHide(false);
128
+ };
129
+
130
+ var onFlipMouseEnterHandler = function onFlipMouseEnterHandler(e) {
131
+ removeCloseFloat(e);
132
+ };
133
+
134
+ var onFlipMouseLeaveHandler = function onFlipMouseLeaveHandler(e) {
135
+ if (e.currentTarget.className.indexOf('titaui-flip-card--is-float-hide') != -1) {
136
+ return;
137
+ }
138
+
139
+ ;
140
+ onFixedHideIcon(e);
141
+ };
142
+
143
+ return /*#__PURE__*/_react["default"].createElement("div", {
144
+ ref: flipCardRef,
145
+ style: {
146
+ 'width': defaultWidth
147
+ },
148
+ onMouseEnter: onFlipMouseEnterHandler,
149
+ onMouseLeave: onFlipMouseLeaveHandler,
150
+ className: (0, _classnames["default"])(_precls["default"], (_classNames = {}, _defineProperty(_classNames, "".concat(_precls["default"], "--is-back"), isBack), _defineProperty(_classNames, "".concat(_precls["default"], "--is-float"), isFloat), _defineProperty(_classNames, "".concat(_precls["default"], "--is-float-hide"), isFloatHide), _classNames))
151
+ }, /*#__PURE__*/_react["default"].createElement("div", {
152
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__inner"))
153
+ }, /*#__PURE__*/_react["default"].createElement("div", {
154
+ ref: flipFrontRef,
155
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-front"))
156
+ }, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
157
+ container: flipCardRef,
158
+ onMenuHide: onMenuHideHandler,
159
+ isFloat: isFloat,
160
+ isFloatHide: isFloatHide,
161
+ style: {
162
+ 'padding': '28px 12px'
163
+ }
164
+ }, children[0])), /*#__PURE__*/_react["default"].createElement("div", {
165
+ ref: flipBackRef,
166
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__inner-back")),
167
+ style: {
168
+ 'display': 'none'
169
+ }
170
+ }, /*#__PURE__*/_react["default"].createElement(_menuCard["default"], {
171
+ container: flipCardRef,
172
+ onMenuHide: onMenuHideHandler,
173
+ isFloat: isFloat,
174
+ isFloatHide: isFloatHide,
175
+ style: {
176
+ 'padding': '42px 12px 28px 12px'
177
+ }
178
+ }, /*#__PURE__*/_react["default"].createElement(_flipBackHeader["default"], {
179
+ onClick: goBackHandler
180
+ }), children[1]))), isFloat && /*#__PURE__*/_reactDom["default"].createPortal( /*#__PURE__*/_react["default"].createElement("span", {
181
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__fixed-hide-icon"))
182
+ }, /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
183
+ isClose: true,
184
+ isAutoShow: false,
185
+ onClick: onFixedHideIconClickHandler,
186
+ onMouseEnter: onFixedHideIconMouseEnter,
187
+ onMouseLeave: function onMouseLeave(e) {
188
+ return onFixedHideIcon(e);
189
+ }
190
+ })), document.body));
191
+ });
192
+
193
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _default = 'titaui-flip-card';
8
+ exports["default"] = _default;
@@ -0,0 +1,29 @@
1
+ .titaui-menus__menu-card {
2
+ position: relative;
3
+ display: flex;
4
+ max-height: calc(100vh - 164px - 74px);
5
+ min-height: 100px;
6
+ flex-direction: column;
7
+ background: #ffffff;
8
+ box-shadow: 0px 0px 16px 0px rgba(127, 145, 180, 0.1);
9
+ border-radius: 12px;
10
+ box-sizing: border-box;
11
+ }
12
+
13
+ .titaui-menus__menu-card--is-float {
14
+ box-shadow: 0 1px 10px #cccccc66;
15
+ }
16
+
17
+ .titaui-menus__menu-card--is-float-hide {
18
+ box-shadow: none;
19
+ }
20
+
21
+ .titaui-menus__menu-card .titaui-menus--hide-icon {
22
+ position: absolute;
23
+ right: -14px;
24
+ top: 6px;
25
+ }
26
+
27
+ .titaui-menus__menu-card:hover .titaui-menus--hide-icon {
28
+ opacity: 1;
29
+ }
@@ -0,0 +1,53 @@
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
+ var _dragResize = _interopRequireDefault(require("../drag-resize"));
13
+
14
+ var _menuCloseBtn = _interopRequireDefault(require("../menu-close-btn"));
15
+
16
+ var _precls = _interopRequireDefault(require("../../precls"));
17
+
18
+ require("./index.css");
19
+
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
+
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
+
24
+ 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; }
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
+ var _default = function _default(props) {
29
+ var _classNames;
30
+
31
+ var children = props.children,
32
+ style = props.style,
33
+ container = props.container,
34
+ onMenuHide = props.onMenuHide,
35
+ isFloat = props.isFloat,
36
+ isFloatHide = props.isFloatHide;
37
+
38
+ var onHideHandler = function onHideHandler() {
39
+ onMenuHide();
40
+ };
41
+
42
+ return /*#__PURE__*/_react["default"].createElement("div", {
43
+ className: (0, _classnames["default"])("".concat(_precls["default"], "__menu-card"), (_classNames = {}, _defineProperty(_classNames, "".concat(_precls["default"], "__menu-card--is-float"), isFloat), _defineProperty(_classNames, "".concat(_precls["default"], "__menu-card--is-float-hide"), isFloatHide), _classNames)),
44
+ style: _objectSpread({}, style)
45
+ }, children, /*#__PURE__*/_react["default"].createElement(_dragResize["default"], {
46
+ container: container
47
+ }), !isFloat && /*#__PURE__*/_react["default"].createElement(_menuCloseBtn["default"], {
48
+ isAutoShow: true,
49
+ onClick: onHideHandler
50
+ }));
51
+ };
52
+
53
+ exports["default"] = _default;
@@ -0,0 +1,42 @@
1
+ .titaui-menus--hide-icon {
2
+ display: inline-block;
3
+ z-index: 1;
4
+ transition: opacity 0.4s;
5
+ opacity: 0;
6
+ width: 30px;
7
+ height: 30px;
8
+ line-height: 30px;
9
+ font-size: 10px;
10
+ background-color: white;
11
+ border-radius: 50%;
12
+ cursor: pointer;
13
+ }
14
+
15
+ .titaui-menus--hide-icon--show {
16
+ opacity: 1;
17
+ }
18
+
19
+ .titaui-menus--hide-icon .tu-icon-double-right,
20
+ .titaui-menus--hide-icon .tu-icon-double-left {
21
+ position: absolute;
22
+ top: 9px;
23
+ left: 8px;
24
+ }
25
+
26
+ .titaui-menus--hide-icon:hover .titaui-menus--hide-icon--hover {
27
+ opacity: 1;
28
+ }
29
+
30
+ .titaui-menus--hide-icon--hover {
31
+ display: inline-block;
32
+ position: absolute;
33
+ top: 5px;
34
+ left: 5px;
35
+ transition: opacity 0.2s;
36
+ opacity: 0;
37
+ border-radius: 50%;
38
+ height: 20px;
39
+ width: 20px;
40
+ background: #f0f4fa;
41
+ z-index: -1;
42
+ }
@@ -0,0 +1,40 @@
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
+ var _precls = _interopRequireDefault(require("../../precls"));
13
+
14
+ require("./index.css");
15
+
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
+
18
+ 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; }
19
+
20
+ var _default = function _default(props) {
21
+ var onClick = props.onClick,
22
+ _props$isAutoShow = props.isAutoShow,
23
+ isAutoShow = _props$isAutoShow === void 0 ? true : _props$isAutoShow,
24
+ _props$isClose = props.isClose,
25
+ isClose = _props$isClose === void 0 ? false : _props$isClose,
26
+ onMouseEnter = props.onMouseEnter,
27
+ onMouseLeave = props.onMouseLeave;
28
+ return /*#__PURE__*/_react["default"].createElement("div", {
29
+ onClick: onClick,
30
+ onMouseEnter: onMouseEnter,
31
+ onMouseLeave: onMouseLeave,
32
+ className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon"), _defineProperty({}, "".concat(_precls["default"], "--hide-icon--show"), !isAutoShow))
33
+ }, /*#__PURE__*/_react["default"].createElement("span", {
34
+ className: (0, _classnames["default"])("".concat(_precls["default"], "--hide-icon--hover"))
35
+ }), /*#__PURE__*/_react["default"].createElement("span", {
36
+ className: "tu-icon-double-".concat(isClose ? 'right' : 'left')
37
+ }));
38
+ };
39
+
40
+ exports["default"] = _default;
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>PF-shezhi</title>
4
+ <g id="PF-shezhi" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M178,30 C195.496381,30 209.713128,44.0417829 209.995713,61.4708215 L210,62 L210,92.6666667 C210,97.0849447 206.418278,100.666667 202,100.666667 C197.665086,100.666667 194.135457,97.2188289 194.003807,92.915846 L194,92.6666667 L194,62 C194,53.2686411 187.006099,46.1707953 178.314871,46.0030364 L178,46 L62,46 C53.2686411,46 46.1707953,52.993901 46.0030364,61.6851293 L46,62 L46,178 C46,186.731359 52.993901,193.829205 61.6851293,193.996964 L62,194 L110,194 C114.418278,194 118,197.581722 118,202 C118,206.334914 114.552162,209.864543 110.249179,209.996193 L110,210 L62,210 C44.5036191,210 30.2868724,195.958217 30.0042871,178.529179 L30,178 L30,62 C30,44.5036191 44.0417829,30.2868724 61.4708215,30.0042871 L62,30 L178,30 Z M106,70 C110.418278,70 114,73.581722 114,78 L114,162 C114,166.418278 110.418278,170 106,170 C101.581722,170 98,166.418278 98,162 L98,78 C98,73.581722 101.581722,70 106,70 Z M74,90 C78.418278,90 82,93.581722 82,98 L82,162 C82,166.418278 78.418278,170 74,170 C69.581722,170 66,166.418278 66,162 L66,98 C66,93.581722 69.581722,90 74,90 Z" id="形状结合" fill="#141C28" fill-rule="nonzero"></path>
6
+ <path d="M170,108 C189.882251,108 206,124.117749 206,144 C206,161.132525 194.032153,175.46981 178.000489,179.107823 L177.999,194 L202,194 C206.418278,194 210,197.581722 210,202 C210,206.418278 206.418278,210 202,210 L138,210 C133.581722,210 130,206.418278 130,202 C130,197.581722 133.581722,194 138,194 L161.999,193.999 L162.00051,179.10805 C145.968344,175.470405 134,161.132881 134,144 C134,124.117749 150.117749,108 170,108 Z M170,124 C158.954305,124 150,132.954305 150,144 C150,155.045695 158.954305,164 170,164 C181.045695,164 190,155.045695 190,144 C190,132.954305 181.045695,124 170,124 Z" id="形状结合" fill="#2879FF" fill-rule="nonzero"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>ZBmuban</title>
4
+ <g id="ZBmuban" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M80,128 C97.673112,128 112,142.326888 112,160 L112,160 L112,178 C112,195.673112 97.673112,210 80,210 L80,210 L62,210 C44.326888,210 30,195.673112 30,178 L30,178 L30,160 C30,142.326888 44.326888,128 62,128 L62,128 Z M80,144 L62,144 C53.163444,144 46,151.163444 46,160 L46,160 L46,178 C46,186.836556 53.163444,194 62,194 L62,194 L80,194 C88.836556,194 96,186.836556 96,178 L96,178 L96,160 C96,151.163444 88.836556,144 80,144 L80,144 Z M178,30 C195.673112,30 210,44.326888 210,62 L210,62 L210,80 C210,97.673112 195.673112,112 178,112 L178,112 L62,112 C44.326888,112 30,97.673112 30,80 L30,80 L30,62 C30,44.326888 44.326888,30 62,30 L62,30 Z M62,46 C53.163444,46 46,53.163444 46,62 L46,62 L46,80 C46,88.836556 53.163444,96 62,96 L62,96 L178,96 C186.836556,96 194,88.836556 194,80 L194,80 L194,62 C194,53.163444 186.836556,46 178,46 L178,46 Z" id="形状结合" fill="#141C28" fill-rule="nonzero"></path>
6
+ <path d="M202,181 C206.418278,181 210,184.581722 210,189 C210,193.418278 206.418278,197 202,197 L138,197 C133.581722,197 130,193.418278 130,189 C130,184.581722 133.581722,181 138,181 L202,181 Z M202,141 C206.418278,141 210,144.581722 210,149 C210,153.418278 206.418278,157 202,157 L138,157 C133.581722,157 130,153.418278 130,149 C130,144.581722 133.581722,141 138,141 L202,141 Z" id="形状结合" fill="#2879FF"></path>
7
+ </g>
8
+ </svg>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>bumen</title>
4
+ <g id="bumen" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <path d="M160.652174,111 C178.313427,111 192.709503,125.016328 192.995659,142.470058 L193,143 L193.000491,154.082188 C205.319318,155.098723 215,165.41884 215,178 L215,190 C215,203.254834 204.254834,214 191,214 L179,214 C165.745166,214 155,203.254834 155,190 L155,178 C155,165.418498 164.681208,155.098163 177.000513,154.082105 L177,143 C177,134.293069 169.876995,127.169387 160.970994,127.002976 L160.652174,127 L79.3478261,127 C70.4001299,127 63.171858,134.021248 63.0030195,142.68972 L63,143 L63.0004908,154.082188 C75.3193182,155.098723 85,165.41884 85,178 L85,190 C85,203.254834 74.254834,214 61,214 L49,214 C35.745166,214 25,203.254834 25,190 L25,178 C25,165.418498 34.6812076,155.098163 47.0005127,154.082105 L47,143 C47,125.477908 61.2194636,111.286358 78.8136472,111.004279 L79.3478261,111 L160.652174,111 Z M191,170 L179,170 C174.665086,170 171.135457,173.447838 171.003807,177.750821 L171,178 L171,190 C171,194.334914 174.447838,197.864543 178.750821,197.996193 L179,198 L191,198 C195.334914,198 198.864543,194.552162 198.996193,190.249179 L199,190 L199,178 C199,173.665086 195.552162,170.135457 191.249179,170.003807 L191,170 Z M61,170 L49,170 C44.6650857,170 41.1354571,173.447838 41.0038068,177.750821 L41,178 L41,190 C41,194.334914 44.4478378,197.864543 48.7508207,197.996193 L49,198 L61,198 C65.3349143,198 68.8645429,194.552162 68.9961932,190.249179 L69,190 L69,178 C69,173.665086 65.5521622,170.135457 61.2491793,170.003807 L61,170 Z" id="形状结合" fill="#141C28" fill-rule="nonzero"></path>
6
+ <polygon id="矩形" fill="#141C28" points="112 74 128 74 128 127 112 127"></polygon>
7
+ <path d="M135,26 C148.254834,26 159,36.745166 159,50 L159,66 C159,79.254834 148.254834,90 135,90 L105,90 C91.745166,90 81,79.254834 81,66 L81,50 C81,36.745166 91.745166,26 105,26 L135,26 Z M135,42 L105,42 C100.665086,42 97.1354571,45.4478378 97.0038068,49.7508207 L97,50 L97,66 C97,70.3349143 100.447838,73.8645429 104.750821,73.9961932 L105,74 L135,74 C139.334914,74 142.864543,70.5521622 142.996193,66.2491793 L143,66 L143,50 C143,45.6650857 139.552162,42.1354571 135.249179,42.0038068 L135,42 Z" id="矩形" fill="#2879FF" fill-rule="nonzero"></path>
8
+ </g>
9
+ </svg>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="240px" height="240px" viewBox="0 0 240 240" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>kaohe</title>
4
+ <g id="kaohe" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="编组" transform="translate(40.000000, 20.000000)" fill-rule="nonzero">
6
+ <path d="M114,0 C135.870476,0 153.64141,17.5522287 153.994641,39.3385269 L154,40 L154,83.5525899 C154,87.9708679 150.418278,91.5525899 146,91.5525899 C141.665086,91.5525899 138.135457,88.1047521 138.003807,83.8017692 L138,83.5525899 L138,40 C138,26.8777143 127.468663,16.2151543 114.396884,16.0032153 L114,16 L40,16 C26.8777143,16 16.2151543,26.5313372 16.0032153,39.6031161 L16,40 L16,160 C16,173.122286 26.5313372,183.784846 39.6031161,183.996785 L40,184 L49.3904033,184 C53.8086813,184 57.3904033,187.581722 57.3904033,192 C57.3904033,196.334914 53.9425656,199.864543 49.6395827,199.996193 L49.3904033,200 L40,200 C18.1295239,200 0.358590478,182.447771 0.00535885717,160.661473 L0,160 L0,40 C0,18.1295239 17.5522287,0.358590478 39.3385269,0.00535885717 L40,0 L114,0 Z M118,96 C132.3572,96 145.3572,101.8214 154.7718,111.2308 C164.1812,120.6402 170,133.6402 170,148 C170,162.3572 164.1812,175.3572 154.7718,184.7718 C145.3572,194.1812 132.3572,200 118,200 C103.6402,200 90.6402,194.1812 81.2308,184.7718 C71.8214,175.3572 66,162.3572 66,148 C66,133.6402 71.8214,120.6402 81.2308,111.2308 C90.6402,101.8214 103.6402,96 118,96 Z M118,112 C108.308587,112 99.2625923,115.826425 92.5445085,122.544508 C85.8264247,129.262592 82,138.308587 82,148 C82,157.689275 85.826829,166.736699 92.5445085,173.458092 C99.2611185,180.174702 108.306685,184 118,184 C127.691178,184 136.738173,180.174297 143.454967,173.461217 C150.174297,166.738173 154,157.691178 154,148 C154,138.306685 150.174702,129.261119 143.461217,122.547633 C136.736699,115.826829 127.689275,112 118,112 Z M50.927968,119.2955 C55.346246,119.2955 58.927968,122.877222 58.927968,127.2955 C58.927968,131.713778 55.346246,135.2955 50.927968,135.2955 L36.927968,135.2955 C32.50969,135.2955 28.927968,131.713778 28.927968,127.2955 C28.927968,122.877222 32.50969,119.2955 36.927968,119.2955 L50.927968,119.2955 Z M119.032501,35.7776667 C119.100877,35.8460425 119.167747,35.9153535 119.233113,35.9855585 C120.6486,37.3658959 121.55018,39.2709599 121.623607,41.3853973 L121.628429,41.68885 L121.5478,69.6313383 C121.535342,73.9485554 118.104382,77.4607375 113.819076,77.6037276 L113.570917,77.6082207 L113.502095,77.6082873 C109.204527,77.5958864 105.71517,74.1676552 105.596963,69.9013666 L105.593902,69.6543231 L105.621079,60.4368737 L85.0262706,81.0325007 C83.4452968,82.6134745 81.3643654,83.3897785 79.2924041,83.3614129 C77.210377,83.3969976 75.1174053,82.6208433 73.5290627,81.0325007 L59.1648702,66.6671916 L44.8008739,81.0325007 C41.6946577,84.1387169 36.6584861,84.1387169 33.5522699,81.0325007 C30.4460537,77.9262845 30.4460537,72.8901129 33.5522699,69.7838967 L53.4163643,49.9198023 C54.9257491,48.4104175 56.890839,47.6344789 58.8687579,47.5919865 L59.1654865,47.5911135 C61.2414494,47.5587187 63.3287182,48.3349483 64.9135723,49.9198023 L79.2778155,64.2828275 L94.0174563,49.5431867 L84.8878304,49.5695716 C80.5076167,49.5822109 76.9465056,46.0415923 76.9338663,41.6613785 L76.9339328,41.5925565 C76.9466299,37.192316 80.5105748,33.6283711 84.9108153,33.615674 L112.225257,33.5359448 C114.634596,33.1755667 117.177641,33.9228073 119.032501,35.7776667 Z" id="形状结合" fill="#141C28"></path>
7
+ <path d="M102,129 C106.334914,129 109.864543,132.447838 109.996193,136.750821 L110,137 L110,149 L134,149 C138.418278,149 142,152.581722 142,157 C142,161.334914 138.552162,164.864543 134.249179,164.996193 L134,165 L110,165 C101.268641,165 94.1707953,158.006099 94.0030364,149.314871 L94,149 L94,137 C94,132.581722 97.581722,129 102,129 Z" id="路径" fill="#2879FF" transform="translate(118.000000, 147.000000) rotate(-45.000000) translate(-118.000000, -147.000000) "></path>
8
+ </g>
9
+ </g>
10
+ </svg>