@titaui/pc 1.5.78 → 1.5.82

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 (316) hide show
  1. package/lib/components/avatar/index.js +1 -9
  2. package/lib/components/change-okr/Filter.js +65 -133
  3. package/lib/components/change-okr/Item.js +0 -6
  4. package/lib/components/change-okr/filterTab.js +0 -2
  5. package/lib/components/change-okr/index.js +2 -2
  6. package/lib/components/checkbox/index.js +3 -4
  7. package/lib/components/communication/CommunicationRecord.js +161 -116
  8. package/lib/components/communication/ConvertUserName.js +1 -1
  9. package/lib/components/communication/index.js +28 -53
  10. package/lib/components/communication/style.js +25 -21
  11. package/lib/components/dropdown-layer/icon-item.js +3 -5
  12. package/lib/components/dropdown-layer/index.css +0 -16
  13. package/lib/components/dropdown-layer/index.js +14 -21
  14. package/lib/components/emotionsSelector/style.js +1 -1
  15. package/lib/components/form/form-fields/input/index.css +0 -11
  16. package/lib/components/form/form-fields/input/index.js +1 -3
  17. package/lib/components/grid-page/personal-info/index.js +4 -4
  18. package/lib/components/mblog/components/MblogAction.js +6 -10
  19. package/lib/components/mblog/index.js +11 -24
  20. package/lib/components/mblog/style.js +8 -8
  21. package/lib/components/okr-detail/components/header/index.css +0 -4
  22. package/lib/components/okr-detail/components/header/o-cycle.js +2 -2
  23. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +8 -15
  24. package/lib/components/okr-flow/child-node/work-node.js +1 -7
  25. package/lib/components/okr-period-selector/select-cycle.js +151 -139
  26. package/lib/components/okr-progress-detail/index.css +0 -1
  27. package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +5 -5
  28. package/lib/components/okr-review/ReviewPop/index.js +4 -4
  29. package/lib/components/period-selector/common.js +4 -149
  30. package/lib/components/period-selector/components/selector/index.js +38 -103
  31. package/lib/components/period-selector/components/selector/style.js +9 -23
  32. package/lib/components/period-selector/index.js +28 -29
  33. package/lib/components/popup/index.js +1 -3
  34. package/lib/components/radio/index.css +0 -5
  35. package/lib/components/radio/radio.js +4 -12
  36. package/lib/components/table/index.css +1 -0
  37. package/lib/components/upload/components/uploadedPreview.js +54 -62
  38. package/lib/components/upload/index.js +57 -89
  39. package/lib/components/upload/style.js +7 -7
  40. package/lib/components/upload/type.js +15 -15
  41. package/lib/components/upvote/index.js +14 -37
  42. package/lib/components/user-selector/export-modules/field-tree-selector/index.css +0 -4
  43. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +24 -50
  44. package/lib/components/user-selector/export-modules/field-tree-selector/single-selector/index.js +2 -11
  45. package/lib/components/user-selector/layout/index.css +1 -1
  46. package/lib/index.js +5 -49
  47. package/lib/pages/home-page/components/data-list/nav-selector/index.js +0 -18
  48. package/lib/pages/home-page/components/data-list/table/utils-function.js +3 -6
  49. package/lib/utils/auth.js +5 -46
  50. package/lib/utils/bs-global.js +2 -26
  51. package/lib/utils/tools.js +20 -140
  52. package/package.json +2 -2
  53. package/lib/components/avatar/icon-avatar/index.css +0 -15
  54. package/lib/components/avatar/icon-avatar/index.js +0 -50
  55. package/lib/components/avatar/num-avatar/index.css +0 -12
  56. package/lib/components/avatar/num-avatar/index.js +0 -34
  57. package/lib/components/button/admin-button/default.js +0 -35
  58. package/lib/components/button/admin-button/drop-down-arrow.js +0 -93
  59. package/lib/components/button/admin-button/index.css +0 -86
  60. package/lib/components/button/admin-button/index.js +0 -40
  61. package/lib/components/button/admin-button/primary.js +0 -33
  62. package/lib/components/button/admin-button/secondary.js +0 -35
  63. package/lib/components/button/default-button/index.css +0 -49
  64. package/lib/components/button/default-button/index.js +0 -51
  65. package/lib/components/button/export-button/index.css +0 -51
  66. package/lib/components/button/export-button/index.js +0 -81
  67. package/lib/components/button/images/daoru.svg +0 -18
  68. package/lib/components/button/index.js +0 -23
  69. package/lib/components/button/interface.js +0 -5
  70. package/lib/components/communication/index.css +0 -63
  71. package/lib/components/create-okr/animation/check-animation.js +0 -2746
  72. package/lib/components/create-okr/constant.js +0 -27
  73. package/lib/components/create-okr/createCycle.js +0 -171
  74. package/lib/components/create-okr/createSuccessCmp.js +0 -233
  75. package/lib/components/create-okr/createSuccessCmpWrapper.js +0 -20
  76. package/lib/components/create-okr/fields/date-cycle.js +0 -98
  77. package/lib/components/create-okr/fields/index.css +0 -346
  78. package/lib/components/create-okr/fields/index.js +0 -17
  79. package/lib/components/create-okr/fields/input-with-err-popup.js +0 -57
  80. package/lib/components/create-okr/fields/o-new-name.js +0 -197
  81. package/lib/components/create-okr/fields/okr-case.js +0 -98
  82. package/lib/components/create-okr/fields/okr-classify.js +0 -51
  83. package/lib/components/create-okr/fields/okr-create-suggest.js +0 -147
  84. package/lib/components/create-okr/fields/okr-new-user-selector.js +0 -106
  85. package/lib/components/create-okr/fields/okr-parent.js +0 -157
  86. package/lib/components/create-okr/fields/okr-type-detail.js +0 -196
  87. package/lib/components/create-okr/fields/okr-type.js +0 -131
  88. package/lib/components/create-okr/fields/okr-visibility-detail.js +0 -224
  89. package/lib/components/create-okr/fields/okr-visibility.js +0 -169
  90. package/lib/components/create-okr/img/check-normal.svg +0 -29
  91. package/lib/components/create-okr/img/check-right.svg +0 -16
  92. package/lib/components/create-okr/img/check-wrong.svg +0 -29
  93. package/lib/components/create-okr/img/create-success-head.png +0 -0
  94. package/lib/components/create-okr/img/create-success-left-quotation.svg +0 -14
  95. package/lib/components/create-okr/img/create-success-message.svg +0 -1
  96. package/lib/components/create-okr/img/create-success-right-quotation.svg +0 -14
  97. package/lib/components/create-okr/img/create-success-shadow.svg +0 -23
  98. package/lib/components/create-okr/img/example.svg +0 -11
  99. package/lib/components/create-okr/img/hand.svg +0 -12
  100. package/lib/components/create-okr/img/kr-add.svg +0 -12
  101. package/lib/components/create-okr/img/left-quotation.svg +0 -12
  102. package/lib/components/create-okr/img/light.svg +0 -1
  103. package/lib/components/create-okr/img/pack-up.js +0 -28
  104. package/lib/components/create-okr/img/qr-code.png +0 -0
  105. package/lib/components/create-okr/img/right-quotation.svg +0 -12
  106. package/lib/components/create-okr/img/shower.png +0 -0
  107. package/lib/components/create-okr/img/target.svg +0 -19
  108. package/lib/components/create-okr/img/teach-okr.svg +0 -17
  109. package/lib/components/create-okr/img/wave.png +0 -0
  110. package/lib/components/create-okr/img/weight.svg +0 -12
  111. package/lib/components/create-okr/index.css +0 -446
  112. package/lib/components/create-okr/index.js +0 -911
  113. package/lib/components/create-okr/interface.js +0 -5
  114. package/lib/components/create-okr/kr-items/index.css +0 -180
  115. package/lib/components/create-okr/kr-items/kr-item-weight.js +0 -194
  116. package/lib/components/create-okr/kr-items/krDatas.js +0 -299
  117. package/lib/components/create-okr/kr-items/krItem.js +0 -167
  118. package/lib/components/create-okr/objectType.js +0 -273
  119. package/lib/components/create-okr/request-api.js +0 -220
  120. package/lib/components/create-okr/style.js +0 -100
  121. package/lib/components/create-okr/utils/getCreateOkrSurpassPercent.js +0 -124
  122. package/lib/components/create-okr/utils/helper.js +0 -99
  123. package/lib/components/create-okr/utils/index.js +0 -23
  124. package/lib/components/dynamic/components/condition-render/index.js +0 -20
  125. package/lib/components/dynamic/components/dangerous-html/index.js +0 -22
  126. package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -78
  127. package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -192
  128. package/lib/components/dynamic/components/obj-status/index.css +0 -22
  129. package/lib/components/dynamic/components/obj-status/index.js +0 -38
  130. package/lib/components/dynamic/components/percent/index.css +0 -21
  131. package/lib/components/dynamic/components/percent/index.js +0 -38
  132. package/lib/components/dynamic/components/title/index.css +0 -35
  133. package/lib/components/dynamic/components/title/index.js +0 -59
  134. package/lib/components/dynamic/constant.js +0 -96
  135. package/lib/components/dynamic/context/index.js +0 -13
  136. package/lib/components/dynamic/dynamic-item/components/header/index.css +0 -101
  137. package/lib/components/dynamic/dynamic-item/components/header/index.js +0 -294
  138. package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
  139. package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
  140. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-align.svg +0 -22
  141. package/lib/components/dynamic/dynamic-item/dynamic-align/img/dynamic-relative.svg +0 -22
  142. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +0 -95
  143. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +0 -173
  144. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +0 -54
  145. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.js +0 -107
  146. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +0 -48
  147. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +0 -89
  148. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +0 -96
  149. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +0 -171
  150. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +0 -67
  151. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +0 -110
  152. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +0 -16
  153. package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
  154. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +0 -111
  155. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +0 -158
  156. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +0 -95
  157. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +0 -215
  158. package/lib/components/dynamic/dynamic-item/dynamic-project/constant.js +0 -16
  159. package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
  160. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +0 -91
  161. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +0 -125
  162. package/lib/components/dynamic/dynamic-item/dynamic-relative/img/dynamic-relative.svg +0 -22
  163. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +0 -95
  164. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +0 -192
  165. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +0 -138
  166. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.js +0 -183
  167. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +0 -153
  168. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +0 -138
  169. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +0 -97
  170. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +0 -207
  171. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +0 -54
  172. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +0 -107
  173. package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +0 -50
  174. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
  175. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
  176. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
  177. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
  178. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
  179. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
  180. package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
  181. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +0 -111
  182. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +0 -164
  183. package/lib/components/dynamic/dynamic-item/index.css +0 -128
  184. package/lib/components/dynamic/dynamic-item/index.js +0 -352
  185. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
  186. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  187. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  188. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  189. package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -126
  190. package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -157
  191. package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -107
  192. package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  193. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
  194. package/lib/components/dynamic/dynamic-liking/index.css +0 -81
  195. package/lib/components/dynamic/dynamic-liking/index.js +0 -76
  196. package/lib/components/dynamic/dynamic-liking/item.js +0 -90
  197. package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
  198. package/lib/components/dynamic/dynamic-list/index.css +0 -36
  199. package/lib/components/dynamic/dynamic-list/index.js +0 -61
  200. package/lib/components/dynamic/dynamic-topping/image/quotationMark.svg +0 -16
  201. package/lib/components/dynamic/dynamic-topping/image/topIcon.svg +0 -30
  202. package/lib/components/dynamic/dynamic-topping/index.css +0 -130
  203. package/lib/components/dynamic/dynamic-topping/index.js +0 -78
  204. package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
  205. package/lib/components/dynamic/dynamic-topping/item.js +0 -138
  206. package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
  207. package/lib/components/dynamic/dynamic.css +0 -204
  208. package/lib/components/dynamic/dynamic.js +0 -391
  209. package/lib/components/dynamic/export-module/index.js +0 -33
  210. package/lib/components/dynamic/img/dynamic-P1.svg +0 -15
  211. package/lib/components/dynamic/img/dynamic-P2.svg +0 -15
  212. package/lib/components/dynamic/img/dynamic-P3.svg +0 -15
  213. package/lib/components/dynamic/img/dynamic-P4.svg +0 -15
  214. package/lib/components/dynamic/img/dynamic-P5.svg +0 -15
  215. package/lib/components/dynamic/img/dynamic-delay.svg +0 -17
  216. package/lib/components/dynamic/img/dynamic-desire.svg +0 -61
  217. package/lib/components/dynamic/img/dynamic-empty.png +0 -0
  218. package/lib/components/dynamic/img/dynamic-end.svg +0 -17
  219. package/lib/components/dynamic/img/dynamic-left-quoto.svg +0 -13
  220. package/lib/components/dynamic/img/dynamic-loading.gif +0 -0
  221. package/lib/components/dynamic/img/dynamic-normal.svg +0 -17
  222. package/lib/components/dynamic/img/dynamic-promise.svg +0 -61
  223. package/lib/components/dynamic/img/dynamic-reword.svg +0 -24
  224. package/lib/components/dynamic/img/dynamic-right-quoto.svg +0 -13
  225. package/lib/components/dynamic/img/dynamic-risk.svg +0 -17
  226. package/lib/components/dynamic/img/dynamic-submit-delay.svg +0 -16
  227. package/lib/components/dynamic/img/dynamic-submit-normal.svg +0 -18
  228. package/lib/components/dynamic/img/dynamic-top.svg +0 -14
  229. package/lib/components/dynamic/index.js +0 -27
  230. package/lib/components/dynamic/interface.js +0 -5
  231. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
  232. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -37
  233. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
  234. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -37
  235. package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
  236. package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -37
  237. package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
  238. package/lib/components/dynamic/quick-operation/components/create-task/index.js +0 -42
  239. package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
  240. package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
  241. package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
  242. package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
  243. package/lib/components/dynamic/quick-operation/index.css +0 -51
  244. package/lib/components/dynamic/quick-operation/index.js +0 -112
  245. package/lib/components/dynamic/request-api.js +0 -92
  246. package/lib/components/dynamic/util.js +0 -140
  247. package/lib/components/file-list/components/single-file/index.css +0 -84
  248. package/lib/components/file-list/components/single-file/index.js +0 -115
  249. package/lib/components/file-list/img/new-file-list-doc.svg +0 -1
  250. package/lib/components/file-list/img/new-file-list-other.svg +0 -1
  251. package/lib/components/file-list/img/new-file-list-pdf.svg +0 -1
  252. package/lib/components/file-list/img/new-file-list-ppt.svg +0 -1
  253. package/lib/components/file-list/img/new-file-list-radio.svg +0 -1
  254. package/lib/components/file-list/img/new-file-list-video.svg +0 -1
  255. package/lib/components/file-list/img/new-file-list-xls.svg +0 -1
  256. package/lib/components/file-list/index.css +0 -5
  257. package/lib/components/file-list/index.js +0 -61
  258. package/lib/components/file-list/interface.js +0 -5
  259. package/lib/components/file-list/util.js +0 -78
  260. package/lib/components/img-viewer/icon/enlarge.js +0 -30
  261. package/lib/components/img-viewer/icon/left-rotate.js +0 -46
  262. package/lib/components/img-viewer/icon/right-rotate.js +0 -44
  263. package/lib/components/img-viewer/icon/shrink.js +0 -37
  264. package/lib/components/img-viewer/image/loading.gif +0 -0
  265. package/lib/components/img-viewer/index.css +0 -155
  266. package/lib/components/img-viewer/index.js +0 -228
  267. package/lib/components/img-viewer/interface.js +0 -5
  268. package/lib/components/img-viewer/util.js +0 -16
  269. package/lib/components/publish-dynamic-modal/index.js +0 -13
  270. package/lib/components/publish-dynamic-modal/interface.js +0 -5
  271. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.css +0 -3
  272. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +0 -191
  273. package/lib/components/publish-dynamic-modal/requist-api.js +0 -48
  274. package/lib/components/search-key-handle/index.js +0 -39
  275. package/lib/components/upload/img/doc.svg +0 -1
  276. package/lib/components/upload/img/other.svg +0 -1
  277. package/lib/components/upload/img/pdf.svg +0 -1
  278. package/lib/components/upload/img/ppt.svg +0 -1
  279. package/lib/components/upload/img/radio.svg +0 -1
  280. package/lib/components/upload/img/video.svg +0 -1
  281. package/lib/components/upload/img/xls.svg +0 -1
  282. package/lib/components/upload/index.css +0 -26
  283. package/lib/components/upload/util.js +0 -102
  284. package/lib/components-v1/buttonv2/ButtonLinked.js +0 -35
  285. package/lib/components-v1/buttonv2/ButtonOutlined.js +0 -64
  286. package/lib/components-v1/buttonv2/ButtonRounded.js +0 -101
  287. package/lib/components-v1/buttonv2/DefaultButton.js +0 -86
  288. package/lib/components-v1/buttonv2/index.js +0 -37
  289. package/lib/components-v1/buttonv2/style/style.js +0 -53
  290. package/lib/components-v1/buttonv2/style/theme.css +0 -3
  291. package/lib/components-v1/confirm/index.js +0 -158
  292. package/lib/pages/dynamic/index.css +0 -5
  293. package/lib/pages/dynamic/index.js +0 -25
  294. package/lib/pages/like-ranking/column.js +0 -141
  295. package/lib/pages/like-ranking/filter-buttons/department.js +0 -44
  296. package/lib/pages/like-ranking/filter-buttons/group.js +0 -34
  297. package/lib/pages/like-ranking/filter-buttons/index.css +0 -19
  298. package/lib/pages/like-ranking/filter-buttons/index.js +0 -44
  299. package/lib/pages/like-ranking/filter-buttons/modular.js +0 -110
  300. package/lib/pages/like-ranking/filter-buttons/name.js +0 -73
  301. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.css +0 -27
  302. package/lib/pages/like-ranking/filter-buttons/search-dropdown/index.js +0 -38
  303. package/lib/pages/like-ranking/filter-buttons/timer.js +0 -56
  304. package/lib/pages/like-ranking/image/dynamic-empty.png +0 -0
  305. package/lib/pages/like-ranking/image/loading.gif +0 -0
  306. package/lib/pages/like-ranking/image/ranking-1.png +0 -0
  307. package/lib/pages/like-ranking/image/ranking-2.png +0 -0
  308. package/lib/pages/like-ranking/image/ranking-3.png +0 -0
  309. package/lib/pages/like-ranking/index.css +0 -185
  310. package/lib/pages/like-ranking/index.js +0 -252
  311. package/lib/pages/like-ranking/mock.js +0 -366
  312. package/lib/pages/like-ranking/request-api.js +0 -15
  313. package/lib/utils/format-time.js +0 -161
  314. package/lib/utils/helpers.js +0 -41
  315. package/lib/utils/roundWeight.js +0 -105
  316. package/yarn-error.log +0 -15894
