@tplc/wot 0.0.1 → 0.1.0

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 +10 -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
+ WdActionSheet: (typeof import('./types/components/wd-action-sheet/wd-action-sheet.vue'))['default']
5
+ WdBadge: (typeof import('./types/components/wd-badge/wd-badge.vue'))['default']
6
+ WdButton: (typeof import('./types/components/wd-button/wd-button.vue'))['default']
7
+ WdCalendar: (typeof import('./types/components/wd-calendar/wd-calendar.vue'))['default']
8
+ WdCalendarView: (typeof import('./types/components/wd-calendar-view/wd-calendar-view.vue'))['default']
9
+ WdCard: (typeof import('./types/components/wd-card/wd-card.vue'))['default']
10
+ WdCell: (typeof import('./types/components/wd-cell/wd-cell.vue'))['default']
11
+ WdCellGroup: (typeof import('./types/components/wd-cell-group/wd-cell-group.vue'))['default']
12
+ WdCheckbox: (typeof import('./types/components/wd-checkbox/wd-checkbox.vue'))['default']
13
+ WdCheckboxGroup: (typeof import('./types/components/wd-checkbox-group/wd-checkbox-group.vue'))['default']
14
+ WdCol: (typeof import('./types/components/wd-col/wd-col.vue'))['default']
15
+ WdColPicker: (typeof import('./types/components/wd-col-picker/wd-col-picker.vue'))['default']
16
+ WdCollapse: (typeof import('./types/components/wd-collapse/wd-collapse.vue'))['default']
17
+ WdCollapseItem: (typeof import('./types/components/wd-collapse-item/wd-collapse-item.vue'))['default']
18
+ WdConfigProvider: (typeof import('./types/components/wd-config-provider/wd-config-provider.vue'))['default']
19
+ WdCurtain: (typeof import('./types/components/wd-curtain/wd-curtain.vue'))['default']
20
+ WdDatetimePicker: (typeof import('./types/components/wd-datetime-picker/wd-datetime-picker.vue'))['default']
21
+ WdDatetimePickerView: (typeof import('./types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue'))['default']
22
+ WdDivider: (typeof import('./types/components/wd-divider/wd-divider.vue'))['default']
23
+ WdDropMenu: (typeof import('./types/components/wd-drop-menu/wd-drop-menu.vue'))['default']
24
+ WdDropMenuItem: (typeof import('./types/components/wd-drop-menu-item/wd-drop-menu-item.vue'))['default']
25
+ WdGrid: (typeof import('./types/components/wd-grid/wd-grid.vue'))['default']
26
+ WdGridItem: (typeof import('./types/components/wd-grid-item/wd-grid-item.vue'))['default']
27
+ WdIcon: (typeof import('./types/components/wd-icon/wd-icon.vue'))['default']
28
+ WdImg: (typeof import('./types/components/wd-img/wd-img.vue'))['default']
29
+ WdImgCropper: (typeof import('./types/components/wd-img-cropper/wd-img-cropper.vue'))['default']
30
+ WdInput: (typeof import('./types/components/wd-input/wd-input.vue'))['default']
31
+ WdInputNumber: (typeof import('./types/components/wd-input-number/wd-input-number.vue'))['default']
32
+ WdLoading: (typeof import('./types/components/wd-loading/wd-loading.vue'))['default']
33
+ WdLoadmore: (typeof import('./types/components/wd-loadmore/wd-loadmore.vue'))['default']
34
+ WdMessageBox: (typeof import('./types/components/wd-message-box/wd-message-box.vue'))['default']
35
+ WdOverlay: (typeof import('./types/components/wd-overlay/wd-overlay.vue'))['default']
36
+ WdNoticeBar: (typeof import('./types/components/wd-notice-bar/wd-notice-bar.vue'))['default']
37
+ WdPagination: (typeof import('./types/components/wd-pagination/wd-pagination.vue'))['default']
38
+ WdPicker: (typeof import('./types/components/wd-picker/wd-picker.vue'))['default']
39
+ WdPickerView: (typeof import('./types/components/wd-picker-view/wd-picker-view.vue'))['default']
40
+ WdPopover: (typeof import('./types/components/wd-popover/wd-popover.vue'))['default']
41
+ WdPopup: (typeof import('./types/components/wd-popup/wd-popup.vue'))['default']
42
+ WdProgress: (typeof import('./types/components/wd-progress/wd-progress.vue'))['default']
43
+ WdRadio: (typeof import('./types/components/wd-radio/wd-radio.vue'))['default']
44
+ WdRadioGroup: (typeof import('./types/components/wd-radio-group/wd-radio-group.vue'))['default']
45
+ WdRate: (typeof import('./types/components/wd-rate/wd-rate.vue'))['default']
46
+ WdResize: (typeof import('./types/components/wd-resize/wd-resize.vue'))['default']
47
+ WdRow: (typeof import('./types/components/wd-row/wd-row.vue'))['default']
48
+ WdSearch: (typeof import('./types/components/wd-search/wd-search.vue'))['default']
49
+ WdSelectPicker: (typeof import('./types/components/wd-select-picker/wd-select-picker.vue'))['default']
50
+ WdSlider: (typeof import('./types/components/wd-slider/wd-slider.vue'))['default']
51
+ WdSortButton: (typeof import('./types/components/wd-sort-button/wd-sort-button.vue'))['default']
52
+ WdStatusTip: (typeof import('./types/components/wd-status-tip/wd-status-tip.vue'))['default']
53
+ WdStep: (typeof import('./types/components/wd-step/wd-step.vue'))['default']
54
+ WdSteps: (typeof import('./types/components/wd-steps/wd-steps.vue'))['default']
55
+ WdSticky: (typeof import('./types/components/wd-sticky/wd-sticky.vue'))['default']
56
+ WdStickyBox: (typeof import('./types/components/wd-sticky-box/wd-sticky-box.vue'))['default']
57
+ WdSwipeAction: (typeof import('./types/components/wd-swipe-action/wd-swipe-action.vue'))['default']
58
+ WdSwitch: (typeof import('./types/components/wd-switch/wd-switch.vue'))['default']
59
+ WdTab: (typeof import('./types/components/wd-tab/wd-tab.vue'))['default']
60
+ WdTabs: (typeof import('./types/components/wd-tabs/wd-tabs.vue'))['default']
61
+ WdTag: (typeof import('./types/components/wd-tag/wd-tag.vue'))['default']
62
+ WdToast: (typeof import('./types/components/wd-toast/wd-toast.vue'))['default']
63
+ WdTooltip: (typeof import('./types/components/wd-tooltip/wd-tooltip.vue'))['default']
64
+ WdTransition: (typeof import('./types/components/wd-transition/wd-transition.vue'))['default']
65
+ WdUpload: (typeof import('./types/components/wd-upload/wd-upload.vue'))['default']
66
+ WdNotify: (typeof import('./types/components/wd-notify/wd-notify.vue'))['default']
67
+ WdWatermark: (typeof import('./types/components/wd-watermark/wd-watermark.vue'))['default']
68
+ WdCircle: (typeof import('./types/components/wd-circle/wd-circle.vue'))['default']
69
+ WdSwiper: (typeof import('./types/components/wd-swiper/wd-swiper.vue'))['default']
70
+ WdSwiperNav: (typeof import('./types/components/wd-swiper-nav/wd-swiper-nav.vue'))['default']
71
+ WdSegmented: (typeof import('./types/components/wd-segmented/wd-segmented.vue'))['default']
72
+ WdTabbar: (typeof import('./types/components/wd-tabbar/wd-tabbar.vue'))['default']
73
+ WdTabbarItem: (typeof import('./types/components/wd-tabbar-item/wd-tabbar-item.vue'))['default']
74
+ WdNavbar: (typeof import('./types/components/wd-navbar/wd-navbar.vue'))['default']
75
+ WdNavbarCapsule: (typeof import('./types/components/wd-navbar-capsule/wd-navbar-capsule.vue'))['default']
76
+ WdTable: (typeof import('./types/components/wd-table/wd-table.vue'))['default']
77
+ WdTableCol: (typeof import('./types/components/wd-table-col/wd-table-col.vue'))['default']
78
+ WdSidebar: (typeof import('./types/components/wd-sidebar/wd-sidebar.vue'))['default']
79
+ WdSidebarItem: (typeof import('./types/components/wd-sidebar-item/wd-sidebar-item.vue'))['default']
80
+ WdFab: (typeof import('./types/components/wd-fab/wd-fab.vue'))['default']
81
+ WdCountDown: (typeof import('./types/components/wd-count-down/wd-count-down.vue'))['default']
82
+ WdNumberKeyboard: (typeof import('./types/components/wd-number-keyboard/wd-number-keyboard.vue'))['default']
83
+ WdGap: (typeof import('./types/components/wd-gap/wd-gap.vue'))['default']
84
+ WdPasswordInput: (typeof import('./types/components/wd-password-input/wd-password-input.vue'))['default']
85
+ WdForm: (typeof import('./types/components/wd-form/wd-form.vue'))['default']
86
+ WdTextarea: (typeof import('./types/components/wd-textarea/wd-textarea.vue'))['default']
87
+ WdVideoPreview: (typeof import('./types/components/wd-video-preview/wd-video-preview.vue'))['default']
88
+ WdBacktop: (typeof import('./types/components/wd-backtop/wd-backtop.vue'))['default']
89
+ WdSkeleton: (typeof import('./types/components/wd-skeleton/wd-skeleton.vue'))['default']
90
+ WdIndexBar: (typeof import('./types/components/wd-index-bar/wd-index-bar.vue'))['default']
91
+ WdIndexAnchor: (typeof import('./types/components/wd-index-anchor/wd-index-anchor.vue'))['default']
92
+ WdText: (typeof import('./types/components/wd-text/wd-text.vue'))['default']
93
+ WdCountTo: (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.0",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -16,5 +16,14 @@
16
16
  "main": "index.ts",
17
17
  "peerDependencies": {
18
18
  "vue": ">=3.2.47"
19
+ },
20
+ "devDependencies": {
21
+ "vue-tsc": "^2.0.22"
22
+ },
23
+ "scripts": {
24
+ "dts": "vue-tsc --project ./tsconfig.dts.json ",
25
+ "release-major": "standard-version --release-as major ",
26
+ "release-minor": "standard-version --release-as minor",
27
+ "release-patch": "standard-version --release-as patch "
19
28
  }
20
29
  }
