@tplc/wot 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/components/composables/useParent.ts +1 -1
  3. package/components/wd-table/types.ts +1 -1
  4. package/components/wd-table-col/wd-table-col.vue +1 -1
  5. package/global.d.ts +91 -102
  6. package/package.json +7 -1
  7. package/tsconfig.dts.json +9 -0
  8. package/types/components/common/AbortablePromise.d.ts +8 -0
  9. package/types/components/common/base64.d.ts +1 -0
  10. package/types/components/common/canvasHelper.d.ts +6 -0
  11. package/types/components/common/clickoutside.d.ts +4 -0
  12. package/types/components/common/dayjs.d.ts +26 -0
  13. package/types/components/common/props.d.ts +47 -0
  14. package/types/components/common/util.d.ts +263 -0
  15. package/types/components/composables/useCell.d.ts +3 -0
  16. package/types/components/composables/useChildren.d.ts +9 -0
  17. package/types/components/composables/useCountDown.d.ts +20 -0
  18. package/types/components/composables/useLockScroll.d.ts +5 -0
  19. package/types/components/composables/useParent.d.ts +15 -0
  20. package/types/components/composables/usePopover.d.ts +9 -0
  21. package/types/components/composables/useQueue.d.ts +13 -0
  22. package/types/components/composables/useRaf.d.ts +6 -0
  23. package/types/components/composables/useTouch.d.ts +11 -0
  24. package/types/components/composables/useTranslate.d.ts +3 -0
  25. package/types/components/wd-action-sheet/types.d.ts +145 -0
  26. package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +145 -0
  27. package/types/components/wd-backtop/types.d.ts +66 -0
  28. package/types/components/wd-backtop/wd-backtop.vue.d.ts +101 -0
  29. package/types/components/wd-badge/types.d.ts +53 -0
  30. package/types/components/wd-badge/wd-badge.vue.d.ts +71 -0
  31. package/types/components/wd-button/types.d.ts +125 -0
  32. package/types/components/wd-button/wd-button.vue.d.ts +157 -0
  33. package/types/components/wd-calendar/types.d.ts +283 -0
  34. package/types/components/wd-calendar/wd-calendar.vue.d.ts +324 -0
  35. package/types/components/wd-calendar-view/month/month.vue.d.ts +79 -0
  36. package/types/components/wd-calendar-view/month/types.d.ts +38 -0
  37. package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +113 -0
  38. package/types/components/wd-calendar-view/monthPanel/types.d.ts +70 -0
  39. package/types/components/wd-calendar-view/types.d.ts +131 -0
  40. package/types/components/wd-calendar-view/utils.d.ts +121 -0
  41. package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +141 -0
  42. package/types/components/wd-calendar-view/year/types.d.ts +34 -0
  43. package/types/components/wd-calendar-view/year/year.vue.d.ts +71 -0
  44. package/types/components/wd-calendar-view/yearPanel/types.d.ts +53 -0
  45. package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +81 -0
  46. package/types/components/wd-card/types.d.ts +42 -0
  47. package/types/components/wd-card/wd-card.vue.d.ts +63 -0
  48. package/types/components/wd-cell/types.d.ts +129 -0
  49. package/types/components/wd-cell/wd-cell.vue.d.ts +163 -0
  50. package/types/components/wd-cell-group/types.d.ts +40 -0
  51. package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +54 -0
  52. package/types/components/wd-checkbox/types.d.ts +75 -0
  53. package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +106 -0
  54. package/types/components/wd-checkbox-group/types.d.ts +78 -0
  55. package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +103 -0
  56. package/types/components/wd-circle/types.d.ts +77 -0
  57. package/types/components/wd-circle/wd-circle.vue.d.ts +106 -0
  58. package/types/components/wd-col/types.d.ts +26 -0
  59. package/types/components/wd-col/wd-col.vue.d.ts +48 -0
  60. package/types/components/wd-col-picker/types.d.ts +226 -0
  61. package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +269 -0
  62. package/types/components/wd-collapse/types.d.ts +70 -0
  63. package/types/components/wd-collapse/wd-collapse.vue.d.ts +92 -0
  64. package/types/components/wd-collapse-item/types.d.ts +46 -0
  65. package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +65 -0
  66. package/types/components/wd-config-provider/types.d.ts +874 -0
  67. package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +48 -0
  68. package/types/components/wd-count-down/types.d.ts +55 -0
  69. package/types/components/wd-count-down/utils.d.ts +8 -0
  70. package/types/components/wd-count-down/wd-count-down.vue.d.ts +77 -0
  71. package/types/components/wd-count-to/types.d.ts +125 -0
  72. package/types/components/wd-count-to/wd-count-to.vue.d.ts +154 -0
  73. package/types/components/wd-curtain/types.d.ts +53 -0
  74. package/types/components/wd-curtain/wd-curtain.vue.d.ts +91 -0
  75. package/types/components/wd-datetime-picker/types.d.ts +297 -0
  76. package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +354 -0
  77. package/types/components/wd-datetime-picker-view/types.d.ts +148 -0
  78. package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +184 -0
  79. package/types/components/wd-divider/types.d.ts +19 -0
  80. package/types/components/wd-divider/wd-divider.vue.d.ts +39 -0
  81. package/types/components/wd-drop-menu/types.d.ts +54 -0
  82. package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +75 -0
  83. package/types/components/wd-drop-menu-item/types.d.ts +106 -0
  84. package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +145 -0
  85. package/types/components/wd-fab/types.d.ts +88 -0
  86. package/types/components/wd-fab/wd-fab.vue.d.ts +127 -0
  87. package/types/components/wd-form/types.d.ts +79 -0
  88. package/types/components/wd-form/wd-form.vue.d.ts +72 -0
  89. package/types/components/wd-form-item/types.d.ts +32 -0
  90. package/types/components/wd-form-item/wd-form-item.vue.d.ts +73 -0
  91. package/types/components/wd-gap/types.d.ts +31 -0
  92. package/types/components/wd-gap/wd-gap.vue.d.ts +50 -0
  93. package/types/components/wd-grid/types.d.ts +59 -0
  94. package/types/components/wd-grid/wd-grid.vue.d.ts +70 -0
  95. package/types/components/wd-grid-item/types.d.ts +101 -0
  96. package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +134 -0
  97. package/types/components/wd-icon/types.d.ts +32 -0
  98. package/types/components/wd-icon/wd-icon.vue.d.ts +50 -0
  99. package/types/components/wd-img/types.d.ts +59 -0
  100. package/types/components/wd-img/wd-img.vue.d.ts +92 -0
  101. package/types/components/wd-img-cropper/types.d.ts +101 -0
  102. package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +124 -0
  103. package/types/components/wd-index-anchor/type.d.ts +16 -0
  104. package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +40 -0
  105. package/types/components/wd-index-bar/type.d.ts +26 -0
  106. package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +23 -0
  107. package/types/components/wd-input/types.d.ts +271 -0
  108. package/types/components/wd-input/wd-input.vue.d.ts +369 -0
  109. package/types/components/wd-input-number/types.d.ts +108 -0
  110. package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -0
  111. package/types/components/wd-loading/types.d.ts +34 -0
  112. package/types/components/wd-loading/wd-loading.vue.d.ts +50 -0
  113. package/types/components/wd-loadmore/types.d.ts +31 -0
  114. package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +43 -0
  115. package/types/components/wd-message-box/index.d.ts +9 -0
  116. package/types/components/wd-message-box/types.d.ts +99 -0
  117. package/types/components/wd-message-box/wd-message-box.vue.d.ts +32 -0
  118. package/types/components/wd-navbar/types.d.ts +80 -0
  119. package/types/components/wd-navbar/wd-navbar.vue.d.ts +117 -0
  120. package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +8 -0
  121. package/types/components/wd-notice-bar/types.d.ts +81 -0
  122. package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +118 -0
  123. package/types/components/wd-notify/index.d.ts +8 -0
  124. package/types/components/wd-notify/types.d.ts +87 -0
  125. package/types/components/wd-notify/wd-notify.vue.d.ts +105 -0
  126. package/types/components/wd-number-keyboard/key/index.vue.d.ts +54 -0
  127. package/types/components/wd-number-keyboard/key/types.d.ts +23 -0
  128. package/types/components/wd-number-keyboard/types.d.ts +118 -0
  129. package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +158 -0
  130. package/types/components/wd-overlay/types.d.ts +39 -0
  131. package/types/components/wd-overlay/wd-overlay.vue.d.ts +70 -0
  132. package/types/components/wd-pagination/types.d.ts +67 -0
  133. package/types/components/wd-pagination/wd-pagination.vue.d.ts +95 -0
  134. package/types/components/wd-password-input/types.d.ts +59 -0
  135. package/types/components/wd-password-input/wd-password-input.vue.d.ts +90 -0
  136. package/types/components/wd-picker/types.d.ts +234 -0
  137. package/types/components/wd-picker/wd-picker.vue.d.ts +276 -0
  138. package/types/components/wd-picker-view/types.d.ts +100 -0
  139. package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +119 -0
  140. package/types/components/wd-popover/types.d.ts +86 -0
  141. package/types/components/wd-popover/wd-popover.vue.d.ts +138 -0
  142. package/types/components/wd-popup/types.d.ts +96 -0
  143. package/types/components/wd-popup/wd-popup.vue.d.ts +160 -0
  144. package/types/components/wd-progress/types.d.ts +44 -0
  145. package/types/components/wd-progress/wd-progress.vue.d.ts +61 -0
  146. package/types/components/wd-radio/types.d.ts +40 -0
  147. package/types/components/wd-radio/wd-radio.vue.d.ts +73 -0
  148. package/types/components/wd-radio-group/types.d.ts +54 -0
  149. package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +85 -0
  150. package/types/components/wd-rate/types.d.ts +110 -0
  151. package/types/components/wd-rate/wd-rate.vue.d.ts +128 -0
  152. package/types/components/wd-resize/types.d.ts +14 -0
  153. package/types/components/wd-resize/wd-resize.vue.d.ts +43 -0
  154. package/types/components/wd-row/types.d.ts +24 -0
  155. package/types/components/wd-row/wd-row.vue.d.ts +39 -0
  156. package/types/components/wd-search/types.d.ts +104 -0
  157. package/types/components/wd-search/wd-search.vue.d.ts +132 -0
  158. package/types/components/wd-segmented/types.d.ts +69 -0
  159. package/types/components/wd-segmented/wd-segmented.vue.d.ts +87 -0
  160. package/types/components/wd-select-picker/types.d.ts +180 -0
  161. package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +316 -0
  162. package/types/components/wd-sidebar/types.d.ts +24 -0
  163. package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +45 -0
  164. package/types/components/wd-sidebar-item/types.d.ts +44 -0
  165. package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +80 -0
  166. package/types/components/wd-skeleton/types.d.ts +72 -0
  167. package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +68 -0
  168. package/types/components/wd-slider/types.d.ts +117 -0
  169. package/types/components/wd-slider/wd-slider.vue.d.ts +134 -0
  170. package/types/components/wd-sort-button/types.d.ts +58 -0
  171. package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +74 -0
  172. package/types/components/wd-status-tip/types.d.ts +60 -0
  173. package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +59 -0
  174. package/types/components/wd-step/types.d.ts +33 -0
  175. package/types/components/wd-step/wd-step.vue.d.ts +40 -0
  176. package/types/components/wd-steps/types.d.ts +59 -0
  177. package/types/components/wd-steps/wd-steps.vue.d.ts +68 -0
  178. package/types/components/wd-sticky/types.d.ts +24 -0
  179. package/types/components/wd-sticky/wd-sticky.vue.d.ts +59 -0
  180. package/types/components/wd-sticky-box/types.d.ts +9 -0
  181. package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +30 -0
  182. package/types/components/wd-swipe-action/types.d.ts +42 -0
  183. package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +61 -0
  184. package/types/components/wd-swiper/types.d.ts +213 -0
  185. package/types/components/wd-swiper/wd-swiper.vue.d.ts +236 -0
  186. package/types/components/wd-swiper-nav/types.d.ts +66 -0
  187. package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +90 -0
  188. package/types/components/wd-switch/types.d.ts +65 -0
  189. package/types/components/wd-switch/wd-switch.vue.d.ts +82 -0
  190. package/types/components/wd-tab/types.d.ts +27 -0
  191. package/types/components/wd-tab/wd-tab.vue.d.ts +46 -0
  192. package/types/components/wd-tabbar/types.d.ts +87 -0
  193. package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +103 -0
  194. package/types/components/wd-tabbar-item/types.d.ts +53 -0
  195. package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +61 -0
  196. package/types/components/wd-table/types.d.ts +95 -0
  197. package/types/components/wd-table/wd-table.vue.d.ts +138 -0
  198. package/types/components/wd-table-col/types.d.ts +58 -0
  199. package/types/components/wd-table-col/wd-table-col.vue.d.ts +70 -0
  200. package/types/components/wd-tabs/types.d.ts +96 -0
  201. package/types/components/wd-tabs/wd-tabs.vue.d.ts +139 -0
  202. package/types/components/wd-tag/types.d.ts +104 -0
  203. package/types/components/wd-tag/wd-tag.vue.d.ts +130 -0
  204. package/types/components/wd-text/types.d.ts +128 -0
  205. package/types/components/wd-text/wd-text.vue.d.ts +131 -0
  206. package/types/components/wd-textarea/types.d.ts +363 -0
  207. package/types/components/wd-textarea/wd-textarea.vue.d.ts +390 -0
  208. package/types/components/wd-toast/index.d.ts +15 -0
  209. package/types/components/wd-toast/types.d.ts +62 -0
  210. package/types/components/wd-toast/wd-toast.vue.d.ts +32 -0
  211. package/types/components/wd-tooltip/types.d.ts +106 -0
  212. package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +133 -0
  213. package/types/components/wd-transition/types.d.ts +98 -0
  214. package/types/components/wd-transition/wd-transition.vue.d.ts +136 -0
  215. package/types/components/wd-upload/types.d.ts +396 -0
  216. package/types/components/wd-upload/utils.d.ts +2 -0
  217. package/types/components/wd-upload/wd-upload.vue.d.ts +283 -0
  218. package/types/components/wd-video-preview/types.d.ts +22 -0
  219. package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +27 -0
  220. package/types/components/wd-watermark/types.d.ts +131 -0
  221. package/types/components/wd-watermark/wd-watermark.vue.d.ts +176 -0
  222. package/types/locale/index.d.ts +9 -0
  223. package/types/locale/lang/zh-CN.d.ts +128 -0
  224. package/components/wot-design-uni/wot-design-uni.vue +0 -14
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## [0.1.0](http://gitlab888.30jia.com.cn/frontend-material/zero-code-pro/compare/v1.1.0...v0.1.0) (2024-08-25)
@@ -35,7 +35,7 @@ export function useParent<T>(key: InjectionKey<ParentProvide<T>>) {
35
35
  }
