@tplc/wot 1.0.7 → 1.0.9

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 (520) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/common/AbortablePromise.ts +3 -11
  3. package/components/common/abstracts/_config.scss +1 -1
  4. package/components/common/abstracts/_function.scss +26 -13
  5. package/components/common/abstracts/_mixin.scss +117 -71
  6. package/components/common/abstracts/variable.scss +325 -697
  7. package/components/common/base64.ts +1 -2
  8. package/components/common/canvasHelper.ts +1 -1
  9. package/components/common/interceptor.ts +43 -0
  10. package/components/common/props.ts +8 -8
  11. package/components/common/util.ts +145 -60
  12. package/components/composables/index.ts +11 -0
  13. package/components/composables/useChildren.ts +9 -18
  14. package/components/composables/useCountDown.ts +2 -2
  15. package/components/composables/useLockScroll.ts +1 -3
  16. package/components/composables/useParent.ts +4 -4
  17. package/components/composables/usePopover.ts +43 -60
  18. package/components/composables/useQueue.ts +2 -2
  19. package/components/composables/useTouch.ts +2 -3
  20. package/components/composables/useTranslate.ts +2 -13
  21. package/components/composables/useUpload.ts +389 -0
  22. package/components/wd-action-sheet/index.scss +22 -22
  23. package/components/wd-action-sheet/types.ts +11 -21
  24. package/components/wd-action-sheet/wd-action-sheet.vue +21 -40
  25. package/components/wd-backtop/index.scss +5 -5
  26. package/components/wd-backtop/types.ts +3 -15
  27. package/components/wd-backtop/wd-backtop.vue +12 -20
  28. package/components/wd-badge/index.scss +14 -10
  29. package/components/wd-badge/types.ts +6 -9
  30. package/components/wd-badge/wd-badge.vue +29 -37
  31. package/components/wd-button/index.scss +76 -80
  32. package/components/wd-button/types.ts +43 -13
  33. package/components/wd-button/wd-button.vue +41 -22
  34. package/components/wd-calendar/index.scss +58 -145
  35. package/components/wd-calendar/types.ts +23 -41
  36. package/components/wd-calendar/wd-calendar.vue +123 -130
  37. package/components/wd-calendar-view/month/index.scss +33 -65
  38. package/components/wd-calendar-view/month/month.vue +80 -113
  39. package/components/wd-calendar-view/month/types.ts +2 -1
  40. package/components/wd-calendar-view/monthPanel/index.scss +15 -15
  41. package/components/wd-calendar-view/monthPanel/month-panel.vue +64 -78
  42. package/components/wd-calendar-view/monthPanel/types.ts +58 -10
  43. package/components/wd-calendar-view/types.ts +12 -36
  44. package/components/wd-calendar-view/utils.ts +14 -36
  45. package/components/wd-calendar-view/wd-calendar-view.vue +7 -7
  46. package/components/wd-calendar-view/year/index.scss +18 -13
  47. package/components/wd-calendar-view/year/types.ts +2 -1
  48. package/components/wd-calendar-view/year/year.vue +25 -43
  49. package/components/wd-calendar-view/yearPanel/index.scss +4 -4
  50. package/components/wd-calendar-view/yearPanel/types.ts +2 -2
  51. package/components/wd-calendar-view/yearPanel/year-panel.vue +36 -41
  52. package/components/wd-card/index.scss +11 -10
  53. package/components/wd-card/types.ts +1 -1
  54. package/components/wd-card/wd-card.vue +6 -9
  55. package/components/wd-cell/index.scss +56 -41
  56. package/components/wd-cell/types.ts +23 -8
  57. package/components/wd-cell/wd-cell.vue +48 -18
  58. package/components/wd-cell-group/index.scss +8 -7
  59. package/components/wd-cell-group/types.ts +1 -1
  60. package/components/wd-cell-group/wd-cell-group.vue +5 -5
  61. package/components/wd-checkbox/index.scss +35 -35
  62. package/components/wd-checkbox/types.ts +6 -6
  63. package/components/wd-checkbox/wd-checkbox.vue +12 -20
  64. package/components/wd-checkbox-group/index.scss +4 -4
  65. package/components/wd-checkbox-group/types.ts +2 -2
  66. package/components/wd-checkbox-group/wd-checkbox-group.vue +9 -12
  67. package/components/wd-circle/index.scss +5 -5
  68. package/components/wd-circle/types.ts +2 -2
  69. package/components/wd-circle/wd-circle.vue +18 -40
  70. package/components/wd-col/index.scss +2 -2
  71. package/components/wd-col/types.ts +1 -1
  72. package/components/wd-col/wd-col.vue +11 -53
  73. package/components/wd-col-picker/index.scss +41 -115
  74. package/components/wd-col-picker/types.ts +10 -14
  75. package/components/wd-col-picker/wd-col-picker.vue +103 -155
  76. package/components/wd-collapse/index.scss +7 -13
  77. package/components/wd-collapse/types.ts +4 -10
  78. package/components/wd-collapse/wd-collapse.vue +22 -55
  79. package/components/wd-collapse-item/index.scss +16 -5
  80. package/components/wd-collapse-item/types.ts +14 -2
  81. package/components/wd-collapse-item/wd-collapse-item.vue +70 -81
  82. package/components/wd-config-provider/types.ts +69 -40
  83. package/components/wd-config-provider/wd-config-provider.vue +11 -11
  84. package/components/wd-count-down/index.scss +3 -2
  85. package/components/wd-count-down/types.ts +1 -1
  86. package/components/wd-count-down/wd-count-down.vue +5 -5
  87. package/components/wd-count-to/index.scss +2 -1
  88. package/components/wd-count-to/types.ts +10 -3
  89. package/components/wd-count-to/wd-count-to.vue +9 -18
  90. package/components/wd-curtain/index.scss +28 -23
  91. package/components/wd-curtain/types.ts +46 -9
  92. package/components/wd-curtain/wd-curtain.vue +45 -47
  93. package/components/wd-datetime-picker/index.scss +65 -145
  94. package/components/wd-datetime-picker/types.ts +41 -31
  95. package/components/wd-datetime-picker/wd-datetime-picker.vue +307 -333
  96. package/components/wd-datetime-picker-view/types.ts +29 -46
  97. package/components/wd-datetime-picker-view/util.ts +30 -0
  98. package/components/wd-datetime-picker-view/wd-datetime-picker-view.vue +104 -119
  99. package/components/wd-divider/index.scss +78 -10
  100. package/components/wd-divider/types.ts +26 -3
  101. package/components/wd-divider/wd-divider.vue +33 -10
  102. package/components/wd-drop-menu/index.scss +17 -45
  103. package/components/wd-drop-menu/types.ts +3 -3
  104. package/components/wd-drop-menu/wd-drop-menu.vue +61 -25
  105. package/components/wd-drop-menu-item/index.scss +15 -15
  106. package/components/wd-drop-menu-item/types.ts +18 -15
  107. package/components/wd-drop-menu-item/wd-drop-menu-item.vue +33 -54
  108. package/components/wd-fab/index.scss +13 -12
  109. package/components/wd-fab/types.ts +9 -4
  110. package/components/wd-fab/wd-fab.vue +70 -51
  111. package/components/wd-floating-panel/index.scss +64 -0
  112. package/components/wd-floating-panel/type.ts +32 -0
  113. package/components/wd-floating-panel/wd-floating-panel.vue +140 -0
  114. package/components/wd-form/types.ts +8 -16
  115. package/components/wd-form/wd-form.vue +67 -45
  116. package/components/wd-form-item/index.scss +3 -2
  117. package/components/wd-form-item/types.ts +2 -8
  118. package/components/wd-form-item/wd-form-item.vue +3 -3
  119. package/components/wd-grid/index.scss +2 -2
  120. package/components/wd-grid/types.ts +5 -0
  121. package/components/wd-grid/wd-grid.vue +11 -12
  122. package/components/wd-grid-item/index.scss +44 -33
  123. package/components/wd-grid-item/types.ts +7 -4
  124. package/components/wd-grid-item/wd-grid-item.vue +39 -44
  125. package/components/wd-icon/index.scss +311 -303
  126. package/components/wd-icon/types.ts +3 -3
  127. package/components/wd-icon/wd-icon.vue +6 -6
  128. package/components/wd-img/types.ts +1 -1
  129. package/components/wd-img/wd-img.vue +12 -4
  130. package/components/wd-img-cropper/index.scss +43 -39
  131. package/components/wd-img-cropper/types.ts +6 -8
  132. package/components/wd-img-cropper/wd-img-cropper.vue +132 -127
  133. package/components/wd-index-anchor/index.scss +7 -6
  134. package/components/wd-index-anchor/type.ts +2 -2
  135. package/components/wd-index-anchor/wd-index-anchor.vue +3 -9
  136. package/components/wd-index-bar/index.scss +5 -5
  137. package/components/wd-index-bar/type.ts +3 -2
  138. package/components/wd-index-bar/wd-index-bar.vue +15 -51
  139. package/components/wd-input/index.scss +44 -33
  140. package/components/wd-input/placeholder.css +20 -0
  141. package/components/wd-input/types.ts +40 -19
  142. package/components/wd-input/wd-input.vue +58 -42
  143. package/components/wd-input-number/index.scss +23 -31
  144. package/components/wd-input-number/types.ts +42 -14
  145. package/components/wd-input-number/wd-input-number.vue +374 -141
  146. package/components/wd-keyboard/constants.ts +81 -0
  147. package/components/wd-keyboard/index.scss +102 -0
  148. package/components/wd-keyboard/key/index.scss +79 -0
  149. package/components/wd-keyboard/key/index.vue +71 -0
  150. package/components/wd-keyboard/key/types.ts +11 -0
  151. package/components/wd-keyboard/types.ts +92 -0
  152. package/components/wd-keyboard/wd-keyboard.vue +206 -0
  153. package/components/wd-loading/index.scss +9 -6
  154. package/components/wd-loading/types.ts +1 -1
  155. package/components/wd-loading/wd-loading.vue +9 -9
  156. package/components/wd-loadmore/index.scss +5 -5
  157. package/components/wd-loadmore/types.ts +8 -2
  158. package/components/wd-loadmore/wd-loadmore.vue +28 -13
  159. package/components/wd-message-box/index.scss +21 -34
  160. package/components/wd-message-box/index.ts +30 -29
  161. package/components/wd-message-box/types.ts +33 -8
  162. package/components/wd-message-box/wd-message-box.vue +130 -152
  163. package/components/wd-navbar/index.scss +14 -24
  164. package/components/wd-navbar/types.ts +1 -1
  165. package/components/wd-navbar/wd-navbar.vue +14 -45
  166. package/components/wd-navbar-capsule/index.scss +16 -15
  167. package/components/wd-navbar-capsule/types.ts +8 -0
  168. package/components/wd-navbar-capsule/wd-navbar-capsule.vue +8 -4
  169. package/components/wd-notice-bar/index.scss +15 -33
  170. package/components/wd-notice-bar/types.ts +14 -3
  171. package/components/wd-notice-bar/wd-notice-bar.vue +109 -66
  172. package/components/wd-notify/index.scss +5 -5
  173. package/components/wd-notify/index.ts +17 -15
  174. package/components/wd-notify/types.ts +4 -0
  175. package/components/wd-notify/wd-notify.vue +21 -19
  176. package/components/wd-number-keyboard/index.scss +10 -10
  177. package/components/wd-number-keyboard/key/index.scss +7 -5
  178. package/components/wd-number-keyboard/key/index.vue +6 -9
  179. package/components/wd-number-keyboard/key/types.ts +1 -1
  180. package/components/wd-number-keyboard/types.ts +4 -0
  181. package/components/wd-number-keyboard/wd-number-keyboard.vue +22 -44
  182. package/components/wd-overlay/index.scss +3 -3
  183. package/components/wd-overlay/types.ts +2 -2
  184. package/components/wd-overlay/wd-overlay.vue +7 -15
  185. package/components/wd-pagination/index.scss +17 -17
  186. package/components/wd-pagination/types.ts +1 -1
  187. package/components/wd-pagination/wd-pagination.vue +10 -21
  188. package/components/wd-password-input/index.scss +7 -6
  189. package/components/wd-password-input/types.ts +2 -8
  190. package/components/wd-password-input/wd-password-input.vue +6 -15
  191. package/components/wd-picker/index.scss +46 -153
  192. package/components/wd-picker/types.ts +22 -19
  193. package/components/wd-picker/wd-picker.vue +89 -86
  194. package/components/wd-picker-view/index.scss +13 -12
  195. package/components/wd-picker-view/types.ts +16 -26
  196. package/components/wd-picker-view/wd-picker-view.vue +32 -24
  197. package/components/wd-popover/index.scss +29 -36
  198. package/components/wd-popover/types.ts +1 -1
  199. package/components/wd-popover/wd-popover.vue +20 -56
  200. package/components/wd-popup/index.scss +47 -75
  201. package/components/wd-popup/types.ts +40 -4
  202. package/components/wd-popup/wd-popup.vue +100 -157
  203. package/components/wd-progress/index.scss +20 -14
  204. package/components/wd-progress/types.ts +10 -6
  205. package/components/wd-progress/wd-progress.vue +137 -141
  206. package/components/wd-radio/index.scss +54 -53
  207. package/components/wd-radio/types.ts +15 -6
  208. package/components/wd-radio/wd-radio.vue +41 -59
  209. package/components/wd-radio-group/index.scss +5 -5
  210. package/components/wd-radio-group/types.ts +4 -1
  211. package/components/wd-radio-group/wd-radio-group.vue +6 -9
  212. package/components/wd-rate/index.scss +1 -1
  213. package/components/wd-rate/types.ts +10 -5
  214. package/components/wd-rate/wd-rate.vue +35 -17
  215. package/components/wd-resize/index.scss +2 -1
  216. package/components/wd-resize/types.ts +1 -1
  217. package/components/wd-resize/wd-resize.vue +11 -22
  218. package/components/wd-root-portal/wd-root-portal.vue +50 -0
  219. package/components/wd-row/index.scss +1 -1
  220. package/components/wd-row/types.ts +1 -1
  221. package/components/wd-row/wd-row.vue +14 -35
  222. package/components/wd-search/index.scss +29 -29
  223. package/components/wd-search/types.ts +22 -3
  224. package/components/wd-search/wd-search.vue +70 -120
  225. package/components/wd-segmented/index.scss +19 -15
  226. package/components/wd-segmented/types.ts +16 -4
  227. package/components/wd-segmented/wd-segmented.vue +34 -34
  228. package/components/wd-select-picker/index.scss +55 -122
  229. package/components/wd-select-picker/types.ts +29 -36
  230. package/components/wd-select-picker/wd-select-picker.vue +128 -274
  231. package/components/wd-sidebar/index.scss +5 -5
  232. package/components/wd-sidebar/types.ts +22 -3
  233. package/components/wd-sidebar/wd-sidebar.vue +26 -4
  234. package/components/wd-sidebar-item/index.scss +17 -13
  235. package/components/wd-sidebar-item/types.ts +3 -3
  236. package/components/wd-sidebar-item/wd-sidebar-item.vue +12 -10
  237. package/components/wd-signature/index.scss +31 -0
  238. package/components/wd-signature/types.ts +263 -0
  239. package/components/wd-signature/wd-signature.vue +630 -0
  240. package/components/wd-skeleton/index.scss +8 -13
  241. package/components/wd-skeleton/types.ts +6 -6
  242. package/components/wd-skeleton/wd-skeleton.vue +15 -31
  243. package/components/wd-slider/index.scss +24 -17
  244. package/components/wd-slider/types.ts +45 -17
  245. package/components/wd-slider/wd-slider.vue +275 -297
  246. package/components/wd-sort-button/index.scss +10 -7
  247. package/components/wd-sort-button/types.ts +1 -1
  248. package/components/wd-sort-button/wd-sort-button.vue +7 -14
  249. package/components/wd-status-tip/index.scss +8 -8
  250. package/components/wd-status-tip/types.ts +8 -2
  251. package/components/wd-status-tip/wd-status-tip.vue +14 -37
  252. package/components/wd-step/index.scss +29 -30
  253. package/components/wd-step/types.ts +1 -1
  254. package/components/wd-step/wd-step.vue +8 -9
  255. package/components/wd-steps/index.scss +1 -1
  256. package/components/wd-steps/types.ts +1 -1
  257. package/components/wd-steps/wd-steps.vue +5 -5
  258. package/components/wd-sticky/index.scss +1 -1
  259. package/components/wd-sticky/types.ts +1 -1
  260. package/components/wd-sticky/wd-sticky.vue +21 -29
  261. package/components/wd-sticky-box/index.scss +1 -1
  262. package/components/wd-sticky-box/wd-sticky-box.vue +7 -6
  263. package/components/wd-swipe-action/index.scss +1 -1
  264. package/components/wd-swipe-action/types.ts +2 -5
  265. package/components/wd-swipe-action/wd-swipe-action.vue +9 -22
  266. package/components/wd-swiper-nav/index.scss +22 -16
  267. package/components/wd-swiper-nav/types.ts +1 -9
  268. package/components/wd-swiper-nav/wd-swiper-nav.vue +2 -5
  269. package/components/wd-switch/index.scss +15 -15
  270. package/components/wd-switch/types.ts +8 -6
  271. package/components/wd-switch/wd-switch.vue +15 -15
  272. package/components/wd-tab/index.scss +11 -3
  273. package/components/wd-tab/types.ts +11 -1
  274. package/components/wd-tab/wd-tab.vue +28 -36
  275. package/components/wd-tabbar/index.scss +12 -7
  276. package/components/wd-tabbar/types.ts +3 -18
  277. package/components/wd-tabbar/wd-tabbar.vue +10 -23
  278. package/components/wd-tabbar-item/index.scss +15 -12
  279. package/components/wd-tabbar-item/types.ts +3 -3
  280. package/components/wd-tabbar-item/wd-tabbar-item.vue +11 -13
  281. package/components/wd-table/index.scss +40 -9
  282. package/components/wd-table/types.ts +13 -15
  283. package/components/wd-table/wd-table.vue +123 -94
  284. package/components/wd-table-col/index.scss +6 -4
  285. package/components/wd-table-col/types.ts +1 -1
  286. package/components/wd-table-col/wd-table-col.vue +12 -12
  287. package/components/wd-tag/index.scss +19 -19
  288. package/components/wd-tag/types.ts +1 -1
  289. package/components/wd-tag/wd-tag.vue +14 -20
  290. package/components/wd-text/index.scss +4 -1
  291. package/components/wd-text/types.ts +4 -4
  292. package/components/wd-text/wd-text.vue +12 -11
  293. package/components/wd-textarea/index.scss +51 -41
  294. package/components/wd-textarea/placeholder.css +20 -0
  295. package/components/wd-textarea/types.ts +24 -34
  296. package/components/wd-textarea/wd-textarea.vue +53 -33
  297. package/components/wd-toast/index.scss +31 -18
  298. package/components/wd-toast/index.ts +26 -43
  299. package/components/wd-toast/types.ts +117 -3
  300. package/components/wd-toast/wd-toast.vue +49 -69
  301. package/components/wd-tooltip/index.scss +21 -16
  302. package/components/wd-tooltip/types.ts +8 -3
  303. package/components/wd-tooltip/wd-tooltip.vue +17 -43
  304. package/components/wd-tour/index.scss +123 -0
  305. package/components/wd-tour/types.ts +153 -0
  306. package/components/wd-tour/wd-tour.vue +509 -0
  307. package/components/wd-transition/index.scss +39 -35
  308. package/components/wd-transition/types.ts +27 -9
  309. package/components/wd-transition/wd-transition.vue +45 -34
  310. package/components/wd-upload/index.scss +23 -21
  311. package/components/wd-upload/types.ts +43 -30
  312. package/components/wd-upload/wd-upload.vue +183 -247
  313. package/components/wd-video-preview/index.scss +9 -9
  314. package/components/wd-video-preview/types.ts +1 -1
  315. package/components/wd-video-preview/wd-video-preview.vue +18 -22
  316. package/components/wd-watermark/index.scss +7 -7
  317. package/components/wd-watermark/types.ts +2 -8
  318. package/components/wd-watermark/wd-watermark.vue +38 -135
  319. package/dayjs/constant.js +26 -0
  320. package/dayjs/index.d.ts +430 -0
  321. package/dayjs/index.js +542 -0
  322. package/dayjs/locale/en.js +13 -0
  323. package/dayjs/utils.js +59 -0
  324. package/global.d.ts +97 -91
  325. package/index.ts +2 -10
  326. package/locale/index.ts +3 -15
  327. package/locale/lang/ar-SA.ts +133 -0
  328. package/locale/lang/de-DE.ts +133 -0
  329. package/locale/lang/en-US.ts +31 -26
  330. package/locale/lang/es-ES.ts +133 -0
  331. package/locale/lang/fr-FR.ts +133 -0
  332. package/locale/lang/ja-JP.ts +133 -0
  333. package/locale/lang/ko-KR.ts +133 -0
  334. package/locale/lang/pt-PT.ts +133 -0
  335. package/locale/lang/ru-RU.ts +133 -0
  336. package/locale/lang/th-TH.ts +28 -22
  337. package/locale/lang/tr-TR.ts +138 -0
  338. package/locale/lang/ug-CN.ts +137 -0
  339. package/locale/lang/vi-VN.ts +27 -30
  340. package/locale/lang/zh-CN.ts +32 -22
  341. package/locale/lang/zh-HK.ts +18 -31
  342. package/locale/lang/zh-TW.ts +22 -31
  343. package/package.json +1 -1
  344. package/types/components/common/interceptor.d.ts +15 -0
  345. package/types/components/common/util.d.ts +61 -1
  346. package/types/components/composables/useCell.d.ts +1 -1
  347. package/types/components/composables/useLockScroll.d.ts +1 -2
  348. package/types/components/composables/useParent.d.ts +1 -1
  349. package/types/components/composables/usePopover.d.ts +2 -2
  350. package/types/components/composables/useUpload.d.ts +41 -0
  351. package/types/components/wd-action-sheet/types.d.ts +13 -4
  352. package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +20 -11
  353. package/types/components/wd-backtop/types.d.ts +1 -9
  354. package/types/components/wd-backtop/wd-backtop.vue.d.ts +6 -25
  355. package/types/components/wd-badge/types.d.ts +3 -6
  356. package/types/components/wd-badge/wd-badge.vue.d.ts +7 -14
  357. package/types/components/wd-button/types.d.ts +44 -8
  358. package/types/components/wd-button/wd-button.vue.d.ts +13 -9
  359. package/types/components/wd-calendar/types.d.ts +24 -18
  360. package/types/components/wd-calendar/wd-calendar.vue.d.ts +48 -32
  361. package/types/components/wd-calendar-view/month/month.vue.d.ts +11 -3
  362. package/types/components/wd-calendar-view/month/types.d.ts +4 -0
  363. package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +18 -12
  364. package/types/components/wd-calendar-view/monthPanel/types.d.ts +48 -6
  365. package/types/components/wd-calendar-view/types.d.ts +11 -4
  366. package/types/components/wd-calendar-view/utils.d.ts +3 -12
  367. package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +1 -1
  368. package/types/components/wd-calendar-view/year/types.d.ts +4 -0
  369. package/types/components/wd-calendar-view/year/year.vue.d.ts +11 -3
  370. package/types/components/wd-cell/types.d.ts +37 -1
  371. package/types/components/wd-cell/wd-cell.vue.d.ts +53 -9
  372. package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +2 -2
  373. package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +2 -2
  374. package/types/components/wd-circle/wd-circle.vue.d.ts +3 -3
  375. package/types/components/wd-col-picker/types.d.ts +14 -0
  376. package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +36 -19
  377. package/types/components/wd-collapse/types.d.ts +1 -5
  378. package/types/components/wd-collapse/wd-collapse.vue.d.ts +3 -11
  379. package/types/components/wd-collapse-item/types.d.ts +19 -1
  380. package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +20 -1
  381. package/types/components/wd-config-provider/types.d.ts +64 -7
  382. package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +1 -1
  383. package/types/components/wd-count-to/types.d.ts +11 -0
  384. package/types/components/wd-count-to/wd-count-to.vue.d.ts +13 -4
  385. package/types/components/wd-curtain/types.d.ts +56 -0
  386. package/types/components/wd-curtain/wd-curtain.vue.d.ts +152 -77
  387. package/types/components/wd-datetime-picker/types.d.ts +49 -15
  388. package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +75 -38
  389. package/types/components/wd-datetime-picker-view/types.d.ts +36 -14
  390. package/types/components/wd-datetime-picker-view/util.d.ts +12 -0
  391. package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +35 -9
  392. package/types/components/wd-divider/types.d.ts +32 -4
  393. package/types/components/wd-divider/wd-divider.vue.d.ts +30 -7
  394. package/types/components/wd-drop-menu/types.d.ts +3 -3
  395. package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +8 -8
  396. package/types/components/wd-drop-menu-item/types.d.ts +27 -15
  397. package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +47 -36
  398. package/types/components/wd-fab/types.d.ts +19 -3
  399. package/types/components/wd-fab/wd-fab.vue.d.ts +13 -1
  400. package/types/components/wd-floating-panel/type.d.ts +54 -0
  401. package/types/components/wd-floating-panel/wd-floating-panel.vue.d.ts +109 -0
  402. package/types/components/wd-form/types.d.ts +1 -1
  403. package/types/components/wd-form/wd-form.vue.d.ts +2 -2
  404. package/types/components/wd-form-item/wd-form-item.vue.d.ts +2 -2
  405. package/types/components/wd-grid/types.d.ts +5 -0
  406. package/types/components/wd-grid/wd-grid.vue.d.ts +2 -0
  407. package/types/components/wd-grid-item/types.d.ts +4 -1
  408. package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +3 -3
  409. package/types/components/wd-icon/types.d.ts +1 -1
  410. package/types/components/wd-icon/wd-icon.vue.d.ts +3 -3
  411. package/types/components/wd-img/types.d.ts +4 -1
  412. package/types/components/wd-img/wd-img.vue.d.ts +11 -4
  413. package/types/components/wd-img-cropper/types.d.ts +7 -0
  414. package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +12 -3
  415. package/types/components/wd-index-bar/type.d.ts +2 -1
  416. package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +1 -5
  417. package/types/components/wd-input/types.d.ts +53 -37
  418. package/types/components/wd-input/wd-input.vue.d.ts +50 -52
  419. package/types/components/wd-input-number/types.d.ts +51 -6
  420. package/types/components/wd-input-number/wd-input-number.vue.d.ts +152 -125
  421. package/types/components/wd-keyboard/constants.d.ts +8 -0
  422. package/types/components/wd-keyboard/key/index.vue.d.ts +70 -0
  423. package/types/components/wd-keyboard/key/types.d.ts +23 -0
  424. package/types/components/wd-keyboard/types.d.ts +137 -0
  425. package/types/components/wd-keyboard/wd-keyboard.vue.d.ts +200 -0
  426. package/types/components/wd-loading/wd-loading.vue.d.ts +2 -2
  427. package/types/components/wd-loadmore/types.d.ts +7 -4
  428. package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +5 -9
  429. package/types/components/wd-message-box/index.d.ts +3 -8
  430. package/types/components/wd-message-box/types.d.ts +36 -5
  431. package/types/components/wd-message-box/wd-message-box.vue.d.ts +18 -2
  432. package/types/components/wd-navbar/wd-navbar.vue.d.ts +3 -3
  433. package/types/components/wd-navbar-capsule/types.d.ts +12 -0
  434. package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +27 -4
  435. package/types/components/wd-notice-bar/types.d.ts +9 -1
  436. package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +7 -5
  437. package/types/components/wd-notify/types.d.ts +7 -0
  438. package/types/components/wd-notify/wd-notify.vue.d.ts +13 -4
  439. package/types/components/wd-number-keyboard/types.d.ts +7 -0
  440. package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +18 -9
  441. package/types/components/wd-overlay/wd-overlay.vue.d.ts +2 -2
  442. package/types/components/wd-pagination/wd-pagination.vue.d.ts +1 -1
  443. package/types/components/wd-password-input/wd-password-input.vue.d.ts +2 -2
  444. package/types/components/wd-picker/types.d.ts +28 -2
  445. package/types/components/wd-picker/wd-picker.vue.d.ts +55 -19
  446. package/types/components/wd-picker-view/types.d.ts +10 -0
  447. package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +15 -3
  448. package/types/components/wd-popover/wd-popover.vue.d.ts +4 -4
  449. package/types/components/wd-popup/types.d.ts +44 -5
  450. package/types/components/wd-popup/wd-popup.vue.d.ts +35 -24
  451. package/types/components/wd-progress/types.d.ts +6 -3
  452. package/types/components/wd-progress/wd-progress.vue.d.ts +4 -6
  453. package/types/components/wd-qr-code/uqrcode.vue.d.ts +3 -3
  454. package/types/components/wd-qr-code/wd-qr-code.vue.d.ts +4 -4
  455. package/types/components/wd-radio/types.d.ts +8 -0
  456. package/types/components/wd-radio/wd-radio.vue.d.ts +7 -0
  457. package/types/components/wd-radio-group/types.d.ts +7 -1
  458. package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +11 -2
  459. package/types/components/wd-rate/types.d.ts +9 -0
  460. package/types/components/wd-rate/wd-rate.vue.d.ts +13 -4
  461. package/types/components/wd-root-portal/wd-root-portal.vue.d.ts +26 -0
  462. package/types/components/wd-search/types.d.ts +16 -1
  463. package/types/components/wd-search/wd-search.vue.d.ts +28 -8
  464. package/types/components/wd-segmented/types.d.ts +10 -1
  465. package/types/components/wd-segmented/wd-segmented.vue.d.ts +6 -4
  466. package/types/components/wd-select-picker/types.d.ts +37 -22
  467. package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +59 -30
  468. package/types/components/wd-sidebar/types.d.ts +19 -3
  469. package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +4 -2
  470. package/types/components/wd-signature/types.d.ts +252 -0
  471. package/types/components/wd-signature/wd-signature.vue.d.ts +229 -0
  472. package/types/components/wd-skeleton/types.d.ts +3 -4
  473. package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +10 -10
  474. package/types/components/wd-slider/types.d.ts +39 -15
  475. package/types/components/wd-slider/wd-slider.vue.d.ts +12 -38
  476. package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +3 -3
  477. package/types/components/wd-status-tip/types.d.ts +9 -0
  478. package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +69 -49
  479. package/types/components/wd-steps/wd-steps.vue.d.ts +1 -1
  480. package/types/components/wd-sticky/wd-sticky.vue.d.ts +3 -7
  481. package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +3 -3
  482. package/types/components/wd-swiper/wd-swiper.vue.d.ts +4 -4
  483. package/types/components/wd-swiper-nav/types.d.ts +0 -14
  484. package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +0 -18
  485. package/types/components/wd-switch/types.d.ts +0 -1
  486. package/types/components/wd-switch/wd-switch.vue.d.ts +2 -5
  487. package/types/components/wd-tab/types.d.ts +16 -3
  488. package/types/components/wd-tab/wd-tab.vue.d.ts +12 -4
  489. package/types/components/wd-tabbar/types.d.ts +1 -1
  490. package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +5 -5
  491. package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +1 -1
  492. package/types/components/wd-table/types.d.ts +12 -8
  493. package/types/components/wd-table/wd-table.vue.d.ts +16 -13
  494. package/types/components/wd-table-col/wd-table-col.vue.d.ts +1 -1
  495. package/types/components/wd-tabs/wd-tabs.vue.d.ts +7 -7
  496. package/types/components/wd-tag/wd-tag.vue.d.ts +4 -4
  497. package/types/components/wd-text/types.d.ts +2 -2
  498. package/types/components/wd-text/wd-text.vue.d.ts +7 -7
  499. package/types/components/wd-textarea/types.d.ts +41 -39
  500. package/types/components/wd-textarea/wd-textarea.vue.d.ts +46 -46
  501. package/types/components/wd-toast/index.d.ts +1 -6
  502. package/types/components/wd-toast/types.d.ts +127 -5
  503. package/types/components/wd-toast/wd-toast.vue.d.ts +101 -0
  504. package/types/components/wd-tooltip/types.d.ts +1 -1
  505. package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +7 -7
  506. package/types/components/wd-tour/types.d.ts +194 -0
  507. package/types/components/wd-tour/wd-tour.vue.d.ts +267 -0
  508. package/types/components/wd-transition/types.d.ts +22 -7
  509. package/types/components/wd-transition/wd-transition.vue.d.ts +33 -20
  510. package/types/components/wd-upload/types.d.ts +39 -10
  511. package/types/components/wd-upload/wd-upload.vue.d.ts +42 -16
  512. package/types/components/wd-watermark/wd-watermark.vue.d.ts +7 -7
  513. package/types/locale/index.d.ts +0 -3
  514. package/types/locale/lang/zh-CN.d.ts +9 -0
  515. package/components/wd-datetime-picker-view/index.scss +0 -0
  516. package/components/wd-form/index.scss +0 -10
  517. package/components/wd-upload/utils.ts +0 -152
  518. package/types/components/common/dayjs.d.ts +0 -26
  519. package/types/components/wd-upload/utils.d.ts +0 -11
  520. package/types/locale/lang/en-US.d.ts +0 -128
