@titaui/pc 1.10.6 → 1.10.7-2.beta-1

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 (288) hide show
  1. package/.eslintrc.js +2 -2
  2. package/.prettierignore +4 -4
  3. package/lib/components/book-demo/utils.js +4 -0
  4. package/lib/components/button/default-button/index.css +10 -4
  5. package/lib/components/button/default-button/index.js +13 -2
  6. package/lib/components/change-okr-modal/index.js +6 -2
  7. package/lib/components/checkbox/index.css +1 -0
  8. package/lib/components/communication/CommunicationRecord.js +16 -16
  9. package/lib/components/communication/index.css +16 -15
  10. package/lib/components/communication/index.js +23 -6
  11. package/lib/components/communication/style.js +4 -4
  12. package/lib/components/create-okr-modal/fields/o-new-name.js +31 -21
  13. package/lib/components/create-okr-modal/fields/okr-parent.js +1 -5
  14. package/lib/components/create-okr-modal/kr-items/krDatas.js +16 -16
  15. package/lib/components/{dynamic/components/dangerous-html → dangerous-html}/index.js +0 -0
  16. package/lib/components/dialog/index.css +4 -1
  17. package/lib/components/dialog/index.js +1 -1
  18. package/lib/components/dialog-confirm/index.css +1 -1
  19. package/lib/components/drawer-manager/index.js +6 -1
  20. package/lib/components/dynamic/components/first-level-tabs/index.css +12 -2
  21. package/lib/components/dynamic/components/first-level-tabs/index.js +19 -6
  22. package/lib/components/dynamic/components/obj-status/index.css +1 -0
  23. package/lib/components/dynamic/components/obj-status/utils.js +1 -1
  24. package/lib/components/dynamic/constant.js +12 -2
  25. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.css +71 -0
  26. package/lib/components/dynamic/dynamic-item/components/feed-operate/index.js +112 -0
  27. package/lib/components/dynamic/dynamic-item/components/header/index.css +2 -1
  28. package/lib/components/dynamic/dynamic-item/components/header/index.js +2 -2
  29. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +31 -0
  30. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +13 -7
  31. package/lib/components/dynamic/dynamic-item/dynamic-align/index.js +10 -4
  32. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +1 -1
  33. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +1 -1
  34. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.js +5 -3
  35. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.css +4 -0
  36. package/lib/components/dynamic/dynamic-item/dynamic-chart/index.js +102 -0
  37. package/lib/components/dynamic/dynamic-item/dynamic-chart/utils.js +61 -0
  38. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +12 -11
  39. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -5
  40. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -2
  41. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -3
  42. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/dynamic-share-course.png +0 -0
  43. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/jiantou-right@3x.png +0 -0
  44. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/img/user-photo.png +0 -0
  45. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.css +2 -2
  46. package/lib/components/dynamic/dynamic-item/{dynamic-share-to-dynamic → dynamic-learning}/index.js +6 -5
  47. package/lib/components/dynamic/dynamic-item/dynamic-milestone/constant.js +9 -2
  48. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +2 -2
  49. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -2
  50. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +1 -1
  51. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +1 -1
  52. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -6
  53. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +8 -6
  54. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -2
  55. package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +3 -1
  56. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +13 -7
  57. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.js +42 -6
  58. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.css +14 -30
  59. package/lib/components/dynamic/dynamic-item/{dynamic-replay → dynamic-reply}/index.js +1 -1
  60. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +1 -1
  61. package/lib/components/dynamic/dynamic-item/dynamic-report/index.js +12 -3
  62. package/lib/components/dynamic/dynamic-item/dynamic-reward/img/reward.png +0 -0
  63. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +6 -1
  64. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.js +18 -51
  65. package/lib/components/dynamic/dynamic-item/dynamic-reward/utils.js +28 -0
  66. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +6 -2
  67. package/lib/components/dynamic/dynamic-item/dynamic-share/index.js +55 -2
  68. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -2
  69. package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +1 -1
  70. package/lib/components/dynamic/dynamic-item/index.css +58 -3
  71. package/lib/components/dynamic/dynamic-item/index.js +124 -23
  72. package/lib/components/dynamic/dynamic-like-ranking/item.js +1 -1
  73. package/lib/components/dynamic/dynamic-list/index.js +11 -2
  74. package/lib/components/dynamic/dynamic-topping/item.js +8 -4
  75. package/lib/components/dynamic/dynamic.js +5 -2
  76. package/lib/components/dynamic/img/dynamic-operate.png +0 -0
  77. package/lib/components/dynamic/img/dynamic-point.svg +13 -0
  78. package/lib/components/dynamic/img/dynamic-reward-hover.svg +1 -0
  79. package/lib/components/dynamic/img/dynamic-reward-normal.svg +1 -0
  80. package/lib/components/dynamic/online-broadcast/data.js +13 -1
  81. package/lib/components/e-status-dropdown/index.css +3 -0
  82. package/lib/components/e-status-dropdown/index.js +94 -0
  83. package/lib/components/edit-kr-wight/style/index.js +2 -2
  84. package/lib/components/file-list/components/single-file/index.css +6 -5
  85. package/lib/components/file-list/components/single-file/index.js +1 -1
  86. package/lib/components/file-list/index.css +1 -0
  87. package/lib/components/follower-visitor/index.js +6 -4
  88. package/lib/components/grid-layout/okr-progress/index.js +20 -30
  89. package/lib/components/help-card/image/not-try.png +0 -0
  90. package/lib/components/help-card/image/try.png +0 -0
  91. package/lib/components/help-card/index.css +31 -2
  92. package/lib/components/help-card/index.js +54 -17
  93. package/lib/components/invite-people/img/invite-people.svg +62 -0
  94. package/lib/components/invite-people/index.css +1 -1
  95. package/lib/components/mblog/index.js +14 -5
  96. package/lib/components/menus/export-modules/demo-menus/index.js +2 -2
  97. package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +25 -1
  98. package/lib/components/menus/export-modules/demo-menus/menus.js +60 -11
  99. package/lib/components/menus/export-modules/manage-menus/constant.js +1 -1
  100. package/lib/components/menus/export-modules/manage-menus/index.css +3 -0
  101. package/lib/components/menus/images/okr-gongsi.svg +17 -0
  102. package/lib/components/nav-top/components/menu/index.css +24 -0
  103. package/lib/components/nav-top/components/menu/index.js +9 -1
  104. package/lib/components/nav-top/components/user-message/components/reply/index.js +9 -8
  105. package/lib/components/nav-top/components/user-message/components/reply/reply-item.js +15 -5
  106. package/lib/components/nav-top/components/user-message/index.css +4 -3
  107. package/lib/components/nav-top/components/user-message/index.js +33 -6
  108. package/lib/components/nav-top/request.apis.js +22 -8
  109. package/lib/components/nav-top/useGlobalValue.js +14 -0
  110. package/lib/components/okr-detail/components/header/o-score.js +4 -6
  111. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.css +26 -12
  112. package/lib/components/okr-detail/components/okr-tree/tree-node/e-kr-node/index.js +10 -4
  113. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +20 -7
  114. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +3 -1
  115. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +27 -6
  116. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/index.css +29 -10
  117. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +1 -1
  118. package/lib/components/okr-detail/e-list/index.js +70 -24
  119. package/lib/components/okr-detail/e-list/util.js +11 -2
  120. package/lib/components/okr-detail/index.js +2 -0
  121. package/lib/components/okr-detail/okr-list/index.js +1 -5
  122. package/lib/components/okr-flow/export-modal/index.js +3 -3
  123. package/lib/components/okr-flow/root-node/index.js +14 -1
  124. package/lib/components/okr-progress-detail/index.css +11 -10
  125. package/lib/components/okr-progress-detail/index.js +5 -1
  126. package/lib/components/okr-progress-detail/utils.js +4 -4
  127. package/lib/components/okr-progress-modal/helper.js +20 -27
  128. package/lib/components/okr-share/common-painter/openDataPainter.js +34 -27
  129. package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
  130. package/lib/components/open-data-painter/index.js +5 -1
  131. package/lib/components/progress/circle-progress/index.js +1 -1
  132. package/lib/components/rich-editor/basic/schema.js +47 -0
  133. package/lib/components/rich-editor/consts/events.js +12 -0
  134. package/lib/components/rich-editor/enums.js +42 -0
  135. package/lib/components/rich-editor/index.js +58 -0
  136. package/lib/components/rich-editor/keymap.js +119 -0
  137. package/lib/components/rich-editor/keymaps/index.js +241 -0
  138. package/lib/components/rich-editor/models/controller.js +18 -0
  139. package/lib/components/rich-editor/models/editor.js +47 -0
  140. package/lib/components/rich-editor/models/plugin.js +20 -0
  141. package/lib/components/rich-editor/models/schema.js +121 -0
  142. package/lib/components/rich-editor/plugins/block/block-quote/commond.js +27 -0
  143. package/lib/components/rich-editor/plugins/block/block-quote/index.js +128 -0
  144. package/lib/components/rich-editor/plugins/block/heading/commonds.js +31 -0
  145. package/lib/components/rich-editor/plugins/block/heading/index.js +190 -0
  146. package/lib/components/rich-editor/plugins/block/index.js +57 -0
  147. package/lib/components/rich-editor/plugins/block/lists/actions/conversions.js +172 -0
  148. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list-items-selected.js +163 -0
  149. package/lib/components/rich-editor/plugins/block/lists/actions/indent-list.js +59 -0
  150. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-forward.js +74 -0
  151. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/index.js +45 -0
  152. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-paragraph.js +104 -0
  153. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.js +92 -0
  154. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.js +89 -0
  155. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-paragraph-with-list.js +48 -0
  156. package/lib/components/rich-editor/plugins/block/lists/actions/join-list-items-scenarios/join-sibling-list-items.js +61 -0
  157. package/lib/components/rich-editor/plugins/block/lists/actions/merge-lists.js +34 -0
  158. package/lib/components/rich-editor/plugins/block/lists/actions/outdent-list-items-selected.js +289 -0
  159. package/lib/components/rich-editor/plugins/block/lists/actions/wrap-and-join-lists.js +180 -0
  160. package/lib/components/rich-editor/plugins/block/lists/baseCommand.js +328 -0
  161. package/lib/components/rich-editor/plugins/block/lists/commond/indent-list.js +60 -0
  162. package/lib/components/rich-editor/plugins/block/lists/commond/index.js +396 -0
  163. package/lib/components/rich-editor/plugins/block/lists/commond/join-list-item-forward.js +45 -0
  164. package/lib/components/rich-editor/plugins/block/lists/commond/listBackspace.js +302 -0
  165. package/lib/components/rich-editor/plugins/block/lists/commond/outdent-list.js +43 -0
  166. package/lib/components/rich-editor/plugins/block/lists/index.js +224 -0
  167. package/lib/components/rich-editor/plugins/block/lists/messages.js +38 -0
  168. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/input-rule.js +152 -0
  169. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/keymap.js +33 -0
  170. package/lib/components/rich-editor/plugins/block/lists/pm-plugins/main.js +94 -0
  171. package/lib/components/rich-editor/plugins/block/lists/styles.js +15 -0
  172. package/lib/components/rich-editor/plugins/block/lists/transforms.js +347 -0
  173. package/lib/components/rich-editor/plugins/block/lists/utils/analytics.js +48 -0
  174. package/lib/components/rich-editor/plugins/block/lists/utils/find.js +126 -0
  175. package/lib/components/rich-editor/plugins/block/lists/utils/indentation.js +87 -0
  176. package/lib/components/rich-editor/plugins/block/lists/utils/node.js +144 -0
  177. package/lib/components/rich-editor/plugins/block/lists/utils/replace-content.js +31 -0
  178. package/lib/components/rich-editor/plugins/block/lists/utils/selection.js +201 -0
  179. package/lib/components/rich-editor/plugins/block/lists/utils.js +52 -0
  180. package/lib/components/rich-editor/plugins/block/paragraph/index.js +91 -0
  181. package/lib/components/rich-editor/plugins/core/index.js +90 -0
  182. package/lib/components/rich-editor/plugins/core/pm-plugins/focus-handler.js +67 -0
  183. package/lib/components/rich-editor/plugins/core/pm-plugins/keymap.js +29 -0
  184. package/lib/components/rich-editor/plugins/core/pm-plugins/reactNodeView.js +80 -0
  185. package/lib/components/rich-editor/plugins/extension/alignment/commond.js +24 -0
  186. package/lib/components/rich-editor/plugins/extension/alignment/index.js +113 -0
  187. package/lib/components/rich-editor/plugins/extension/alignment/utils.js +19 -0
  188. package/lib/components/rich-editor/plugins/extension/index.js +18 -0
  189. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +126 -0
  190. package/lib/components/rich-editor/plugins/extension/placeholder/styles.js +19 -0
  191. package/lib/components/rich-editor/plugins/index.js +44 -0
  192. package/lib/components/rich-editor/plugins/inline/color/commond.js +128 -0
  193. package/lib/components/rich-editor/plugins/inline/color/consts.js +43 -0
  194. package/lib/components/rich-editor/plugins/inline/color/index.css +61 -0
  195. package/lib/components/rich-editor/plugins/inline/color/index.js +217 -0
  196. package/lib/components/rich-editor/plugins/inline/color/selector.js +252 -0
  197. package/lib/components/rich-editor/plugins/inline/color/util.js +25 -0
  198. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +149 -0
  199. package/lib/components/rich-editor/plugins/inline/em/index.js +93 -0
  200. package/lib/components/rich-editor/plugins/inline/index.js +83 -0
  201. package/lib/components/rich-editor/plugins/inline/link/commands.js +256 -0
  202. package/lib/components/rich-editor/plugins/inline/link/index.js +149 -0
  203. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/fake-cursor-for-toolbar.js +77 -0
  204. package/lib/components/rich-editor/plugins/inline/link/pm-plugins/main.js +293 -0
  205. package/lib/components/rich-editor/plugins/inline/link/ui/index.css +84 -0
  206. package/lib/components/rich-editor/plugins/inline/link/ui/linkEditor.js +150 -0
  207. package/lib/components/rich-editor/plugins/inline/link/ui/linkToolbar.js +101 -0
  208. package/lib/components/rich-editor/plugins/inline/link/ui/toolbarBtn.js +117 -0
  209. package/lib/components/rich-editor/plugins/inline/link/utils.js +33 -0
  210. package/lib/components/rich-editor/plugins/inline/strong/index.js +139 -0
  211. package/lib/components/rich-editor/plugins/inline/under-line/index.js +147 -0
  212. package/lib/components/rich-editor/plugins/util.js +284 -0
  213. package/lib/components/rich-editor/react/reactNodeView.js +383 -0
  214. package/lib/components/rich-editor/react/uiProvider.js +185 -0
  215. package/lib/components/rich-editor/schemas/basic.js +309 -0
  216. package/lib/components/rich-editor/schemas/index.js +19 -0
  217. package/lib/components/rich-editor/schemas/list.js +342 -0
  218. package/lib/components/rich-editor/types/commond.js +5 -0
  219. package/lib/components/rich-editor/types/index.js +18 -0
  220. package/lib/components/rich-editor/ui/Popup/index.js +247 -0
  221. package/lib/components/rich-editor/ui/Popup/utils.js +399 -0
  222. package/lib/components/rich-editor/ui/editor/index.css +178 -0
  223. package/lib/components/rich-editor/ui/editor/index.js +153 -0
  224. package/lib/components/rich-editor/ui/normal-toolbar/index.css +34 -0
  225. package/lib/components/rich-editor/ui/normal-toolbar/index.js +109 -0
  226. package/lib/components/rich-editor/utils/browser.js +35 -0
  227. package/lib/components/rich-editor/utils/commands.js +266 -0
  228. package/lib/components/rich-editor/utils/document.js +211 -0
  229. package/lib/components/rich-editor/utils/event.js +79 -0
  230. package/lib/components/rich-editor/utils/helpers.js +16 -0
  231. package/lib/components/rich-editor/utils/mark.js +168 -0
  232. package/lib/components/rich-editor/utils/slice.js +85 -0
  233. package/lib/components/rich-editor/utils/toolbar.js +228 -0
  234. package/lib/components/superset-charts/components/chart/index.js +54 -0
  235. package/lib/components/superset-charts/fetch-assets-and-append/append-assets.js +106 -0
  236. package/lib/components/superset-charts/fetch-assets-and-append/get-assets-with-cache.js +131 -0
  237. package/lib/components/superset-charts/fetch-assets-and-append/index.js +79 -0
  238. package/lib/components/superset-charts/index.js +13 -0
  239. package/lib/components/superset-charts/interface.js +5 -0
  240. package/lib/components/superset-charts/utils/axios.js +102 -0
  241. package/lib/components/toast/index.js +5 -17
  242. package/lib/components/tree/index.css +3 -2
  243. package/lib/components/upload/index.js +4 -2
  244. package/lib/components/upload/util.js +2 -0
  245. package/lib/components/upload-photo-modal/request-api.js +1 -17
  246. package/lib/components/user-selector/empty/index.css +6 -6
  247. package/lib/components/user-selector/selected-panel/index.css +3 -3
  248. package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.css +118 -121
  249. package/lib/components/{float-fixed-video-modal → video-modal/components/video-box}/index.js +182 -182
  250. package/lib/components/{float-fixed-video-modal → video-modal}/img/close.png +0 -0
  251. package/lib/components/{float-fixed-video-modal → video-modal}/img/full.svg +0 -0
  252. package/lib/components/video-modal/img/muted.svg +8 -10
  253. package/lib/components/video-modal/img/not-muted.svg +17 -11
  254. package/lib/components/video-modal/img/pause.svg +7 -11
  255. package/lib/components/video-modal/img/play.svg +13 -11
  256. package/lib/components/video-modal/index.css +38 -168
  257. package/lib/components/video-modal/index.js +104 -244
  258. package/lib/components/video-modal/utils.js +2 -2
  259. package/lib/components/weekly-report/common-painter/openDataPainter.js +5 -1
  260. package/lib/hooks/useGlobalState.js +63 -0
  261. package/lib/index.js +31 -7
  262. package/lib/pages/aha2021/img/canceled.svg +13 -0
  263. package/lib/pages/aha2021/img/not-try.png +0 -0
  264. package/lib/pages/aha2021/img/try.png +0 -0
  265. package/lib/pages/aha2021/index.css +52 -0
  266. package/lib/pages/aha2021/index.js +73 -14
  267. package/lib/pages/new-okr-list/header/index.js +2 -1
  268. package/lib/pages/new-okr-list/index.js +3 -3
  269. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +0 -5
  270. package/lib/pages/pay/image/success.png +0 -0
  271. package/lib/pages/pay/index.css +79 -0
  272. package/lib/pages/pay/index.js +66 -0
  273. package/lib/pages/personal-info/request-api.js +1 -1
  274. package/lib/utils/auth.js +15 -5
  275. package/lib/utils/bs-global.js +8 -8
  276. package/lib/utils/helpers.js +7 -1
  277. package/lib/utils/open-data.js +82 -2
  278. package/lib/utils/tools.js +11 -2
  279. package/package.json +120 -101
  280. package/lib/components/float-fixed-video-modal/img/muted.svg +0 -21
  281. package/lib/components/float-fixed-video-modal/img/pause.svg +0 -21
  282. package/lib/components/float-fixed-video-modal/img/play.svg +0 -22
  283. package/lib/components/float-fixed-video-modal/img/small.svg +0 -22
  284. package/lib/components/float-fixed-video-modal/img/smallFaQi.png +0 -0
  285. package/lib/components/float-fixed-video-modal/img/volume.svg +0 -21
  286. package/lib/components/float-fixed-video-modal/utils.js +0 -25
  287. package/lib/components/invite-people/img/invite-people.png +0 -0
  288. package/lib/components/video-modal/img/play.png +0 -0
