zartui 3.1.22 → 3.1.23-beta.2

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 (438) hide show
  1. package/README.md +23 -23
  2. package/es/action-sheet/ActionSheet.d.ts +1 -1
  3. package/es/action-sheet/index.d.ts +1 -1
  4. package/es/audio/Audio.d.ts +82 -0
  5. package/es/audio/Audio.mjs +224 -0
  6. package/es/audio/index.css +1 -0
  7. package/es/audio/index.d.ts +66 -0
  8. package/es/audio/index.mjs +10 -0
  9. package/es/audio/style/index.d.ts +1 -0
  10. package/es/audio/style/index.mjs +5 -0
  11. package/es/audio/types.d.ts +3 -0
  12. package/es/audio/types.mjs +4 -0
  13. package/es/avatar/Avatar.d.ts +2 -2
  14. package/es/avatar/index.d.ts +2 -2
  15. package/es/badge/Badge.d.ts +1 -1
  16. package/es/badge/index.d.ts +1 -1
  17. package/es/button/Button.d.ts +5 -5
  18. package/es/button/index.d.ts +4 -4
  19. package/es/calendar/Calendar.d.ts +1 -1
  20. package/es/calendar/CalendarDay.d.ts +1 -1
  21. package/es/calendar/CalendarHeader.d.ts +1 -1
  22. package/es/calendar/CalendarMonth.d.ts +1 -1
  23. package/es/calendar/index.d.ts +1 -1
  24. package/es/cascader/Cascader.d.ts +1 -1
  25. package/es/cascader/index.d.ts +1 -1
  26. package/es/cell/Cell.d.ts +4 -4
  27. package/es/cell/index.d.ts +3 -3
  28. package/es/cell-group/CellGroup.d.ts +1 -1
  29. package/es/cell-group/index.d.ts +1 -1
  30. package/es/checkbox/Checkbox.d.ts +1 -1
  31. package/es/checkbox/Checker.d.ts +1 -1
  32. package/es/checkbox/index.d.ts +1 -1
  33. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  34. package/es/checkbox-group/index.d.ts +1 -1
  35. package/es/col/Col.d.ts +1 -1
  36. package/es/col/index.d.ts +1 -1
  37. package/es/collapse/Collapse.d.ts +1 -1
  38. package/es/collapse/index.d.ts +1 -1
  39. package/es/collapse-item/CollapseItem.d.ts +1 -1
  40. package/es/collapse-item/index.d.ts +1 -1
  41. package/es/composables/use-lazy-render.d.ts +1 -0
  42. package/es/composables/use-placeholder.d.ts +2 -1
  43. package/es/composables/use-route.d.ts +1 -2
  44. package/es/config-provider/ConfigProvider.d.ts +1 -1
  45. package/es/config-provider/index.d.ts +1 -1
  46. package/es/date-time-picker/DateTimePicker.d.ts +1 -1
  47. package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  48. package/es/date-time-picker/index.d.ts +1 -1
  49. package/es/dialog/Dialog.d.ts +1 -1
  50. package/es/dialog/index.d.ts +1 -1
  51. package/es/dialog/types.d.ts +1 -0
  52. package/es/divider/Divider.d.ts +1 -1
  53. package/es/divider/index.d.ts +1 -1
  54. package/es/drawer-select/DrawerSelect.d.ts +1 -1
  55. package/es/drawer-select/index.d.ts +1 -1
  56. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  57. package/es/dropdown-item/index.d.ts +1 -1
  58. package/es/dropdown-menu/DropdownMenu.d.ts +1 -1
  59. package/es/dropdown-menu/index.d.ts +1 -1
  60. package/es/empty/Empty.d.ts +1 -1
  61. package/es/empty/Images.d.ts +11 -11
  62. package/es/empty/index.d.ts +1 -1
  63. package/es/field/Field.d.ts +1 -1
  64. package/es/field/index.d.ts +1 -1
  65. package/es/floating-bubble/FloatingBubble.d.ts +1 -1
  66. package/es/floating-bubble/index.d.ts +1 -1
  67. package/es/form/Form.d.ts +1 -1
  68. package/es/form/index.d.ts +1 -1
  69. package/es/grid/Grid.d.ts +1 -1
  70. package/es/grid/index.d.ts +1 -1
  71. package/es/grid-item/GridItem.d.ts +4 -4
  72. package/es/grid-item/index.d.ts +3 -3
  73. package/es/hierarchy-select/Breadcrumb.d.ts +1 -1
  74. package/es/hierarchy-select/HierarchySelect.d.ts +1 -1
  75. package/es/hierarchy-select/index.d.ts +1 -1
  76. package/es/hierarchy-select/svg/SubIcon.d.ts +1 -1
  77. package/es/icon/Icon.d.ts +1 -1
  78. package/es/icon/config.mjs +1 -0
  79. package/es/icon/index.css +1 -1
  80. package/es/icon/index.d.ts +1 -1
  81. package/es/image/Image.d.ts +1 -1
  82. package/es/image/index.d.ts +1 -1
  83. package/es/image-preview/ImagePreview.d.ts +1 -1
  84. package/es/image-preview/ImagePreviewItem.d.ts +1 -1
  85. package/es/image-preview/index.d.ts +1 -1
  86. package/es/index-anchor/IndexAnchor.d.ts +1 -1
  87. package/es/index-anchor/index.d.ts +1 -1
  88. package/es/index-bar/IndexBar.d.ts +1 -1
  89. package/es/index-bar/index.d.ts +1 -1
  90. package/es/index.d.ts +3 -1
  91. package/es/index.mjs +8 -2
  92. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  93. package/es/lazyload/vue-lazyload/util.d.ts +25 -0
  94. package/es/list/List.d.ts +1 -1
  95. package/es/list/index.d.ts +1 -1
  96. package/es/loading/Loading.d.ts +1 -1
  97. package/es/loading/index.d.ts +1 -1
  98. package/es/media-picker/MediaPicker.d.ts +2 -2
  99. package/es/media-picker/image/DefaultAudioIcon.d.ts +1 -1
  100. package/es/media-picker/image/DefaultFileIcon.d.ts +1 -1
  101. package/es/media-picker/image/DefaultVideoIcon.d.ts +1 -1
  102. package/es/media-picker/image/DeleteIcon.d.ts +1 -1
  103. package/es/media-picker/image/PickFileIcon.d.ts +1 -1
  104. package/es/media-picker/image/PickPhotoIcon.d.ts +1 -1
  105. package/es/media-picker/image/TakeAudioIcon.d.ts +1 -1
  106. package/es/media-picker/image/TakePhotoIcon.d.ts +1 -1
  107. package/es/media-picker/image/TakeVideoIcon.d.ts +1 -1
  108. package/es/media-picker/index.d.ts +2 -2
  109. package/es/media-player/MediaPlayer.d.ts +1 -1
  110. package/es/media-player/index.d.ts +1 -1
  111. package/es/multiple-picker/MultiplePicker.d.ts +1 -1
  112. package/es/multiple-picker/MultiplePickerOptions.d.ts +1 -1
  113. package/es/multiple-picker/index.d.ts +1 -1
  114. package/es/nav-bar/NavBar.d.ts +1 -1
  115. package/es/nav-bar/index.d.ts +1 -1
  116. package/es/notice-bar/NoticeBar.d.ts +1 -1
  117. package/es/notice-bar/index.d.ts +1 -1
  118. package/es/notify/Notify.d.ts +1 -1
  119. package/es/notify/index.d.ts +1 -1
  120. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  121. package/es/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  122. package/es/number-keyboard/index.d.ts +1 -1
  123. package/es/overlay/Overlay.d.ts +1 -1
  124. package/es/overlay/index.d.ts +1 -1
  125. package/es/password-input/PasswordInput.d.ts +1 -1
  126. package/es/password-input/index.d.ts +1 -1
  127. package/es/picker/Picker.d.ts +1 -1
  128. package/es/picker/PickerColumn.d.ts +1 -1
  129. package/es/picker/PickerOptions.d.ts +1 -1
  130. package/es/picker/PickerToolbar.d.ts +1 -1
  131. package/es/picker/index.d.ts +1 -1
  132. package/es/popover/Popover.d.ts +1 -1
  133. package/es/popover/index.d.ts +1 -1
  134. package/es/popup/Popup.d.ts +1 -1
  135. package/es/popup/index.d.ts +1 -1
  136. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  137. package/es/pull-refresh/index.d.ts +1 -1
  138. package/es/radio/Radio.d.ts +1 -1
  139. package/es/radio/index.d.ts +1 -1
  140. package/es/radio-group/RadioGroup.d.ts +1 -1
  141. package/es/radio-group/index.d.ts +1 -1
  142. package/es/radio-picker/RadioPicker.d.ts +1 -1
  143. package/es/radio-picker/RadioPickerColumn.d.ts +1 -1
  144. package/es/radio-picker/RadioPickerToolbar.d.ts +1 -1
  145. package/es/radio-picker/index.d.ts +1 -1
  146. package/es/rate/Rate.d.ts +1 -1
  147. package/es/rate/index.d.ts +1 -1
  148. package/es/row/Row.d.ts +1 -1
  149. package/es/row/index.d.ts +1 -1
  150. package/es/search/Search.d.ts +1 -1
  151. package/es/search/index.d.ts +1 -1
  152. package/es/signature/Signature.d.ts +1 -1
  153. package/es/signature/index.d.ts +1 -1
  154. package/es/skeleton/Skeleton.d.ts +2 -2
  155. package/es/skeleton/index.d.ts +2 -2
  156. package/es/slider/Slider.d.ts +29 -3
  157. package/es/slider/Slider.mjs +15 -5
  158. package/es/slider/index.d.ts +21 -3
  159. package/es/step/Step.d.ts +1 -1
  160. package/es/step/index.d.ts +1 -1
  161. package/es/stepper/Stepper.d.ts +3 -3
  162. package/es/stepper/index.d.ts +3 -3
  163. package/es/steps/Steps.d.ts +1 -1
  164. package/es/steps/index.d.ts +1 -1
  165. package/es/sticky/Sticky.d.ts +1 -1
  166. package/es/sticky/index.d.ts +1 -1
  167. package/es/swipe/Swipe.d.ts +2 -2
  168. package/es/swipe/index.d.ts +2 -2
  169. package/es/swipe-cell/SwipeCell.d.ts +1 -1
  170. package/es/swipe-cell/index.d.ts +1 -1
  171. package/es/swipe-item/SwipeItem.d.ts +1 -1
  172. package/es/swipe-item/index.d.ts +1 -1
  173. package/es/switch/Switch.d.ts +1 -1
  174. package/es/switch/index.d.ts +1 -1
  175. package/es/tab/Tab.d.ts +4 -4
  176. package/es/tab/index.d.ts +3 -3
  177. package/es/tabbar/Tabbar.d.ts +1 -1
  178. package/es/tabbar/index.d.ts +1 -1
  179. package/es/tabbar-item/TabbarItem.d.ts +4 -4
  180. package/es/tabbar-item/index.d.ts +3 -3
  181. package/es/table/Table.d.ts +1 -1
  182. package/es/table/Table.mjs +13 -2
  183. package/es/table/index.d.ts +1 -1
  184. package/es/tabs/Tabs.d.ts +1 -1
  185. package/es/tabs/TabsContent.d.ts +1 -1
  186. package/es/tabs/TabsTitle.d.ts +1 -1
  187. package/es/tabs/index.d.ts +1 -1
  188. package/es/tag/Tag.d.ts +1 -1
  189. package/es/tag/index.d.ts +1 -1
  190. package/es/text-ellipsis/TextEllipsis.d.ts +1 -1
  191. package/es/text-ellipsis/index.d.ts +1 -1
  192. package/es/time-picker/Arrow.d.ts +1 -1
  193. package/es/time-picker/TimePicker.d.ts +1 -1
  194. package/es/time-picker/TimePickerColumn.d.ts +1 -1
  195. package/es/time-picker/index.d.ts +1 -1
  196. package/es/timeline/Timeline.d.ts +1 -1
  197. package/es/timeline/index.d.ts +1 -1
  198. package/es/toast/Toast.d.ts +1 -1
  199. package/es/toast/index.d.ts +1 -1
  200. package/es/uploader/Uploader.d.ts +1 -1
  201. package/es/uploader/UploaderPreviewItem.d.ts +1 -1
  202. package/es/uploader/index.d.ts +1 -1
  203. package/es/utils/constant.d.ts +5 -5
  204. package/es/utils/format.d.ts +1 -0
  205. package/es/utils/format.mjs +15 -0
  206. package/es/video/Video.d.ts +104 -0
  207. package/es/video/Video.mjs +390 -0
  208. package/es/video/index.css +1 -0
  209. package/es/video/index.d.ts +78 -0
  210. package/es/video/index.mjs +8 -0
  211. package/es/video/style/index.d.ts +1 -0
  212. package/es/video/style/index.mjs +4 -0
  213. package/es/video/types.d.ts +12 -0
  214. package/es/video/types.mjs +0 -0
  215. package/es/vue-sfc-shim.d.ts +6 -6
  216. package/es/vue-tsx-shim.d.ts +23 -23
  217. package/lib/action-sheet/ActionSheet.d.ts +1 -1
  218. package/lib/action-sheet/index.d.ts +1 -1
  219. package/lib/audio/Audio.d.ts +82 -0
  220. package/lib/audio/Audio.js +253 -0
  221. package/lib/audio/index.css +1 -0
  222. package/lib/audio/index.d.ts +66 -0
  223. package/lib/audio/index.js +39 -0
  224. package/lib/audio/style/index.d.ts +1 -0
  225. package/lib/audio/style/index.js +5 -0
  226. package/lib/audio/types.d.ts +3 -0
  227. package/lib/audio/types.js +23 -0
  228. package/lib/avatar/Avatar.d.ts +2 -2
  229. package/lib/avatar/index.d.ts +2 -2
  230. package/lib/badge/Badge.d.ts +1 -1
  231. package/lib/badge/index.d.ts +1 -1
  232. package/lib/button/Button.d.ts +5 -5
  233. package/lib/button/index.d.ts +4 -4
  234. package/lib/calendar/Calendar.d.ts +1 -1
  235. package/lib/calendar/CalendarDay.d.ts +1 -1
  236. package/lib/calendar/CalendarHeader.d.ts +1 -1
  237. package/lib/calendar/CalendarMonth.d.ts +1 -1
  238. package/lib/calendar/index.d.ts +1 -1
  239. package/lib/cascader/Cascader.d.ts +1 -1
  240. package/lib/cascader/index.d.ts +1 -1
  241. package/lib/cell/Cell.d.ts +4 -4
  242. package/lib/cell/index.d.ts +3 -3
  243. package/lib/cell-group/CellGroup.d.ts +1 -1
  244. package/lib/cell-group/index.d.ts +1 -1
  245. package/lib/checkbox/Checkbox.d.ts +1 -1
  246. package/lib/checkbox/Checker.d.ts +1 -1
  247. package/lib/checkbox/index.d.ts +1 -1
  248. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  249. package/lib/checkbox-group/index.d.ts +1 -1
  250. package/lib/col/Col.d.ts +1 -1
  251. package/lib/col/index.d.ts +1 -1
  252. package/lib/collapse/Collapse.d.ts +1 -1
  253. package/lib/collapse/index.d.ts +1 -1
  254. package/lib/collapse-item/CollapseItem.d.ts +1 -1
  255. package/lib/collapse-item/index.d.ts +1 -1
  256. package/lib/composables/use-lazy-render.d.ts +1 -0
  257. package/lib/composables/use-placeholder.d.ts +2 -1
  258. package/lib/composables/use-route.d.ts +1 -2
  259. package/lib/config-provider/ConfigProvider.d.ts +1 -1
  260. package/lib/config-provider/index.d.ts +1 -1
  261. package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
  262. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  263. package/lib/date-time-picker/index.d.ts +1 -1
  264. package/lib/dialog/Dialog.d.ts +1 -1
  265. package/lib/dialog/index.d.ts +1 -1
  266. package/lib/dialog/types.d.ts +1 -0
  267. package/lib/divider/Divider.d.ts +1 -1
  268. package/lib/divider/index.d.ts +1 -1
  269. package/lib/drawer-select/DrawerSelect.d.ts +1 -1
  270. package/lib/drawer-select/index.d.ts +1 -1
  271. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  272. package/lib/dropdown-item/index.d.ts +1 -1
  273. package/lib/dropdown-menu/DropdownMenu.d.ts +1 -1
  274. package/lib/dropdown-menu/index.d.ts +1 -1
  275. package/lib/empty/Empty.d.ts +1 -1
  276. package/lib/empty/Images.d.ts +11 -11
  277. package/lib/empty/index.d.ts +1 -1
  278. package/lib/field/Field.d.ts +1 -1
  279. package/lib/field/index.d.ts +1 -1
  280. package/lib/floating-bubble/FloatingBubble.d.ts +1 -1
  281. package/lib/floating-bubble/index.d.ts +1 -1
  282. package/lib/form/Form.d.ts +1 -1
  283. package/lib/form/index.d.ts +1 -1
  284. package/lib/grid/Grid.d.ts +1 -1
  285. package/lib/grid/index.d.ts +1 -1
  286. package/lib/grid-item/GridItem.d.ts +4 -4
  287. package/lib/grid-item/index.d.ts +3 -3
  288. package/lib/hierarchy-select/Breadcrumb.d.ts +1 -1
  289. package/lib/hierarchy-select/HierarchySelect.d.ts +1 -1
  290. package/lib/hierarchy-select/index.d.ts +1 -1
  291. package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -1
  292. package/lib/icon/Icon.d.ts +1 -1
  293. package/lib/icon/config.js +1 -0
  294. package/lib/icon/index.css +1 -1
  295. package/lib/icon/index.d.ts +1 -1
  296. package/lib/image/Image.d.ts +1 -1
  297. package/lib/image/index.d.ts +1 -1
  298. package/lib/image-preview/ImagePreview.d.ts +1 -1
  299. package/lib/image-preview/ImagePreviewItem.d.ts +1 -1
  300. package/lib/image-preview/index.d.ts +1 -1
  301. package/lib/index-anchor/IndexAnchor.d.ts +1 -1
  302. package/lib/index-anchor/index.d.ts +1 -1
  303. package/lib/index-bar/IndexBar.d.ts +1 -1
  304. package/lib/index-bar/index.d.ts +1 -1
  305. package/lib/index.css +1 -1
  306. package/lib/index.d.ts +3 -1
  307. package/lib/index.js +8 -2
  308. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  309. package/lib/lazyload/vue-lazyload/util.d.ts +25 -0
  310. package/lib/list/List.d.ts +1 -1
  311. package/lib/list/index.d.ts +1 -1
  312. package/lib/loading/Loading.d.ts +1 -1
  313. package/lib/loading/index.d.ts +1 -1
  314. package/lib/media-picker/MediaPicker.d.ts +2 -2
  315. package/lib/media-picker/image/DefaultAudioIcon.d.ts +1 -1
  316. package/lib/media-picker/image/DefaultFileIcon.d.ts +1 -1
  317. package/lib/media-picker/image/DefaultVideoIcon.d.ts +1 -1
  318. package/lib/media-picker/image/DeleteIcon.d.ts +1 -1
  319. package/lib/media-picker/image/PickFileIcon.d.ts +1 -1
  320. package/lib/media-picker/image/PickPhotoIcon.d.ts +1 -1
  321. package/lib/media-picker/image/TakeAudioIcon.d.ts +1 -1
  322. package/lib/media-picker/image/TakePhotoIcon.d.ts +1 -1
  323. package/lib/media-picker/image/TakeVideoIcon.d.ts +1 -1
  324. package/lib/media-picker/index.d.ts +2 -2
  325. package/lib/media-player/MediaPlayer.d.ts +1 -1
  326. package/lib/media-player/index.d.ts +1 -1
  327. package/lib/multiple-picker/MultiplePicker.d.ts +1 -1
  328. package/lib/multiple-picker/MultiplePickerOptions.d.ts +1 -1
  329. package/lib/multiple-picker/index.d.ts +1 -1
  330. package/lib/nav-bar/NavBar.d.ts +1 -1
  331. package/lib/nav-bar/index.d.ts +1 -1
  332. package/lib/notice-bar/NoticeBar.d.ts +1 -1
  333. package/lib/notice-bar/index.d.ts +1 -1
  334. package/lib/notify/Notify.d.ts +1 -1
  335. package/lib/notify/index.d.ts +1 -1
  336. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  337. package/lib/number-keyboard/NumberKeyboardKey.d.ts +1 -1
  338. package/lib/number-keyboard/index.d.ts +1 -1
  339. package/lib/overlay/Overlay.d.ts +1 -1
  340. package/lib/overlay/index.d.ts +1 -1
  341. package/lib/password-input/PasswordInput.d.ts +1 -1
  342. package/lib/password-input/index.d.ts +1 -1
  343. package/lib/picker/Picker.d.ts +1 -1
  344. package/lib/picker/PickerColumn.d.ts +1 -1
  345. package/lib/picker/PickerOptions.d.ts +1 -1
  346. package/lib/picker/PickerToolbar.d.ts +1 -1
  347. package/lib/picker/index.d.ts +1 -1
  348. package/lib/popover/Popover.d.ts +1 -1
  349. package/lib/popover/index.d.ts +1 -1
  350. package/lib/popup/Popup.d.ts +1 -1
  351. package/lib/popup/index.d.ts +1 -1
  352. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  353. package/lib/pull-refresh/index.d.ts +1 -1
  354. package/lib/radio/Radio.d.ts +1 -1
  355. package/lib/radio/index.d.ts +1 -1
  356. package/lib/radio-group/RadioGroup.d.ts +1 -1
  357. package/lib/radio-group/index.d.ts +1 -1
  358. package/lib/radio-picker/RadioPicker.d.ts +1 -1
  359. package/lib/radio-picker/RadioPickerColumn.d.ts +1 -1
  360. package/lib/radio-picker/RadioPickerToolbar.d.ts +1 -1
  361. package/lib/radio-picker/index.d.ts +1 -1
  362. package/lib/rate/Rate.d.ts +1 -1
  363. package/lib/rate/index.d.ts +1 -1
  364. package/lib/row/Row.d.ts +1 -1
  365. package/lib/row/index.d.ts +1 -1
  366. package/lib/search/Search.d.ts +1 -1
  367. package/lib/search/index.d.ts +1 -1
  368. package/lib/signature/Signature.d.ts +1 -1
  369. package/lib/signature/index.d.ts +1 -1
  370. package/lib/skeleton/Skeleton.d.ts +2 -2
  371. package/lib/skeleton/index.d.ts +2 -2
  372. package/lib/slider/Slider.d.ts +29 -3
  373. package/lib/slider/Slider.js +14 -4
  374. package/lib/slider/index.d.ts +21 -3
  375. package/lib/step/Step.d.ts +1 -1
  376. package/lib/step/index.d.ts +1 -1
  377. package/lib/stepper/Stepper.d.ts +3 -3
  378. package/lib/stepper/index.d.ts +3 -3
  379. package/lib/steps/Steps.d.ts +1 -1
  380. package/lib/steps/index.d.ts +1 -1
  381. package/lib/sticky/Sticky.d.ts +1 -1
  382. package/lib/sticky/index.d.ts +1 -1
  383. package/lib/swipe/Swipe.d.ts +2 -2
  384. package/lib/swipe/index.d.ts +2 -2
  385. package/lib/swipe-cell/SwipeCell.d.ts +1 -1
  386. package/lib/swipe-cell/index.d.ts +1 -1
  387. package/lib/swipe-item/SwipeItem.d.ts +1 -1
  388. package/lib/swipe-item/index.d.ts +1 -1
  389. package/lib/switch/Switch.d.ts +1 -1
  390. package/lib/switch/index.d.ts +1 -1
  391. package/lib/tab/Tab.d.ts +4 -4
  392. package/lib/tab/index.d.ts +3 -3
  393. package/lib/tabbar/Tabbar.d.ts +1 -1
  394. package/lib/tabbar/index.d.ts +1 -1
  395. package/lib/tabbar-item/TabbarItem.d.ts +4 -4
  396. package/lib/tabbar-item/index.d.ts +3 -3
  397. package/lib/table/Table.d.ts +1 -1
  398. package/lib/table/Table.js +13 -2
  399. package/lib/table/index.d.ts +1 -1
  400. package/lib/tabs/Tabs.d.ts +1 -1
  401. package/lib/tabs/TabsContent.d.ts +1 -1
  402. package/lib/tabs/TabsTitle.d.ts +1 -1
  403. package/lib/tabs/index.d.ts +1 -1
  404. package/lib/tag/Tag.d.ts +1 -1
  405. package/lib/tag/index.d.ts +1 -1
  406. package/lib/text-ellipsis/TextEllipsis.d.ts +1 -1
  407. package/lib/text-ellipsis/index.d.ts +1 -1
  408. package/lib/time-picker/Arrow.d.ts +1 -1
  409. package/lib/time-picker/TimePicker.d.ts +1 -1
  410. package/lib/time-picker/TimePickerColumn.d.ts +1 -1
  411. package/lib/time-picker/index.d.ts +1 -1
  412. package/lib/timeline/Timeline.d.ts +1 -1
  413. package/lib/timeline/index.d.ts +1 -1
  414. package/lib/toast/Toast.d.ts +1 -1
  415. package/lib/toast/index.d.ts +1 -1
  416. package/lib/uploader/Uploader.d.ts +1 -1
  417. package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
  418. package/lib/uploader/index.d.ts +1 -1
  419. package/lib/utils/constant.d.ts +5 -5
  420. package/lib/utils/format.d.ts +1 -0
  421. package/lib/utils/format.js +15 -0
  422. package/lib/video/Video.d.ts +104 -0
  423. package/lib/video/Video.js +419 -0
  424. package/lib/video/index.css +1 -0
  425. package/lib/video/index.d.ts +78 -0
  426. package/lib/video/index.js +37 -0
  427. package/lib/video/style/index.d.ts +1 -0
  428. package/lib/video/style/index.js +4 -0
  429. package/lib/video/types.d.ts +12 -0
  430. package/lib/video/types.js +15 -0
  431. package/lib/vue-sfc-shim.d.ts +6 -6
  432. package/lib/vue-tsx-shim.d.ts +23 -23
  433. package/lib/web-types.json +1 -1
  434. package/lib/zartui.cjs.js +15155 -14516
  435. package/lib/zartui.es.js +15156 -14517
  436. package/lib/zartui.js +5601 -4013
  437. package/lib/zartui.min.js +1 -1
  438. package/package.json +6 -6