package/global.d.ts CHANGED
@@ -1,97 +1,103 @@
1
1
  declare module 'vue' {
2
2
  // Helper for Volar
3
3
  export interface GlobalComponents {
4
- 'wd-action-sheet': (typeof import('./types/components/wd-action-sheet/wd-action-sheet.vue'))['default']
5
- 'wd-badge': (typeof import('./types/components/wd-badge/wd-badge.vue'))['default']
6
- 'wd-button': (typeof import('./types/components/wd-button/wd-button.vue'))['default']
7
- 'wd-calendar': (typeof import('./types/components/wd-calendar/wd-calendar.vue'))['default']
8
- 'wd-calendar-view': (typeof import('./types/components/wd-calendar-view/wd-calendar-view.vue'))['default']
9
- 'wd-card': (typeof import('./types/components/wd-card/wd-card.vue'))['default']
10
- 'wd-cell': (typeof import('./types/components/wd-cell/wd-cell.vue'))['default']
11
- 'wd-cell-group': (typeof import('./types/components/wd-cell-group/wd-cell-group.vue'))['default']
12
- 'wd-checkbox': (typeof import('./types/components/wd-checkbox/wd-checkbox.vue'))['default']
13
- 'wd-checkbox-group': (typeof import('./types/components/wd-checkbox-group/wd-checkbox-group.vue'))['default']
14
- 'wd-col': (typeof import('./types/components/wd-col/wd-col.vue'))['default']
15
- 'wd-col-picker': (typeof import('./types/components/wd-col-picker/wd-col-picker.vue'))['default']
16
- 'wd-collapse': (typeof import('./types/components/wd-collapse/wd-collapse.vue'))['default']
17
- 'wd-collapse-item': (typeof import('./types/components/wd-collapse-item/wd-collapse-item.vue'))['default']
18
- 'wd-config-provider': (typeof import('./types/components/wd-config-provider/wd-config-provider.vue'))['default']
19
- 'wd-curtain': (typeof import('./types/components/wd-curtain/wd-curtain.vue'))['default']
20
- 'wd-datetime-picker': (typeof import('./types/components/wd-datetime-picker/wd-datetime-picker.vue'))['default']
21
- 'wd-datetime-picker-view': (typeof import('./types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue'))['default']
22
- 'wd-divider': (typeof import('./types/components/wd-divider/wd-divider.vue'))['default']
23
- 'wd-drop-menu': (typeof import('./types/components/wd-drop-menu/wd-drop-menu.vue'))['default']
24
- 'wd-drop-menu-item': (typeof import('./types/components/wd-drop-menu-item/wd-drop-menu-item.vue'))['default']
25
- 'wd-grid': (typeof import('./types/components/wd-grid/wd-grid.vue'))['default']
26
- 'wd-gridItem': (typeof import('./types/components/wd-grid-item/wd-grid-item.vue'))['default']
27
- 'wd-icon': (typeof import('./types/components/wd-icon/wd-icon.vue'))['default']
28
- 'wd-img': (typeof import('./types/components/wd-img/wd-img.vue'))['default']
29
- 'wd-img-cropper': (typeof import('./types/components/wd-img-cropper/wd-img-cropper.vue'))['default']
30
- 'wd-input': (typeof import('./types/components/wd-input/wd-input.vue'))['default']
31
- 'wd-input-number': (typeof import('./types/components/wd-input-number/wd-input-number.vue'))['default']
32
- 'wd-loading': (typeof import('./types/components/wd-loading/wd-loading.vue'))['default']
33
- 'wd-loadmore': (typeof import('./types/components/wd-loadmore/wd-loadmore.vue'))['default']
34
- 'wd-message-box': (typeof import('./types/components/wd-message-box/wd-message-box.vue'))['default']
35
- 'wd-overlay': (typeof import('./types/components/wd-overlay/wd-overlay.vue'))['default']
36
- 'wd-notice-bar': (typeof import('./types/components/wd-notice-bar/wd-notice-bar.vue'))['default']
37
- 'wd-pagination': (typeof import('./types/components/wd-pagination/wd-pagination.vue'))['default']
38
- 'wd-picker': (typeof import('./types/components/wd-picker/wd-picker.vue'))['default']
39
- 'wd-picker-view': (typeof import('./types/components/wd-picker-view/wd-picker-view.vue'))['default']
40
- 'wd-popover': (typeof import('./types/components/wd-popover/wd-popover.vue'))['default']
41
- 'wd-popup': (typeof import('./types/components/wd-popup/wd-popup.vue'))['default']
42
- 'wd-progress': (typeof import('./types/components/wd-progress/wd-progress.vue'))['default']
43
- 'wd-radio': (typeof import('./types/components/wd-radio/wd-radio.vue'))['default']
44
- 'wd-radio-group': (typeof import('./types/components/wd-radio-group/wd-radio-group.vue'))['default']
45
- 'wd-rate': (typeof import('./types/components/wd-rate/wd-rate.vue'))['default']
46
- 'wd-resize': (typeof import('./types/components/wd-resize/wd-resize.vue'))['default']
47
- 'wd-row': (typeof import('./types/components/wd-row/wd-row.vue'))['default']
48
- 'wd-search': (typeof import('./types/components/wd-search/wd-search.vue'))['default']
49
- 'wd-select-picker': (typeof import('./types/components/wd-select-picker/wd-select-picker.vue'))['default']
50
- 'wd-slider': (typeof import('./types/components/wd-slider/wd-slider.vue'))['default']
51
- 'wd-sort-button': (typeof import('./types/components/wd-sort-button/wd-sort-button.vue'))['default']
52
- 'wd-status-tip': (typeof import('./types/components/wd-status-tip/wd-status-tip.vue'))['default']
53
- 'wd-step': (typeof import('./types/components/wd-step/wd-step.vue'))['default']
54
- 'wd-steps': (typeof import('./types/components/wd-steps/wd-steps.vue'))['default']
55
- 'wd-sticky': (typeof import('./types/components/wd-sticky/wd-sticky.vue'))['default']
56
- 'wd-sticky-box': (typeof import('./types/components/wd-sticky-box/wd-sticky-box.vue'))['default']
57
- 'wd-swipe-action': (typeof import('./types/components/wd-swipe-action/wd-swipe-action.vue'))['default']
58
- 'wd-switch': (typeof import('./types/components/wd-switch/wd-switch.vue'))['default']
59
- 'wd-tab': (typeof import('./types/components/wd-tab/wd-tab.vue'))['default']
60
- 'wd-tabs': (typeof import('./types/components/wd-tabs/wd-tabs.vue'))['default']
61
- 'wd-tag': (typeof import('./types/components/wd-tag/wd-tag.vue'))['default']
62
- 'wd-toast': (typeof import('./types/components/wd-toast/wd-toast.vue'))['default']
63
- 'wd-tooltip': (typeof import('./types/components/wd-tooltip/wd-tooltip.vue'))['default']
64
- 'wd-transition': (typeof import('./types/components/wd-transition/wd-transition.vue'))['default']
65
- 'wd-upload': (typeof import('./types/components/wd-upload/wd-upload.vue'))['default']
66
- 'wd-notify': (typeof import('./types/components/wd-notify/wd-notify.vue'))['default']
67
- 'wd-watermark': (typeof import('./types/components/wd-watermark/wd-watermark.vue'))['default']
68
- 'wd-circle': (typeof import('./types/components/wd-circle/wd-circle.vue'))['default']
69
- 'wd-swiper': (typeof import('./types/components/wd-swiper/wd-swiper.vue'))['default']
70
- 'wd-swiper-nav': (typeof import('./types/components/wd-swiper-nav/wd-swiper-nav.vue'))['default']
71
- 'wd-segmented': (typeof import('./types/components/wd-segmented/wd-segmented.vue'))['default']
72
- 'wd-tabbar': (typeof import('./types/components/wd-tabbar/wd-tabbar.vue'))['default']
73
- 'wd-tabbar-item': (typeof import('./types/components/wd-tabbar-item/wd-tabbar-item.vue'))['default']
74
- 'wd-navbar': (typeof import('./types/components/wd-navbar/wd-navbar.vue'))['default']
75
- 'wd-navbar-capsule': (typeof import('./types/components/wd-navbar-capsule/wd-navbar-capsule.vue'))['default']
76
- 'wd-table': (typeof import('./types/components/wd-table/wd-table.vue'))['default']
77
- 'wd-table-col': (typeof import('./types/components/wd-table-col/wd-table-col.vue'))['default']
78
- 'wd-sidebar': (typeof import('./types/components/wd-sidebar/wd-sidebar.vue'))['default']
79
- 'wd-sidebar-item': (typeof import('./types/components/wd-sidebar-item/wd-sidebar-item.vue'))['default']
80
- 'wd-Fab': (typeof import('./types/components/wd-fab/wd-fab.vue'))['default']
81
- 'wd-count-down': (typeof import('./types/components/wd-count-down/wd-count-down.vue'))['default']
82
- 'wd-number-keyboard': (typeof import('./types/components/wd-number-keyboard/wd-number-keyboard.vue'))['default']
83
- 'wd-gap': (typeof import('./types/components/wd-gap/wd-gap.vue'))['default']
84
- 'wd-password-input': (typeof import('./types/components/wd-password-input/wd-password-input.vue'))['default']
85
- 'wd-form': (typeof import('./types/components/wd-form/wd-form.vue'))['default']
86
- 'wd-textarea': (typeof import('./types/components/wd-textarea/wd-textarea.vue'))['default']
87
- 'wd-video-preview': (typeof import('./types/components/wd-video-preview/wd-video-preview.vue'))['default']
88
- 'wd-backtop': (typeof import('./types/components/wd-backtop/wd-backtop.vue'))['default']
89
- 'wd-skeleton': (typeof import('./types/components/wd-skeleton/wd-skeleton.vue'))['default']
90
- 'wd-index-bar': (typeof import('./types/components/wd-index-bar/wd-index-bar.vue'))['default']
91
- 'wd-index-anchor': (typeof import('./types/components/wd-index-anchor/wd-index-anchor.vue'))['default']
92
- 'wd-text': (typeof import('./types/components/wd-text/wd-text.vue'))['default']
93
- 'wd-count-to': (typeof import('./types/components/wd-count-to/wd-count-to.vue'))['default']
94
- 'wd-qr-code': (typeof import('./types/components/wd-qr-code/wd-qr-code.vue'))['default']
4
+ WdActionSheet: (typeof import('./components/wd-action-sheet/wd-action-sheet.vue'))['default']
5
+ WdBadge: (typeof import('./components/wd-badge/wd-badge.vue'))['default']
6
+ WdButton: (typeof import('./components/wd-button/wd-button.vue'))['default']
7
+ WdCalendar: (typeof import('./components/wd-calendar/wd-calendar.vue'))['default']
8
+ WdCalendarView: (typeof import('./components/wd-calendar-view/wd-calendar-view.vue'))['default']
9
+ WdCard: (typeof import('./components/wd-card/wd-card.vue'))['default']
10
+ WdCell: (typeof import('./components/wd-cell/wd-cell.vue'))['default']
11
+ WdCellGroup: (typeof import('./components/wd-cell-group/wd-cell-group.vue'))['default']
12
+ WdCheckbox: (typeof import('./components/wd-checkbox/wd-checkbox.vue'))['default']
13
+ WdCheckboxGroup: (typeof import('./components/wd-checkbox-group/wd-checkbox-group.vue'))['default']
14
+ WdCol: (typeof import('./components/wd-col/wd-col.vue'))['default']
15
+ WdColPicker: (typeof import('./components/wd-col-picker/wd-col-picker.vue'))['default']
16
+ WdCollapse: (typeof import('./components/wd-collapse/wd-collapse.vue'))['default']
17
+ WdCollapseItem: (typeof import('./components/wd-collapse-item/wd-collapse-item.vue'))['default']
18
+ WdConfigProvider: (typeof import('./components/wd-config-provider/wd-config-provider.vue'))['default']
19
+ WdCurtain: (typeof import('./components/wd-curtain/wd-curtain.vue'))['default']
20
+ WdDatetimePicker: (typeof import('./components/wd-datetime-picker/wd-datetime-picker.vue'))['default']
21
+ WdDatetimePickerView: (typeof import('./components/wd-datetime-picker-view/wd-datetime-picker-view.vue'))['default']
22
+ WdDivider: (typeof import('./components/wd-divider/wd-divider.vue'))['default']
23
+ WdDropMenu: (typeof import('./components/wd-drop-menu/wd-drop-menu.vue'))['default']
24
+ WdDropMenuItem: (typeof import('./components/wd-drop-menu-item/wd-drop-menu-item.vue'))['default']
25
+ WdGrid: (typeof import('./components/wd-grid/wd-grid.vue'))['default']
26
+ WdGridItem: (typeof import('./components/wd-grid-item/wd-grid-item.vue'))['default']
27
+ WdIcon: (typeof import('./components/wd-icon/wd-icon.vue'))['default']
28
+ WdImg: (typeof import('./components/wd-img/wd-img.vue'))['default']
29
+ WdImgCropper: (typeof import('./components/wd-img-cropper/wd-img-cropper.vue'))['default']
30
+ WdInput: (typeof import('./components/wd-input/wd-input.vue'))['default']
31
+ WdInputNumber: (typeof import('./components/wd-input-number/wd-input-number.vue'))['default']
32
+ WdLoading: (typeof import('./components/wd-loading/wd-loading.vue'))['default']
33
+ WdLoadmore: (typeof import('./components/wd-loadmore/wd-loadmore.vue'))['default']
34
+ WdMessageBox: (typeof import('./components/wd-message-box/wd-message-box.vue'))['default']
35
+ WdOverlay: (typeof import('./components/wd-overlay/wd-overlay.vue'))['default']
36
+ WdNoticeBar: (typeof import('./components/wd-notice-bar/wd-notice-bar.vue'))['default']
37
+ WdPagination: (typeof import('./components/wd-pagination/wd-pagination.vue'))['default']
38
+ WdPicker: (typeof import('./components/wd-picker/wd-picker.vue'))['default']
39
+ WdPickerView: (typeof import('./components/wd-picker-view/wd-picker-view.vue'))['default']
40
+ WdPopover: (typeof import('./components/wd-popover/wd-popover.vue'))['default']
41
+ WdPopup: (typeof import('./components/wd-popup/wd-popup.vue'))['default']
42
+ WdProgress: (typeof import('./components/wd-progress/wd-progress.vue'))['default']
43
+ WdRadio: (typeof import('./components/wd-radio/wd-radio.vue'))['default']
44
+ WdRadioGroup: (typeof import('./components/wd-radio-group/wd-radio-group.vue'))['default']
45
+ WdRate: (typeof import('./components/wd-rate/wd-rate.vue'))['default']
46
+ WdResize: (typeof import('./components/wd-resize/wd-resize.vue'))['default']
47
+ WdRow: (typeof import('./components/wd-row/wd-row.vue'))['default']
48
+ WdSearch: (typeof import('./components/wd-search/wd-search.vue'))['default']
49
+ WdSelectPicker: (typeof import('./components/wd-select-picker/wd-select-picker.vue'))['default']
50
+ WdSlider: (typeof import('./components/wd-slider/wd-slider.vue'))['default']
51
+ WdSortButton: (typeof import('./components/wd-sort-button/wd-sort-button.vue'))['default']
52
+ WdStatusTip: (typeof import('./components/wd-status-tip/wd-status-tip.vue'))['default']
53
+ WdStep: (typeof import('./components/wd-step/wd-step.vue'))['default']
54
+ WdSteps: (typeof import('./components/wd-steps/wd-steps.vue'))['default']
55
+ WdSticky: (typeof import('./components/wd-sticky/wd-sticky.vue'))['default']
56
+ WdStickyBox: (typeof import('./components/wd-sticky-box/wd-sticky-box.vue'))['default']
57
+ WdSwipeAction: (typeof import('./components/wd-swipe-action/wd-swipe-action.vue'))['default']
58
+ WdSwitch: (typeof import('./components/wd-switch/wd-switch.vue'))['default']
59
+ WdTab: (typeof import('./components/wd-tab/wd-tab.vue'))['default']
60
+ WdTabs: (typeof import('./components/wd-tabs/wd-tabs.vue'))['default']
61
+ WdTag: (typeof import('./components/wd-tag/wd-tag.vue'))['default']
62
+ WdToast: (typeof import('./components/wd-toast/wd-toast.vue'))['default']
63
+ WdTooltip: (typeof import('./components/wd-tooltip/wd-tooltip.vue'))['default']
64
+ WdTransition: (typeof import('./components/wd-transition/wd-transition.vue'))['default']
65
+ WdUpload: (typeof import('./components/wd-upload/wd-upload.vue'))['default']
66
+ WdNotify: (typeof import('./components/wd-notify/wd-notify.vue'))['default']
67
+ WdWatermark: (typeof import('./components/wd-watermark/wd-watermark.vue'))['default']
68
+ WdCircle: (typeof import('./components/wd-circle/wd-circle.vue'))['default']
69
+ WdSwiper: (typeof import('./components/wd-swiper/wd-swiper.vue'))['default']
70
+ WdSwiperNav: (typeof import('./components/wd-swiper-nav/wd-swiper-nav.vue'))['default']
71
+ WdSegmented: (typeof import('./components/wd-segmented/wd-segmented.vue'))['default']
72
+ WdTabbar: (typeof import('./components/wd-tabbar/wd-tabbar.vue'))['default']
73
+ WdTabbarItem: (typeof import('./components/wd-tabbar-item/wd-tabbar-item.vue'))['default']
74
+ WdNavbar: (typeof import('./components/wd-navbar/wd-navbar.vue'))['default']
75
+ WdNavbarCapsule: (typeof import('./components/wd-navbar-capsule/wd-navbar-capsule.vue'))['default']
76
+ WdTable: (typeof import('./components/wd-table/wd-table.vue'))['default']
77
+ WdTableCol: (typeof import('./components/wd-table-col/wd-table-col.vue'))['default']
78
+ WdSidebar: (typeof import('./components/wd-sidebar/wd-sidebar.vue'))['default']
79
+ WdSidebarItem: (typeof import('./components/wd-sidebar-item/wd-sidebar-item.vue'))['default']
80
+ WdFab: (typeof import('./components/wd-fab/wd-fab.vue'))['default']
81
+ WdCountDown: (typeof import('./components/wd-count-down/wd-count-down.vue'))['default']
82
+ WdNumberKeyboard: (typeof import('./components/wd-number-keyboard/wd-number-keyboard.vue'))['default']
83
+ WdKeyboard: (typeof import('./components/wd-keyboard/wd-keyboard.vue'))['default']
84
+ WdGap: (typeof import('./components/wd-gap/wd-gap.vue'))['default']
85
+ WdPasswordInput: (typeof import('./components/wd-password-input/wd-password-input.vue'))['default']
86
+ WdForm: (typeof import('./components/wd-form/wd-form.vue'))['default']
87
+ WdTextarea: (typeof import('./components/wd-textarea/wd-textarea.vue'))['default']
88
+ WdVideoPreview: (typeof import('./components/wd-video-preview/wd-video-preview.vue'))['default']
89
+ WdBacktop: (typeof import('./components/wd-backtop/wd-backtop.vue'))['default']
90
+ WdSkeleton: (typeof import('./components/wd-skeleton/wd-skeleton.vue'))['default']
91
+ WdIndexBar: (typeof import('./components/wd-index-bar/wd-index-bar.vue'))['default']
92
+ WdIndexAnchor: (typeof import('./components/wd-index-anchor/wd-index-anchor.vue'))['default']
93
+ WdText: (typeof import('./components/wd-text/wd-text.vue'))['default']
94
+ WdCountTo: (typeof import('./components/wd-count-to/wd-count-to.vue'))['default']
95
+ WdFloatingPanel: (typeof import('./components/wd-floating-panel/wd-floating-panel.vue'))['default']
96
+ WdSignature: (typeof import('./components/wd-signature/wd-signature.vue'))['default']
97
+ WdRootPortal: (typeof import('./components/wd-root-portal/wd-root-portal.vue'))['default']
98
+ WdTour: (typeof import('./components/wd-tour/wd-tour.vue'))['default']
99
+ // 自定义组件
100
+ WdQrCode: (typeof import('./components/wd-qr-code/wd-qr-code.vue'))['default']
95
101
  }
96
102
  }