@@ -11,25 +11,15 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- var _utils = _interopRequireDefault(require("./utils"));
14
+ var _utils = _interopRequireDefault(require("../../utils"));
15
15
 
16
- var _bsGlobal = require("../../utils/bs-global");
16
+ var _play = _interopRequireDefault(require("../../img/play.svg"));
17
17
 
18
- var _videoModal = _interopRequireDefault(require("../video-modal"));
18
+ var _pause = _interopRequireDefault(require("../../img/pause.svg"));
19
19
 
20
- var _close = _interopRequireDefault(require("./img/close.png"));
20
+ var _muted = _interopRequireDefault(require("../../img/muted.svg"));
21
21
 
22
- var _pause = _interopRequireDefault(require("./img/pause.svg"));
23
-
24
- var _play = _interopRequireDefault(require("./img/play.svg"));
25
-
26
- var _volume = _interopRequireDefault(require("./img/volume.svg"));
27
-
28
- var _full = _interopRequireDefault(require("./img/full.svg"));
29
-
30
- var _muted = _interopRequireDefault(require("./img/muted.svg"));
31
-
32
- var _smallFaQi = _interopRequireDefault(require("./img/smallFaQi.png"));
22
+ var _notMuted = _interopRequireDefault(require("../../img/not-muted.svg"));
33
23
 