@@ -7,18 +7,15 @@ exports.htmlEncodeByRegExp = htmlEncodeByRegExp;
7
7
  exports.htmlDecodeByRegExp = htmlDecodeByRegExp;
8
8
  exports.changeQueryString = changeQueryString;
9
9
  exports.getQueryString = getQueryString;
10
- exports.getUrlForUserPage = exports.hexToRgba = exports.unHighLight = exports.highLightWord = void 0;
11
-
12
- var _platform = require("./platform");
13
10
 
14
11
  function htmlEncodeByRegExp(str) {
15
- if (!str) return "";
12
+ if (!str) return '';
16
13
  var htmlString = {
17
- "<": "&lt;",
18
- ">": "&gt;",
14
+ '<': '&lt;',
15
+ '>': '&gt;',
19
16
  // "&": '&amp;',
20
- "'": "&#39;",
21
- '"': "&quot;"
17
+ "'": '&#39;',
18
+ '"': '&quot;'
22
19
  };
23
20
  return str.replace(/[<>'"]/g, function (s) {
24
21
  return htmlString[s];
@@ -26,14 +23,14 @@ function htmlEncodeByRegExp(str) {
26
23
  }
27
24
 
28
25
  function htmlDecodeByRegExp(str) {
29
- if (!str) return "";
26
+ if (!str) return '';
30
27
  var arrEntities = {
31
- lt: "<",
32
- gt: ">",
33
- nbsp: " ",
34
- amp: "&",
28
+ lt: '<',
29
+ gt: '>',
30
+ nbsp: ' ',
31
+ amp: '&',
35
32
  quot: '"',
36
- "#39": "'"
33
+ '#39': "'"
37
34
  };
38
35
  return str.replace(/&(lt|gt|nbsp|amp|quot|#39);/gi, function (all, t) {
39
36
  return arrEntities[t];
@@ -43,15 +40,15 @@ function htmlDecodeByRegExp(str) {
43
40
  function changeQueryString(key, value) {
44
41
  var hash = decodeURIComponent(location.hash);
45
42
  var queryObject = {};
46
- var markIndex = hash.indexOf("?"); // contain query string in fragments
43
+ var markIndex = hash.indexOf('?'); // contain query string in fragments
47
44
 
48
45
  if (markIndex > -1) {
49
46
  // build query object
50
47
  var hashName = hash.slice(0, markIndex);
51
48
  var queryString = hash.slice(markIndex + 1);
52
- var queryArray = queryString.split("&");
49
+ var queryArray = queryString.split('&');
53
50
  queryArray.forEach(function (item) {
54
- item = item.split("=");
51
+ item = item.split('=');
55
52
  queryObject[item[0]] = item[1];
56
53
  });
57
54
  queryObject[key] = value;
@@ -61,7 +58,7 @@ function changeQueryString(key, value) {
61
58
  arr.push("".concat(name, "=").concat(queryObject[name]));
62
59
  }
63
60
 
64
- location.hash = "".concat(hashName, "?").concat(arr.join("&"));
61
+ location.hash = "".concat(hashName, "?").concat(arr.join('&'));
65
62
  } else {
66
63
  location.hash = hash;
67
64
  }
@@ -71,138 +68,21 @@ function getQueryString() {
71
68
  //获取Url上的参数,以{}返回
72
69
  var hash = decodeURIComponent(location.hash);
73
70
  var queryObject = {};
74
- var markIndex = hash.indexOf("?"); // contain query string in fragments
71
+ var markIndex = hash.indexOf('?'); // contain query string in fragments
75
72
 
76
73
  if (markIndex > -1) {
77
74
  // build query object
78
75
  var queryString = hash.slice(markIndex + 1);
79
- var queryArray = queryString.split("&");
76
+ var queryArray = queryString.split('&');
80
77
 
81
78
  for (var i = 0; i < queryArray.length; i++) {
82
- var queryPair = queryArray[i].split("=");
79
+ var queryPair = queryArray[i].split('=');
83
80
 
84
- if (queryPair[0] !== "_k") {
81
+ if (queryPair[0] !== '_k') {
85
82
  queryObject[queryPair[0]] = decodeURIComponent(queryPair[1]);
86
83
  }
87
84
  }
88
85
  }
89
86
 
90
87
  return queryObject;
91
- }
92
-
93
- var highLightWord = function highLightWord(_ref) {
94
- var parentDom = _ref.parentDom,
95
- _ref$keyWord = _ref.keyWord,
96
- keyWord = _ref$keyWord === void 0 ? "" : _ref$keyWord,
97
- _ref$className = _ref.className,
98
- className = _ref$className === void 0 ? "highlight" : _ref$className,
99
- _ref$nodeType = _ref.nodeType,
100
- nodeType = _ref$nodeType === void 0 ? "span" : _ref$nodeType;
101
-
102
- if (parentDom && keyWord) {
103
- var reg = new RegExp(keyWord, "i");
104
-
105
- if (parentDom.nodeType === 3) {
106
- var match = parentDom.data.match(reg);
107
- var currentDom = parentDom;
108
-
109
- while (match) {
110
- var highlight = document.createElement(nodeType);
111
- highlight.className = className;
112
- var wordNode = currentDom.splitText(match.index);
113
- currentDom = wordNode.splitText(match[0].length);
114
- var wordClone = wordNode.cloneNode(true);
115
- highlight.appendChild(wordClone);
116
- wordNode.parentNode.replaceChild(highlight, wordNode);
117
- match = currentDom.data.match(reg);
118
- }
119
- } else {
120
- var doms = Array.from(parentDom.childNodes);
121
- doms && doms.length > 0 && doms.map(function (dom) {
122
- // @ts-ignore 1是元素 3是文本节点
123
- if (dom.nodeType === 3) {
124
- var _match = dom.data.match(reg);
125
-
126
- var _currentDom = dom;
127
-
128
- while (_match) {
129
- var _highlight = document.createElement(nodeType);
130
-
131
- _highlight.className = className;
132
-
133
- var _wordNode = _currentDom.splitText(_match.index);
134
-
135
- _currentDom = _wordNode.splitText(_match[0].length);
136
-
137
- var _wordClone = _wordNode.cloneNode(true);
138
-
139
- _highlight.appendChild(_wordClone);
140
-
141
- _wordNode.parentNode.replaceChild(_highlight, _wordNode);
142
-
143
- _match = _currentDom.data.match(reg);
144
- }
145
- } else if (dom.nodeType === 1 && dom.childNodes) {
146
- for (var i = 0; i < dom.childNodes.length; i++) {
147
- i += highLightWord({
148
- parentDom: dom.childNodes[i],
149
- keyWord: keyWord
150
- });
151
- }
152
- }
153
- });
154
- }
155
- }
156
- };
157
-
158
- exports.highLightWord = highLightWord;
159
-
160
- var unHighLight = function unHighLight(_ref2) {
161
- var parentDom = _ref2.parentDom,
162
- _ref2$className = _ref2.className,
163
- className = _ref2$className === void 0 ? "highlight" : _ref2$className,
164
- _ref2$nodeType = _ref2.nodeType,
165
- nodeType = _ref2$nodeType === void 0 ? "span" : _ref2$nodeType;
166
- var doms = parentDom.querySelectorAll("".concat(nodeType, " .").concat(className));
167
- doms && doms.forEach(function (dom) {
168
- var parentNode = dom.parentNode;
169
- var firstChild = dom.firstChild;
170
- parentNode.replaceChild(firstChild, dom);
171
- parentNode.normalize();
172
- });
173
- };
174
-
175
- exports.unHighLight = unHighLight;
176
-
177
- var hexToRgba = function hexToRgba(hex) {
178
- var opacity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
179
- return "rgba(" + parseInt("0x" + hex.slice(1, 3)) + "," + parseInt("0x" + hex.slice(3, 5)) + "," + parseInt("0x" + hex.slice(5, 7)) + "," + opacity + ")";
180
- };
181
-
182
- exports.hexToRgba = hexToRgba;
183
-
184
- var getUrlForUserPage = function getUrlForUserPage(options) {
185
- var defults = {
186
- userId: "",
187
- //是否是外部联系人,外部联系人没有 2是外部联系人
188
- userType: 2
189
- };
190
- var configs = Object.assign({}, defults, options);
191
-
192
- if (!configs.userId || (0, _platform.isDD)(true) || (0, _platform.isFeishu)(true) || configs.userType == 2) {
193
- return "";
194
- }
195
-
196
- var userInfo = window.BSGlobal.loginUserInfo;
197
-
198
- if (configs.userId == undefined) {
199
- configs.userId = userInfo.Id;
200
- }
201
-
202
- var urlHost = window.BSGlobal.titaHost;
203
- var homeUrl = urlHost + "/" + userInfo.Id + "/PageBuilderForEdit#/view?to_user_id=" + configs.userId;
204
- var homeCenter = urlHost + "/u/" + userInfo.Id + "/Home#" + encodeURIComponent("widget/italent?iTalentFrameType=iframe&iTalentFrame=" + encodeURIComponent(homeUrl));
205
- return homeCenter;
206
- };
207
-
208
- exports.getUrlForUserPage = getUrlForUserPage;
88
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.5.78",
3
+ "version": "1.5.82",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
@@ -65,7 +65,7 @@
65
65
  "clone-deep": "^4.0.1",
66
66
  "color": "^3.2.1",
67
67
  "dayjs": "^1.10.4",
68
- "html2canvas": "^1.0.0-rc.7",
68
+ "html2canvas": "1.3.2",
69
69
  "lottie-web": "^5.7.13",
70
70
  "moment": "^2.29.1",
71
71
  "qs": "^6.10.1",
@@ -1,15 +0,0 @@
1
- .tita-icon-avatar {
2
- position: relative;
3
- }
4
-
5
- .tita-icon-avatar .titaui-pc-avator-container {
6
- display: inline-flex;
7
- }
8
-
9
- .tita-icon-avatar-image {
10
- position: absolute;
11
- width: 18px;
12
- height: 18px;
13
- bottom: -3px;
14
- right: -2px;
15
- }
@@ -1,50 +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 _default2 = _interopRequireDefault(require("../default"));
11
-
12
- var _attitude = _interopRequireDefault(require("../../upvote/attitude"));
13
-
14
- require("./index.css");
15
-
16
- var _excluded = ["userId", "avatar", "name", "type"];
17
-
18
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
23
-
24
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
25
-
26
- var IconAvatar = function IconAvatar(_ref) {
27
- var userId = _ref.userId,
28
- avatar = _ref.avatar,
29
- name = _ref.name,
30
- type = _ref.type,
31
- restProps = _objectWithoutProperties(_ref, _excluded);
32
-
33
- return /*#__PURE__*/_react["default"].createElement("div", {
34
- className: "tita-icon-avatar"
35
- }, /*#__PURE__*/_react["default"].createElement(_default2["default"], _extends({
36
- userId: userId,
37
- src: avatar.HasAvatar || avatar.hasAvatar ? avatar.medium : "",
38
- color: avatar.color,
39
- name: name
40
- }, restProps)), /*#__PURE__*/_react["default"].createElement("img", {
41
- className: "tita-icon-avatar-image",
42
- src: // @ts-ignore
43
- _attitude["default"].find(function (att) {
44
- return att.type == type;
45
- }).img
46
- }));
47
- };
48
-
49
- var _default = IconAvatar;
50
- exports["default"] = _default;
@@ -1,12 +0,0 @@
1
- .tita-num-avatar {
2
- cursor: pointer;
3
- width: 28px;
4
- height: 28px;
5
- background: #2879FF;
6
- border-radius: 15px;
7
- font-size: 12px;
8
- font-weight: 400;
9
- color: #FFFFFF;
10
- line-height: 28px;
11
- text-align: center;
12
- }
@@ -1,34 +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 _bsGlobal = require("../../../utils/bs-global");
11
-
12
- require("./index.css");
13
-
14
- var _excluded = ["num"];
15
-
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
17
-
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
-
20
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
21
-
22
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
23
-
24
- var IconAvatar = function IconAvatar(_ref) {
25
- var num = _ref.num,
26
- restProps = _objectWithoutProperties(_ref, _excluded);
27
-
28
- return /*#__PURE__*/_react["default"].createElement("div", _extends({
29
- className: "tita-num-avatar"
30
- }, restProps), (0, _bsGlobal.formatNum)(num));
31
- };
32
-
33
- var _default = IconAvatar;
34
- exports["default"] = _default;
@@ -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;
@@ -1,93 +0,0 @@
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 = "admin-button";
35
-
36
- var _default = function _default(_ref) {
37
- var _onClick = _ref.onClick,
38
- id = _ref.id,
39
- children = _ref.children,
40
- _ref$content = _ref.content,
41
- content = _ref$content === void 0 ? [] : _ref$content,
42
- _ref$isHasArrow = _ref.isHasArrow,
43
- isHasArrow = _ref$isHasArrow === void 0 ? false : _ref$isHasArrow,
44
- style = _ref.style,
45
- contentStyle = _ref.contentStyle,
46
- extraClass = _ref.extraClass;
47
-
48
- var _useState = (0, _react.useState)(false),
49
- _useState2 = _slicedToArray(_useState, 2),
50
- visible = _useState2[0],
51
- setVisible = _useState2[1];
52
-
53
- var wrapperRef = (0, _react.useRef)(document.createElement("div"));
54
-
55
- var clickEvent = function clickEvent(e) {
56
- if (!e.target.className.includes("admin-button-drop-wrapper-item")) {
57
- setVisible(false);
58
- window.removeEventListener("click", clickEvent, true);
59
- }
60
- };
61
-
62
- (0, _react.useEffect)(function () {
63
- if (visible) {
64
- window.addEventListener("click", clickEvent, true);
65
- } else {
66
- window.removeEventListener("click", clickEvent, true);
67
- }
68
- }, [visible]);
69
- return /*#__PURE__*/_react["default"].createElement("div", {
70
- onClick: function onClick() {
71
- setVisible(!visible);
72
- }
73
- }, /*#__PURE__*/_react["default"].createElement("div", {
74
- className: (0, _classnames["default"])("".concat(preCls, "-drop ").concat(preCls, "-btn ").concat(extraClass)),
75
- style: style
76
- }, children, isHasArrow && /*#__PURE__*/_react["default"].createElement("span", {
77
- className: "tu-icon-sort-down"
78
- })), visible && /*#__PURE__*/_react["default"].createElement("div", {
79
- ref: wrapperRef,
80
- style: contentStyle,
81
- className: (0, _classnames["default"])("".concat(preCls, "-drop-wrapper"))
82
- }, content.map(function (item, key) {
83
- return /*#__PURE__*/_react["default"].createElement("div", {
84
- key: key,
85
- onClick: function onClick() {
86
- return _onClick && _onClick(item.key);
87
- },
88
- className: (0, _classnames["default"])("".concat(preCls, "-drop-wrapper-item"))
89
- }, item.name);
90
- })));
91
- };
92
-
93
- exports["default"] = _default;
@@ -1,86 +0,0 @@
1
- .admin-button {
2
- box-sizing: border-box !important;
3
- }
4
-
5
- .admin-button-btn {
6
- height: 32px;
7
- min-width: 90px;
8
- padding: 0 18px;
9
- border-radius: 4px;
10
- text-align: center;
11
- line-height: 30px;
12
- cursor: pointer;
13
- box-sizing: border-box !important;
14
- font-size: 14px;
15
- white-space: nowrap;
16
- }
17
-
18
- .admin-button-primary {
19
- background: #2879FF;
20
- color: #FFFFFF;
21
- line-height: 32px;
22
- }
23
-
24
- .admin-button-primary:hover {
25
- background: #5C8EFF;
26
- }
27
-
28
- .admin-button-secondary {
29
- color: #2879FF;
30
- border: 1px solid #2879FF;
31
- }
32
-
33
- .admin-button-secondary:hover {
34
- background: #E9F1FF;
35
- }
36
-
37
- .admin-button-default, .admin-button-drop {
38
- color: #3f4755;
39
- border: 1px solid #E9ECF0;
40
- }
41
-
42
- .admin-button-default:hover, .admin-button-drop:hover {
43
- color: #2879FF;
44
- border: 1px solid #2879FF;
45
- }
46
-
47
- .admin-button-drop {
48
- position: relative;
49
- }
50
-
51
- .admin-button-drop:hover {
52
- background-color: #E9F1FF;
53
- }
54
-
55
- .admin-button-drop .tu-icon-sort-down {
56
- color: #3F4755;
57
- font-size: 12px;
58
- margin-left: 2px;
59
- position: relative;
60
- top: 1px;
61
- }
62
-
63
- .admin-button-drop-wrapper {
64
- min-width: 90px;
65
- z-index: 2;
66
- background: #FFFFFF;
67
- box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
68
- border: 1px solid #E9ECF0;
69
- padding: 16px 0 12px;
70
- position: absolute;
71
- }
72
-
73
- .admin-button-drop-wrapper-item {
74
- padding-left: 11px;
75
- height: 36px;
76
- line-height: 36px;
77
- font-size: 14px;
78
- font-weight: 400;
79
- color: #3F4755;
80
- cursor: pointer;
81
- }
82
-
83
- .admin-button-drop-wrapper-item:hover {
84
- color: #2879FF;
85
- background: #F7F8FA;
86
- }
@@ -1,40 +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 _default2 = _interopRequireDefault(require("./default"));
11
-
12
- var _dropDownArrow = _interopRequireDefault(require("./drop-down-arrow"));
13
-
14
- var _primary = _interopRequireDefault(require("./primary"));
15
-
16
- var _secondary = _interopRequireDefault(require("./secondary"));
17
-
18
- require("./index.css");
19
-
20
- var _excluded = ["type"];
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
25
-
26
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
27
-
28
- var _default = function _default(_ref) {
29
- var _ref$type = _ref.type,
30
- type = _ref$type === void 0 ? "default" : _ref$type,
31
- restProps = _objectWithoutProperties(_ref, _excluded);
32
-
33
- if (type == "default") return /*#__PURE__*/_react["default"].createElement(_default2["default"], restProps);
34
- if (type == "dropArrow") return /*#__PURE__*/_react["default"].createElement(_dropDownArrow["default"], restProps);
35
- if (type == "primary") return /*#__PURE__*/_react["default"].createElement(_primary["default"], restProps);
36
- if (type == "secondary") return /*#__PURE__*/_react["default"].createElement(_secondary["default"], restProps);
37
- return /*#__PURE__*/_react["default"].createElement(_default2["default"], restProps);
38
- };
39
-
40
- exports["default"] = _default;
@@ -1,33 +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
-
23
- var onHandleClick = function onHandleClick() {
24
- onClick && onClick(id);
25
- };
26
-
27
- return /*#__PURE__*/_react["default"].createElement("div", {
28
- className: (0, _classnames["default"])("".concat(preCls, "-primary ").concat(preCls, "-btn")),
29
- onClick: onHandleClick
30
- }, children);
31
- };
32
-
33
- exports["default"] = _default;
@@ -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, "-secondary ").concat(preCls, "-btn")),
30
- onClick: onHandleClick,
31
- style: style
32
- }, children);
33
- };
34
-
35
- exports["default"] = _default;