97
103
 
package/index.ts CHANGED
@@ -8,24 +8,16 @@
8
8
  * 记得注释
9
9
  */
10
10
 
11
- // Toast
12
11
  export { useToast } from './components/wd-toast'
13
- export { useTranslate } from './components/composables/useTranslate'
14
- // Messageb
15
12
  export { useMessage } from './components/wd-message-box'
16
-
17
- // useQueue
18
- export { useQueue } from './components/composables/useQueue'
19
-
20
- // Notify
13
+ export * from './components/composables'
21
14
  export * from './components/wd-notify'
22
15
 
16
+ // 保留原有的 dayjs 导出方式
23
17
  export { dayjs } from './components/common/dayjs'
24
18
 
25
19
  export * as CommonUtil from './components/common/util'
26
-
27
20
  export * as clickOut from './components/common/clickoutside'
28
21
 
29
22
  export * from './locale'
30
-
31
23
  export type { ConfigProviderThemeVars } from './components/wd-config-provider/types'
package/locale/index.ts CHANGED
@@ -9,22 +9,14 @@
9
9
  */
10
10
  import { reactive, ref } from 'vue'
11
11
  import zhCN from './lang/zh-CN'
12
- import enUs from './lang/en-US'
13
12
  import { deepAssign } from '../components/common/util'