34
24
  require("./index.css");
35
25
 
@@ -53,35 +43,37 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
53
43
 
54
44
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
55
45
 
56
- var preCls = "titaui-pc-float-fixed-video";
57
-
58
- var FloatVideo = function FloatVideo(props) {
59
- var _props$visible = props.visible,
60
- visible = _props$visible === void 0 ? true : _props$visible,
61
- _props$title = props.title,
62
- title = _props$title === void 0 ? "如何发起考核" : _props$title,
63
- _props$videoSrc = props.videoSrc,
64
- videoSrc = _props$videoSrc === void 0 ? "https://club.tita.com/wp-content/uploads/2022/03/1646114589-20220301140309117.mp4" : _props$videoSrc;
65
-
66
- var _useState = (0, _react.useState)(false),
46
+ var preCls = "titaui-pc-video-box";
47
+ var VideoBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
48
+ var videoSrc = props.videoSrc,
49
+ containerWidth = props.containerWidth,
50
+ hasHead = props.hasHead,
51
+ headButton = props.headButton,
52
+ title = props.title,
53
+ extraButton = props.extraButton,
54
+ videoPoster = props.videoPoster,
55
+ _props$time = props.time,
56
+ time = _props$time === void 0 ? "00:00" : _props$time;
57
+
58
+ var _useState = (0, _react.useState)(true),
67
59
  _useState2 = _slicedToArray(_useState, 2),
68
- isHover = _useState2[0],
69
- setIsHover = _useState2[1];
60
+ isPlay = _useState2[0],
61
+ setIsPlay = _useState2[1];
70
62
 
71
- var _useState3 = (0, _react.useState)(false),
63
+ var _useState3 = (0, _react.useState)(true),
72
64
  _useState4 = _slicedToArray(_useState3, 2),
73
- videoModalVisible = _useState4[0],
74
- setVideoModalVisible = _useState4[1];
65
+ isMuted = _useState4[0],
66
+ setIsMuted = _useState4[1];
75
67
 
76
- var _useState5 = (0, _react.useState)(true),
68
+ var _useState5 = (0, _react.useState)(false),
77
69
  _useState6 = _slicedToArray(_useState5, 2),
78
- isPlay = _useState6[0],
79
- setIsPlay = _useState6[1];
70
+ isMouseDown = _useState6[0],
71
+ setIsMouseDown = _useState6[1];
80
72
 
81
- var _useState7 = (0, _react.useState)(true),
73
+ var _useState7 = (0, _react.useState)(false),
82
74
  _useState8 = _slicedToArray(_useState7, 2),
83
- isMuted = _useState8[0],
84
- setIsMuted = _useState8[1];
75
+ showDot = _useState8[0],
76
+ setShowDot = _useState8[1];
85
77
 
86
78
  var _useState9 = (0, _react.useState)("00:00"),
87
79
  _useState10 = _slicedToArray(_useState9, 2),
@@ -95,19 +87,22 @@ var FloatVideo = function FloatVideo(props) {
95
87
 
96
88
  var _useState13 = (0, _react.useState)(false),
97
89
  _useState14 = _slicedToArray(_useState13, 2),
98
- showDot = _useState14[0],
99
- setShowDot = _useState14[1];
90
+ isSmallVideo = _useState14[0],
91
+ setIsSmallVideo = _useState14[1];
100
92
 
101
- var _useState15 = (0, _react.useState)(false),
93
+ var _useState15 = (0, _react.useState)("0px"),
102
94
  _useState16 = _slicedToArray(_useState15, 2),
103
- isMouseDown = _useState16[0],
104
- setIsMouseDown = _useState16[1];
95
+ progressWidth = _useState16[0],
96
+ setProgressWidth = _useState16[1];
97
+
98
+ var _useState17 = (0, _react.useState)("0px"),
99
+ _useState18 = _slicedToArray(_useState17, 2),
100
+ volumeWidth = _useState18[0],
101
+ setVolumeWidth = _useState18[1];
105
102
 
106
103
  var videoRef = (0, _react.useRef)(document.createElement("video"));
107
- var volumeRef = (0, _react.useRef)(document.createElement("div"));
108
- var totalProgressRef = (0, _react.useRef)(document.createElement("div"));
109
- var progressRef = (0, _react.useRef)(document.createElement("div"));
110
- var boxRef = (0, _react.useRef)(document.createElement("div"));
104
+ var videoBoxRef = (0, _react.useRef)(document.createElement("div"));
105
+ var volumeBoxRef = (0, _react.useRef)(document.createElement("div")); // *---播放/暂停---*
111
106
 
112
107
  var handlePlayVideo = function handlePlayVideo() {
113
108
  setIsPlay(!isPlay);
@@ -117,47 +112,26 @@ var FloatVideo = function FloatVideo(props) {
117
112
  } else {
118
113
  videoRef.current.play();
119
114
  }
120
- };
121
-
122
- var handleChangeVolumeMuted = function handleChangeVolumeMuted() {
123
- setIsMuted(!isMuted);
124
- videoRef.current.muted = !videoRef.current.muted;
125
- }; // 鼠标移入移出进度条区域
115
+ }; //* ---进度条---*
116
+ // 鼠标移入进度条区域
126
117
 
127
118
 
128
119
  var handleMouseEnterProgress = function handleMouseEnterProgress() {
129
120
  setShowDot(true);
130
- };
121
+ }; // 鼠标移出进度条区域
122
+
131
123
 
