@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
@@ -0,0 +1,45 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ modelValue: {
3
+ type: (NumberConstructor | StringConstructor)[];
4
+ default: number;
5
+ };
6
+ customStyle: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ customClass: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
+ "update:modelValue": (...args: any[]) => void;
16
+ change: (...args: any[]) => void;
17
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
+ modelValue: {
19
+ type: (NumberConstructor | StringConstructor)[];
20
+ default: number;
21
+ };
22
+ customStyle: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ customClass: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ }>> & {
31
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
+ onChange?: ((...args: any[]) => any) | undefined;
33
+ }, {
34
+ modelValue: string | number;
35
+ customStyle: string;
36
+ customClass: string;
37
+ }, {}>, {
38
+ default?(_: {}): any;
39
+ }>;
40
+ export default _default;
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -0,0 +1,44 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { BadgeProps } from '../wd-badge/types';
3
+ export declare const sidebarItemProps: {
4
+ /** 当前选项标题 */
5
+ label: {
6
+ type: StringConstructor;
7
+ required: true;
8
+ };
9
+ /** 当前选项的值,唯一标识 */
10
+ value: {
11
+ type: (NumberConstructor | StringConstructor)[];
12
+ required: true;
13
+ };
14
+ /** 徽标显示值 */
15
+ badge: {
16
+ type: PropType<string | number | null>;
17
+ default: null;
18
+ };
19
+ /** 徽标属性,透传给 Badge 组件 */
20
+ badgeProps: PropType<Partial<BadgeProps>>;
21
+ /** 图标 */
22
+ icon: StringConstructor;
23
+ /** 是否点状徽标 */
24
+ isDot: {
25
+ type: BooleanConstructor;
26
+ default: undefined;
27
+ };
28
+ /** 徽标最大值 */
29
+ max: NumberConstructor;
30
+ /** 是否禁用 */
31
+ disabled: {
32
+ type: BooleanConstructor;
33
+ default: boolean;
34
+ };
35
+ customStyle: {
36
+ type: PropType<string>;
37
+ default: string;
38
+ };
39
+ customClass: {
40
+ type: PropType<string>;
41
+ default: string;
42
+ };
43
+ };
44
+ export type SidebarItemProps = ExtractPropTypes<typeof sidebarItemProps>;
@@ -0,0 +1,80 @@
1
+ import type { BadgeProps } from '../wd-badge/types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ label: {
4
+ type: StringConstructor;
5
+ required: true;
6
+ };
7
+ value: {
8
+ type: (NumberConstructor | StringConstructor)[];
9
+ required: true;
10
+ };
11
+ badge: {
12
+ type: import("vue").PropType<string | number | null>;
13
+ default: null;
14
+ };
15
+ badgeProps: import("vue").PropType<Partial<BadgeProps>>;
16
+ icon: StringConstructor;
17
+ isDot: {
18
+ type: BooleanConstructor;
19
+ default: undefined;
20
+ };
21
+ max: NumberConstructor;
22
+ disabled: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ customStyle: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ customClass: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
35
+ label: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ value: {
40
+ type: (NumberConstructor | StringConstructor)[];
41
+ required: true;
42
+ };
43
+ badge: {
44
+ type: import("vue").PropType<string | number | null>;
45
+ default: null;
46
+ };
47
+ badgeProps: import("vue").PropType<Partial<BadgeProps>>;
48
+ icon: StringConstructor;
49
+ isDot: {
50
+ type: BooleanConstructor;
51
+ default: undefined;
52
+ };
53
+ max: NumberConstructor;
54
+ disabled: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ customStyle: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ customClass: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ }>>, {
67
+ customStyle: string;
68
+ customClass: string;
69
+ isDot: boolean;
70
+ disabled: boolean;
71
+ badge: string | number | null;
72
+ }, {}>, {
73
+ icon?(_: {}): any;
74
+ }>;
75
+ export default _default;
76
+ type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1,72 @@
1
+ import type { PropType, ExtractPropTypes, CSSProperties } from 'vue';
2
+ type SkeletonTheme = 'text' | 'avatar' | 'paragraph' | 'image';
3
+ type SkeletonAnimation = 'gradient' | 'flashed';
4
+ export type SkeletonRowColObj = {
5
+ [key: string]: any;
6
+ type?: 'rect' | 'circle' | 'text';
7
+ size?: string | number;
8
+ width?: string | number;
9
+ height?: string | number;
10
+ margin?: string | number;
11
+ background?: string;
12
+ marginLeft?: string | number;
13
+ marginRight?: string | number;
14
+ borderRadius?: string | number;
15
+ backgroundColor?: string;
16
+ };
17
+ export type SkeletonRowCol = number | SkeletonRowColObj | Array<SkeletonRowColObj>;
18
+ export type SkeletonThemeVars = {
19
+ notifyPadding?: string;
20
+ notifyFontSize?: string;
21
+ notifyTextColor?: string;
22
+ notifyLineHeight?: number | string;
23
+ notifyDangerBackground?: string;
24
+ notifyPrimaryBackground?: string;
25
+ notifySuccessBackground?: string;
26
+ notifyWarningBackground?: string;
27
+ };
28
+ export declare const skeletonProps: {
29
+ /**
30
+ * 骨架图风格,有基础、头像组合等两大类
31
+ */
32
+ theme: {
33
+ type: PropType<SkeletonTheme>;
34
+ default: SkeletonTheme;
35
+ };
36
+ /**
37
+ * 用于设置行列数量、宽度高度、间距等。
38
+ * @example
39
+ * 【示例一】,`[1, 1, 2]` 表示输出三行骨架图,第一行一列,第二行一列,第三行两列。
40
+ * 【示例二】,`[1, 1, { width: '100px' }]` 表示自定义第三行的宽度为 `100px`。
41
+ * 【示例三】,`[1, 2, [{ width, height }, { width, height, marginLeft }]]` 表示第三行有两列,且自定义宽度、高度和间距
42
+ */
43
+ rowCol: {
44
+ type: PropType<SkeletonRowCol[]>;
45
+ default: () => never[];
46
+ };
47
+ /**
48
+ * 是否为加载状态,如果是则显示骨架图,如果不是则显示加载完成的内容
49
+ * @default true
50
+ */
51
+ loading: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ /**
56
+ * 动画效果,有「渐变加载动画」和「闪烁加载动画」两种。值为空则表示没有动画
57
+ */
58
+ animation: {
59
+ type: PropType<SkeletonAnimation>;
60
+ default: string;
61
+ };
62
+ customClass: {
63
+ type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
64
+ default: string;
65
+ };
66
+ customStyle: {
67
+ type: PropType<CSSProperties>;
68
+ default(): {};
69
+ };
70
+ };
71
+ export type SkeletonProps = ExtractPropTypes<typeof skeletonProps>;
72
+ export {};
@@ -0,0 +1,68 @@
1
+ import type { CSSProperties } from 'vue';
2
+ import type { SkeletonRowCol } from './types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ theme: {
5
+ type: import("vue").PropType<"image" | "text" | "avatar" | "paragraph">;
6
+ default: "image" | "text" | "avatar" | "paragraph";
7
+ };
8
+ rowCol: {
9
+ type: import("vue").PropType<SkeletonRowCol[]>;
10
+ default: () => never[];
11
+ };
12
+ loading: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ animation: {
17
+ type: import("vue").PropType<"gradient" | "flashed">;
18
+ default: string;
19
+ };
20
+ customClass: {
21
+ type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
22
+ default: string;
23
+ };
24
+ customStyle: {
25
+ type: import("vue").PropType<CSSProperties>;
26
+ default(): {};
27
+ };
28
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
+ theme: {
30
+ type: import("vue").PropType<"image" | "text" | "avatar" | "paragraph">;
31
+ default: "image" | "text" | "avatar" | "paragraph";
32
+ };
33
+ rowCol: {
34
+ type: import("vue").PropType<SkeletonRowCol[]>;
35
+ default: () => never[];
36
+ };
37
+ loading: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ animation: {
42
+ type: import("vue").PropType<"gradient" | "flashed">;
43
+ default: string;
44
+ };
45
+ customClass: {
46
+ type: (StringConstructor | ArrayConstructor | ObjectConstructor)[];
47
+ default: string;
48
+ };
49
+ customStyle: {
50
+ type: import("vue").PropType<CSSProperties>;
51
+ default(): {};
52
+ };
53
+ }>>, {
54
+ customStyle: CSSProperties;
55
+ customClass: string | Record<string, any> | unknown[];
56
+ loading: boolean;
57
+ theme: "image" | "text" | "avatar" | "paragraph";
58
+ animation: "gradient" | "flashed";
59
+ rowCol: SkeletonRowCol[];
60
+ }, {}>, {
61
+ default?(_: {}): any;
62
+ }>;
63
+ export default _default;
64
+ type __VLS_WithTemplateSlots<T, S> = T & {
65
+ new (): {
66
+ $slots: S;
67
+ };
68
+ };
@@ -0,0 +1,117 @@
1
+ import type { ComponentPublicInstance, PropType } from 'vue';
2
+ export declare const sliderProps: {
3
+ /**
4
+ * 自定义最小值的样式类名
5
+ * 类型: string
6
+ * 默认值: ''
7
+ */
8
+ customMinClass: {
9
+ type: PropType<string>;
10
+ default: string;
11
+ };
12
+ /**
13
+ * 自定义最大值的样式类名
14
+ * 类型: string
15
+ * 默认值: ''
16
+ */
17
+ customMaxClass: {
18
+ type: PropType<string>;
19
+ default: string;
20
+ };
21
+ /**
22
+ * 是否隐藏左右的最大最小值
23
+ * 类型: boolean
24
+ * 默认值: false
25
+ */
26
+ hideMinMax: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ /**
31
+ * 是否隐藏当前滑块值
32
+ * 类型: boolean
33
+ * 默认值: false
34
+ */
35
+ hideLabel: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /**
40
+ * 是否禁用滑块
41
+ * 类型: boolean
42
+ * 默认值: false
43
+ */
44
+ disabled: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ /**
49
+ * 进度条未激活的背景颜色
50
+ * 类型: string
51
+ * 默认值: '#e5e5e5'
52
+ */
53
+ inactiveColor: {
54
+ type: PropType<string>;
55
+ default: string;
56
+ };
57
+ /**
58
+ * 进度条激活的背景颜色
59
+ * 类型: string
60
+ * 默认值: ''
61
+ */
62
+ activeColor: {
63
+ type: PropType<string>;
64
+ default: string;
65
+ };
66
+ /**
67
+ * 滑块的最大值
68
+ * 类型: number
69
+ * 默认值: 100
70
+ */
71
+ max: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ /**
76
+ * 滑块的最小值
77
+ * 类型: number
78
+ * 默认值: 0
79
+ */
80
+ min: {
81
+ type: NumberConstructor;
82
+ default: number;
83
+ };
84
+ /**
85
+ * 滑块的步进值
86
+ * 类型: number
87
+ * 默认值: 1
88
+ */
89
+ step: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ /**
94
+ * 滑块的值,如果为数组,则为双向滑块
95
+ * 类型: number | number[]
96
+ * 默认值: 0
97
+ */
98
+ modelValue: {
99
+ type: PropType<number | number[]>;
100
+ default: number;
101
+ };
102
+ customStyle: {
103
+ type: PropType<string>;
104
+ default: string;
105
+ };
106
+ customClass: {
107
+ type: PropType<string>;
108
+ default: string;
109
+ };
110
+ };
111
+ export type SliderExpose = {
112
+ /**
113
+ * 初始化slider宽度
114
+ */
115
+ initSlider: () => void;
116
+ };
117
+ export type SliderInstance = ComponentPublicInstance<SliderExpose>;
@@ -0,0 +1,134 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ customMinClass: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ customMaxClass: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ hideMinMax: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ hideLabel: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ inactiveColor: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ activeColor: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ max: {
31
+ type: NumberConstructor;
32
+ default: number;
33
+ };
34
+ min: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ step: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ modelValue: {
43
+ type: import("vue").PropType<number | number[]>;
44
+ default: number;
45
+ };
46
+ customStyle: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ customClass: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ }, {
55
+ initSlider: () => void;
56
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
57
+ "update:modelValue": (...args: any[]) => void;
58
+ dragstart: (...args: any[]) => void;
59
+ dragmove: (...args: any[]) => void;
60
+ dragend: (...args: any[]) => void;
61
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
+ customMinClass: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ customMaxClass: {
67
+ type: import("vue").PropType<string>;
68
+ default: string;
69
+ };
70
+ hideMinMax: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ hideLabel: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ disabled: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ inactiveColor: {
83
+ type: import("vue").PropType<string>;
84
+ default: string;
85
+ };
86
+ activeColor: {
87
+ type: import("vue").PropType<string>;
88
+ default: string;
89
+ };
90
+ max: {
91
+ type: NumberConstructor;
92
+ default: number;
93
+ };
94
+ min: {
95
+ type: NumberConstructor;
96
+ default: number;
97
+ };
98
+ step: {
99
+ type: NumberConstructor;
100
+ default: number;
101
+ };
102
+ modelValue: {
103
+ type: import("vue").PropType<number | number[]>;
104
+ default: number;
105
+ };
106
+ customStyle: {
107
+ type: import("vue").PropType<string>;
108
+ default: string;
109
+ };
110
+ customClass: {
111
+ type: import("vue").PropType<string>;
112
+ default: string;
113
+ };
114
+ }>> & {
115
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
116
+ onDragend?: ((...args: any[]) => any) | undefined;
117
+ onDragstart?: ((...args: any[]) => any) | undefined;
118
+ onDragmove?: ((...args: any[]) => any) | undefined;
119
+ }, {
120
+ modelValue: number | number[];
121
+ customStyle: string;
122
+ customClass: string;
123
+ max: number;
124
+ disabled: boolean;
125
+ min: number;
126
+ step: number;
127
+ activeColor: string;
128
+ customMinClass: string;
129
+ customMaxClass: string;
130
+ hideMinMax: boolean;
131
+ hideLabel: boolean;
132
+ inactiveColor: string;
133
+ }, {}>;
134
+ export default _default;
@@ -0,0 +1,58 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const sortButtonProps: {
3
+ /**
4
+ * 选中的箭头方向,1表示升序,0表示重置状态,-1表示降序。
5
+ * 类型: number
6
+ * 可选值: -1, 0, 1
7
+ * 默认值: 0或-1(根据具体实现可能有所不同)
8
+ */
9
+ modelValue: {
10
+ type: NumberConstructor;
11
+ default: number;
12
+ };
13
+ /**
14
+ * 排序按钮展示的文案。
15
+ * 类型: string
16
+ * 默认值: ''
17
+ */
18
+ title: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ /**
23
+ * 当展示双箭头时,是否允许手动重置按钮。
24
+ * 类型: boolean
25
+ * 默认值: false
26
+ */
27
+ allowReset: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ /**
32
+ * 是否优先切换为降序,如果不开启则默认优先切换为升序。
33
+ * 类型: boolean
34
+ * 默认值: false
35
+ */
36
+ descFirst: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ /**
41
+ * 是否展示下划线,当只有一个排序按钮时,通常不展示下划线。
42
+ * 类型: boolean
43
+ * 默认值: true
44
+ */
45
+ line: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ customStyle: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ customClass: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ };
58
+ export type SortButtonProps = ExtractPropTypes<typeof sortButtonProps>;
@@ -0,0 +1,74 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ title: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ allowReset: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ descFirst: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ line: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ customStyle: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ customClass: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
31
+ "update:modelValue": (...args: any[]) => void;
32
+ change: (...args: any[]) => void;
33
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ modelValue: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ title: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ allowReset: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ descFirst: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ line: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ customStyle: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ customClass: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ }>> & {
63
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
64
+ onChange?: ((...args: any[]) => any) | undefined;
65
+ }, {
66
+ modelValue: number;
67
+ title: string;
68
+ customStyle: string;
69
+ customClass: string;
70
+ line: boolean;
71
+ allowReset: boolean;
72
+ descFirst: boolean;
73
+ }, {}>;
74
+ export default _default;