14
13
 
15
14
  type Message = Record<string, any>
16
15
  type Messages = Record<string, Message>
17
- export const setLangStorage = (lang: string) => {
18
- uni.setStorageSync('lang', lang)
19
- }
20
- export const getLangStorage = () => {
21
- return uni.getStorageSync('lang') || 'zh-CN'
22
- }
23
16
 
24
- const lang = ref<string>(getLangStorage())
17
+ const lang = ref<string>('zh-CN')
25
18
  const messages = reactive<Messages>({
26
- 'zh-CN': zhCN,
27
- 'en-US': enUs,
19
+ 'zh-CN': zhCN
28
20
  })
29
21
 
30
22
  export const Locale = {
@@ -37,15 +29,11 @@ export const Locale = {
37
29
  if (newMessage) {
38
30
  this.add({ [newLang]: newMessage })
39
31
  }
40
- setLangStorage(newLang)
41
32
  },
42
33
 
43
34
  add(newMessages: Messages = {}) {
44
35
  deepAssign(messages, newMessages)
45
- },
46
- getLang() {
47
- return lang.value
48
- },
36
+ }
49
37
  }
50
38
 
51
39
  export const useCurrentLang = () => lang
@@ -0,0 +1,133 @@
1
+ export default {
2
+ calendar: {
3
+ placeholder: 'حدد التاريخ',
4
+ title: 'حدد التاريخ',
5
+ day: 'يوم',
6
+ week: 'أسبوع',
7
+ month: 'شهر',
8
+ confirm: 'تأكيد',
9
+ startTime: 'وقت البداية',
10
+ endTime: 'وقت النهاية',
11
+ to: 'إلى',
12
+ timeFormat: 'YY-MM-DD HH:mm:ss',
13
+ dateFormat: 'YYYY-MM-DD',
14
+ weekFormat: (year: number, week: number) => `${year} الأسبوع ${week}`,
15
+ startWeek: 'بداية الأسبوع',
16
+ endWeek: 'نهاية الأسبوع',
17
+ startMonth: 'بداية الشهر',
18
+ endMonth: 'نهاية الشهر',
19
+ monthFormat: 'YYYY-MM'
20
+ },
21
+ calendarView: {
22
+ startTime: 'وقت البداية',
23
+ endTime: 'وقت النهاية',
24
+ weeks: {
25
+ sun: 'الأحد',
26
+ mon: 'الاثنين',
27
+ tue: 'الثلاثاء',
28
+ wed: 'الأربعاء',
29
+ thu: 'الخميس',
30
+ fri: 'الجمعة',
31
+ sat: 'السبت'
32
+ },
33
+ rangePrompt: (maxRange: number) => `لا يمكن أن تزيد الأيام المحددة عن ${maxRange} يوم`,
34
+ rangePromptWeek: (maxRange: number) => `لا يمكن أن تزيد الأسابيع المحددة عن ${maxRange} أسبوع`,
35
+ rangePromptMonth: (maxRange: number) => `لا يمكن أن تزيد الشهور المحددة عن ${maxRange} شهر`,
36
+ monthTitle: 'YYYY-MM',
37
+ yearTitle: 'YYYY',
38
+ month: 'MM',
39
+ hour: (value: number) => `${value} ساعة`,
40
+ minute: (value: number) => `${value} دقيقة`,
41
+ second: (value: number) => `${value} ثانية`
42
+ },
43
+ datetimePicker: {
44
+ start: 'من',
45
+ end: 'إلى',
46
+ to: 'إلى',
47
+ placeholder: 'حدد التاريخ والوقت',
48
+ confirm: 'تأكيد',
49
+ cancel: 'إلغاء'
50
+ },
51
+ collapse: {
52
+ expand: 'توسيع',
53
+ retract: 'طي'
54
+ },
55
+ colPicker: {
56
+ title: 'حدد لون',
57
+ placeholder: 'حدد لون',
58
+ select: 'حدد'
59
+ },
60
+ loadmore: {
61
+ loading: 'جارٍ التحميل...',
62
+ finished: 'التحميل قد انتهى',
63
+ error: 'فشل التحميل...',
64
+ retry: 'إعادة المحاولة'
65
+ },
66
+ imgCropper: {
67
+ confirm: 'تأكيد',
68
+ cancel: 'إلغاء'
69
+ },
70
+ messageBox: {
71
+ inputPlaceholder: 'الرجاء إدخال المعلومات',
72
+ confirm: 'تأكيد',
73
+ cancel: 'إلغاء',
74
+ inputNoValidate: 'الرجاء التأكد من إدخال المعلومات الصحيحة'
75
+ },
76
+ numberKeyboard: {
77
+ confirm: 'إنهاء'
78
+ },
79
+ pagination: {
80
+ prev: 'السابق',
81
+ next: 'التالي',
82
+ page: (value: number) => `صفحة: ${value}`,
83
+ total: (total: number) => `المجموع: ${total}`,
84
+ size: (size: number) => `${size} / صفحة`
85
+ },
86
+ picker: {
87
+ cancel: 'إلغاء',
88
+ done: 'إنهاء',
89
+ placeholder: 'حدد'
90
+ },
91
+ search: {
92
+ search: 'بحث',
93
+ cancel: 'إلغاء'
94
+ },
95
+ steps: {
96
+ wait: 'لم يبدأ',
97
+ finished: 'تم',
98
+ process: 'جاري',
99
+ failed: 'فشل'
100
+ },
101
+ tabs: {
102
+ all: 'الجميع'
103
+ },
104
+ upload: {
105
+ error: 'فشل التحميل'
106
+ },
107
+ input: {
108
+ placeholder: 'الرجاء إدخال المعلومات...'
109
+ },
110
+ selectPicker: {
111
+ title: 'حدد',
112
+ placeholder: 'حدد',
113
+ select: 'حدد',
114
+ confirm: 'تأكيد',
115
+ filterPlaceholder: 'بحث'
116
+ },
117
+ tag: {
118
+ placeholder: 'إدخال',
119
+ add: 'إضافة وسم'
120
+ },
121
+ textarea: {
122
+ placeholder: 'الرجاء إدخال نص متعدد الأسطر هنا...'
123
+ },
124
+ tableCol: {
125
+ indexLabel: 'فهرس'
126
+ },
127
+ signature: {
128
+ confirmText: 'تأكيد',
129
+ clearText: 'مسح',
130
+ revokeText: 'تراجع',
131
+ restoreText: 'استعادة'
132
+ }
133
+ }
@@ -0,0 +1,133 @@
1
+ export default {
2
+ calendar: {
3
+ placeholder: 'Wählen Sie',
4
+ title: 'Datum auswählen',
5
+ day: 'Tag',
6
+ week: 'Woche',
7
+ month: 'Monat',
8
+ confirm: 'Bestätigen',
9
+ startTime: 'Startdatum',
10
+ endTime: 'Enddatum',
11
+ to: 'bis',
12
+ timeFormat: 'YY-MM-DD HH:mm:ss',
13
+ dateFormat: 'YYYY-MM-DD',
14
+ weekFormat: (year: number, week: number) => `Woche ${week} ${year}`,
15
+ startWeek: 'Startwoche',
16
+ endWeek: 'Endwoche',
17
+ startMonth: 'Startmonat',
18
+ endMonth: 'Endmonat',
19
+ monthFormat: 'YYYY-MM'
20
+ },
21
+ calendarView: {
22
+ startTime: 'Startzeit',
23
+ endTime: 'Endzeit',
24
+ weeks: {
25
+ sun: 'So',
26
+ mon: 'Mo',
27
+ tue: 'Di',
28
+ wed: 'Mi',
29
+ thu: 'Do',
30
+ fri: 'Fr',
31
+ sat: 'Sa'
32
+ },
33
+ rangePrompt: (maxRange: number) => `Die Anzahl der ausgewählte Tage darf ${maxRange} Tage nicht überschreiten`,
34
+ rangePromptWeek: (maxRange: number) => `Die Anzahl der ausgewählte Wochen darf ${maxRange} Wochen nicht überschreiten`,
35
+ rangePromptMonth: (maxRange: number) => `Die Anzahl der ausgewählte Monate darf ${maxRange} Monate nicht überschreiten`,
36
+ monthTitle: 'YYYY-MM',
37
+ yearTitle: 'YYYY',
38
+ month: 'MM',
39
+ hour: (value: number) => `${value} Stunde`,
40
+ minute: (value: number) => `${value} Minute`,
41
+ second: (value: number) => `${value} Sekunde`
42
+ },
43
+ datetimePicker: {
44
+ start: 'Von',
45
+ end: 'Bis',
46
+ to: 'bis',
47
+ placeholder: 'Wählen Sie',
48
+ confirm: 'Bestätigen',
49
+ cancel: 'Abbrechen'
50
+ },
51
+ collapse: {
52
+ expand: 'Expandieren',
53
+ retract: 'Falten'
54
+ },
55
+ colPicker: {
56
+ title: 'Wählen',
57
+ placeholder: 'Wählen',
58
+ select: 'Wählen'
59
+ },
60
+ loadmore: {
61
+ loading: 'Laden...',
62
+ finished: 'Das Laden ist abgeschlossen',
63
+ error: 'Laden fehlgeschlagen...',
64
+ retry: 'Aktualisieren'
65
+ },
66
+ imgCropper: {
67
+ confirm: 'OK',
68
+ cancel: 'Stornieren'
69
+ },
70
+ messageBox: {
71
+ inputPlaceholder: 'Bitte geben Sie Informationen ein',
72
+ confirm: 'OK',
73
+ cancel: 'Stornieren',
74
+ inputNoValidate: 'Bitte geben Sie gültige Informationen ein'
75
+ },
76
+ numberKeyboard: {
77
+ confirm: 'OK'
78
+ },
79
+ pagination: {
80
+ prev: 'Vorherige',
81
+ next: 'Nächste',
82
+ page: (value: number) => `Seite: ${value}`,
83
+ total: (total: number) => `Gesamt: ${total}`,
84
+ size: (size: number) => `${size}/Seite`
85
+ },
86
+ picker: {
87
+ cancel: 'Stornieren',
88
+ done: 'OK',
89
+ placeholder: 'Wählen'
90
+ },
91
+ search: {
92
+ search: 'Suchen',
93
+ cancel: 'Stornieren'
94
+ },
95
+ steps: {
96
+ wait: 'Nicht gestartet',
97
+ finished: 'Abgelaufen',
98
+ process: 'Im Gange',
99
+ failed: 'Fehlgeschlagen'
100
+ },
101
+ tabs: {
102
+ all: 'Alle'
103
+ },
104
+ upload: {
105
+ error: 'Hochladen fehlgeschlagen'
106
+ },
107
+ input: {
108
+ placeholder: 'Bitte geben Sie Informationen ein...'
109
+ },
110
+ selectPicker: {
111
+ title: 'Auswählen',
112
+ placeholder: 'Wählen Sie',
113
+ select: 'Auswählen',
114
+ confirm: 'Bestätigen',
115
+ filterPlaceholder: 'Suchen'
116
+ },
117
+ tag: {
118
+ placeholder: 'Eingeben',
119
+ add: 'Tag hinzufügen'
120
+ },
121
+ textarea: {
122
+ placeholder: 'Bitte geben Sie Informationen ein...'
123
+ },
124
+ tableCol: {
125
+ indexLabel: 'Index'
126
+ },
127
+ signature: {
128
+ confirmText: 'Bestätigen',
129
+ clearText: 'Löschen',
130
+ revokeText: 'Rückgängig machen',
131
+ restoreText: 'Wiederherstellen'
132
+ }
133
+ }