132
124
  var handleMouseLeaveProgress = function handleMouseLeaveProgress() {
133
125
  setShowDot(false);
134
- }; // 点击音量 音量进度条宽度
135
-
136
-
137
- var getCurrentVolumeWidth = function getCurrentVolumeWidth(e) {
138
- var currentWidth = e.clientX - (document.documentElement.offsetWidth - 178);
139
-
140
- if (currentWidth <= 0) {
141
- setIsMuted(true);
142
- videoRef.current.muted = true;
143
- } else if (currentWidth >= 34) {
144
- volumeRef.current.style.width = "34px";
145
- videoRef.current.volume = 1;
146
- } else {
147
- volumeRef.current.style.width = "".concat(currentWidth, "px");
148
- videoRef.current.volume = currentWidth / 34;
149
- }
150
- };
151
-
152
- var handleMouseClickVolume = function handleMouseClickVolume(e) {
153
- getCurrentVolumeWidth(e);
154
- }; // 获得点击进度条 进度条的宽度
126
+ setIsMouseDown(false);
127
+ }; // 获得点击进度条任意位置 计算实时进度条的宽度
155
128
 
156
129
 
157
130
  var getCurrentProgressWidth = function getCurrentProgressWidth(e) {
158
- var currentWidth = e.clientX - (document.documentElement.offsetWidth - 432);
159
- progressRef.current.style.width = "".concat(currentWidth, "px");
160
- videoRef.current.currentTime = videoRef.current.duration * currentWidth / 360;
131
+ var videoContainerLeft = videoBoxRef.current.getBoundingClientRect().left;
132
+ var currentWidth = e.clientX - videoContainerLeft;
133
+ setProgressWidth("".concat(currentWidth, "px"));
134
+ videoRef.current.currentTime = videoRef.current.duration * currentWidth / containerWidth;
161
135
  }; // 点击进度条
162
136
 
163
137
 
@@ -178,109 +152,159 @@ var FloatVideo = function FloatVideo(props) {
178
152
 
179
153
  var handleMouseUpProgress = function handleMouseUpProgress() {
180
154
  setIsMouseDown(false);
181
- };
155
+ }; // *---音量---*
156
+ // 静音/声音 切换
182
157
 
183
- var handleCloseFloatVideo = function handleCloseFloatVideo() {
184
- localStorage.setItem("hide_performance_small_video_".concat((0, _bsGlobal.getUserInfo)().Id), "true");
185
- boxRef.current.style.display = "none";
186
- videoRef.current.pause();
187
- videoRef.current.currentTime = 0;
188
- };
189
158
 
190
- var handleShowBigVideo = function handleShowBigVideo() {
191
- handleCloseFloatVideo();
192
- setVideoModalVisible(true);
193
- videoRef.current.pause();
194
- setIsPlay(false);
195
- };
159
+ var handleChangeVolumeMuted = function handleChangeVolumeMuted() {
160
+ setIsMuted(!isMuted);
161
+ videoRef.current.muted = !videoRef.current.muted;
162
+ }; // 点击音量进度条 计算音量进度条宽度
196
163
 
197
- var handleCloseBigVideo = function handleCloseBigVideo() {
198
- setVideoModalVisible(false);
199
- };
200
164
 