@@ -0,0 +1,390 @@
1
+ import { createVNode as _createVNode, Fragment as _Fragment } from "vue";
2
+ import { computed, defineComponent, nextTick, onMounted, reactive, ref, watch } from "vue";
3
+ import { useExpose } from "../composables/use-expose.mjs";
4
+ import { useGlobalZIndex } from "../composables/use-global-z-index.mjs";
5
+ import Icon from "../icon/index.mjs";
6
+ import { throttle } from "../lazyload/vue-lazyload/util.mjs";
7
+ import { createNamespace, makeStringProp, formatSeconds } from "../utils/index.mjs";
8
+ const [name, bem] = createNamespace("video");
9
+ const videoProps = {
10
+ src: makeStringProp(""),
11
+ // 控制控制器和标题的显示
12
+ showToolBox: Boolean,
13
+ options: {
14
+ type: Object,
15
+ default: {
16
+ autoplay: false,
17
+ // 是否自动播放
18
+ volume: 0.5,
19
+ poster: "",
20
+ loop: false,
21
+ controls: true,
22
+ muted: false,
23
+ // 是否静音
24
+ disabled: false,
25
+ // 禁止操作
26
+ playsinline: false,
27
+ // 行内展示
28
+ touchPlay: false,
29
+ preload: ""
30
+ }
31
+ },
32
+ errorTip: makeStringProp("\u64AD\u653E\u5668\u53D1\u751F\u9519\u8BEF"),
33
+ clickRetryTip: makeStringProp("\u8BF7\u70B9\u51FB\u91CD\u8BD5")
34
+ };
35
+ var stdin_default = defineComponent({
36
+ name,
37
+ props: videoProps,
38
+ emits: ["play", "pause", "play-end", "time"],
39
+ setup(props, {
40
+ emit
41
+ }) {
42
+ const progressBar = ref();
43
+ const root = ref();
44
+ const state = reactive({
45
+ initial: true,
46
+ // 控制封面的显示
47
+ // 视频容器元素
48
+ player: {
49
+ $player: null,
50
+ pos: null
51
+ },
52
+ // progress进度条元素
53
+ progressBar: {
54
+ progressElm: null,
55
+ // 进度条DOM对象
56
+ pos: null
57
+ },
58
+ // video控制显示设置
59
+ videoSet: {
60
+ loaded: 0,
61
+ // 缓存长度
62
+ displayTime: "00:00",
63
+ // 进度时间
64
+ totalTime: "00:00",
65
+ // 总时间
66
+ progress: {
67
+ width: 0,
68
+ // 进度条长度
69
+ current: 0
70
+ // 进度条当前位置
71
+ }
72
+ },
73
+ state: {
74
+ controlShow: true,
75
+ vol: 0.5,
76
+ // 音量
77
+ currentTime: 0,
78
+ // 当前时间
79
+ fullScreen: false,
80
+ playing: false,
81
+ // 是否正在播放
82
+ isLoading: false,
83
+ isEnd: false,
84
+ isError: false,
85
+ isMuted: false
86
+ },
87
+ showTouchMask: false
88
+ });
89
+ const isDisabled = computed(() => {
90
+ return props.options.disabled;
91
+ });
92
+ watch(() => props.src, (newValue) => {
93
+ if (newValue) {
94
+ nextTick(() => {
95
+ var _a;
96
+ (_a = root.value) == null ? void 0 : _a.load();
97
+ });
98
+ }
99
+ }, {
100
+ immediate: true,
101
+ deep: true
102
+ });
103
+ watch(() => props.options, (newValue) => {
104
+ state.state.isMuted = (newValue == null ? void 0 : newValue.muted) || false;
105
+ }, {
106
+ immediate: true
107
+ });
108
+ const init = () => {
109
+ var _a, _b, _c, _d, _e, _f, _g, _h;
110
+ if (props.options.autoplay) {
111
+ setTimeout(() => {
112
+ var _a2;
113
+ (_a2 = root.value) == null ? void 0 : _a2.play();
114
+ }, 200);
115
+ }
116
+ if (props.options.touchPlay) {
117
+ state.showTouchMask = true;
118
+ }
119
+ if (props.options.playsinline) {
120
+ (_a = root.value) == null ? void 0 : _a.setAttribute("playsinline", "true");
121
+ (_b = root.value) == null ? void 0 : _b.setAttribute("webkit-playsinline", "true");
122
+ (_c = root.value) == null ? void 0 : _c.setAttribute("x5-video-player-type", "h5-page");
123
+ (_d = root.value) == null ? void 0 : _d.setAttribute("x5-video-player-fullscreen", "false");
124
+ }
125
+ volumeHandle();
126
+ if (props.showToolBox) {
127
+ customerInit();
128
+ } else {
129
+ (_e = root.value) == null ? void 0 : _e.addEventListener("play", () => {
130
+ state.state.playing = true;
131
+ emit("play", root.value);
132
+ });
133
+ (_f = root.value) == null ? void 0 : _f.addEventListener("pause", () => {
134
+ state.state.playing = false;
135
+ emit("pause", root.value);
136
+ });
137
+ (_g = root.value) == null ? void 0 : _g.addEventListener("ended", playEnded);
138
+ (_h = root.value) == null ? void 0 : _h.addEventListener("timeupdate", throttle(getPlayTime, 1e3));
139
+ }
140
+ };
141
+ const customerInit = () => {
142
+ var _a, _b;
143
+ state.player.$player = root.value;
144
+ state.progressBar.progressElm = progressBar.value;
145
+ state.progressBar.pos = (_a = progressBar.value) == null ? void 0 : _a.getBoundingClientRect();
146
+ state.videoSet.progress.width = Math.round(((_b = progressBar.value) == null ? void 0 : _b.getBoundingClientRect().width) || 0);
147
+ };
148
+ const play = () => {
149
+ var _a, _b, _c, _d;
150
+ if (props.options.autoplay && props.options.disabled) {
151
+ state.state.playing = true;
152
+ return false;
153
+ }
154
+ state.state.playing = !state.state.playing;
155
+ if (root.value) {
156
+ if (state.state.playing) {
157
+ try {
158
+ setTimeout(() => {
159
+ var _a2;
160
+ (_a2 = root.value) == null ? void 0 : _a2.play();
161
+ }, 200);
162
+ (_a = root.value) == null ? void 0 : _a.addEventListener("progress", () => {
163
+ getLoadTime();
164
+ });
165
+ (_b = root.value) == null ? void 0 : _b.addEventListener("timeupdate", throttle(getPlayTime, 1e3));
166
+ (_c = root.value) == null ? void 0 : _c.addEventListener("ended", playEnded);
167
+ emit("play", root.value);
168
+ } catch (e) {
169
+ handleError();
170
+ }
171
+ } else {
172
+ (_d = root.value) == null ? void 0 : _d.pause();
173
+ emit("pause", root.value);
174
+ }
175
+ }
176
+ };
177
+ const getLoadTime = () => {
178
+ var _a, _b;
179
+ state.videoSet.loaded = (((_a = root.value) == null ? void 0 : _a.buffered.end(0)) || 0) / (((_b = root.value) == null ? void 0 : _b.duration) || 1) * 100;
180
+ };
181
+ const getPlayTime = () => {
182
+ var _a, _b, _c, _d, _e;
183
+ const durationTime = Number.isNaN((_a = root.value) == null ? void 0 : _a.duration) ? 0 : (_b = root.value) == null ? void 0 : _b.duration;
184
+ const currentTime = Number.isNaN((_c = root.value) == null ? void 0 : _c.currentTime) ? 0 : (_d = root.value) == null ? void 0 : _d.currentTime;
185
+ const percent = (currentTime || 0) / (durationTime || 1);
186
+ state.videoSet.progress.current = Math.round(state.videoSet.progress.width * percent);
187
+ state.videoSet.totalTime = formatSeconds(durationTime);
188
+ state.videoSet.displayTime = formatSeconds((_e = root.value) == null ? void 0 : _e.currentTime);
189
+ emit("time", currentTime, durationTime, state.videoSet.displayTime, state.videoSet.totalTime);
190
+ };
191
+ const playEnded = () => {
192
+ state.state.playing = false;
193
+ state.state.isEnd = true;
194
+ state.videoSet.displayTime = "00:00";
195
+ state.videoSet.progress.current = 0;
196
+ if (root.value) {
197
+ root.value.currentTime = 0;
198
+ }
199
+ emit("play-end", root.value);
200
+ };
201
+ const handleError = () => {
202
+ state.state.isError = true;
203
+ };
204
+ const volumeHandle = () => {
205
+ state.state.vol = props.options.volume || 0;
206
+ };
207
+ const handleMuted = () => {
208
+ state.state.isMuted = !state.state.isMuted;
209
+ if (root.value) {
210
+ root.value.muted = state.state.isMuted;
211
+ }
212
+ };
213
+ const touchSlidMove = (e) => {
214
+ var _a, _b;
215
+ e.stopPropagation();
216
+ e.preventDefault();
217
+ const currentX = e.targetTouches[0].pageX;
218
+ let offsetX = currentX - state.progressBar.pos.left;
219
+ if (offsetX <= 0) {
220
+ offsetX = 0;
221
+ }
222
+ if (offsetX >= state.videoSet.progress.width) {
223
+ offsetX = state.videoSet.progress.width;
224
+ }
225
+ state.videoSet.progress.current = offsetX;
226
+ const percent = state.videoSet.progress.current / state.videoSet.progress.width;
227
+ ((_a = root.value) == null ? void 0 : _a.duration) && setPlayTime(percent, (_b = root.value) == null ? void 0 : _b.duration);
228
+ };
229
+ const touchSlidEnd = (e) => {
230
+ var _a, _b;
231
+ e.stopPropagation();
232
+ const currentX = e.changedTouches[0].pageX;
233
+ const offsetX = currentX - state.progressBar.pos.left;
234
+ state.videoSet.progress.current = offsetX;
235
+ const percent = offsetX / state.videoSet.progress.width;
236
+ ((_a = root.value) == null ? void 0 : _a.duration) && setPlayTime(percent, (_b = root.value) == null ? void 0 : _b.duration);
237
+ };
238
+ const setPlayTime = (percent, totalTime) => {
239
+ if (root.value) {
240
+ root.value.currentTime = Math.floor(percent * totalTime);
241
+ }
242
+ };
243
+ const retry = () => {
244
+ state.state.isError = false;
245
+ init();
246
+ };
247
+ const fullScreen = () => {
248
+ var _a;
249
+ if (!state.state.fullScreen) {
250
+ state.state.fullScreen = true;
251
+ (_a = root.value) == null ? void 0 : _a.webkitRequestFullScreen();
252
+ } else {
253
+ state.state.fullScreen = false;
254
+ document.webkitCancelFullScreen();
255
+ }
256
+ };
257
+ const pause = () => {
258
+ var _a;
259
+ state.state.playing = false;
260
+ (_a = root.value) == null ? void 0 : _a.pause();
261
+ emit("pause", root.value);
262
+ };
263
+ const stop = () => {
264
+ var _a;
265
+ playEnded();
266
+ (_a = root.value) == null ? void 0 : _a.pause();
267
+ };
268
+ const muted = () => {
269
+ state.state.isMuted = true;
270
+ if (root.value) {
271
+ root.value.muted = true;
272
+ }
273
+ };
274
+ const unmuted = () => {
275
+ state.state.isMuted = false;
276
+ if (root.value) {
277
+ root.value.muted = false;
278
+ }
279
+ };
280
+ useExpose({
281
+ play,
282
+ pause,
283
+ stop,
284
+ muted,
285
+ unmuted
286
+ });
287
+ onMounted(() => {
288
+ init();
289
+ });
290
+ function renderToolBox() {
291
+ if (props.showToolBox && !isDisabled.value) {
292
+ return _createVNode(_Fragment, null, [_createVNode("div", {
293
+ "class": bem("mask"),
294
+ "onClick": play
295
+ }, null), !state.state.playing ? _createVNode("div", {
296
+ "class": bem("play-btn"),
297
+ "onClick": play
298
+ }, [_createVNode(Icon, {
299
+ "name": "play-r"
300
+ }, null)]) : null, _createVNode("div", {
301
+ "class": [bem("controller", {
302
+ show: !state.state.playing,
303
+ hide: state.state.playing
304
+ })],
305
+ "style": {
306
+ "z-index": useGlobalZIndex()
307
+ }
308
+ }, [_createVNode("div", {
309
+ "class": bem("controller-play-btn"),
310
+ "onClick": play
311
+ }, null), _createVNode("div", {
312
+ "class": bem("controller-now")
313
+ }, [state.videoSet.displayTime]), _createVNode("div", {
314
+ "class": bem("controller-progress")
315
+ }, [_createVNode("div", {
316
+ "ref": progressBar,
317
+ "class": bem("controller-progress-value")
318
+ }, [_createVNode("div", {
319
+ "class": "buffered",
320
+ "style": {
321
+ width: `${state.videoSet.loaded}%`
322
+ }
323
+ }, null), _createVNode("div", {
324
+ "class": bem("controller-progress-ball"),
325
+ "style": {
326
+ transform: `translate3d(${state.videoSet.progress.current}px, -50%, 0)`
327
+ },
328
+ "onTouchmove": touchSlidMove,
329
+ "onTouchend": touchSlidEnd
330
+ }, [_createVNode("div", {
331
+ "class": bem("move")
332
+ }, null)]), _createVNode("div", {
333
+ "class": bem("played")
334
+ }, null)])]), _createVNode("div", {
335
+ "class": bem("controller-total")
336
+ }, [state.videoSet.totalTime]), _createVNode("div", {
337
+ "class": bem("controller-volume"),
338
+ "onClick": handleMuted
339
+ }, [state.state.isMuted ? _createVNode(Icon, {
340
+ "name": "volume-off"
341
+ }, null) : _createVNode(Icon, {
342
+ "name": "volume-on"
343
+ }, null)]), _createVNode("div", {
344
+ "class": bem("controller-full"),
345
+ "onClick": fullScreen
346
+ }, [_createVNode(Icon, {
347
+ "name": "expand"
348
+ }, null)])])]);
349
+ }
350
+ }
351
+ function renderErrorBox() {
352
+ if (state.state.isError) {
353
+ return _createVNode("div", {
354
+ "class": bem("error"),
355
+ "style": {
356
+ "z-index": useGlobalZIndex()
357
+ }
358
+ }, [_createVNode("p", {
359
+ "class": bem("tip")
360
+ }, [props.errorTip]), _createVNode("p", {
361
+ "class": bem("retry"),
362
+ "onClick": retry
363
+ }, [props.clickRetryTip])]);
364
+ }
365
+ }
366
+ return () => {
367
+ const {
368
+ src,
369
+ options
370
+ } = props;
371
+ return _createVNode("div", {
372
+ "class": bem()
373
+ }, [_createVNode("video", {
374
+ "ref": root,
375
+ "class": bem("player"),
376
+ "muted": options.muted,
377
+ "autoplay": options.autoplay,
378
+ "loop": options.loop,
379
+ "poster": options.poster,
380
+ "controls": options.controls,
381
+ "preload": options.preload,
382
+ "src": src,
383
+ "onError": handleError
384
+ }, null), renderToolBox(), renderErrorBox()]);
385
+ };
386
+ }
387
+ });
388
+ export {
389
+ stdin_default as default
390
+ };
@@ -0,0 +1 @@
1
+ :root{--zt-video-player-background: var(--zt-black);--zt-video-player-btn-color: var(--zt-white);--zt-video-player-btn-background: rgba(0, 0, 0, .5);--zt-video-player-controller-background: rgba(0, 0, 0, .5);--zt-video-player-controller-font-size: var(--zt-font-size-sm);--zt-video-player-error-color: var(--zt-white);--zt-video-player-time-color: var(--zt-white);--zt-video-player-progress-height: 4px;--zt-video-player-progress-background: rgba(255, 255, 255, .5);--zt-video-player-progress-buffered-color: rgba(255, 255, 255, .8);--zt-video-player-progress-ball-color: var(--zt-primary-color);--zt-video-player-progress-ball-border: 2px solid var(--zt-white)}.zt-video{width:100%;height:100%;position:relative;display:flex}.zt-video>video{width:100%;height:100%;object-fit:fill}.zt-video__player{width:100%;background:var(--zt-video-player-background)}.zt-video__player:focus{outline:none}.zt-video__mask{width:100%;position:absolute;left:0;top:0;right:0;bottom:60px}.zt-video__mask.custom-touch{bottom:0}.zt-video__play-btn{width:80px;height:50px;margin-top:-25px;display:flex;align-items:center;justify-content:center;border:0;color:var(--zt-video-player-btn-color);transition:border-color .4s,outline .4s,background-color .4s;position:absolute;top:50%;left:50%;margin-left:-40px;padding:0;font-size:80px;border-radius:20%}.zt-video__controller{position:absolute;display:flex;left:0;bottom:0;background-color:var(--zt-video-player-controller-background);height:35px;width:100%;align-items:center;opacity:0;transition:all 1s;font-size:var(--zt-video-player-controller-font-size)}.zt-video__controller.zt-video__controller--show{opacity:1}.zt-video__controller.zt-video__controller--hide{opacity:0}.zt-video__controller--play-btn{width:18px;height:18px;margin:0 10px}.zt-video__controller-total,.zt-video__controller-now{color:var(--zt-video-player-time-color);padding:0 5px}.zt-video__controller-progress{position:relative;display:inline-block;height:100%;width:100%;margin:0 6px;transition:all .2s ease-in;flex:1}.zt-video__controller-progress-value{position:absolute;top:50%;width:100%;height:var(--zt-video-player-progress-height);margin-top:-.05rem;background:var(--zt-video-player-progress-background);border-radius:2px}.zt-video__controller-progress .buffered{background:var(--zt-video-player-progress-buffered-color);height:var(--zt-video-player-progress-height);border-radius:2px}.zt-video__controller-progress-ball{width:14px;height:14px;position:absolute;top:50%;left:0;border-radius:50%;box-sizing:content-box}.zt-video__controller-progress-ball div{width:10px;height:10px;background:var(--zt-video-player-progress-ball-color);box-shadow:0 2px 4px rgba(32,0,0,.2);margin:0 -5px;border-radius:50%;border:var(--zt-video-player-progress-ball-border)}.zt-video__controller-volume,.zt-video__controller-full{width:26px;height:30px;display:flex;align-items:center;justify-content:center}.zt-video__controller-volume>i,.zt-video__controller-full>i{color:var(--zt-video-player-btn-color);font-size:22px}.zt-video__controller-full{width:40px}.zt-video__error{position:absolute;width:100%;height:100%;background:var(--zt-video-player-background);color:var(--zt-video-player-error-color);display:flex;flex-direction:column;align-items:center;justify-content:center}
@@ -0,0 +1,78 @@
1
+ export declare const Video: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ src: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ showToolBox: BooleanConstructor;
7
+ options: {
8
+ type: import("vue").PropType<Partial<import("./types").VideoOptions>>;
9
+ default: {
10
+ autoplay: boolean;
11
+ volume: number;
12
+ poster: string;
13
+ loop: boolean;
14
+ controls: boolean;
15
+ muted: boolean;
16
+ disabled: boolean;
17
+ playsinline: boolean;
18
+ touchPlay: boolean;
19
+ preload: string;
20
+ };
21
+ };
22
+ errorTip: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ clickRetryTip: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("time" | "pause" | "play" | "play-end")[], "time" | "pause" | "play" | "play-end", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ src: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ showToolBox: BooleanConstructor;
36
+ options: {
37
+ type: import("vue").PropType<Partial<import("./types").VideoOptions>>;
38
+ default: {
39
+ autoplay: boolean;
40
+ volume: number;
41
+ poster: string;
42
+ loop: boolean;
43
+ controls: boolean;
44
+ muted: boolean;
45
+ disabled: boolean;
46
+ playsinline: boolean;
47
+ touchPlay: boolean;
48
+ preload: string;
49
+ };
50
+ };
51
+ errorTip: {
52
+ type: import("vue").PropType<string>;
53
+ default: string;
54
+ };
55
+ clickRetryTip: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ }>> & {
60
+ onPause?: ((...args: any[]) => any) | undefined;
61
+ onPlay?: ((...args: any[]) => any) | undefined;
62
+ onTime?: ((...args: any[]) => any) | undefined;
63
+ "onPlay-end"?: ((...args: any[]) => any) | undefined;
64
+ }, {
65
+ src: string;
66
+ options: Partial<import("./types").VideoOptions>;
67
+ showToolBox: boolean;
68
+ errorTip: string;
69
+ clickRetryTip: string;
70
+ }, {}>>;
71
+ export default Video;
72
+ export type { VideoProps } from './Video';
73
+ export type { VideoOptions } from './types';
74
+ declare module 'vue' {
75
+ interface GlobalComponents {
76
+ ZtVideo: typeof Video;
77
+ }
78
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _Video from "./Video.mjs";
3
+ const Video = withInstall(_Video);
4
+ var stdin_default = Video;
5
+ export {
6
+ Video,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../index.css";
@@ -0,0 +1,12 @@
1
+ export interface VideoOptions {
2
+ autoplay: boolean;
3
+ volume: number;
4
+ poster: string;
5
+ loop: boolean;
6
+ controls: boolean;
7
+ muted: boolean;
8
+ disabled: boolean;
9
+ playsinline: boolean;
10
+ touchPlay: boolean;
11
+ preload: string;
12
+ }
File without changes
@@ -1,6 +1,6 @@
1
- declare module '*.vue' {
2
- // eslint-disable-next-line
3
- import { DefineComponent } from 'vue';
4
- const Component: DefineComponent;
5
- export default Component;
6
- }
1
+ declare module '*.vue' {
2
+ // eslint-disable-next-line
3
+ import { DefineComponent } from 'vue';
4
+ const Component: DefineComponent;
5
+ export default Component;
6
+ }
@@ -1,23 +1,23 @@
1
- import 'vue';
2
-
3
- type EventHandler = (...args: any[]) => void;
4
-
5
- declare module 'vue' {
6
- interface ComponentCustomProps {
7
- id?: string;
8
- role?: string;
9
- tabindex?: number;
10
- onClick?: EventHandler;
11
- onTouchend?: EventHandler;
12
- onTouchmove?: EventHandler;
13
- onTouchstart?: EventHandler;
14
- onTouchcancel?: EventHandler;
15
- onTouchmovePassive?: EventHandler;
16
- onTouchstartPassive?: EventHandler;
17
- }
18
-
19
- interface HTMLAttributes {
20
- onTouchmovePassive?: EventHandler;
21
- onTouchstartPassive?: EventHandler;
22
- }
23
- }
1
+ import 'vue';
2
+
3
+ type EventHandler = (...args: any[]) => void;
4
+
5
+ declare module 'vue' {
6
+ interface ComponentCustomProps {
7
+ id?: string;
8
+ role?: string;
9
+ tabindex?: number;
10
+ onClick?: EventHandler;
11
+ onTouchend?: EventHandler;
12
+ onTouchmove?: EventHandler;
13
+ onTouchstart?: EventHandler;
14
+ onTouchcancel?: EventHandler;
15
+ onTouchmovePassive?: EventHandler;
16
+ onTouchstartPassive?: EventHandler;
17
+ }
18
+
19
+ interface HTMLAttributes {
20
+ onTouchmovePassive?: EventHandler;
21
+ onTouchstartPassive?: EventHandler;
22
+ }
23
+ }
@@ -118,7 +118,7 @@ declare const _default: import("vue").DefineComponent<{
118
118
  type: BooleanConstructor;
119
119
  default: true;
120
120
  };
121
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
121
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<ExtractPropTypes<{
122
122
  show: BooleanConstructor;
123
123
  zIndex: (NumberConstructor | StringConstructor)[];
124
124
  overlay: {
@@ -52,7 +52,7 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
52
52
  type: BooleanConstructor;
53
53
  default: true;
54
54
  };
55
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
55
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "cancel" | "update:show")[], "select" | "cancel" | "update:show", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
56
  show: BooleanConstructor;
57
57
  zIndex: (NumberConstructor | StringConstructor)[];
58
58
  overlay: {
@@ -0,0 +1,82 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import { AudioType } from './types';
3
+ declare const audioProps: {
4
+ src: {
5
+ type: import("vue").PropType<string>;
6
+ default: string;
7
+ };
8
+ muted: BooleanConstructor;
9
+ autoplay: BooleanConstructor;
10
+ loop: BooleanConstructor;
11
+ preload: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ second: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ type: {
20
+ type: import("vue").PropType<AudioType>;
21
+ default: AudioType;
22
+ };
23
+ };
24
+ export type AudioProps = ExtractPropTypes<typeof audioProps>;
25
+ declare const _default: import("vue").DefineComponent<{
26
+ src: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ muted: BooleanConstructor;
31
+ autoplay: BooleanConstructor;
32
+ loop: BooleanConstructor;
33
+ preload: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
37
+ second: {
38
+ type: NumberConstructor;
39
+ default: number;
40
+ };
41
+ type: {
42
+ type: import("vue").PropType<AudioType>;
43
+ default: AudioType;
44
+ };
45
+ }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay")[], "ended" | "play" | "forward" | "mute" | "fastBack" | "changeProgress" | "canPlay", import("vue").PublicProps, Readonly<ExtractPropTypes<{
46
+ src: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ muted: BooleanConstructor;
51
+ autoplay: BooleanConstructor;
52
+ loop: BooleanConstructor;
53
+ preload: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ second: {
58
+ type: NumberConstructor;
59
+ default: number;
60
+ };
61
+ type: {
62
+ type: import("vue").PropType<AudioType>;
63
+ default: AudioType;
64
+ };
65
+ }>> & {
66
+ onEnded?: ((...args: any[]) => any) | undefined;
67
+ onPlay?: ((...args: any[]) => any) | undefined;
68
+ onForward?: ((...args: any[]) => any) | undefined;
69
+ onMute?: ((...args: any[]) => any) | undefined;
70
+ onFastBack?: ((...args: any[]) => any) | undefined;
71
+ onChangeProgress?: ((...args: any[]) => any) | undefined;
72
+ onCanPlay?: ((...args: any[]) => any) | undefined;
73
+ }, {
74
+ type: AudioType;
75
+ autoplay: boolean;
76
+ loop: boolean;
77
+ muted: boolean;
78
+ preload: string;
79
+ src: string;
80
+ second: number;
81
+ }, {}>;
82
+ export default _default;