@@ -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
+ };
@@ -0,0 +1,263 @@
1
+ import { AbortablePromise } from './AbortablePromise';
2
+ type NotUndefined<T> = T extends undefined ? never : T;
3
+ /**
4
+ * 生成uuid
5
+ * @returns string
6
+ */
7
+ export declare function uuid(): string;
8
+ /**
9
+ * @description 对num自动填充px
10
+ * @param {Number} num
11
+ * @return {string} num+px
12
+ */
13
+ export declare function addUnit(num: number | string): string;
14
+ /**
15
+ * @description 判断target是否对象
16
+ * @param value
17
+ * @return {boolean}
18
+ */
19
+ export declare function isObj(value: any): value is object;
20
+ /**
21
+ * 获取目标原始类型
22
+ * @param target 任意类型
23
+ * @returns {string} type 数据类型
24
+ */
25
+ export declare function getType(target: unknown): string;
26
+ /**
27
+ * @description 默认的外部格式化函数 - picker 组件
28
+ * @param items - 要格式化的数据项数组或单个数据项
29
+ * @param kv - 配置对象,包含 labelKey 作为键值
30
+ * @returns 格式化后的字符串
31
+ */
32
+ export declare const defaultDisplayFormat: (items: any[] | Record<string, any>, kv?: {
33
+ labelKey?: string;
34
+ }) => string;
35
+ /**
36
+ * @description 默认函数占位符 - pickerView组件
37
+ * @param value 值
38
+ * @return value
39
+ */
40
+ export declare const defaultFunction: <T>(value: T) => T;
41
+ /**
42
+ * @description 检查值是否不为空
43
+ * @param value 值
44
+ * @return {Boolean} 是否不为空
45
+ */
46
+ export declare const isDef: <T>(value: T) => value is NonNullable<T>;
47
+ /**
48
+ * @description 防止数字小于零
49
+ * @param {number} num
50
+ * @param {string} label 标签
51
+ */
52
+ export declare const checkNumRange: (num: number, label?: string) => void;
53
+ /**
54
+ * @description 防止 pixel 无意义
55
+ * @param {number} num
56
+ * @param {string} label 标签
57
+ */
58
+ export declare const checkPixelRange: (num: number, label?: string) => void;
59
+ /**
60
+ * 将 RGB 值转换为十六进制颜色代码。
61
+ * @param {number} r - 红色分量 (0-255)。
62
+ * @param {number} g - 绿色分量 (0-255)。
63
+ * @param {number} b - 蓝色分量 (0-255)。
64
+ * @returns {string} 十六进制颜色代码 (#RRGGBB)。
65
+ */
66
+ export declare function rgbToHex(r: number, g: number, b: number): string;
67
+ /**
68
+ * 计算渐变色的中间变量数组。
69
+ * @param {string} startColor 开始颜色
70
+ * @param {string} endColor 结束颜色
71
+ * @param {number} step 获取渲染位置,默认为中间位置
72
+ * @returns {string[]} 渐变色中间颜色变量数组
73
+ */
74
+ export declare const gradient: (startColor: string, endColor: string, step?: number) => string[];
75
+ /**
76
+ * 确保数值不超出指定范围。
77
+ * @param {number} num 要限制范围的数值
78
+ * @param {number} min 最小范围
79
+ * @param {number} max 最大范围
80
+ * @returns {number} 在指定范围内的数值
81
+ */
82
+ export declare const range: (num: number, min: number, max: number) => number;
83
+ /**
84
+ * 比较两个值是否相等。
85
+ * @param {any} value1 第一个值
86
+ * @param {any} value2 第二个值
87
+ * @returns {boolean} 如果值相等则为 true,否则为 false
88
+ */
89
+ export declare const isEqual: (value1: any, value2: any) => boolean;
90
+ /**
91
+ * 在数字前补零,使其达到指定长度。
92
+ * @param {number | string} number 要补零的数字
93
+ * @param {number} length 目标长度,默认为 2
94
+ * @returns {string} 补零后的结果
95
+ */
96
+ export declare const padZero: (number: number | string, length?: number) => string;
97
+ /** @description 全局变量id */
98
+ export declare const context: {
99
+ id: number;
100
+ };
101
+ export type RectResultType<T extends boolean> = T extends true ? UniApp.NodeInfo[] : UniApp.NodeInfo;
102
+ /**
103
+ * 获取节点信息
104
+ * @param selector 节点选择器 #id,.class
105
+ * @param all 是否返回所有 selector 对应的节点
106
+ * @param scope 作用域(支付宝小程序无效)
107
+ * @returns 节点信息或节点信息数组
108
+ */
109
+ export declare function getRect<T extends boolean>(selector: string, all: T, scope?: any): Promise<RectResultType<T>>;
110
+ /**
111
+ * 将驼峰命名转换为短横线命名。
112
+ * @param {string} word 待转换的词条
113
+ * @returns {string} 转换后的结果
114
+ */
115
+ export declare function kebabCase(word: string): string;
116
+ /**
117
+ * 将短横线链接转换为驼峰命名
118
+ * @param word 需要转换的短横线链接
119
+ * @returns 转换后的驼峰命名字符串
120
+ */
121
+ export declare function camelCase(word: string): string;
122
+ /**
123
+ * 检查给定值是否为数组。
124
+ * @param {any} value 要检查的值
125
+ * @returns {boolean} 如果是数组则返回 true,否则返回 false
126
+ */
127
+ export declare function isArray(value: any): value is Array<any>;
128
+ /**
129
+ * 检查给定值是否为函数。
130
+ * @param {any} value 要检查的值
131
+ * @returns {boolean} 如果是函数则返回 true,否则返回 false
132
+ */
133
+ export declare function isFunction<T extends Function>(value: any): value is T;
134
+ /**
135
+ * 检查给定值是否为字符串。
136
+ * @param {unknown} value 要检查的值
137
+ * @returns {value is string} 如果是字符串则返回 true,否则返回 false
138
+ */
139
+ export declare function isString(value: unknown): value is string;
140
+ /**
141
+ * 否是数值
142
+ * @param {*} value
143
+ */
144
+ export declare function isNumber(value: any): value is number;
145
+ /**
146
+ * 检查给定值是否为 Promise 对象。
147
+ * @param {unknown} value 要检查的值
148
+ * @returns {value is Promise<any>} 如果是 Promise 对象则返回 true,否则返回 false
149
+ */
150
+ export declare function isPromise(value: unknown): value is Promise<any>;
151
+ /**
152
+ * 检查给定的值是否为布尔类型
153
+ * @param value 要检查的值
154
+ * @returns 如果值为布尔类型,则返回true,否则返回false
155
+ */
156
+ export declare function isBoolean(value: any): value is boolean;
157
+ export declare function isUndefined(value: any): value is undefined;
158
+ export declare function isNotUndefined<T>(value: T): value is NotUndefined<T>;
159
+ /**
160
+ * 检查给定的值是否为奇数
161
+ * @param value 要检查的值
162
+ * @returns
163
+ */
164
+ export declare function isOdd(value: number): boolean;
165
+ /**
166
+ * 是否为base64图片
167
+ * @param {string} url
168
+ * @return
169
+ */
170
+ export declare function isBase64Image(url: string): boolean;
171
+ /**
172
+ * 将外部传入的样式格式化为可读的 CSS 样式。
173
+ * @param {object | object[]} styles 外部传入的样式对象或数组
174
+ * @returns {string} 格式化后的 CSS 样式字符串
175
+ */
176
+ export declare function objToStyle(styles: Record<string, any> | Record<string, any>[]): string;
177
+ export declare const requestAnimationFrame: (cb?: () => void) => AbortablePromise<unknown>;
178
+ /**
179
+ * 暂停指定时间函数
180
+ * @param ms 延迟时间
181
+ * @returns
182
+ */
183
+ export declare const pause: (ms: number) => AbortablePromise<unknown>;
184
+ /**
185
+ * 深拷贝函数,用于将对象进行完整复制。
186
+ * @param obj 要深拷贝的对象
187
+ * @param cache 用于缓存已复制的对象,防止循环引用
188
+ * @returns 深拷贝后的对象副本
189
+ */
190
+ export declare function deepClone<T>(obj: T, cache?: Map<any, any>): T;
191
+ /**
192
+ * 深度合并两个对象。
193
+ * @param target 目标对象,将合并的结果存放在此对象中
194
+ * @param source 源对象,要合并到目标对象的对象
195
+ * @returns 合并后的目标对象
196
+ */
197
+ export declare function deepMerge<T extends Record<string, any>>(target: T, source: Record<string, any>): T;
198
+ /**
199
+ * 深度合并两个对象。
200
+ * @param target
201
+ * @param source
202
+ * @returns
203
+ */
204
+ export declare function deepAssign(target: Record<string, any>, source: Record<string, any>): Record<string, any>;
205
+ /**
206
+ * 构建带参数的URL
207
+ * @param baseUrl 基础URL
208
+ * @param params 参数对象,键值对表示要添加到URL的参数
209
+ * @returns 返回带有参数的URL
210
+ */
211
+ export declare function buildUrlWithParams(baseUrl: string, params: Record<string, string>): string;
212
+ type DebounceOptions = {
213
+ leading?: boolean;
214
+ trailing?: boolean;
215
+ };
216
+ export declare function debounce<T extends (...args: any[]) => any>(func: T, wait: number, options?: DebounceOptions): T;
217
+ export declare function throttle(func: Function, wait: number): Function;
218
+ /**
219
+ * 根据属性路径获取对象中的属性值
220
+ * @param obj 目标对象
221
+ * @param path 属性路径,可以是字符串或字符串数组
222
+ * @returns 属性值,如果属性不存在或中间的属性为 null 或 undefined,则返回 undefined
223
+ */
224
+ export declare const getPropByPath: (obj: any, path: string) => any;
225
+ /**
226
+ * 检查一个值是否为Date类型
227
+ * @param val 要检查的值
228
+ * @returns 如果值是Date类型,则返回true,否则返回false
229
+ */
230
+ export declare const isDate: (val: unknown) => val is Date;
231
+ /**
232
+ * 检查提供的URL是否为视频链接。
233
+ * @param url 需要检查的URL字符串。
234
+ * @returns 返回一个布尔值,如果URL是视频链接则为true,否则为false。
235
+ */
236
+ export declare function isVideoUrl(url: string): boolean;
237
+ /**
238
+ * 检查提供的URL是否为图片URL。
239
+ * @param url 待检查的URL字符串。
240
+ * @returns 返回一个布尔值,如果URL是图片格式,则为true;否则为false。
241
+ */
242
+ export declare function isImageUrl(url: string): boolean;
243
+ /**
244
+ * 判断环境是否是H5
245
+ */
246
+ export declare const isH5: boolean;
247
+ /**
248
+ * 剔除对象中的某些属性
249
+ * @param obj
250
+ * @param predicate
251
+ * @returns
252
+ */
253
+ export declare function omitBy<O extends Record<string, any>>(obj: O, predicate: (value: any, key: keyof O) => boolean): Partial<O>;
254
+ /**
255
+ * 缓动函数,用于在动画或过渡效果中根据时间参数计算当前值
256
+ * @param t 当前时间,通常是从动画开始经过的时间
257
+ * @param b 初始值,动画属性的初始值
258
+ * @param c 变化量,动画属性的目标值与初始值的差值
259
+ * @param d 持续时间,动画持续的总时间长度
260
+ * @returns 计算出的当前值
261
+ */
262
+ export declare function easingFn(t?: number, b?: number, c?: number, d?: number): number;
263
+ export {};