201
- var showSmallVideo = function showSmallVideo() {
202
- videoRef.current.play();
203
- setIsPlay(true);
165
+ var getCurrentVolumeWidth = function getCurrentVolumeWidth(e) {
166
+ var volumeBoxLeft = volumeBoxRef.current.getBoundingClientRect().left;
167
+ var currentWidth = e.clientX - volumeBoxLeft;
168
+ var VolumeTotalProgressWidth = 34;
169
+
170
+ if (currentWidth <= 0) {
171
+ setIsMuted(true);
172
+ videoRef.current.muted = true;
173
+ } else if (currentWidth >= VolumeTotalProgressWidth) {
174
+ setVolumeWidth("34px");
175
+ videoRef.current.volume = 1;
176
+ } else {
177
+ setVolumeWidth("".concat(currentWidth, "px"));
178
+ videoRef.current.volume = currentWidth / volumeBoxRef.current.clientWidth;
179
+ }
180
+ }; // 点击音量进度条
181
+
182
+
183
+ var handleMouseClickVolume = function handleMouseClickVolume(e) {
184
+ getCurrentVolumeWidth(e);
185
+ }; // *---提供父组件调用---*
186
+ // 暂停视频并静音
187
+
188
+
189
+ var handleCloseAndPauseVideo = function handleCloseAndPauseVideo() {
190
+ videoRef.current.pause();
191
+ videoRef.current.currentTime = 0;
204
192
  videoRef.current.muted = true;
205
- setIsMuted(true);
206
- boxRef.current.style.display = "block";
193
+ setIsPlay(false);
207
194
  };
208
195
 
209
- var handleMouseOverVideo = function handleMouseOverVideo() {
210
- setIsHover(true);
196
+ var handleGetCurrentTime = function handleGetCurrentTime() {
197
+ return currentTime;
211
198
  };
212
199
 
213
- var handleMouseLeaveVideo = function handleMouseLeaveVideo() {
214
- setIsHover(false);
215
- };
200
+ (0, _react.useImperativeHandle)(ref, function () {
201
+ return {
202
+ closeVideo: handleCloseAndPauseVideo,
203
+ getCurrentTime: handleGetCurrentTime
204
+ };
205
+ }); // *---初始化---*
206
+ // 初始获得总时间
216
207
 
217
- (0, _react.useEffect)(function () {
218
- videoRef.current.onloadedmetadata = function () {
208
+ var getTotalTime = function getTotalTime() {
209
+ if (videoRef.current.duration) {
219
210
  setTotalTime(videoRef.current.duration.toString());
220
- };
221
- }, [videoRef.current.onloadedmetadata]);
222
- (0, _react.useEffect)(function () {
223
- videoRef.current.ontimeupdate = function () {
211
+ videoRef.current.currentTime = parseFloat(time);
212
+ }
213
+ }; // 获得实时播放时间
214
+
215
+
216
+ var handleTimeUpdate = function handleTimeUpdate() {
217
+ if (videoRef.current.currentTime) {
224
218
  setCurrentTime(videoRef.current.currentTime.toString());
225
- progressRef.current.style.width = "".concat(360 * videoRef.current.currentTime / videoRef.current.duration, "px");
226
- };
227
- }, [videoRef.current.ontimeupdate]);
219
+ setProgressWidth("".concat(containerWidth * videoRef.current.currentTime / videoRef.current.duration, "px"));
220
+ }
221
+ }; // 初始获得音量宽度
222
+
223
+
228
224
  (0, _react.useEffect)(function () {
229
- volumeRef.current.style.width = "".concat(34 * videoRef.current.volume, "px");
230
- }, [videoRef.current.onloadedmetadata]);
225
+ var VolumeTotalProgressWidth = 34;
226
+ setVolumeWidth("".concat(VolumeTotalProgressWidth * videoRef.current.volume, "px"));
227
+ }, []); // 初始判断是否是小窗口
228
+
231
229
  (0, _react.useEffect)(function () {
232
- if (visible) {
233
- videoRef.current.play();
234
- setIsPlay(true);
235
- videoRef.current.muted = true;
236
- setIsMuted(true);
237
- boxRef.current.style.display = "block";
238
- } else {
239
- videoRef.current.pause();
240
- setIsPlay(false);
241
- videoRef.current.muted = true;
242
- setIsMuted(true);
243
- boxRef.current.style.display = "none";
230
+ var FullVideoWidth = 840;
231
+
232
+ if (containerWidth < FullVideoWidth) {
233
+ setIsSmallVideo(true);
234
+ }
235
+ }, []); // 按空格键 暂停/播放视频
236
+
237
+ var handleKeyDown = function handleKeyDown(e) {
238
+ if (e.keyCode === 32) {
239
+ if (videoRef.current.paused) {
240
+ videoRef.current.play();
241
+ setIsPlay(true);
242
+ } else {
243
+ videoRef.current.pause();
244
+ setIsPlay(false);
245
+ }
244
246
  }
245
- }, [visible]);
247
+ };
248
+
249
+ (0, _react.useEffect)(function () {
250
+ document.addEventListener("keydown", handleKeyDown);
251
+ return function () {
252
+ document.removeEventListener("keydown", handleKeyDown);
253
+ };
254
+ }, []);
246
255
  return /*#__PURE__*/_react["default"].createElement("div", {
247
- className: preCls,
248
- ref: boxRef,
249
- onMouseOver: handleMouseOverVideo,
250
- onMouseLeave: handleMouseLeaveVideo,
251
- onFocus: handleMouseOverVideo
256
+ className: "".concat(preCls, "__box"),
257
+ ref: videoBoxRef
252
258
  }, /*#__PURE__*/_react["default"].createElement("video", {
253
259
  ref: videoRef,
254
260
  src: videoSrc,
255
261
  loop: true,
256
262
  autoPlay: true,
257
263
  muted: true,
258
- poster: _smallFaQi["default"],
259
- className: "".concat(preCls, "__video")
264
+ poster: videoPoster,
265
+ style: {
266
+ width: "100%",
267
+ height: "100%"
268
+ },
269
+ onClick: handlePlayVideo,
270
+ onLoadedMetadata: getTotalTime,
271
+ onTimeUpdate: handleTimeUpdate
260
272
  }), /*#__PURE__*/_react["default"].createElement("div", {
261
- className: (0, _classnames["default"])("".concat(preCls, "__progress"), _defineProperty({}, "".concat(preCls, "__progress--show"), isHover)),
273
+ className: (0, _classnames["default"])("".concat(preCls, "__mouseMove"), _defineProperty({}, "".concat(preCls, "__mouseMove--small"), isSmallVideo)),
274
+ onMouseMove: handleMouseMoveProgress,
275
+ onMouseUp: handleMouseUpProgress,
262
276
  onMouseEnter: handleMouseEnterProgress,
263
- onMouseLeave: handleMouseLeaveProgress,
264
- ref: totalProgressRef,
277
+ onMouseLeave: handleMouseLeaveProgress
278
+ }, /*#__PURE__*/_react["default"].createElement("div", {
279
+ className: (0, _classnames["default"])("".concat(preCls, "__progress"), _defineProperty({}, "".concat(preCls, "__progress--small"), isSmallVideo)),
265
280
  onClick: handleClickTotalProgress,
266
- onMouseDown: handleMouseDownProgress,
267
- onMouseMove: handleMouseMoveProgress,
268
- onMouseUp: handleMouseUpProgress
281
+ onMouseDown: handleMouseDownProgress
269
282
  }, /*#__PURE__*/_react["default"].createElement("div", {
270
283
  className: "".concat(preCls, "__progress-current"),
271
- ref: progressRef
284
+ style: {
285
+ width: progressWidth
286
+ }
272
287
  }, /*#__PURE__*/_react["default"].createElement("div", {
273
288
  className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__progress-current-dot"), showDot))
274
- }))), /*#__PURE__*/_react["default"].createElement("div", {
275
- className: (0, _classnames["default"])("".concat(preCls, "__controls"), _defineProperty({}, "".concat(preCls, "__controls--show"), isHover))
289
+ })))), /*#__PURE__*/_react["default"].createElement("div", {
290
+ className: (0, _classnames["default"])("".concat(preCls, "__mask1"), _defineProperty({}, "".concat(preCls, "__mask1--small"), isSmallVideo))
291
+ }, hasHead && /*#__PURE__*/_react["default"].createElement("div", {
292
+ className: (0, _classnames["default"])("".concat(preCls, "__title"))
293
+ }, /*#__PURE__*/_react["default"].createElement("div", {
294
+ className: "".concat(preCls, "__mask1-title")
295
+ }, title), headButton)), /*#__PURE__*/_react["default"].createElement("div", {
296
+ className: (0, _classnames["default"])("".concat(preCls, "__mask2"), _defineProperty({}, "".concat(preCls, "__mask2--small"), isSmallVideo))
297
+ }, /*#__PURE__*/_react["default"].createElement("div", {
298
+ className: (0, _classnames["default"])("".concat(preCls, "__controls"), _defineProperty({}, "".concat(preCls, "__controls--small"), isSmallVideo))
276
299
  }, /*#__PURE__*/_react["default"].createElement("div", {
277
300
  className: "".concat(preCls, "__controls-left")
278
301
  }, /*#__PURE__*/_react["default"].createElement("div", {
279
- onClick: handlePlayVideo,
280
- className: (0, _classnames["default"])("".concat(preCls, "__controls-play"), "".concat(preCls, "__controls-button"))
302
+ className: "".concat(preCls, "__controls-button"),
303
+ onClick: handlePlayVideo
281
304
  }, /*#__PURE__*/_react["default"].createElement("img", {
282
- src: isPlay ? _play["default"] : _pause["default"],
283
- alt: "play"
305
+ src: isPlay ? _pause["default"] : _play["default"],
306
+ className: "".concat(preCls, "__controls-play"),
307
+ alt: "\u64AD\u653E/\u6682\u505C"
284
308
  })), /*#__PURE__*/_react["default"].createElement("span", {
285
309
  className: "".concat(preCls, "__controls-time")
286
310
  }, (0, _utils["default"])(currentTime)), /*#__PURE__*/_react["default"].createElement("span", {
@@ -291,44 +315,20 @@ var FloatVideo = function FloatVideo(props) {
291
315
  className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-button"), isMuted), _defineProperty({}, "".concat(preCls, "__controls-volume"), !isMuted))
292
316
  }, /*#__PURE__*/_react["default"].createElement("div", {
293
317
  className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-progress--hidden"), isMuted), "".concat(preCls, "__controls-volume-progress")),
294
- onClick: handleMouseClickVolume
318
+ onClick: handleMouseClickVolume,
319
+ ref: volumeBoxRef
295
320
  }, /*#__PURE__*/_react["default"].createElement("div", {
296
321
  className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__controls-volume-current--hidden"), isMuted), "".concat(preCls, "__controls-volume-current")),
297
- ref: volumeRef
322
+ style: {
323
+ width: volumeWidth
324
+ }
298
325
  })), /*#__PURE__*/_react["default"].createElement("div", {
299
- onClick: handleChangeVolumeMuted
326
+ onClick: handleChangeVolumeMuted,
327
+ className: "".concat(preCls, "__controls-play")
300
328
  }, /*#__PURE__*/_react["default"].createElement("img", {
301
- src: isMuted ? _muted["default"] : _volume["default"],
302
- className: "".concat(preCls, "__controls-play"),
329
+ src: isMuted ? _muted["default"] : _notMuted["default"],
303
330
  alt: "\u97F3\u91CF"
304
- }))), /*#__PURE__*/_react["default"].createElement("div", {
305
- className: "".concat(preCls, "__controls-full"),
306
- onClick: handleShowBigVideo
307
- }, /*#__PURE__*/_react["default"].createElement("img", {
308
- src: _full["default"],
309
- alt: "full"
310
- })))), /*#__PURE__*/_react["default"].createElement("div", {
311
- className: (0, _classnames["default"])("".concat(preCls, "__mask1"), _defineProperty({}, "".concat(preCls, "__mask1--show"), isHover))
312
- }, /*#__PURE__*/_react["default"].createElement("div", {
313
- className: "".concat(preCls, "__mask1-title")
314
- }, title), /*#__PURE__*/_react["default"].createElement("div", {
315
- onClick: handleCloseFloatVideo
316
- }, /*#__PURE__*/_react["default"].createElement("img", {
317
- src: _close["default"],
318
- alt: "\u5173\u95ED",
319
- className: "".concat(preCls, "__mask1-close")
320
- }))), /*#__PURE__*/_react["default"].createElement("div", {
321
- className: (0, _classnames["default"])("".concat(preCls, "__mask2"), _defineProperty({}, "".concat(preCls, "__mask2--show"), isHover))
322
- }), /*#__PURE__*/_react["default"].createElement(_videoModal["default"], {
323
- title: title,
324
- videoSrc: videoSrc,
325
- visible: videoModalVisible,
326
- onClose: handleCloseBigVideo,
327
- onCancel: handleCloseBigVideo,
328
- canMini: true,
329
- showSmallVideo: showSmallVideo
330
- }));
331
- };
332
-
333
- var _default = FloatVideo;
331
+ }))), extraButton))));
332
+ });
333
+ var _default = VideoBox;
334
334
  exports["default"] = _default;