36
36
 
37
37
  return {
38
- parent: null,
38
+ parent: null as any,
39
39
  index: ref(-1),
40
40
  }
41
41
  }
@@ -7,7 +7,7 @@
7
7
  * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\components\wd-table\types.ts
8
8
  * 记得注释
9
9
  */
10
- import type { CSSProperties, ExtractPropTypes } from 'vue'
10
+ import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'
11
11
  import {
12
12
  baseProps,
13
13
  makeBooleanProp,
@@ -116,7 +116,7 @@ const column = computed(() => {
116
116
  return []
117
117
  }
118
118
 
119
- const column: any[] = table.props.data.map((item) => {
119
+ const column: any[] = table.props.data.map((item: any) => {
120
120
  return item[props.prop]
121
121
  })
122
122
  return column
package/global.d.ts CHANGED
@@ -1,107 +1,96 @@
1
- /*
2
- * @Author: weisheng
3
- * @Date: 2023-09-25 17:28:12
4
- * @LastEditTime: 2024-08-09 13:39:14
5
- * @LastEditors: weisheng
6
- * @Description:
7
- * @FilePath: \wot-design-uni\src\uni_modules\wot-design-uni\global.d.ts
8
- * 记得注释
9
- */
10
- import '@vue/runtime-core'
11
-
12
- declare module '@vue/runtime-core' {
1
+ declare module 'vue' {
13
2
  // Helper for Volar
14
3
  export interface GlobalComponents {
15
- WdActionSheet: (typeof import('./components/wd-action-sheet/wd-action-sheet.vue'))['default']
16
- WdBadge: (typeof import('./components/wd-badge/wd-badge.vue'))['default']
17
- WdButton: (typeof import('./components/wd-button/wd-button.vue'))['default']
18
- WdCalendar: (typeof import('./components/wd-calendar/wd-calendar.vue'))['default']
19
- WdCalendarView: (typeof import('./components/wd-calendar-view/wd-calendar-view.vue'))['default']
20
- WdCard: (typeof import('./components/wd-card/wd-card.vue'))['default']
21
- WdCell: (typeof import('./components/wd-cell/wd-cell.vue'))['default']
22
- WdCellGroup: (typeof import('./components/wd-cell-group/wd-cell-group.vue'))['default']
23
- WdCheckbox: (typeof import('./components/wd-checkbox/wd-checkbox.vue'))['default']
24
- WdCheckboxGroup: (typeof import('./components/wd-checkbox-group/wd-checkbox-group.vue'))['default']
25
- WdCol: (typeof import('./components/wd-col/wd-col.vue'))['default']
26
- WdColPicker: (typeof import('./components/wd-col-picker/wd-col-picker.vue'))['default']
27
- WdCollapse: (typeof import('./components/wd-collapse/wd-collapse.vue'))['default']
28
- WdCollapseItem: (typeof import('./components/wd-collapse-item/wd-collapse-item.vue'))['default']
29
- WdConfigProvider: (typeof import('./components/wd-config-provider/wd-config-provider.vue'))['default']
30
- WdCurtain: (typeof import('./components/wd-curtain/wd-curtain.vue'))['default']
31
- WdDatetimePicker: (typeof import('./components/wd-datetime-picker/wd-datetime-picker.vue'))['default']
32
- WdDatetimePickerView: (typeof import('./components/wd-datetime-picker-view/wd-datetime-picker-view.vue'))['default']
33
- WdDivider: (typeof import('./components/wd-divider/wd-divider.vue'))['default']
34
- WdDropMenu: (typeof import('./components/wd-drop-menu/wd-drop-menu.vue'))['default']
35
- WdDropMenuItem: (typeof import('./components/wd-drop-menu-item/wd-drop-menu-item.vue'))['default']
36
- WdGrid: (typeof import('./components/wd-grid/wd-grid.vue'))['default']
37
- WdGridItem: (typeof import('./components/wd-grid-item/wd-grid-item.vue'))['default']
38
- WdIcon: (typeof import('./components/wd-icon/wd-icon.vue'))['default']
39
- WdImg: (typeof import('./components/wd-img/wd-img.vue'))['default']
40
- WdImgCropper: (typeof import('./components/wd-img-cropper/wd-img-cropper.vue'))['default']
41
- WdInput: (typeof import('./components/wd-input/wd-input.vue'))['default']
42
- WdInputNumber: (typeof import('./components/wd-input-number/wd-input-number.vue'))['default']
43
- WdLoading: (typeof import('./components/wd-loading/wd-loading.vue'))['default']
44
- WdLoadmore: (typeof import('./components/wd-loadmore/wd-loadmore.vue'))['default']
45
- WdMessageBox: (typeof import('./components/wd-message-box/wd-message-box.vue'))['default']
46
- WdOverlay: (typeof import('./components/wd-overlay/wd-overlay.vue'))['default']
47
- WdNoticeBar: (typeof import('./components/wd-notice-bar/wd-notice-bar.vue'))['default']
48
- WdPagination: (typeof import('./components/wd-pagination/wd-pagination.vue'))['default']
49
- WdPicker: (typeof import('./components/wd-picker/wd-picker.vue'))['default']
50
- WdPickerView: (typeof import('./components/wd-picker-view/wd-picker-view.vue'))['default']
51
- WdPopover: (typeof import('./components/wd-popover/wd-popover.vue'))['default']
52
- WdPopup: (typeof import('./components/wd-popup/wd-popup.vue'))['default']
53
- WdProgress: (typeof import('./components/wd-progress/wd-progress.vue'))['default']
54
- WdRadio: (typeof import('./components/wd-radio/wd-radio.vue'))['default']
55
- WdRadioGroup: (typeof import('./components/wd-radio-group/wd-radio-group.vue'))['default']
56
- WdRate: (typeof import('./components/wd-rate/wd-rate.vue'))['default']
57
- WdResize: (typeof import('./components/wd-resize/wd-resize.vue'))['default']
58
- WdRow: (typeof import('./components/wd-row/wd-row.vue'))['default']
59
- WdSearch: (typeof import('./components/wd-search/wd-search.vue'))['default']
60
- WdSelectPicker: (typeof import('./components/wd-select-picker/wd-select-picker.vue'))['default']
61
- WdSlider: (typeof import('./components/wd-slider/wd-slider.vue'))['default']
62
- WdSortButton: (typeof import('./components/wd-sort-button/wd-sort-button.vue'))['default']
63
- WdStatusTip: (typeof import('./components/wd-status-tip/wd-status-tip.vue'))['default']
64
- WdStep: (typeof import('./components/wd-step/wd-step.vue'))['default']
65
- WdSteps: (typeof import('./components/wd-steps/wd-steps.vue'))['default']
66
- WdSticky: (typeof import('./components/wd-sticky/wd-sticky.vue'))['default']
67
- WdStickyBox: (typeof import('./components/wd-sticky-box/wd-sticky-box.vue'))['default']
68
- WdSwipeAction: (typeof import('./components/wd-swipe-action/wd-swipe-action.vue'))['default']
69
- WdSwitch: (typeof import('./components/wd-switch/wd-switch.vue'))['default']
70
- WdTab: (typeof import('./components/wd-tab/wd-tab.vue'))['default']
71
- WdTabs: (typeof import('./components/wd-tabs/wd-tabs.vue'))['default']
72
- WdTag: (typeof import('./components/wd-tag/wd-tag.vue'))['default']
73
- WdToast: (typeof import('./components/wd-toast/wd-toast.vue'))['default']
74
- WdTooltip: (typeof import('./components/wd-tooltip/wd-tooltip.vue'))['default']
75
- WdTransition: (typeof import('./components/wd-transition/wd-transition.vue'))['default']
76
- WdUpload: (typeof import('./components/wd-upload/wd-upload.vue'))['default']
77
- WdNotify: (typeof import('./components/wd-notify/wd-notify.vue'))['default']
78
- WdWatermark: (typeof import('./components/wd-watermark/wd-watermark.vue'))['default']
79
- WdCircle: (typeof import('./components/wd-circle/wd-circle.vue'))['default']
80
- WdSwiper: (typeof import('./components/wd-swiper/wd-swiper.vue'))['default']
81
- WdSwiperNav: (typeof import('./components/wd-swiper-nav/wd-swiper-nav.vue'))['default']
82
- WdSegmented: (typeof import('./components/wd-segmented/wd-segmented.vue'))['default']
83
- WdTabbar: (typeof import('./components/wd-tabbar/wd-tabbar.vue'))['default']
84
- WdTabbarItem: (typeof import('./components/wd-tabbar-item/wd-tabbar-item.vue'))['default']
85
- WdNavbar: (typeof import('./components/wd-navbar/wd-navbar.vue'))['default']
86
- WdNavbarCapsule: (typeof import('./components/wd-navbar-capsule/wd-navbar-capsule.vue'))['default']
87
- WdTable: (typeof import('./components/wd-table/wd-table.vue'))['default']
88
- WdTableCol: (typeof import('./components/wd-table-col/wd-table-col.vue'))['default']
89
- WdSidebar: (typeof import('./components/wd-sidebar/wd-sidebar.vue'))['default']
90
- WdSidebarItem: (typeof import('./components/wd-sidebar-item/wd-sidebar-item.vue'))['default']
91
- WdFab: (typeof import('./components/wd-fab/wd-fab.vue'))['default']
92
- WdCountDown: (typeof import('./components/wd-count-down/wd-count-down.vue'))['default']
93
- WdNumberKeyboard: (typeof import('./components/wd-number-keyboard/wd-number-keyboard.vue'))['default']
94
- WdGap: (typeof import('./components/wd-gap/wd-gap.vue'))['default']
95
- WdPasswordInput: (typeof import('./components/wd-password-input/wd-password-input.vue'))['default']
96
- WdForm: (typeof import('./components/wd-form/wd-form.vue'))['default']
97
- WdTextarea: (typeof import('./components/wd-textarea/wd-textarea.vue'))['default']
98
- WdVideoPreview: (typeof import('./components/wd-video-preview/wd-video-preview.vue'))['default']
99
- WdBacktop: (typeof import('./components/wd-backtop/wd-backtop.vue'))['default']
100
- WdSkeleton: (typeof import('./components/wd-skeleton/wd-skeleton.vue'))['default']
101
- WdIndexBar: (typeof import('./components/wd-index-bar/wd-index-bar.vue'))['default']
102
- WdIndexAnchor: (typeof import('./components/wd-index-anchor/wd-index-anchor.vue'))['default']
103
- WdText: (typeof import('./components/wd-text/wd-text.vue'))['default']
104
- WdCountTo: (typeof import('./components/wd-count-to/wd-count-to.vue'))['default']
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-ioading/wd-ioading.vue'))['default']
33
+ 'wd-loadmore': (typeof import('./types/components/wd-ioadmore/wd-ioadmore.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']
105
94
  }
106
95
  }
107
96
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.0.1",
4
+ "version": "0.1.1",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -16,5 +16,11 @@
16
16
  "main": "index.ts",
17
17
  "peerDependencies": {
18
18
  "vue": ">=3.2.47"
19
+ },
20
+ "scripts": {
21
+ "dts": "vue-tsc --project ./tsconfig.dts.json ",
22
+ "release-major": "standard-version --release-as major ",
23
+ "release-minor": "standard-version --release-as minor",
24
+ "release-patch": "standard-version --release-as patch "
19
25
  }
20
26
  }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationDir": "./types",
6
+ "emitDeclarationOnly": true
7
+ },
8
+ "include": ["components/**/*.vue"]
9
+ }
@@ -0,0 +1,8 @@
1
+ export declare class AbortablePromise<T> {
2
+ promise: Promise<T>;
3
+ private _reject;
4
+ constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void);
5
+ abort(error?: any): void;
6
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
7
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
8
+ }
@@ -0,0 +1 @@
1
+ export default function encode(src: string, rfc4648?: boolean): string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 适配 canvas 2d 上下文
3
+ * @param ctx canvas 2d 上下文
4
+ * @returns
5
+ */
6
+ export declare function canvas2dAdapter(ctx: CanvasRenderingContext2D): UniApp.CanvasContext;
@@ -0,0 +1,4 @@
1
+ export declare function pushToQueue(comp: any): void;
2
+ export declare function removeFromQueue(comp: any): void;
3
+ export declare function closeOther(comp: any): void;
4
+ export declare function closeOutside(): void;
@@ -0,0 +1,26 @@
1
+ declare class Dayjs {
2
+ utc: boolean;
3
+ date: Date;
4
+ timeZone: number;
5
+ timeZoneString: any;
6
+ mYear: any;
7
+ mMonth: any;
8
+ mDay: any;
9
+ mWeek: any;
10
+ mHour: any;
11
+ mMinute: any;
12
+ mSecond: any;
13
+ constructor(dateStr?: string | number | Date);
14
+ parseConfig(dateStr?: string | number | Date): string | number | Date;
15
+ padNumber(num: string, length: number, padChar: string): string;
16
+ year(): any;
17
+ month(): any;
18
+ unix(): number;
19
+ toString(): string;
20
+ startOf(unit: string): Dayjs;
21
+ add(amount: number, unit: string): Dayjs;
22
+ subtract(amount: number, unit: string): Dayjs;
23
+ format(formatStr?: string): string;
24
+ }
25
+ export declare function dayjs(dateStr?: string | number | Date): Dayjs;
26
+ export {};
@@ -0,0 +1,47 @@
1
+ import type { PropType } from 'vue';
2
+ export declare const unknownProp: PropType<unknown>;
3
+ export declare const numericProp: (NumberConstructor | StringConstructor)[];
4
+ export declare const truthProp: {
5
+ type: BooleanConstructor;
6
+ default: true;
7
+ };
8
+ export declare const makeRequiredProp: <T>(type: T) => {
9
+ type: T;
10
+ required: true;
11
+ };
12
+ export declare const makeArrayProp: <T>() => {
13
+ type: PropType<T[]>;
14
+ default: () => never[];
15
+ };
16
+ export declare const makeBooleanProp: <T>(defaultVal: T) => {
17
+ type: BooleanConstructor;
18
+ default: T;
19
+ };
20
+ export declare const makeNumberProp: <T>(defaultVal: T) => {
21
+ type: NumberConstructor;
22
+ default: T;
23
+ };
24
+ export declare const makeNumericProp: <T>(defaultVal: T) => {
25
+ type: (NumberConstructor | StringConstructor)[];
26
+ default: T;
27
+ };
28
+ export declare const makeStringProp: <T>(defaultVal: T) => {
29
+ type: PropType<T>;
30
+ default: T;
31
+ };
32
+ export declare const baseProps: {
33
+ /**
34
+ * 自定义根节点样式
35
+ */
36
+ customStyle: {
37
+ type: PropType<string>;
38
+ default: string;
39
+ };
40
+ /**
41
+ * 自定义根节点样式类
42
+ */
43
+ customClass: {
44
+ type: PropType<string>;
45
+ default: string;
46
+ };
47
+ };