@web-utils/component 5.0.0-beta02 → 5.0.0-beta04

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 (385) hide show
  1. package/chunks/DialogForm.BzmXN481.mjs +37816 -0
  2. package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
  3. package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
  4. package/chunks/FyButton.DGd1yE_h.mjs +27 -0
  5. package/chunks/{FyCurd.me083T8V.mjs → FyCurd.DmIW6Tjw.mjs} +500 -496
  6. package/chunks/{FyForm.vVp8aVtj.mjs → FyForm.Dh77gj0Z.mjs} +158 -156
  7. package/chunks/{FyUEditor.BymtA5SJ.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
  8. package/chunks/{FyUpload.CA7Gfa6Q.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
  9. package/chunks/{MonacoEditor.B7BUQwb7.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
  10. package/chunks/dataformat.BpAzVPYN.mjs +165 -0
  11. package/chunks/{dic.C0abEij9.mjs → dic.N2PNjL8o.mjs} +1 -1
  12. package/chunks/{event.Dv4XTu8B.mjs → event.BevSLXu4.mjs} +10 -14
  13. package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
  14. package/dialog/index.d.ts +14 -0
  15. package/dialog/props.d.ts +101 -0
  16. package/dialog-form/index.mjs +2 -145
  17. package/element-dialog/index.mjs +1 -1
  18. package/element-dialog/style.css +1 -1
  19. package/fy-array/index.mjs +7 -7
  20. package/fy-button/index.mjs +2 -0
  21. package/fy-button/style.css +1 -0
  22. package/fy-cascader/index.mjs +2 -2
  23. package/fy-checkbox/index.mjs +2 -2
  24. package/fy-curd/index.mjs +1 -1
  25. package/fy-curd/style.css +1 -1
  26. package/fy-date/index.mjs +2 -2
  27. package/fy-date/style.css +1 -1
  28. package/fy-dynamic/index.mjs +17 -21
  29. package/fy-empty/index.mjs +4 -4
  30. package/fy-form/index.mjs +1 -1
  31. package/fy-form/style.css +1 -1
  32. package/fy-input/index.mjs +3 -3
  33. package/fy-input-color/index.mjs +2 -3
  34. package/fy-input-map/index.mjs +36 -34
  35. package/fy-input-number/index.mjs +2 -2
  36. package/fy-input-table/index.mjs +40 -38
  37. package/fy-input-tree/index.mjs +19 -19
  38. package/fy-input-tree/style.css +1 -1
  39. package/fy-radio/index.mjs +3 -3
  40. package/fy-rate/index.mjs +3 -3
  41. package/fy-select/index.mjs +31 -31
  42. package/fy-slider/index.mjs +5 -5
  43. package/fy-switch/index.mjs +3 -3
  44. package/fy-tabs/index.mjs +1 -1
  45. package/fy-time/index.mjs +7 -7
  46. package/fy-title/index.mjs +2 -2
  47. package/fy-tree/index.mjs +76 -74
  48. package/fy-u-editor/index.mjs +1 -1
  49. package/fy-upload/index.mjs +1 -1
  50. package/icon-temp/index.mjs +1 -1
  51. package/index.d.ts +2 -142
  52. package/index.mjs +31 -179
  53. package/monaco-editor/index.mjs +1 -1
  54. package/package.json +11 -13
  55. package/web-types.json +2461 -20206
  56. package/address-input/index.mjs +0 -76
  57. package/address-input/style.css +0 -1
  58. package/affix/index.mjs +0 -72
  59. package/affix/style.css +0 -1
  60. package/aside-menu/index.mjs +0 -20
  61. package/aside-menu/style.css +0 -1
  62. package/avatar/index.mjs +0 -94
  63. package/avatar/style.css +0 -1
  64. package/awesome-button/index.mjs +0 -55
  65. package/capsule-tab/index.mjs +0 -27
  66. package/capsule-tab/style.css +0 -1
  67. package/card/index.mjs +0 -86
  68. package/card/style.css +0 -1
  69. package/carousel/index.mjs +0 -46
  70. package/carousel/style.css +0 -1
  71. package/chat/index.mjs +0 -441
  72. package/chat/style.css +0 -1
  73. package/chunk-file-uploader/index.mjs +0 -2
  74. package/chunk-file-uploader/style.css +0 -1
  75. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
  76. package/chunks/EditableTree.D0ByhRTi.mjs +0 -648
  77. package/chunks/ElementBaseInfo.B3pY8TkD.mjs +0 -209
  78. package/chunks/ElementDialog.DNsDHdQS.mjs +0 -251
  79. package/chunks/ElementForm.D_lXbe--.mjs +0 -627
  80. package/chunks/ElementListeners.Cufwd4bp.mjs +0 -656
  81. package/chunks/ElementMultiInstance.BhY8NY2z.mjs +0 -290
  82. package/chunks/ElementOtherConfig.DX1ZJ9w2.mjs +0 -51
  83. package/chunks/ElementProperties.BRafADXp.mjs +0 -196
  84. package/chunks/ElementTaskConfig.B6pqRir_.mjs +0 -446
  85. package/chunks/FlowCondition.Dvwji23j.mjs +0 -194
  86. package/chunks/FlowDesigner.LL-vXDIE.mjs +0 -5100
  87. package/chunks/FormBlock.Co7l6USP.mjs +0 -117
  88. package/chunks/FormCascader.DMY3uNc8.mjs +0 -1227
  89. package/chunks/FormInputTime.BC4FfWwY.mjs +0 -1774
  90. package/chunks/FormItem.BSXI2cZU.mjs +0 -89
  91. package/chunks/FormItemGroup.D2Htta7J.mjs +0 -149
  92. package/chunks/FormSelect.CY0K-izg.mjs +0 -1473
  93. package/chunks/FormSwitch.DLqFXaFF.mjs +0 -297
  94. package/chunks/FormTemp.PJFfNRls.mjs +0 -139
  95. package/chunks/FyFormDesign.BCxVyiWY.mjs +0 -5600
  96. package/chunks/ImagePreview.ByEWJYdu.mjs +0 -639
  97. package/chunks/Keyboard.4hi7CjGc.mjs +0 -379
  98. package/chunks/PageableTable.Ba3XSbZ5.mjs +0 -660
  99. package/chunks/RecordVideo.VRFTaHSp.mjs +0 -116
  100. package/chunks/SignalAndMessage.DYhKWs3X.mjs +0 -198
  101. package/chunks/SplitPane.Bwe5Rc0J.mjs +0 -219
  102. package/chunks/TableColumn.72HOXQkb.mjs +0 -186
  103. package/chunks/TableView.BxfsOAxU.mjs +0 -484
  104. package/chunks/Toolbar.BVziVmyT.mjs +0 -219
  105. package/chunks/UserTaskListeners.CkeyTpnn.mjs +0 -599
  106. package/chunks/VueCron.DEvY5-i7.mjs +0 -1823
  107. package/chunks/VueTreeSelect.C6Ycu28Z.mjs +0 -1873
  108. package/chunks/checkbox.C_9WZ8gc.mjs +0 -437
  109. package/chunks/confirmable-mixin.zegaXQTl.mjs +0 -1762
  110. package/chunks/core.DXaMPWGV.mjs +0 -51
  111. package/chunks/dataformat.CteBVoOe.mjs +0 -144
  112. package/chunks/dictionary.BRhZD-WH.mjs +0 -19
  113. package/chunks/dictionary.CNNpjPL2.mjs +0 -87
  114. package/chunks/event.B4iwtUNO.mjs +0 -4
  115. package/chunks/focus-trap.FbvlqAGe.mjs +0 -211
  116. package/chunks/form-input.BUGZmAI1.mjs +0 -34
  117. package/chunks/form-item.Ca8U2bIR.mjs +0 -712
  118. package/chunks/form-pick.DT5kumy4.mjs +0 -7
  119. package/chunks/form-validate.CUvMwtPN.mjs +0 -11
  120. package/chunks/icon.CxCY22-F.mjs +0 -26
  121. package/chunks/icon.ym7735_x.mjs +0 -251
  122. package/chunks/init.6jGmuY99.mjs +0 -115
  123. package/chunks/input.C2GWsuXE.mjs +0 -547
  124. package/chunks/install.yLcn5MLL.mjs +0 -84
  125. package/chunks/message.C4NdvfbE.mjs +0 -400
  126. package/chunks/photo-swipe.BxnG4lip.mjs +0 -55
  127. package/chunks/radio.CeLeSOEo.mjs +0 -273
  128. package/chunks/scroll.DWjS-gnW.mjs +0 -28
  129. package/chunks/scrollbar.CAmrlKi9.mjs +0 -345
  130. package/chunks/slot.DT5QwXL-.mjs +0 -25
  131. package/chunks/style.BmlGmjpO.mjs +0 -325
  132. package/chunks/sub-table-plus-props.CRX7ERxJ.mjs +0 -28
  133. package/chunks/tab-mixin.7zuMMM1E.mjs +0 -70
  134. package/chunks/tag.ZhEIVRpP.mjs +0 -141
  135. package/chunks/tooltip.DNiltmX1.mjs +0 -1939
  136. package/chunks/typescript.CLl-2siQ.mjs +0 -18
  137. package/chunks/use-aria.BW7nWOl1.mjs +0 -17
  138. package/chunks/use-composition.mUaomyno.mjs +0 -47
  139. package/chunks/use-deprecated.BfDSbZS9.mjs +0 -12
  140. package/chunks/use-empty-values.D8KYIiKR.mjs +0 -81
  141. package/chunks/use-form-item.BlWa7ZKe.mjs +0 -56
  142. package/chunks/use-global-config.DRovgom9.mjs +0 -57
  143. package/chunks/use-locale.Be9HCpTQ.mjs +0 -188
  144. package/chunks/util.Ce4MHRmD.mjs +0 -103
  145. package/chunks/utilSelf.BttmSVX6.mjs +0 -46
  146. package/chunks/utils.BGJfM4oG.mjs +0 -60
  147. package/chunks/utils.CSPl1l4f.mjs +0 -14
  148. package/chunks/validator.DuBSEj8O.mjs +0 -5
  149. package/chunks/vnode.C3PXzhmg.mjs +0 -14
  150. package/code-mirror-editor/index.mjs +0 -99
  151. package/code-mirror-editor/style.css +0 -1
  152. package/comment/index.mjs +0 -62
  153. package/comment/style.css +0 -1
  154. package/configComponents.d.ts +0 -29
  155. package/configComponents.mjs +0 -42
  156. package/confirm-button/index.mjs +0 -35
  157. package/confirmable/index.mjs +0 -8
  158. package/context-menu/index.mjs +0 -195
  159. package/context-menu/style.css +0 -1
  160. package/count-up/index.mjs +0 -99
  161. package/custom-scrollbar/index.mjs +0 -93
  162. package/data-box/index.mjs +0 -64
  163. package/data-box/style.css +0 -1
  164. package/data-card/index.mjs +0 -60
  165. package/data-card/style.css +0 -1
  166. package/data-card-text/index.mjs +0 -64
  167. package/data-card-text/style.css +0 -1
  168. package/data-display/index.mjs +0 -71
  169. package/data-display/style.css +0 -1
  170. package/data-icons/index.mjs +0 -70
  171. package/data-icons/style.css +0 -1
  172. package/data-imgtext/index.mjs +0 -67
  173. package/data-imgtext/style.css +0 -1
  174. package/data-operatext/index.mjs +0 -51
  175. package/data-operatext/style.css +0 -1
  176. package/data-panel/index.mjs +0 -57
  177. package/data-panel/style.css +0 -1
  178. package/data-pay/index.mjs +0 -105
  179. package/data-pay/style.css +0 -1
  180. package/data-price/index.mjs +0 -48
  181. package/data-price/style.css +0 -1
  182. package/data-progress/index.mjs +0 -67
  183. package/data-progress/style.css +0 -1
  184. package/data-rotate/index.mjs +0 -61
  185. package/data-rotate/style.css +0 -1
  186. package/data-table-picker/index.mjs +0 -120
  187. package/data-tabs/index.mjs +0 -67
  188. package/data-tabs/style.css +0 -1
  189. package/dynamic-table/index.mjs +0 -166
  190. package/dynamic-table/style.css +0 -1
  191. package/e-charts/index.mjs +0 -176
  192. package/e-charts/style.css +0 -1
  193. package/easy-popup/index.mjs +0 -92
  194. package/easy-popup/style.css +0 -1
  195. package/editable-progress/index.mjs +0 -113
  196. package/editable-progress/style.css +0 -1
  197. package/editable-tree/index.mjs +0 -2
  198. package/editable-tree/style.css +0 -1
  199. package/element-listeners/style.css +0 -1
  200. package/element-multi-instance/style.css +0 -1
  201. package/ellipsis/index.mjs +0 -124
  202. package/ellipsis/style.css +0 -1
  203. package/empty-view/index.mjs +0 -48
  204. package/empty-view/style.css +0 -1
  205. package/error-view/index.mjs +0 -39
  206. package/error-view/style.css +0 -1
  207. package/flex-column/index.mjs +0 -35
  208. package/flex-item/index.mjs +0 -61
  209. package/flex-row/index.mjs +0 -34
  210. package/flex-scroller/index.mjs +0 -29
  211. package/flex-scroller/style.css +0 -1
  212. package/flow/index.mjs +0 -240
  213. package/flow/style.css +0 -1
  214. package/flow-designer/index.mjs +0 -2
  215. package/flow-designer/style.css +0 -1
  216. package/flow-node/index.mjs +0 -56
  217. package/flow-viewer/index.mjs +0 -160
  218. package/flow-viewer/style.css +0 -1
  219. package/form-block/index.mjs +0 -2
  220. package/form-block/style.css +0 -1
  221. package/form-button/index.mjs +0 -36
  222. package/form-card/index.mjs +0 -14
  223. package/form-cascader/index.mjs +0 -2
  224. package/form-checkbox/index.mjs +0 -90
  225. package/form-checkbox-group/index.mjs +0 -162
  226. package/form-checkbox-group/style.css +0 -1
  227. package/form-date-picker/index.mjs +0 -156
  228. package/form-holder/index.mjs +0 -134
  229. package/form-holder/style.css +0 -1
  230. package/form-input/index.mjs +0 -114
  231. package/form-input-cron-expression/index.mjs +0 -98
  232. package/form-input-cron-expression/style.css +0 -1
  233. package/form-input-email/index.mjs +0 -66
  234. package/form-input-id-card/index.mjs +0 -74
  235. package/form-input-phone-number/index.mjs +0 -73
  236. package/form-input-tag/index.mjs +0 -89
  237. package/form-input-time/index.mjs +0 -2
  238. package/form-item/index.mjs +0 -2
  239. package/form-item/style.css +0 -1
  240. package/form-item-config-provider/index.mjs +0 -47
  241. package/form-item-group/index.mjs +0 -2
  242. package/form-item-group/style.css +0 -1
  243. package/form-radio-group/index.mjs +0 -162
  244. package/form-radio-group/style.css +0 -1
  245. package/form-select/index.mjs +0 -2
  246. package/form-select/style.css +0 -1
  247. package/form-switch/index.mjs +0 -2
  248. package/form-table/index.mjs +0 -132
  249. package/form-table-plus/index.mjs +0 -165
  250. package/form-textarea/index.mjs +0 -91
  251. package/form-tree-select/index.mjs +0 -90
  252. package/form-tree-select/style.css +0 -1
  253. package/form-tree-select-multiple/index.mjs +0 -93
  254. package/form-view/index.mjs +0 -280
  255. package/form-view/style.css +0 -1
  256. package/fy-article/index.mjs +0 -73
  257. package/fy-article/style.css +0 -1
  258. package/fy-code/index.mjs +0 -48
  259. package/fy-draggable/index.mjs +0 -323
  260. package/fy-draggable/style.css +0 -1
  261. package/fy-form-design/index.mjs +0 -2
  262. package/fy-form-design/style.css +0 -1
  263. package/fy-input-icon/index.mjs +0 -129
  264. package/fy-input-icon/style.css +0 -1
  265. package/fy-progress/index.mjs +0 -36
  266. package/guide-steps/index.mjs +0 -73
  267. package/guide-steps/style.css +0 -1
  268. package/helper-function.d.ts +0 -6
  269. package/helper-function.mjs +0 -49
  270. package/highlight-j-s/index.mjs +0 -51
  271. package/highlight-j-s/style.css +0 -1
  272. package/icon-card/index.mjs +0 -34
  273. package/icon-card/style.css +0 -1
  274. package/iframe-window/index.mjs +0 -39
  275. package/iframe-window/style.css +0 -1
  276. package/image-cropper/index.mjs +0 -171
  277. package/image-cropper/style.css +0 -1
  278. package/image-preview/index.mjs +0 -2
  279. package/image-preview/style.css +0 -1
  280. package/image-viewer/index.mjs +0 -70
  281. package/image-viewer/style.css +0 -1
  282. package/input-number-range/index.mjs +0 -78
  283. package/input-number-range/style.css +0 -1
  284. package/j-s-x-component/index.mjs +0 -14
  285. package/keyboard/index.mjs +0 -2
  286. package/keyboard/style.css +0 -1
  287. package/license/index.mjs +0 -106
  288. package/loading-view/index.mjs +0 -39
  289. package/loading-view/style.css +0 -1
  290. package/login/index.mjs +0 -252
  291. package/login/style.css +0 -1
  292. package/name-avatar/index.mjs +0 -61
  293. package/name-avatar/style.css +0 -1
  294. package/nav-bar/index.mjs +0 -34
  295. package/nav-bar/style.css +0 -1
  296. package/not-implement/index.mjs +0 -10
  297. package/not-implement/style.css +0 -1
  298. package/notice/index.mjs +0 -100
  299. package/notice/style.css +0 -1
  300. package/page/index.mjs +0 -19
  301. package/page/style.css +0 -1
  302. package/page-header/index.mjs +0 -27
  303. package/page-header/style.css +0 -1
  304. package/page-index/index.mjs +0 -121
  305. package/page-index/style.css +0 -1
  306. package/page-index-top/index.mjs +0 -80
  307. package/page-skeleton/index.mjs +0 -49
  308. package/page-skeleton/style.css +0 -1
  309. package/page-skeleton-new/index.mjs +0 -79
  310. package/page-skeleton-new/style.css +0 -1
  311. package/pageable-table/index.mjs +0 -2
  312. package/pageable-table/style.css +0 -1
  313. package/pageable-view/index.mjs +0 -280
  314. package/pageable-view/style.css +0 -1
  315. package/photo-swipe/index.d.ts +0 -8
  316. package/photo-swipe/index.mjs +0 -33
  317. package/picker-table-view/index.mjs +0 -225
  318. package/present-view/index.mjs +0 -271
  319. package/present-view/style.css +0 -1
  320. package/queue/index.mjs +0 -46
  321. package/queue/style.css +0 -1
  322. package/record-video/index.mjs +0 -2
  323. package/record-video/style.css +0 -1
  324. package/resize-observer/index.mjs +0 -45
  325. package/resize-observer/style.css +0 -1
  326. package/search/index.mjs +0 -116
  327. package/search/style.css +0 -1
  328. package/sign/index.mjs +0 -104
  329. package/sign/style.css +0 -1
  330. package/sign-panel/index.mjs +0 -183
  331. package/sign-panel/style.css +0 -1
  332. package/skeleton/index.mjs +0 -51
  333. package/skeleton/style.css +0 -1
  334. package/skeleton-panel/index.mjs +0 -34
  335. package/skeleton-panel/style.css +0 -1
  336. package/split-pane/index.mjs +0 -3
  337. package/split-pane/style.css +0 -1
  338. package/stateful/index.mjs +0 -71
  339. package/stateful/style.css +0 -1
  340. package/static-pageable-table/index.mjs +0 -72
  341. package/static-pageable-table/style.css +0 -1
  342. package/sub-table/index.mjs +0 -508
  343. package/sub-table/style.css +0 -1
  344. package/sub-table-plus/index.mjs +0 -593
  345. package/sub-table-plus/style.css +0 -1
  346. package/swiper/index.mjs +0 -128
  347. package/swiper/style.css +0 -1
  348. package/tab/index.mjs +0 -117
  349. package/tab/style.css +0 -1
  350. package/tab-item/index.mjs +0 -49
  351. package/table-column/index.mjs +0 -2
  352. package/table-column/style.css +0 -1
  353. package/table-view/index.mjs +0 -3
  354. package/table-view/style.css +0 -1
  355. package/tabs-view/index.mjs +0 -109
  356. package/tabs-view/style.css +0 -1
  357. package/tag-render/index.mjs +0 -80
  358. package/tag-render/style.css +0 -1
  359. package/text-ellipsis/index.mjs +0 -95
  360. package/text-ellipsis/style.css +0 -1
  361. package/toolbar/index.mjs +0 -2
  362. package/toolbar/style.css +0 -1
  363. package/toolbar-button/index.mjs +0 -143
  364. package/utils/style.css +0 -1
  365. package/verify/index.mjs +0 -58
  366. package/verify/style.css +0 -1
  367. package/video/index.d.ts +0 -10
  368. package/vue-cron/index.mjs +0 -2
  369. package/vue-cron/style.css +0 -1
  370. package/vue-qr-code/index.mjs +0 -32
  371. package/vue-quill-editor/index.mjs +0 -127
  372. package/vue-quill-editor/style.css +0 -1
  373. package/vue-tags-input/index.mjs +0 -348
  374. package/vue-tags-input/style.css +0 -1
  375. package/vue-tree-select/index.mjs +0 -2
  376. package/vue-tree-select/style.css +0 -1
  377. package/vue-video-player/index.mjs +0 -136
  378. package/vue-video-player/style.css +0 -1
  379. package/watermark/index.mjs +0 -47
  380. package/watermark/style.css +0 -1
  381. package/x-input-tag/index.mjs +0 -145
  382. package/x-input-tag/style.css +0 -1
  383. /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
  384. /package/chunks/{packages.BLDb9e6G.mjs → packages.W76nKiMk.mjs} +0 -0
  385. /package/chunks/{permission.C-IUDxQQ.mjs → permission.ZYdXiCsn.mjs} +0 -0
@@ -1,348 +0,0 @@
1
- import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, normalizeClass as a, openBlock as o, renderList as s, toDisplayString as c, vModelText as l, vShow as u, withDirectives as d, withKeys as f, withModifiers as p } from "vue";
3
- //#region src/components/VueTagsInput.vue
4
- var m = {
5
- name: "VueTagsInput",
6
- props: {
7
- elementId: { type: String },
8
- existingTags: {
9
- type: Array,
10
- default: () => []
11
- },
12
- modelValue: {
13
- type: Array,
14
- default: () => []
15
- },
16
- typeahead: {
17
- type: Boolean,
18
- default: !1
19
- },
20
- typeaheadStyle: {
21
- type: String,
22
- default: "badges"
23
- },
24
- typeaheadActivationThreshold: {
25
- type: Number,
26
- default: 1
27
- },
28
- typeaheadMaxResults: {
29
- type: Number,
30
- default: 0
31
- },
32
- typeaheadAlwaysShow: {
33
- type: Boolean,
34
- default: !1
35
- },
36
- typeaheadHideDiscard: {
37
- type: Boolean,
38
- default: !1
39
- },
40
- placeholder: {
41
- type: String,
42
- default: "请输入..."
43
- },
44
- discardSearchText: {
45
- type: String,
46
- default: "取消"
47
- },
48
- limit: {
49
- type: Number,
50
- default: 0
51
- },
52
- onlyExistingTags: {
53
- type: Boolean,
54
- default: !1
55
- },
56
- deleteOnBackspace: {
57
- type: Boolean,
58
- default: !0
59
- },
60
- allowDuplicates: {
61
- type: Boolean,
62
- default: !1
63
- },
64
- validate: {
65
- type: Function,
66
- default: () => !0
67
- },
68
- addTagsOnComma: {
69
- type: Boolean,
70
- default: !1
71
- },
72
- addTagsOnSpace: {
73
- type: Boolean,
74
- default: !1
75
- },
76
- addTagsOnBlur: {
77
- type: Boolean,
78
- default: !1
79
- },
80
- wrapperClass: {
81
- type: String,
82
- default: "tags-input-wrapper-default"
83
- },
84
- sortSearchResults: {
85
- type: Boolean,
86
- default: !0
87
- },
88
- caseSensitiveTags: {
89
- type: Boolean,
90
- default: !1
91
- },
92
- beforeAddingTag: {
93
- type: Function,
94
- default: () => !0
95
- },
96
- beforeRemovingTag: {
97
- type: Function,
98
- default: () => !0
99
- }
100
- },
101
- emits: [
102
- "input-changed",
103
- "change",
104
- "update:modelValue",
105
- "initialized",
106
- "tag-removed",
107
- "tags-updated",
108
- "keyup",
109
- "keydown",
110
- "focus",
111
- "blur"
112
- ],
113
- data() {
114
- return {
115
- tags: [],
116
- input: "",
117
- oldInput: "",
118
- hiddenInput: "",
119
- searchResults: [],
120
- searchSelection: 0
121
- };
122
- },
123
- watch: {
124
- input(e, t) {
125
- this.$emit("input-changed", e), this.searchTag(!1), e.length && e !== t && (this.addTagsOnSpace && e.endsWith(" ") && (this.input = e.trim(), this.tagFromInput(!0)), this.addTagsOnComma && (e = e.trim(), e.endsWith(",") && (this.input = e.substring(0, e.length - 1), this.tagFromInput(!0))), this.$emit("change", e));
126
- },
127
- tags() {
128
- this.hiddenInput = JSON.stringify(this.tags), this.$emit("update:modelValue", this.tags);
129
- },
130
- modelValue() {
131
- this.tagsFromValue();
132
- },
133
- typeaheadAlwaysShow(e) {
134
- e ? this.searchTag(!1) : this.clearSearchResults();
135
- }
136
- },
137
- created() {
138
- this.tagsFromValue(), this.typeaheadAlwaysShow && this.searchTag(!1), this.$emit("initialized");
139
- },
140
- methods: {
141
- escapeRegExp(e) {
142
- return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
143
- },
144
- tagFromInput(e = !1) {
145
- if (this.searchResults.length && this.searchSelection >= 0 && !e) this.tagFromSearch(this.searchResults[this.searchSelection]), this.input = "";
146
- else {
147
- let e = this.input.trim();
148
- if (!this.onlyExistingTags && e.length && this.validate(e)) {
149
- this.input = "";
150
- let t = {
151
- key: "",
152
- value: e
153
- }, n = this.escapeRegExp(this.caseSensitiveTags ? t.value : t.value.toLowerCase());
154
- for (let e of this.existingTags) if (n === (this.caseSensitiveTags ? e.value : e.value.toLowerCase())) {
155
- t = { ...e };
156
- break;
157
- }
158
- this.addTag(t);
159
- }
160
- }
161
- },
162
- tagFromSearchOnClick(e) {
163
- this.tagFromSearch(e), this.$refs.taginput.blur();
164
- },
165
- tagFromSearch(e) {
166
- this.clearSearchResults(), this.addTag(e), this.$nextTick(() => {
167
- this.input = "", this.oldInput = "";
168
- });
169
- },
170
- addTag(e) {
171
- if (!this.beforeAddingTag(e)) return !1;
172
- if (this.limit > 0 && this.tags.length >= this.limit) return this.$emit("limit-reached"), !1;
173
- this.tagSelected(e) || (this.tags.push(e), this.$nextTick(() => {
174
- this.$emit("tag-added", e), this.$emit("tags-updated");
175
- }));
176
- },
177
- removeLastTag() {
178
- !this.input.length && this.deleteOnBackspace && this.tags.length && this.removeTag(this.tags.length - 1);
179
- },
180
- removeTag(e) {
181
- let t = this.tags[e];
182
- if (!this.beforeRemovingTag(t)) return !1;
183
- this.tags.splice(e, 1), this.$nextTick(() => {
184
- this.$emit("tag-removed", t), this.$emit("tags-updated"), this.typeaheadAlwaysShow && this.searchTag();
185
- });
186
- },
187
- searchTag() {
188
- if (this.typeahead !== !0) return !1;
189
- if (this.oldInput !== this.input || !this.searchResults.length && this.typeaheadActivationThreshold === 0 || this.typeaheadAlwaysShow) {
190
- this.searchResults = [], this.searchSelection = 0;
191
- let e = this.input.trim();
192
- if (e.length && e.length >= this.typeaheadActivationThreshold || this.typeaheadActivationThreshold === 0 || this.typeaheadAlwaysShow) {
193
- let t = this.escapeRegExp(this.caseSensitiveTags ? e : e.toLowerCase());
194
- for (let e of this.existingTags) (this.caseSensitiveTags ? e.value : e.value.toLowerCase()).search(t) > -1 && !this.tagSelected(e) && this.searchResults.push(e);
195
- this.sortSearchResults && this.searchResults.sort((e, t) => e.value < t.value ? -1 : e.value > t.value ? 1 : 0), this.typeaheadMaxResults > 0 && (this.searchResults = this.searchResults.slice(0, this.typeaheadMaxResults));
196
- }
197
- this.oldInput = this.input;
198
- }
199
- },
200
- hideTypeahead() {
201
- this.input.length || this.$nextTick(() => {
202
- this.clearSearchResults();
203
- });
204
- },
205
- nextSearchResult() {
206
- this.searchSelection + 1 <= this.searchResults.length - 1 && this.searchSelection++;
207
- },
208
- prevSearchResult() {
209
- this.searchSelection > 0 && this.searchSelection--;
210
- },
211
- clearSearchResults() {
212
- this.searchResults = [], this.searchSelection = 0, this.typeaheadAlwaysShow && this.$nextTick(() => {
213
- this.searchTag();
214
- });
215
- },
216
- clearTags() {
217
- this.tags.splice(0, this.tags.length);
218
- },
219
- tagsFromValue() {
220
- if (this.modelValue && this.modelValue.length) {
221
- if (!Array.isArray(this.modelValue)) {
222
- console.error("Voerro Tags Input: the v-model modelValue must be an array!");
223
- return;
224
- }
225
- let e = this.modelValue;
226
- if (this.tags === e) return;
227
- this.clearTags();
228
- for (let t of e) this.addTag(t);
229
- } else {
230
- if (this.tags.length === 0) return;
231
- this.clearTags();
232
- }
233
- },
234
- tagSelected(e) {
235
- if (this.allowDuplicates || !e) return !1;
236
- let t = this.escapeRegExp(this.caseSensitiveTags ? e.value : e.value.toLowerCase());
237
- for (let n of this.tags) {
238
- let r = this.caseSensitiveTags ? n.value : n.value.toLowerCase();
239
- if (n.key === e.key && r.search(t) > -1) return !0;
240
- }
241
- return !1;
242
- },
243
- clearInput() {
244
- this.input = "";
245
- },
246
- onKeyUp(e) {
247
- this.$emit("keyup", e);
248
- },
249
- onKeyDown(e) {
250
- this.$emit("keydown", e);
251
- },
252
- onFocus(e) {
253
- this.$emit("focus", e), this.searchTag();
254
- },
255
- onBlur(e) {
256
- this.$emit("blur", e), this.addTagsOnBlur && this.tagFromInput(!0), this.typeaheadAlwaysShow ? this.searchTag() : this.hideTypeahead();
257
- }
258
- }
259
- }, h = { class: "tags-input-root" }, g = ["innerHTML"], _ = ["onClick"], v = ["placeholder"], y = ["id", "name"], b = ["textContent"], x = [
260
- "onMouseover",
261
- "onMousedown",
262
- "innerHTML"
263
- ], S = ["textContent"], C = [
264
- "onMouseover",
265
- "onMousedown",
266
- "innerHTML"
267
- ];
268
- function w(e, m, w, T, E, D) {
269
- return o(), r("div", h, [
270
- i("div", { class: a(`${w.wrapperClass} tags-input`) }, [
271
- n("标签"),
272
- (o(!0), r(t, null, s(E.tags, (e, t) => (o(), r("span", {
273
- key: t,
274
- class: "el-tag el-tag--medium el-tag--light"
275
- }, [i("span", { innerHTML: e.value }, null, 8, g), i("i", {
276
- href: "#",
277
- class: "tags-input-remove ov",
278
- onClick: p((e) => D.removeTag(t), ["prevent"])
279
- }, null, 8, _)]))), 128)),
280
- n("输入框"),
281
- d(i("input", {
282
- ref: "taginput",
283
- "onUpdate:modelValue": m[0] || (m[0] = (e) => E.input = e),
284
- type: "text",
285
- placeholder: w.placeholder,
286
- style: {
287
- height: "28px",
288
- "margin-top": "5px",
289
- "line-height": "28px"
290
- },
291
- onKeydown: [
292
- m[1] || (m[1] = f(p((e) => D.tagFromInput(!1), ["prevent"]), ["enter"])),
293
- m[2] || (m[2] = f((...e) => D.removeLastTag && D.removeLastTag(...e), ["8"])),
294
- m[3] || (m[3] = f((...e) => D.nextSearchResult && D.nextSearchResult(...e), ["down"])),
295
- m[4] || (m[4] = f((...e) => D.prevSearchResult && D.prevSearchResult(...e), ["up"])),
296
- m[5] || (m[5] = (...e) => D.onKeyDown && D.onKeyDown(...e))
297
- ],
298
- onKeyup: [m[6] || (m[6] = (...e) => D.onKeyUp && D.onKeyUp(...e)), m[7] || (m[7] = f((...e) => D.clearSearchResults && D.clearSearchResults(...e), ["esc"]))],
299
- onFocus: m[8] || (m[8] = (...e) => D.onFocus && D.onFocus(...e)),
300
- onBlur: m[9] || (m[9] = (...e) => D.onBlur && D.onBlur(...e)),
301
- onValue: m[10] || (m[10] = (...e) => E.tags && E.tags(...e))
302
- }, null, 40, v), [[l, E.input]]),
303
- w.elementId ? d((o(), r("input", {
304
- key: 0,
305
- id: w.elementId,
306
- "onUpdate:modelValue": m[11] || (m[11] = (e) => E.hiddenInput = e),
307
- type: "hidden",
308
- name: w.elementId
309
- }, null, 8, y)), [[l, E.hiddenInput]]) : n("v-if", !0)
310
- ], 2),
311
- n(" 建议列表 "),
312
- d(i("div", null, [n(" 标签风格一 "), w.typeaheadStyle === "badges" ? (o(), r("p", {
313
- key: 0,
314
- class: a(`typeahead-${w.typeaheadStyle}`)
315
- }, [w.typeaheadHideDiscard ? n("v-if", !0) : (o(), r("span", {
316
- key: 0,
317
- class: "tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",
318
- onClick: m[12] || (m[12] = p((...e) => D.clearSearchResults && D.clearSearchResults(...e), ["prevent"])),
319
- textContent: c(w.discardSearchText)
320
- }, null, 8, b)), (o(!0), r(t, null, s(E.searchResults, (e, t) => (o(), r("span", {
321
- key: t,
322
- class: a(["tags-input-badge", {
323
- "tags-input-typeahead-item-default": t != E.searchSelection,
324
- "tags-input-typeahead-item-highlighted-default": t == E.searchSelection
325
- }]),
326
- onMouseover: (e) => E.searchSelection = t,
327
- onMousedown: p((t) => D.tagFromSearchOnClick(e), ["prevent"]),
328
- innerHTML: e.value
329
- }, null, 42, x))), 128))], 2)) : w.typeaheadStyle === "dropdown" ? (o(), r(t, { key: 1 }, [n(" 下拉风格二 "), i("ul", { class: a(`typeahead-${w.typeaheadStyle}`) }, [w.typeaheadHideDiscard ? n("v-if", !0) : (o(), r("li", {
330
- key: 0,
331
- class: "tags-input-typeahead-item-default typeahead-hide-btn",
332
- onMousedown: m[13] || (m[13] = p((...e) => D.clearSearchResults && D.clearSearchResults(...e), ["prevent"])),
333
- textContent: c(w.discardSearchText)
334
- }, null, 40, S)), (o(!0), r(t, null, s(E.searchResults, (e, t) => (o(), r("li", {
335
- key: t,
336
- class: a({
337
- "tags-input-typeahead-item-default": t != E.searchSelection,
338
- "tags-input-typeahead-item-highlighted-default": t == E.searchSelection
339
- }),
340
- onMouseover: (e) => E.searchSelection = t,
341
- onMousedown: p((t) => D.tagFromSearchOnClick(e), ["prevent"]),
342
- innerHTML: e.value
343
- }, null, 42, C))), 128))], 2)], 2112)) : n("v-if", !0)], 512), [[u, E.searchResults.length]])
344
- ]);
345
- }
346
- var T = /* @__PURE__ */ e(m, [["render", w]]);
347
- //#endregion
348
- export { T as default };
@@ -1 +0,0 @@
1
- .tags-input{flex-wrap:wrap;align-items:center;display:flex}.tags-input input{background:0 0;border:none;flex:auto}.tags-input input:focus{outline:none}.tags-input input[type=text]{color:#495057}.tags-input-wrapper-default{background:#fff;border:1px solid #dbdbdb;border-radius:.25rem;padding:.5rem .25rem}.tags-input span{margin-right:.3rem}.tags-input-remove{cursor:pointer;width:.5rem;height:.5rem;display:inline-block;position:relative}.tags-input-remove:before,.tags-input-remove:after{content:"";background:#ea0000;width:100%;height:2px;margin-top:-1px;position:absolute;top:50%;left:0}.tags-input-remove:before{transform:rotate(45deg)}.tags-input-remove:after{transform:rotate(-45deg)}.tags-input-badge{white-space:nowrap;text-align:center;vertical-align:baseline;border-radius:.25rem;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;display:inline-block}.tags-input-badge-pill{border-radius:10rem;padding-left:.6em;padding-right:.6em}.tags-input-badge-selected-default{color:#212529;background-color:#f0f1f2}.typeahead-hide-btn{color:#999!important}.typeahead-badges>span{cursor:pointer;margin-right:.3rem}.typeahead-dropdown{z-index:1000;border-radius:4px;width:100%;max-height:150px;margin:0;padding:0;list-style-type:none;position:absolute;top:50px;right:0;overflow:auto;box-shadow:0 0 5px #d7d7d7}.typeahead-dropdown li{cursor:pointer;padding:.25rem 1rem}.tags-input-typeahead-item-default{color:gray;background-color:#fff}.tags-input-typeahead-item-highlighted-default{background-color:#f5f7fa}
@@ -1,2 +0,0 @@
1
- import { t as e } from "../chunks/VueTreeSelect.C6Ycu28Z.mjs";
2
- export { e as default };
@@ -1 +0,0 @@
1
- .vue-treeselect-helper-hide{display:none}.vue-treeselect-helper-zoom-effect-off{transform:none!important}@keyframes vue-treeselect-animation-fade-in{0%{opacity:0}}@keyframes vue-treeselect-animation-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes vue-treeselect-animation-rotate{to{transform:rotate(360deg)}}.vue-treeselect__multi-value-item--transition-enter-active,.vue-treeselect__multi-value-item--transition-leave-active{transition-property:transform,opacity;transition-duration:.2s}.vue-treeselect__multi-value-item--transition-enter-active{transition-timing-function:cubic-bezier(.075,.82,.165,1)}.vue-treeselect__multi-value-item--transition-leave-active{transition-timing-function:cubic-bezier(.215,.61,.355,1);position:absolute}.vue-treeselect__multi-value-item--transition-enter,.vue-treeselect__multi-value-item--transition-leave-to{opacity:0;transform:scale(.7)}.vue-treeselect__multi-value-item--transition-move{transition:transform .2s cubic-bezier(.165,.84,.44,1)}.vue-treeselect{text-align:left;position:relative}[dir=rtl] .vue-treeselect{text-align:right}.vue-treeselect div,.vue-treeselect span{box-sizing:border-box}.vue-treeselect svg{fill:currentColor}.vue-treeselect__control{table-layout:fixed;background:#fff;border:1px solid #ddd;border-radius:5px;width:100%;height:36px;padding-left:5px;padding-right:5px;transition-property:border-color,box-shadow,width,height,background-color,opacity;transition-duration:.2s;transition-timing-function:cubic-bezier(.215,.61,.355,1);display:table}.vue-treeselect:not(:-webkit-any(.vue-treeselect--disabled,.vue-treeselect--focused)) .vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect:not(:-moz-any(.vue-treeselect--disabled,.vue-treeselect--focused)) .vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect:not(:is(.vue-treeselect--disabled,.vue-treeselect--focused)) .vue-treeselect__control:hover{border-color:#cfcfcf}.vue-treeselect--focused:not(.vue-treeselect--open) .vue-treeselect__control{border-color:#039be5;box-shadow:0 0 0 3px #039be51a}.vue-treeselect--disabled .vue-treeselect__control{background-color:#f9f9f9}.vue-treeselect--open .vue-treeselect__control{border-color:#cfcfcf}.vue-treeselect--open.vue-treeselect--open-below .vue-treeselect__control{border-bottom-right-radius:0;border-bottom-left-radius:0}.vue-treeselect--open.vue-treeselect--open-above .vue-treeselect__control{border-top-left-radius:0;border-top-right-radius:0}.vue-treeselect__value-container,.vue-treeselect__multi-value{vertical-align:middle;width:100%}.vue-treeselect__value-container{display:table-cell;position:relative}.vue-treeselect--searchable:not(.vue-treeselect--disabled) .vue-treeselect__value-container{cursor:text}.vue-treeselect__multi-value{display:inline-block}.vue-treeselect--has-value .vue-treeselect__multi-value{margin-bottom:5px}.vue-treeselect__placeholder,.vue-treeselect__single-value{white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;pointer-events:none;padding-left:5px;padding-right:5px;line-height:34px;position:absolute;top:0;bottom:0;left:0;right:0;overflow:hidden}.vue-treeselect__placeholder{color:#bdbdbd}.vue-treeselect__single-value{color:#333}.vue-treeselect--focused.vue-treeselect--searchable .vue-treeselect__single-value{color:#bdbdbd}.vue-treeselect--disabled .vue-treeselect__single-value{position:static}.vue-treeselect__multi-value-item-container{vertical-align:top;padding-top:5px;padding-right:5px;display:inline-block}[dir=rtl] .vue-treeselect__multi-value-item-container{padding-left:5px;padding-right:0}.vue-treeselect__multi-value-item{color:#039be5;vertical-align:top;cursor:pointer;background:#e3f2fd;border:1px solid #0000;border-radius:2px;padding:2px 0;font-size:12px;display:inline-table}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-disabled):hover .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-new) .vue-treeselect__multi-value-item:not(.vue-treeselect__multi-value-item-new):hover{color:#039be5;cursor:pointer;background:#e3f2fd}.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-disabled{color:#757575;cursor:default;background:#f5f5f5}.vue-treeselect--disabled .vue-treeselect__multi-value-item{color:#555;cursor:default;background:#fff;border-color:#e5e5e5}.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-new,.vue-treeselect__multi-value-item.vue-treeselect__multi-value-item-new:hover{background:#e8f5e9}.vue-treeselect__value-remove,.vue-treeselect__multi-value-label{vertical-align:middle;padding:0 5px;display:table-cell}.vue-treeselect__value-remove{color:#039be5;border-left:1px solid #fff;padding-left:5px;line-height:0}[dir=rtl] .vue-treeselect__value-remove{border-left:0;border-right:1px solid #fff}.vue-treeselect__multi-value-item:hover .vue-treeselect__value-remove{color:#e53935}.vue-treeselect--disabled .vue-treeselect__value-remove,.vue-treeselect__multi-value-item-disabled .vue-treeselect__value-remove{display:none}.vue-treeselect__value-remove>svg{width:6px;height:6px}.vue-treeselect__multi-value-label{white-space:pre-line;-webkit-user-select:none;user-select:none;padding-right:5px}.vue-treeselect__limit-tip{vertical-align:top;padding-top:5px;padding-right:5px;display:inline-block}[dir=rtl] .vue-treeselect__limit-tip{padding-left:5px;padding-right:0}.vue-treeselect__limit-tip-text{color:#bdbdbd;cursor:default;margin:2px 0;padding:1px 0;font-size:12px;font-weight:600;display:block}.vue-treeselect__input-container{outline:none;max-width:100%;display:block}.vue-treeselect--single .vue-treeselect__input-container{height:100%;font-size:inherit}.vue-treeselect--multi .vue-treeselect__input-container{vertical-align:top;font-size:12px;display:inline-block}.vue-treeselect--searchable .vue-treeselect__input-container{padding-left:5px;padding-right:5px}.vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{padding-top:5px;padding-left:0}[dir=rtl] .vue-treeselect--searchable.vue-treeselect--multi.vue-treeselect--has-value .vue-treeselect__input-container{padding-left:5px;padding-right:0}.vue-treeselect--disabled .vue-treeselect__input-container{display:none}.vue-treeselect__input,.vue-treeselect__sizer{font-size:inherit;font-family:inherit;line-height:inherit;margin:0}.vue-treeselect__input{box-sizing:content-box;vertical-align:middle;max-width:100%;box-shadow:none;background:0 0;border:0;outline:none;margin:0;padding:0;line-height:1}.vue-treeselect__input::-ms-clear{display:none}.vue-treeselect--single .vue-treeselect__input{width:100%;height:100%}.vue-treeselect--multi .vue-treeselect__input{padding-top:3px;padding-bottom:3px}.vue-treeselect--has-value .vue-treeselect__input{line-height:inherit;vertical-align:top}.vue-treeselect__sizer{white-space:pre;visibility:hidden;height:0;position:absolute;top:0;left:0;overflow:scroll}.vue-treeselect__x-container{color:#ccc;text-align:center;vertical-align:middle;cursor:pointer;width:20px;line-height:0;animation:.2s cubic-bezier(.075,.82,.165,1) vue-treeselect-animation-fade-in;display:table-cell}.vue-treeselect__x-container:hover{color:#e53935}.vue-treeselect__x{width:8px;height:8px}.vue-treeselect__control-arrow-container{text-align:center;vertical-align:middle;cursor:pointer;width:20px;line-height:0;display:table-cell}.vue-treeselect--disabled .vue-treeselect__control-arrow-container{cursor:default}.vue-treeselect__control-arrow{color:#ccc;width:9px;height:9px}.vue-treeselect:not(.vue-treeselect--disabled) .vue-treeselect__control-arrow-container:hover .vue-treeselect__control-arrow{color:#616161}.vue-treeselect--disabled .vue-treeselect__control-arrow{opacity:.35}.vue-treeselect__control-arrow--rotated{transform:rotate(180deg)}.vue-treeselect__menu-container{width:100%;transition:all;position:absolute;left:0;overflow:visible}.vue-treeselect--open-below:not(.vue-treeselect--append-to-body) .vue-treeselect__menu-container{top:100%}.vue-treeselect--open-above:not(.vue-treeselect--append-to-body) .vue-treeselect__menu-container{bottom:100%}.vue-treeselect__menu{cursor:default;-webkit-overflow-scrolling:touch;background:#fff;border:1px solid #cfcfcf;width:auto;padding-top:5px;padding-bottom:5px;line-height:180%;display:block;position:absolute;overflow:hidden auto}.vue-treeselect--open-below .vue-treeselect__menu{border-top-color:#f2f2f2;border-bottom-right-radius:5px;border-bottom-left-radius:5px;margin-top:-1px;top:0;box-shadow:0 1px #0000000f}.vue-treeselect--open-above .vue-treeselect__menu{border-bottom-color:#f2f2f2;border-top-left-radius:5px;border-top-right-radius:5px;margin-bottom:-1px;bottom:0}.vue-treeselect__indent-level-0 .vue-treeselect__option{padding-left:5px}[dir=rtl] .vue-treeselect__indent-level-0 .vue-treeselect__option{padding-left:5px;padding-right:5px}.vue-treeselect__indent-level-0 .vue-treeselect__tip{padding-left:25px}[dir=rtl] .vue-treeselect__indent-level-0 .vue-treeselect__tip{padding-left:5px;padding-right:25px}.vue-treeselect__indent-level-1 .vue-treeselect__option{padding-left:25px}[dir=rtl] .vue-treeselect__indent-level-1 .vue-treeselect__option{padding-left:5px;padding-right:25px}.vue-treeselect__indent-level-1 .vue-treeselect__tip{padding-left:45px}[dir=rtl] .vue-treeselect__indent-level-1 .vue-treeselect__tip{padding-left:5px;padding-right:45px}.vue-treeselect__indent-level-2 .vue-treeselect__option{padding-left:45px}[dir=rtl] .vue-treeselect__indent-level-2 .vue-treeselect__option{padding-left:5px;padding-right:45px}.vue-treeselect__indent-level-2 .vue-treeselect__tip{padding-left:65px}[dir=rtl] .vue-treeselect__indent-level-2 .vue-treeselect__tip{padding-left:5px;padding-right:65px}.vue-treeselect__indent-level-3 .vue-treeselect__option{padding-left:65px}[dir=rtl] .vue-treeselect__indent-level-3 .vue-treeselect__option{padding-left:5px;padding-right:65px}.vue-treeselect__indent-level-3 .vue-treeselect__tip{padding-left:85px}[dir=rtl] .vue-treeselect__indent-level-3 .vue-treeselect__tip{padding-left:5px;padding-right:85px}.vue-treeselect__indent-level-4 .vue-treeselect__option{padding-left:85px}[dir=rtl] .vue-treeselect__indent-level-4 .vue-treeselect__option{padding-left:5px;padding-right:85px}.vue-treeselect__indent-level-4 .vue-treeselect__tip{padding-left:105px}[dir=rtl] .vue-treeselect__indent-level-4 .vue-treeselect__tip{padding-left:5px;padding-right:105px}.vue-treeselect__indent-level-5 .vue-treeselect__option{padding-left:105px}[dir=rtl] .vue-treeselect__indent-level-5 .vue-treeselect__option{padding-left:5px;padding-right:105px}.vue-treeselect__indent-level-5 .vue-treeselect__tip{padding-left:125px}[dir=rtl] .vue-treeselect__indent-level-5 .vue-treeselect__tip{padding-left:5px;padding-right:125px}.vue-treeselect__indent-level-6 .vue-treeselect__option{padding-left:125px}[dir=rtl] .vue-treeselect__indent-level-6 .vue-treeselect__option{padding-left:5px;padding-right:125px}.vue-treeselect__indent-level-6 .vue-treeselect__tip{padding-left:145px}[dir=rtl] .vue-treeselect__indent-level-6 .vue-treeselect__tip{padding-left:5px;padding-right:145px}.vue-treeselect__indent-level-7 .vue-treeselect__option{padding-left:145px}[dir=rtl] .vue-treeselect__indent-level-7 .vue-treeselect__option{padding-left:5px;padding-right:145px}.vue-treeselect__indent-level-7 .vue-treeselect__tip{padding-left:165px}[dir=rtl] .vue-treeselect__indent-level-7 .vue-treeselect__tip{padding-left:5px;padding-right:165px}.vue-treeselect__indent-level-8 .vue-treeselect__option{padding-left:165px}[dir=rtl] .vue-treeselect__indent-level-8 .vue-treeselect__option{padding-left:5px;padding-right:165px}.vue-treeselect__indent-level-8 .vue-treeselect__tip{padding-left:185px}[dir=rtl] .vue-treeselect__indent-level-8 .vue-treeselect__tip{padding-left:5px;padding-right:185px}.vue-treeselect__option{table-layout:fixed;width:100%;padding-left:5px;padding-right:5px;display:table}.vue-treeselect__option--highlight{background:#f5f5f5}.vue-treeselect--single .vue-treeselect__option--selected{background:#e3f2fd;font-weight:600}.vue-treeselect--single .vue-treeselect__option--selected:hover{background:#e3f2fd}.vue-treeselect__option--hide{display:none}.vue-treeselect__option-arrow-container,.vue-treeselect__option-arrow-placeholder{text-align:center;vertical-align:middle;width:20px;line-height:0;display:table-cell}.vue-treeselect__option-arrow-container{cursor:pointer}.vue-treeselect__option-arrow{color:#ccc;vertical-align:middle;width:9px;height:9px;transition:transform .2s cubic-bezier(.19,1,.22,1);display:inline-block;transform:rotate(-90deg)}[dir=rtl] .vue-treeselect__option-arrow{transform:rotate(90deg)}.vue-treeselect__option-arrow-container:hover .vue-treeselect__option-arrow,.vue-treeselect--branch-nodes-disabled .vue-treeselect__option:hover .vue-treeselect__option-arrow{color:#616161}.vue-treeselect__option-arrow--rotated,[dir=rtl] .vue-treeselect__option-arrow--rotated{transform:rotate(0)}.vue-treeselect__option-arrow--rotated.vue-treeselect__option-arrow--prepare-enter{transform:rotate(-90deg)!important}[dir=rtl] .vue-treeselect__option-arrow--rotated.vue-treeselect__option-arrow--prepare-enter{transform:rotate(90deg)!important}.vue-treeselect__label-container{width:100%;color:inherit;vertical-align:middle;table-layout:fixed;cursor:pointer;display:table}.vue-treeselect__option--disabled .vue-treeselect__label-container{color:#00000040;cursor:not-allowed}.vue-treeselect__checkbox-container{text-align:center;vertical-align:middle;width:20px;min-width:20px;height:100%;display:table-cell}.vue-treeselect__checkbox{border-style:solid;border-width:1px;border-radius:2px;width:12px;height:12px;margin:auto;transition:all .2s cubic-bezier(.075,.82,.165,1);display:block;position:relative}.vue-treeselect__check-mark,.vue-treeselect__minus-mark{opacity:0;background-repeat:no-repeat;transition:all .2s;display:block;position:absolute;top:1px;left:1px}.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=);background-size:8px 8px;width:8px;height:8px}@media (min-device-pixel-ratio:1.5),(-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=)}}@media (min-device-pixel-ratio:2),(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAAD///////////84wDuoAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (min-device-pixel-ratio:3),(-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAAD///////////////+PQt5oAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__checkbox--indeterminate>.vue-treeselect__minus-mark{opacity:1}.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAADi4uLh4eHOxeSRAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=)}@media (min-device-pixel-ratio:1.5),(-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIAgMAAAC5YVYYAAAACVBMVEUAAADi4uLh4eHOxeSRAAAAAnRSTlMAuLMp9oYAAAAPSURBVAjXY4CDrJUgBAMAGaECJ9dz3BAAAAAASUVORK5CYII=)}}@media (min-device-pixel-ratio:2),(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAADFBMVEUAAADi4uLi4uLh4eE5RQaIAAAAA3RSTlMAyTzPIdReAAAAGUlEQVQI12PAD+b///+Nof7//79gAsLFCwAx/w4blADeeQAAAABJRU5ErkJggg==)}}@media (min-device-pixel-ratio:3),(-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__minus-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAD1BMVEUAAADh4eHg4ODNzc3h4eEYfw2wAAAABHRSTlMAy2EFIuWxUgAAACRJREFUGNNjGBBgJOICBY7KDCoucODEAJSAS6FwUJShGjAQAADBPRGrK2/FhgAAAABJRU5ErkJggg==)}}.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8IX9KGAAAAFXRSTlMA8u24NxILB+Tawb6jiH1zRz0xIQIIP3GUAAAAMklEQVQI1y3FtQEAMQDDQD+EGbz/qkEVOpyEOP6PudKjZNSXn4Jm2CKRdBKzSLsFWl8fMG0Bl6Jk1rMAAAAASUVORK5CYII=);background-size:8px 8px;width:8px;height:8px;transform:scaleY(.125)}@media (min-device-pixel-ratio:1.5),(-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAQlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////8IX9KGAAAAFXRSTlMA8u24NxILB+Tawb6jiH1zRz0xIQIIP3GUAAAAMklEQVQI1y3FtQEAMQDDQD+EGbz/qkEVOpyEOP6PudKjZNSXn4Jm2CKRdBKzSLsFWl8fMG0Bl6Jk1rMAAAAASUVORK5CYII=)}}@media (min-device-pixel-ratio:2),(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAYFBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////98JRy6AAAAH3RSTlMAzu4sDenl38fBvo1OMyIdEQrj1cSihX5hYFpHNycIcQOASAAAAF9JREFUGNN9zEcOgDAMRFHTS0LvNfe/JRmHKAIJ/mqeLJn+k9uDtaeUeFnFziGsBucUTirrprfe81RqZ3Bb6hPWeuZwDFOHyf+ig9CCzQ7INBn7bG5kF+QSt13BHNJnF7AaCT4Y+CW7AAAAAElFTkSuQmCC)}}@media (min-device-pixel-ratio:3),(-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAWlBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////9ZMre9AAAAHXRSTlMA/PiJhGNI9XlEHJB/b2ldV08+Oibk49vPp6QhAYgGBuwAAACCSURBVCjPrdHdDoIwDAXgTWAqCigo/+f9X5OwnoUwtis4V92XNWladUl+rzQPeQJAN2EHxoOnsPn7/oYk8fxBv08Rr/deOH/aZ2Nm8ZJ+s573QGfWKnNuZGzWm3+lv2V3pcU1XQ385/yjmBoM3Z+dXvlbYLLD3ujhTaOM3KaIXvNkFkuSEvYy1LqOAAAAAElFTkSuQmCC)}}.vue-treeselect__checkbox--checked>.vue-treeselect__check-mark{opacity:1;transform:scaleY(1)}.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEUAAADj4+Pf39/h4eHh4eHh4eHk5OTh4eHg4ODi4uLh4eHh4eHg4ODh4eHh4eHg4ODh4eHh4eHp6en////h4eFqcyvUAAAAFHRSTlMAOQfy7bgS5NrBvqOIfXNHMSELAgQ/iFsAAAA2SURBVAjXY4AANjYIzcjMAaVFuBkY+RkEWERYmRjYRXjANAOfiIgIFxNIAa8IpxBEi6AwiAQAK2MBd7xY8csAAAAASUVORK5CYII=)}@media (min-device-pixel-ratio:1.5),(-webkit-min-device-pixel-ratio:1.5),(min-resolution:1.5dppx){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAP1BMVEUAAADj4+Pf39/h4eHh4eHh4eHk5OTh4eHg4ODi4uLh4eHh4eHg4ODh4eHh4eHg4ODh4eHh4eHp6en////h4eFqcyvUAAAAFHRSTlMAOQfy7bgS5NrBvqOIfXNHMSELAgQ/iFsAAAA2SURBVAjXY4AANjYIzcjMAaVFuBkY+RkEWERYmRjYRXjANAOfiIgIFxNIAa8IpxBEi6AwiAQAK2MBd7xY8csAAAAASUVORK5CYII=)}}@media (min-device-pixel-ratio:2),(-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAXVBMVEUAAADh4eHh4eHh4eHi4uLb29vh4eHh4eHh4eHh4eHh4eHh4eHh4eHi4uLi4uLj4+Pi4uLk5OTo6Ojh4eHh4eHi4uLg4ODg4ODh4eHg4ODh4eHf39/g4OD////h4eEzIk+wAAAAHnRSTlMAzu6/LA3p5eLZx8ONTjYiHRIKooV+YWBaRzEnCANnm5rnAAAAZElEQVQY033P2wqAIAyA4VWaaWrnc/n+j5mbhBjUf7WPoTD47TJb4i5zTr/sRDRHuyFaoWX7uK/RlbctlPEuyI1f4WY9yQINEkf6rzzo8YIzmUFoCs7J1EjeIaa9bXIEmzl8dgOZEAj/+2IvzAAAAABJRU5ErkJggg==)}}@media (min-device-pixel-ratio:3),(-webkit-min-device-pixel-ratio:3),(min-resolution:288dpi){.vue-treeselect__checkbox--disabled .vue-treeselect__check-mark{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAUVBMVEUAAADh4eHh4eHh4eHh4eHi4uLi4uLh4eHh4eHh4eHf39/j4+Ph4eHh4eHh4eHg4ODi4uLh4eHh4eHi4uLh4eHh4eHh4eHh4eHh4eH////h4eF3FMFTAAAAGnRSTlMA+/eJhGhfSHE9JBzz5KaQf3pXT0Xbz0I5AYDw8F0AAAB+SURBVCjPrdHbDoMgEEVRKAii1dZe9fz/hxplTiKIT7qfYCWTEEZdUvOwbckNAD2WHeh3brHW5f5EzGQ+iN+b1Gt6KPvtv16Dn6JX9M9ya3/A1yfu5dlyduL6Hec7mXY6ddXLPP2lpABGZ8PWXfYLTJxZekVhhl7eTX24zZPNKXoRC7zQLjUAAAAASUVORK5CYII=)}}.vue-treeselect__checkbox--unchecked{background:#fff;border-color:#e0e0e0}.vue-treeselect__label-container:hover .vue-treeselect__checkbox--unchecked{background:#fff;border-color:#039be5}.vue-treeselect__checkbox--indeterminate,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--indeterminate,.vue-treeselect__checkbox--checked,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--checked{background:#039be5;border-color:#039be5}.vue-treeselect__checkbox--disabled,.vue-treeselect__label-container:hover .vue-treeselect__checkbox--disabled{background-color:#f7f7f7;border-color:#e0e0e0}.vue-treeselect__label{white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;max-width:100%;cursor:inherit;padding-left:5px;display:table-cell;overflow:hidden}[dir=rtl] .vue-treeselect__label{padding-left:0;padding-right:5px}.vue-treeselect__count{opacity:.6;margin-left:5px;font-weight:400}[dir=rtl] .vue-treeselect__count{margin-left:0;margin-right:5px}.vue-treeselect__tip{color:#757575;table-layout:fixed;width:100%;padding-left:5px;padding-right:5px;display:table}.vue-treeselect__tip-text{white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;width:100%;padding-left:5px;padding-right:5px;font-size:12px;display:table-cell;overflow:hidden}.vue-treeselect__error-tip .vue-treeselect__retry{color:#039be5;cursor:pointer;margin-left:5px;font-style:normal;font-weight:600;text-decoration:none}[dir=rtl] .vue-treeselect__error-tip .vue-treeselect__retry{margin-left:0;margin-right:5px}.vue-treeselect__icon-container{text-align:center;vertical-align:middle;width:20px;line-height:0;display:table-cell}.vue-treeselect--single .vue-treeselect__icon-container{padding-left:5px}[dir=rtl] .vue-treeselect--single .vue-treeselect__icon-container{padding-left:0;padding-right:5px}.vue-treeselect__icon-warning{background:#fb8c00;border-radius:50%;width:12px;height:12px;margin:auto;display:block;position:relative}.vue-treeselect__icon-warning:after{content:"";border:0 solid #fff;border-width:5px 0 1px;width:2px;height:1px;display:block;position:absolute;top:2.5px;left:5px}.vue-treeselect__icon-error{background:#e53935;border-radius:50%;width:12px;height:12px;margin:auto;display:block;position:relative}.vue-treeselect__icon-error:before,.vue-treeselect__icon-error:after{content:"";background:#fff;display:block;position:absolute;transform:rotate(45deg)}.vue-treeselect__icon-error:before{width:6px;height:2px;top:5px;left:3px}.vue-treeselect__icon-error:after{width:2px;height:6px;top:3px;left:5px}.vue-treeselect__icon-loader{text-align:center;width:12px;height:12px;margin:auto;animation:1.6s linear infinite vue-treeselect-animation-rotate;display:block;position:relative}.vue-treeselect__icon-loader:before,.vue-treeselect__icon-loader:after{opacity:.6;content:"";border-radius:50%;width:100%;height:100%;animation:1.6s ease-in-out infinite vue-treeselect-animation-bounce;display:block;position:absolute;top:0;left:0}.vue-treeselect__icon-loader:before{background:#039be5}.vue-treeselect__icon-loader:after{background:#b3e5fc;animation-delay:-.8s}.vue-treeselect__menu-placeholder{display:none}.vue-treeselect__portal-target{box-sizing:border-box;border:0;width:0;height:0;margin:0;padding:0;display:block;position:absolute;top:0;left:0;overflow:visible}
@@ -1,136 +0,0 @@
1
- import { t as e } from "../chunks/_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import { createElementBlock as t, createElementVNode as n, openBlock as r, withModifiers as i } from "vue";
3
- import { defaults as a } from "lodash-es";
4
- import "video.js/dist/video-js.min.css";
5
- import o from "video.js";
6
- import s from "video.js/dist/lang/zh-CN.json";
7
- //#region src/components/vue-video-player/VueVideoPlayer.vue
8
- o.addLanguage("zh", s);
9
- var c = [
10
- "loadeddata",
11
- "canplay",
12
- "canplaythrough",
13
- "play",
14
- "pause",
15
- "waiting",
16
- "playing",
17
- "ended",
18
- "error"
19
- ], l = {
20
- name: "VueVideoPlayer",
21
- props: {
22
- crossOrigin: {
23
- type: String,
24
- default: ""
25
- },
26
- playsInline: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- autoplay: {
31
- type: Boolean,
32
- default: !0
33
- },
34
- volume: {
35
- type: Number,
36
- default: 1
37
- },
38
- src: String,
39
- options: Object,
40
- events: {
41
- type: Array,
42
- default: () => []
43
- },
44
- globalOptions: {
45
- type: Object,
46
- default: () => ({
47
- controls: !0,
48
- playbackRates: [
49
- .7,
50
- 1,
51
- 1.5,
52
- 2
53
- ],
54
- controlBar: {
55
- remainingTimeDisplay: !1,
56
- playToggle: {},
57
- progressControl: {},
58
- fullscreenToggle: {},
59
- volumeMenuButton: {
60
- inline: !1,
61
- vertical: !0
62
- }
63
- },
64
- techOrder: ["html5"],
65
- plugins: {}
66
- })
67
- },
68
- globalEvents: {
69
- type: Array,
70
- default: () => []
71
- }
72
- },
73
- data() {
74
- return { player: null };
75
- },
76
- computed: { videoOptions() {
77
- return a({
78
- language: "zh",
79
- autoplay: this.autoplay,
80
- sources: [{ src: this.src }]
81
- }, {
82
- ...this.globalOptions,
83
- ...this.options
84
- });
85
- } },
86
- watch: { videoOptions: {
87
- immediate: !0,
88
- deep: !0,
89
- handler: "initialize"
90
- } },
91
- activated() {
92
- var e;
93
- (e = this.player) == null || e.play();
94
- },
95
- deactivated() {
96
- var e;
97
- (e = this.player) == null || e.pause();
98
- },
99
- beforeUnmount() {
100
- this.dispose();
101
- },
102
- methods: {
103
- async initialize() {
104
- var e;
105
- if (await this.$nextTick(), !(!((e = this.videoOptions) == null || (e = e.sources) == null) && e.length)) return;
106
- if (this.player) {
107
- this.player.options(this.videoOptions);
108
- return;
109
- }
110
- this.playsInline && (this.$refs.video.setAttribute("playsinline", this.playsInline), this.$refs.video.setAttribute("webkit-playsinline", this.playsInline), this.$refs.video.setAttribute("x5-playsinline", this.playsInline), this.$refs.video.setAttribute("x5-video-player-type", "h5"), this.$refs.video.setAttribute("x5-video-player-fullscreen", !1)), this.crossOrigin && (this.$refs.video.crossOrigin = this.crossOrigin, this.$refs.video.setAttribute("crossOrigin", this.crossOrigin));
111
- let { events: t, globalEvents: n, volume: r } = this, i = (...e) => this.$emit(...e), a = c.concat(t).concat(n);
112
- this.player = o(this.$refs.video, this.videoOptions, function() {
113
- this.volume(r);
114
- for (let e = 0; e < a.length; e++) {
115
- let t = a[e];
116
- this.on(t, () => i(t, this));
117
- }
118
- this.on("timeupdate", () => i("timeupdate", this.currentTime(), this)), i("ready", this);
119
- });
120
- },
121
- dispose() {
122
- var e;
123
- (e = this.player) != null && e.dispose && (this.player.techName_ !== "Flash" && this.player.pause(), this.player.dispose(), this.player = null);
124
- }
125
- }
126
- }, u = { class: "video-player video-player-box" };
127
- function d(e, a, o, s, c, l) {
128
- return r(), t("div", u, [n("video", {
129
- ref: "video",
130
- class: "video-js",
131
- onContextmenu: a[0] || (a[0] = i(() => {}, ["prevent", "stop"]))
132
- }, null, 544)]);
133
- }
134
- var f = /* @__PURE__ */ e(l, [["render", d]]);
135
- //#endregion
136
- export { f as default };
@@ -1 +0,0 @@
1
- .video-player-box{width:100%;height:100%}.video-player-box .video-js{background-color:#404040;width:100%;height:100%}
@@ -1,47 +0,0 @@
1
- import { t as e } from "../chunks/utils.CSPl1l4f.mjs";
2
- import { h as t } from "vue";
3
- //#region src/components/Watermark.vue
4
- var n = {
5
- name: "Watermark",
6
- props: {
7
- text: {
8
- type: String,
9
- default: ""
10
- },
11
- width: {
12
- type: Number,
13
- default: 200
14
- },
15
- height: {
16
- type: Number,
17
- default: 150
18
- },
19
- rotate: {
20
- type: Number,
21
- default: -30
22
- },
23
- color: {
24
- type: String,
25
- default: "rgba(0,0,0,0.15)"
26
- },
27
- backgroundColor: {
28
- type: String,
29
- default: "rgba(0,0,0,0)"
30
- }
31
- },
32
- render() {
33
- let n = document.createElement("canvas");
34
- n.width = this.width, n.height = this.height;
35
- let r = n.getContext("2d");
36
- return r.font = "15px Verdana", r.fillStyle = this.backgroundColor, r.fillRect(0, 0, this.width, this.height), r.translate(this.width / 2, this.height / 2), r.rotate(this.rotate * Math.PI / 180), r.fillStyle = this.color, r.textAlign = "center", r.textBaseline = "middle", r.fillText(this.text, 0, 0), t("div", {
37
- class: e(this.$attrs.class, `watermark ${this.$attrs.staticClass || ""}`),
38
- style: {
39
- ...this.$attrs.style || {},
40
- ...this.$attrs.staticStyle || {},
41
- background: `url(${n.toDataURL("image/png")}) left top repeat`
42
- }
43
- });
44
- }
45
- };
46
- //#endregion
47
- export { n as default };
@@ -1 +0,0 @@
1
- .watermark{z-index:100;pointer-events:none;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}