@@ -1,15 +1,13 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="180px" height="186px" viewBox="0 0 180 186" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>静音</title>
4
- <defs>
5
- <filter color-interpolation-filters="auto" id="filter-1">
6
- <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
7
- </filter>
8
- </defs>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 8</title>
9
4
  <g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="静音" transform="translate(-30.000000, -27.000000)" filter="url(#filter-1)">
11
- <g>
12
- <path d="M49.3149643,69.1132143 L63.8847897,83.6834846 C55.7759466,87.6753931 50.1590828,95.9740232 50.0033233,105.6033 L50,106.014476 L50,133.986771 C50,147.581602 60.885103,158.62813 74.3959856,158.847701 L74.8062016,158.851032 L84.7965877,158.851032 C91.1425837,158.851032 97.2237483,161.364066 101.715798,165.829264 L102.033938,166.151519 L124.488994,189.329779 C127.287246,191.700034 130.832503,193.000457 134.496124,193.000457 C142.952968,193.000457 149.828362,186.21362 149.996836,177.777414 L150,177.460293 L150,169.799 L168.362354,188.160381 C163.827612,202.55479 150.386556,213.000457 134.496124,213.000457 C126.279823,213.000457 118.325168,210.148157 111.982629,204.941373 L111.562196,204.590772 L110.810236,203.953825 L87.6694795,180.06778 C86.9698379,179.345605 86.026075,178.915478 85.0278322,178.857715 L84.7965877,178.851032 L74.8062016,178.851032 C50.2975021,178.851032 30.4014694,159.154093 30.0059996,134.728376 L30,133.986771 L30,106.014476 C30,90.7240078 37.6417711,77.2136491 49.3149643,69.1132143 Z M49.2893219,35.1471863 L204.852814,190.710678 C208.758057,194.615921 208.758057,200.947571 204.852814,204.852814 C200.947571,208.758057 194.615921,208.758057 190.710678,204.852814 L35.1471863,49.2893219 C31.2419433,45.384079 31.2419433,39.0524292 35.1471863,35.1471863 C39.0524292,31.2419433 45.384079,31.2419433 49.2893219,35.1471863 Z M194.419014,65.9446193 C204.539925,81.8473491 210,100.317687 210,119.570241 C210,139.000016 204.438707,157.631418 194.142344,173.628138 C194.048842,173.773404 193.952211,173.915439 193.852595,174.054212 L179.325399,159.525666 C186.275802,147.498397 190,133.820674 190,119.570241 C190,104.150087 185.639603,89.3997416 177.546261,76.6828777 C174.580973,72.0235955 175.954226,65.84266 180.613508,62.8773718 C185.272791,59.9120836 191.453726,61.2853371 194.419014,65.9446193 Z M161.628643,39.6188159 C166.917857,45.8923685 169.86995,53.7996281 169.995802,61.994236 L170,62.5409541 L170,150.201 L150,130.201 L150,62.5409541 C150,58.8687585 148.702614,55.3152038 146.337894,52.5104022 C140.88787,46.0461122 131.299927,45.1557225 124.763352,50.4443266 L124.488994,50.6714677 L102.033938,73.8497282 C100.63289,75.2959 99.0686828,76.5468821 97.3836195,77.5847583 L80.949,61.15 L84.7965877,61.1502149 C85.8020899,61.1502149 86.7677,60.7716711 87.5037765,60.094902 L87.6694795,59.9334671 L110.810236,36.0474218 L111.562196,35.4104754 C126.545716,22.7187097 148.971552,24.6062026 161.628643,39.6188159 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>
5
+ <g id="编组-8">
6
+ <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
7
+ <g id="编组" fill="#FFFFFF" fill-rule="nonzero">
8
+ <g id="静音">
9
+ <path d="M3.28766429,4.60754762 L4.25898598,5.57889897 C3.71839644,5.84502621 3.34393885,6.39826821 3.33355489,7.04022003 L3.33333333,8.93245138 C3.33333333,9.83877344 4.05900687,10.5752087 4.95973238,10.5898467 L4.9870801,10.5900688 L5.65310585,10.5900688 C6.07617225,10.5900688 6.48158322,10.7576044 6.7810532,11.0552843 L6.80226255,11.0767679 L8.29926628,12.6219853 C8.48581643,12.7800023 8.72216689,12.8666971 8.96640827,12.8666971 C9.53019785,12.8666971 9.98855748,12.4142413 9.99978907,11.8518276 L10,11.8306862 L10,11.3199333 L11.2241569,12.5440254 C10.9218408,13.5036526 10.0257704,14.2000304 8.96640827,14.2000304 C8.41865484,14.2000304 7.88834453,14.0098771 7.46550858,13.6627582 L7.43747973,13.6393848 L7.38734907,13.5969217 L5.84463197,12.0045187 C5.7979892,11.9563737 5.73507167,11.9276985 5.66852215,11.9238477 L4.9870801,11.9234022 C3.35316681,11.9234022 2.02676463,10.6102728 2.00039998,8.98189173 L2,7.06763176 C2,6.04826718 2.50945141,5.14757661 3.28766429,4.60754762 Z M3.28595479,2.34314575 L13.6568542,12.7140452 C13.9172038,12.9743947 13.9172038,13.3965047 13.6568542,13.6568542 C13.3965047,13.9172038 12.9743947,13.9172038 12.7140452,13.6568542 L2.34314575,3.28595479 C2.08279622,3.02560526 2.08279622,2.60349528 2.34314575,2.34314575 C2.60349528,2.08279622 3.02560526,2.08279622 3.28595479,2.34314575 Z M12.9612676,4.39630795 C13.635995,5.45648994 14,6.6878458 14,7.97134943 C14,9.26666772 13.6292471,10.5087612 12.9428229,11.5752092 C12.9365895,11.5848936 12.9301474,11.5943626 12.9235064,11.6036141 L11.9550266,10.6350444 C12.4183868,9.83322648 12.6666667,8.92137825 12.6666667,7.97134943 C12.6666667,6.94333913 12.3759736,5.95998277 11.8364174,5.11219185 C11.6387315,4.80157303 11.7302817,4.38951067 12.0409006,4.19182479 C12.3515194,3.99413891 12.7635817,4.08568914 12.9612676,4.39630795 Z M10.7752429,2.64125439 C11.1278572,3.05949124 11.3246633,3.58664187 11.3330535,4.13294907 L11.3333333,10.0134 L10,8.68006667 L10,4.16939694 C10,3.9245839 9.91350763,3.68768026 9.75585962,3.50069348 C9.39252467,3.06974081 8.75332847,3.0103815 8.31755677,3.36295511 L8.29926628,3.37809784 L6.80226255,4.92331521 C6.70885932,5.01972666 6.60457885,5.10312547 6.4922413,5.17231722 L5.3966,4.07666667 L5.65310585,4.07668099 C5.72013933,4.07668099 5.78451333,4.05144474 5.8335851,4.0063268 L5.84463197,3.99556447 L7.38734907,2.40316145 L7.43747973,2.36069836 C8.43638105,1.51458065 9.93143682,1.64041351 10.7752429,2.64125439 Z" id="形状结合"></path>
10
+ </g>
13
11
  </g>
14
12
  </g>
15
13
  </g>
@@ -1,15 +1,21 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="180px" height="187px" viewBox="0 0 180 187" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>声音</title>
4
- <defs>
5
- <filter color-interpolation-filters="auto" id="filter-1">
6
- <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
7
- </filter>
8
- </defs>
9
- <g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="声音" transform="translate(-30.000000, -27.000000)" filter="url(#filter-1)">
11
- <g>
12
- <path d="M111.562196,35.8402339 C126.545716,23.1484682 148.971552,25.0359612 161.628643,40.0485744 C167.035395,46.4615394 170,54.5816271 170,62.9707127 L170,62.9707127 L170,177.890052 C170,197.507889 154.114854,213.430215 134.496124,213.430215 C126.097238,213.430215 117.971757,210.449738 111.562196,205.02053 L111.562196,205.02053 L110.810236,204.383584 L87.6694795,180.497539 C86.9160193,179.719812 85.8794362,179.280791 84.7965877,179.280791 L84.7965877,179.280791 L74.8062016,179.280791 C50.0499395,179.280791 30,159.183924 30,134.416529 L30,134.416529 L30,106.444235 C30,81.6768407 50.0499395,61.5799734 74.8062016,61.5799734 L74.8062016,61.5799734 L84.7965877,61.5799734 C85.8794362,61.5799734 86.9160193,61.1409523 87.6694795,60.3632257 L87.6694795,60.3632257 L110.810236,36.4771804 Z M146.337894,52.9401607 C140.811109,46.3848244 131.029023,45.5615054 124.488994,51.1012262 L124.488994,51.1012262 L102.033938,74.2794868 C97.5131775,78.9458467 91.2936789,81.5799734 84.7965877,81.5799734 L84.7965877,81.5799734 L74.8062016,81.5799734 C61.1061147,81.5799734 50,92.7120825 50,106.444235 L50,106.444235 L50,134.416529 C50,148.148682 61.1061147,159.280791 74.8062016,159.280791 L74.8062016,159.280791 L84.7965877,159.280791 C91.2936789,159.280791 97.5131775,161.914918 102.033938,166.581278 L102.033938,166.581278 L124.488994,189.759538 C127.287246,192.129793 130.832503,193.430215 134.496124,193.430215 C143.058678,193.430215 150,186.472647 150,177.890052 L150,177.890052 L150,62.9707127 C150,59.2985171 148.702614,55.7449624 146.337894,52.9401607 Z M194.419014,66.3743778 C204.539925,82.2771076 210,100.747446 210,120 C210,139.429774 204.438707,158.061176 194.142344,174.057897 C191.153202,178.701912 184.965306,180.043452 180.321291,177.05431 C175.677276,174.065168 174.335736,167.877272 177.324877,163.233257 C185.558784,150.440827 190,135.561899 190,120 C190,104.579846 185.639603,89.8295002 177.546261,77.1126363 C174.580973,72.4533541 175.954226,66.2724186 180.613508,63.3071304 C185.272791,60.3418422 191.453726,61.7150957 194.419014,66.3743778 Z" id="形状结合" fill="#444444" fill-rule="nonzero"></path>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 7</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="交互说明" transform="translate(-859.000000, -1543.000000)">
6
+ <g id="编组-2" transform="translate(87.000000, 1038.000000)">
7
+ <g id="编组-10" transform="translate(0.000000, 476.000000)">
8
+ <g id="编组-3" transform="translate(33.000000, 29.000000)">
9
+ <g id="编组-7" transform="translate(739.000000, 0.000000)">
10
+ <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
11
+ <g id="编组" fill="#FFFFFF" fill-rule="nonzero">
12
+ <g id="声音">
13
+ <path d="M7.43747973,2.38934893 L7.38734907,2.43181202 L5.84463197,4.02421504 C5.79440129,4.07606349 5.72529575,4.10533156 5.65310585,4.10533156 L4.9870801,4.10533156 C3.33666263,4.10533156 2,5.44512271 2,7.09628233 L2,8.96110195 C2,10.6122616 3.33666263,11.9520527 4.9870801,11.9520527 L5.65310585,11.9520527 C5.72529575,11.9520527 5.79440129,11.9813208 5.84463197,12.0331692 L7.38734907,13.6255723 L7.43747973,13.6680354 C7.8647838,14.0299826 8.40648254,14.228681 8.96640827,14.228681 C10.2743236,14.228681 11.3333333,13.1671926 11.3333333,11.8593368 L11.3333333,4.19804751 C11.3333333,3.63877514 11.135693,3.09743596 10.7752429,2.66990496 C9.93143682,1.66906408 8.43638105,1.54323122 7.43747973,2.38934893 Z M9.75585962,3.52934405 C9.91350763,3.71633083 10,3.95323447 10,4.19804751 L10,11.8593368 C10,12.4315098 9.53724522,12.8953477 8.96640827,12.8953477 C8.72216689,12.8953477 8.48581643,12.8086529 8.29926628,12.6506359 L6.80226255,11.1054185 C6.5008785,10.7943278 6.08624526,10.6187194 5.65310585,10.6187194 L4.9870801,10.6187194 C4.07374098,10.6187194 3.33333333,9.87657878 3.33333333,8.96110195 L3.33333333,7.09628233 C3.33333333,6.1808055 4.07374098,5.4386649 4.9870801,5.4386649 L5.65310585,5.4386649 C6.08624526,5.4386649 6.5008785,5.26305644 6.80226255,4.95196579 L8.29926628,3.40674842 C8.73526822,3.03743369 9.38740727,3.09232163 9.75585962,3.52934405 Z M12.0409006,4.22047536 C12.3515194,4.02278948 12.7635817,4.11433971 12.9612676,4.42495852 C13.635995,5.48514051 14,6.71649637 14,8 C14,9.2953183 13.6292471,10.5374117 12.9428229,11.6038598 C12.7435468,11.9134608 12.3310204,12.0028968 12.0214194,11.8036207 C11.7118184,11.6043445 11.6223824,11.1918181 11.8216585,10.8822171 C12.3705856,10.0293885 12.6666667,9.03745996 12.6666667,8 C12.6666667,6.97198971 12.3759736,5.98863335 11.8364174,5.14084242 C11.6387315,4.83022361 11.7302817,4.41816124 12.0409006,4.22047536 Z" id="形状结合"></path>
14
+ </g>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
13
19
  </g>
14
20
  </g>
15
21
  </g>
@@ -1,16 +1,12 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="130px" height="190px" viewBox="0 0 130 190" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>播放</title>
4
- <defs>
5
- <filter color-interpolation-filters="auto" id="filter-1">
6
- <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
7
- </filter>
8
- </defs>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 8</title>
9
4
  <g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="播放" transform="translate(-55.000000, -25.000000)" filter="url(#filter-1)">
11
- <g>
12
- <rect id="矩形" fill="#444444" x="55" y="25" width="40" height="190" rx="20"></rect>
13
- <rect id="矩形备份" fill="#444444" x="145" y="25" width="40" height="190" rx="20"></rect>
5
+ <g id="编组-8">
6
+ <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
7
+ <g id="播放" fill="#FFFFFF">
8
+ <rect id="矩形" x="3.66666667" y="1.66666667" width="2.66666667" height="12.6666667" rx="1.33333333"></rect>
9
+ <rect id="矩形备份" x="9.66666667" y="1.66666667" width="2.66666667" height="12.6666667" rx="1.33333333"></rect>
14
10
  </g>
15
11
  </g>
16
12
  </g>
@@ -1,15 +1,17 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="155px" height="182px" viewBox="0 0 155 182" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>暂停</title>
4
- <defs>
5
- <filter color-interpolation-filters="auto" id="filter-1">
6
- <feColorMatrix in="SourceGraphic" type="matrix" values="0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"></feColorMatrix>
7
- </filter>
8
- </defs>
9
- <g id="线性" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10
- <g id="暂停" transform="translate(-42.000000, -29.000000)" filter="url(#filter-1)">
11
- <g>
12
- <path d="M150.351959,64.5631349 L217.050016,171.280025 C224.075064,182.520102 220.658108,197.326911 209.418031,204.351959 C205.603673,206.735933 201.19613,208 196.698057,208 L63.3019434,208 C50.0471094,208 39.3019434,197.254834 39.3019434,184 C39.3019434,179.501927 40.5660101,175.094384 42.9499841,171.280025 L109.648041,64.5631349 C116.673089,53.3230581 131.479898,49.9061022 142.719975,56.9311501 C145.810434,58.8626871 148.420422,61.4726757 150.351959,64.5631349 Z" id="三角形" fill="#444444" transform="translate(130.000000, 120.000000) rotate(90.000000) translate(-130.000000, -120.000000) "></path>
2
+ <svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>编组 7</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="点击查看视频" transform="translate(-212.000000, -638.000000)">
6
+ <g id="编组-10" transform="translate(179.000000, 560.000000)">
7
+ <g id="编组-3" transform="translate(28.000000, 74.000000)">
8
+ <g id="编组-7" transform="translate(5.000000, 4.000000)">
9
+ <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
10
+ <g id="暂停" fill="#FFFFFF">
11
+ <path d="M10.2948234,4.73838412 L14.1640013,10.9290687 C14.7260051,11.8282748 14.4526486,13.0128196 13.5534425,13.5748234 C13.2482938,13.7655413 12.8956904,13.8666667 12.5358445,13.8666667 L4.79748881,13.8666667 C3.73710209,13.8666667 2.87748881,13.0070534 2.87748881,11.9466667 C2.87748881,11.5868208 2.97861414,11.2342174 3.16933206,10.9290687 L7.03850992,4.73838412 C7.60051376,3.83917798 8.78505849,3.56582151 9.68426463,4.12782534 C9.93150136,4.2823483 10.1403005,4.49114739 10.2948234,4.73838412 Z" id="三角形" transform="translate(8.666667, 8.000000) rotate(90.000000) translate(-8.666667, -8.000000) "></path>
12
+ </g>
13
+ </g>
14
+ </g>
13
15
  </g>
14
16
  </g>
15
17
  </g>