@tplc/wot 0.1.2 → 0.1.4

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 (220) hide show
  1. package/components/wd-swiper/index.scss +4 -3
  2. package/components/wd-swiper/types.ts +9 -0
  3. package/components/wd-swiper/wd-swiper.vue +16 -2
  4. package/components/wd-tabs/wd-tabs.vue +3 -1
  5. package/components/wd-tooltip/wd-tooltip.vue +1 -1
  6. package/package.json +3 -2
  7. package/types/components/common/AbortablePromise.d.ts +16 -6
  8. package/types/components/common/base64.d.ts +1 -1
  9. package/types/components/common/canvasHelper.d.ts +1 -1
  10. package/types/components/common/clickoutside.d.ts +4 -4
  11. package/types/components/common/dayjs.d.ts +24 -24
  12. package/types/components/common/props.d.ts +39 -39
  13. package/types/components/common/util.d.ts +74 -54
  14. package/types/components/composables/useCell.d.ts +2 -2
  15. package/types/components/composables/useChildren.d.ts +28 -9
  16. package/types/components/composables/useCountDown.d.ts +17 -17
  17. package/types/components/composables/useLockScroll.d.ts +4 -4
  18. package/types/components/composables/useParent.d.ts +20 -14
  19. package/types/components/composables/usePopover.d.ts +39 -8
  20. package/types/components/composables/useQueue.d.ts +10 -10
  21. package/types/components/composables/useRaf.d.ts +5 -5
  22. package/types/components/composables/useTouch.d.ts +10 -10
  23. package/types/components/composables/useTranslate.d.ts +2 -2
  24. package/types/components/wd-action-sheet/types.d.ts +142 -142
  25. package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +162 -143
  26. package/types/components/wd-backtop/types.d.ts +65 -65
  27. package/types/components/wd-backtop/wd-backtop.vue.d.ts +119 -100
  28. package/types/components/wd-badge/types.d.ts +52 -52
  29. package/types/components/wd-badge/wd-badge.vue.d.ts +89 -70
  30. package/types/components/wd-button/types.d.ts +132 -124
  31. package/types/components/wd-calendar/types.d.ts +283 -279
  32. package/types/components/wd-calendar/wd-calendar.vue.d.ts +342 -323
  33. package/types/components/wd-calendar-view/month/month.vue.d.ts +87 -71
  34. package/types/components/wd-calendar-view/month/types.d.ts +37 -37
  35. package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +118 -102
  36. package/types/components/wd-calendar-view/monthPanel/types.d.ts +63 -63
  37. package/types/components/wd-calendar-view/types.d.ts +135 -126
  38. package/types/components/wd-calendar-view/utils.d.ts +42 -28
  39. package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +144 -128
  40. package/types/components/wd-calendar-view/year/types.d.ts +33 -33
  41. package/types/components/wd-calendar-view/year/year.vue.d.ts +80 -64
  42. package/types/components/wd-calendar-view/yearPanel/types.d.ts +46 -46
  43. package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +89 -73
  44. package/types/components/wd-card/types.d.ts +41 -41
  45. package/types/components/wd-card/wd-card.vue.d.ts +81 -62
  46. package/types/components/wd-cell/types.d.ts +128 -128
  47. package/types/components/wd-cell/wd-cell.vue.d.ts +181 -162
  48. package/types/components/wd-cell-group/types.d.ts +38 -38
  49. package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +72 -53
  50. package/types/components/wd-checkbox/types.d.ts +73 -73
  51. package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +124 -105
  52. package/types/components/wd-checkbox-group/types.d.ts +75 -75
  53. package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +121 -102
  54. package/types/components/wd-circle/types.d.ts +76 -76
  55. package/types/components/wd-circle/wd-circle.vue.d.ts +124 -105
  56. package/types/components/wd-col/types.d.ts +25 -25
  57. package/types/components/wd-col/wd-col.vue.d.ts +66 -47
  58. package/types/components/wd-col-picker/types.d.ts +227 -223
  59. package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +287 -268
  60. package/types/components/wd-collapse/types.d.ts +74 -67
  61. package/types/components/wd-collapse/wd-collapse.vue.d.ts +110 -91
  62. package/types/components/wd-collapse-item/types.d.ts +44 -44
  63. package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +79 -64
  64. package/types/components/wd-config-provider/types.d.ts +872 -811
  65. package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +66 -47
  66. package/types/components/wd-count-down/types.d.ts +53 -53
  67. package/types/components/wd-count-down/utils.d.ts +7 -7
  68. package/types/components/wd-count-down/wd-count-down.vue.d.ts +93 -76
  69. package/types/components/wd-count-to/types.d.ts +123 -123
  70. package/types/components/wd-count-to/wd-count-to.vue.d.ts +172 -153
  71. package/types/components/wd-curtain/types.d.ts +59 -52
  72. package/types/components/wd-curtain/wd-curtain.vue.d.ts +101 -85
  73. package/types/components/wd-datetime-picker/types.d.ts +306 -295
  74. package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +384 -353
  75. package/types/components/wd-datetime-picker-view/types.d.ts +147 -139
  76. package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +182 -166
  77. package/types/components/wd-divider/types.d.ts +18 -18
  78. package/types/components/wd-divider/wd-divider.vue.d.ts +57 -38
  79. package/types/components/wd-drop-menu/types.d.ts +52 -52
  80. package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +93 -74
  81. package/types/components/wd-drop-menu-item/types.d.ts +103 -103
  82. package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +163 -144
  83. package/types/components/wd-fab/types.d.ts +86 -86
  84. package/types/components/wd-fab/wd-fab.vue.d.ts +145 -126
  85. package/types/components/wd-form/types.d.ts +80 -72
  86. package/types/components/wd-form/wd-form.vue.d.ts +90 -71
  87. package/types/components/wd-form-item/types.d.ts +31 -31
  88. package/types/components/wd-form-item/wd-form-item.vue.d.ts +91 -72
  89. package/types/components/wd-gap/types.d.ts +30 -30
  90. package/types/components/wd-gap/wd-gap.vue.d.ts +61 -45
  91. package/types/components/wd-grid/types.d.ts +57 -57
  92. package/types/components/wd-grid/wd-grid.vue.d.ts +88 -69
  93. package/types/components/wd-grid-item/types.d.ts +100 -100
  94. package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +152 -133
  95. package/types/components/wd-icon/types.d.ts +31 -31
  96. package/types/components/wd-img/types.d.ts +72 -58
  97. package/types/components/wd-img/wd-img.vue.d.ts +110 -91
  98. package/types/components/wd-img-cropper/types.d.ts +99 -99
  99. package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +129 -113
  100. package/types/components/wd-index-anchor/type.d.ts +15 -15
  101. package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +54 -35
  102. package/types/components/wd-index-bar/type.d.ts +22 -22
  103. package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +39 -20
  104. package/types/components/wd-input/types.d.ts +270 -270
  105. package/types/components/wd-input/wd-input.vue.d.ts +387 -368
  106. package/types/components/wd-input-number/types.d.ts +107 -107
  107. package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -142
  108. package/types/components/wd-loading/types.d.ts +33 -33
  109. package/types/components/wd-loading/wd-loading.vue.d.ts +61 -45
  110. package/types/components/wd-loadmore/types.d.ts +30 -30
  111. package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +56 -40
  112. package/types/components/wd-message-box/index.d.ts +4 -4
  113. package/types/components/wd-message-box/types.d.ts +92 -92
  114. package/types/components/wd-message-box/wd-message-box.vue.d.ts +50 -31
  115. package/types/components/wd-navbar/types.d.ts +79 -79
  116. package/types/components/wd-navbar/wd-navbar.vue.d.ts +135 -116
  117. package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +22 -8
  118. package/types/components/wd-notice-bar/types.d.ts +80 -80
  119. package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +136 -117
  120. package/types/components/wd-notify/index.d.ts +7 -7
  121. package/types/components/wd-notify/types.d.ts +84 -84
  122. package/types/components/wd-notify/wd-notify.vue.d.ts +123 -104
  123. package/types/components/wd-number-keyboard/key/index.vue.d.ts +65 -49
  124. package/types/components/wd-number-keyboard/key/types.d.ts +22 -22
  125. package/types/components/wd-number-keyboard/types.d.ts +115 -115
  126. package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +176 -157
  127. package/types/components/wd-overlay/types.d.ts +38 -38
  128. package/types/components/wd-overlay/wd-overlay.vue.d.ts +88 -69
  129. package/types/components/wd-pagination/types.d.ts +66 -66
  130. package/types/components/wd-pagination/wd-pagination.vue.d.ts +102 -86
  131. package/types/components/wd-password-input/types.d.ts +58 -58
  132. package/types/components/wd-password-input/wd-password-input.vue.d.ts +97 -81
  133. package/types/components/wd-picker/types.d.ts +239 -232
  134. package/types/components/wd-picker/wd-picker.vue.d.ts +300 -275
  135. package/types/components/wd-picker-view/types.d.ts +102 -89
  136. package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +137 -109
  137. package/types/components/wd-popover/types.d.ts +96 -84
  138. package/types/components/wd-popover/wd-popover.vue.d.ts +156 -137
  139. package/types/components/wd-popup/types.d.ts +95 -95
  140. package/types/components/wd-popup/wd-popup.vue.d.ts +178 -159
  141. package/types/components/wd-progress/types.d.ts +43 -43
  142. package/types/components/wd-progress/wd-progress.vue.d.ts +71 -55
  143. package/types/components/wd-radio/types.d.ts +39 -39
  144. package/types/components/wd-radio/wd-radio.vue.d.ts +91 -72
  145. package/types/components/wd-radio-group/types.d.ts +52 -52
  146. package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +103 -84
  147. package/types/components/wd-rate/types.d.ts +109 -109
  148. package/types/components/wd-rate/wd-rate.vue.d.ts +131 -115
  149. package/types/components/wd-resize/types.d.ts +13 -13
  150. package/types/components/wd-resize/wd-resize.vue.d.ts +61 -42
  151. package/types/components/wd-row/types.d.ts +22 -22
  152. package/types/components/wd-row/wd-row.vue.d.ts +57 -38
  153. package/types/components/wd-search/types.d.ts +103 -103
  154. package/types/components/wd-search/wd-search.vue.d.ts +150 -131
  155. package/types/components/wd-segmented/types.d.ts +66 -66
  156. package/types/components/wd-segmented/wd-segmented.vue.d.ts +103 -86
  157. package/types/components/wd-select-picker/types.d.ts +184 -178
  158. package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +334 -315
  159. package/types/components/wd-sidebar/types.d.ts +22 -22
  160. package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +63 -44
  161. package/types/components/wd-sidebar-item/types.d.ts +43 -43
  162. package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +98 -79
  163. package/types/components/wd-skeleton/types.d.ts +69 -69
  164. package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +86 -67
  165. package/types/components/wd-slider/types.d.ts +115 -115
  166. package/types/components/wd-slider/wd-slider.vue.d.ts +137 -121
  167. package/types/components/wd-sort-button/types.d.ts +57 -57
  168. package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +83 -67
  169. package/types/components/wd-status-tip/types.d.ts +58 -58
  170. package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +69 -53
  171. package/types/components/wd-step/types.d.ts +32 -32
  172. package/types/components/wd-step/wd-step.vue.d.ts +58 -39
  173. package/types/components/wd-steps/types.d.ts +57 -57
  174. package/types/components/wd-steps/wd-steps.vue.d.ts +86 -67
  175. package/types/components/wd-sticky/types.d.ts +23 -23
  176. package/types/components/wd-sticky/wd-sticky.vue.d.ts +77 -58
  177. package/types/components/wd-sticky-box/types.d.ts +8 -8
  178. package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +48 -29
  179. package/types/components/wd-swipe-action/types.d.ts +44 -41
  180. package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +79 -60
  181. package/types/components/wd-swiper/types.d.ts +231 -201
  182. package/types/components/wd-swiper/wd-swiper.vue.d.ts +272 -211
  183. package/types/components/wd-swiper-nav/types.d.ts +62 -62
  184. package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +97 -81
  185. package/types/components/wd-switch/types.d.ts +63 -63
  186. package/types/components/wd-switch/wd-switch.vue.d.ts +91 -75
  187. package/types/components/wd-tab/types.d.ts +26 -26
  188. package/types/components/wd-tab/wd-tab.vue.d.ts +64 -45
  189. package/types/components/wd-tabbar/types.d.ts +85 -85
  190. package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +121 -102
  191. package/types/components/wd-tabbar-item/types.d.ts +47 -47
  192. package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +77 -60
  193. package/types/components/wd-table/types.d.ts +103 -93
  194. package/types/components/wd-table/wd-table.vue.d.ts +181 -136
  195. package/types/components/wd-table-col/types.d.ts +55 -55
  196. package/types/components/wd-table-col/wd-table-col.vue.d.ts +85 -69
  197. package/types/components/wd-tabs/types.d.ts +94 -94
  198. package/types/components/wd-tabs/wd-tabs.vue.d.ts +157 -138
  199. package/types/components/wd-tag/types.d.ts +103 -103
  200. package/types/components/wd-tag/wd-tag.vue.d.ts +148 -129
  201. package/types/components/wd-text/types.d.ts +127 -127
  202. package/types/components/wd-text/wd-text.vue.d.ts +149 -130
  203. package/types/components/wd-textarea/types.d.ts +362 -362
  204. package/types/components/wd-textarea/wd-textarea.vue.d.ts +408 -389
  205. package/types/components/wd-toast/index.d.ts +9 -9
  206. package/types/components/wd-toast/types.d.ts +58 -58
  207. package/types/components/wd-toast/wd-toast.vue.d.ts +45 -29
  208. package/types/components/wd-tooltip/types.d.ts +116 -104
  209. package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +151 -132
  210. package/types/components/wd-transition/types.d.ts +108 -97
  211. package/types/components/wd-transition/wd-transition.vue.d.ts +154 -135
  212. package/types/components/wd-upload/types.d.ts +388 -376
  213. package/types/components/wd-upload/utils.d.ts +11 -2
  214. package/types/components/wd-upload/wd-upload.vue.d.ts +310 -282
  215. package/types/components/wd-video-preview/types.d.ts +19 -19
  216. package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +41 -25
  217. package/types/components/wd-watermark/types.d.ts +130 -130
  218. package/types/components/wd-watermark/wd-watermark.vue.d.ts +173 -157
  219. package/types/locale/index.d.ts +8 -8
  220. package/types/locale/lang/zh-CN.d.ts +127 -127
@@ -1,95 +1,105 @@
1
- import type { CSSProperties, ExtractPropTypes, PropType } from 'vue';
2
- import type { TableColumnProps } from '../wd-table-col/types';
1
+ import type { CSSProperties, ExtractPropTypes, PropType } from 'vue'
2
+ import type { TableColumnProps } from '../wd-table-col/types'
3
3
  export declare const tableProps: {
4
- /**
5
- * 显示的数据
6
- */
7
- data: {
8
- type: {
9
- (arrayLength: number): Record<string, any>[];
10
- (...items: Record<string, any>[]): Record<string, any>[];
11
- new (arrayLength: number): Record<string, any>[];
12
- new (...items: Record<string, any>[]): Record<string, any>[];
13
- isArray(arg: any): arg is any[];
14
- readonly prototype: any[];
15
- from<T>(arrayLike: ArrayLike<T>): T[];
16
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
17
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
18
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
19
- of<T>(...items: T[]): T[];
20
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
21
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
22
- readonly [Symbol.species]: ArrayConstructor;
23
- };
24
- required: true;
25
- };
26
- /**
27
- * 是否带有边框
28
- */
29
- border: {
30
- type: BooleanConstructor;
31
- default: boolean;
32
- };
33
- /**
34
- * 是否为斑马纹 table
35
- */
36
- stripe: {
37
- type: BooleanConstructor;
38
- default: boolean;
39
- };
40
- /**
41
- * Table 的高度
42
- */
43
- height: {
44
- type: PropType<string>;
45
- default: string;
46
- };
47
- /**
48
- * 行高
49
- */
50
- rowHeight: {
51
- type: NumberConstructor;
52
- default: number;
53
- };
54
- /**
55
- * 是否显示表头
56
- */
57
- showHeader: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- /**
62
- * 是否超出2行隐藏
63
- */
64
- ellipsis: {
65
- type: BooleanConstructor;
66
- default: boolean;
67
- };
68
- /**
69
- * 是否显示索引列
70
- */
71
- index: {
72
- type: PropType<boolean | Omit<Partial<TableColumnProps>, "prop">>;
73
- default: boolean;
74
- };
75
- customStyle: {
76
- type: PropType<string>;
77
- default: string;
78
- };
79
- customClass: {
80
- type: PropType<string>;
81
- default: string;
82
- };
83
- };
84
- export type TableProps = ExtractPropTypes<typeof tableProps>;
4
+ /**
5
+ * 显示的数据
6
+ */
7
+ data: {
8
+ type: {
9
+ (arrayLength: number): Record<string, any>[]
10
+ (...items: Record<string, any>[]): Record<string, any>[]
11
+ new (arrayLength: number): Record<string, any>[]
12
+ new (...items: Record<string, any>[]): Record<string, any>[]
13
+ isArray(arg: any): arg is any[]
14
+ readonly prototype: any[]
15
+ from<T>(arrayLike: ArrayLike<T>): T[]
16
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]
17
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]
18
+ from<T, U>(
19
+ iterable: Iterable<T> | ArrayLike<T>,
20
+ mapfn: (v: T, k: number) => U,
21
+ thisArg?: any,
22
+ ): U[]
23
+ of<T>(...items: T[]): T[]
24
+ fromAsync<T>(
25
+ iterableOrArrayLike:
26
+ | AsyncIterable<T>
27
+ | Iterable<T | PromiseLike<T>>
28
+ | ArrayLike<T | PromiseLike<T>>,
29
+ ): Promise<T[]>
30
+ fromAsync<T, U>(
31
+ iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>,
32
+ mapFn: (value: Awaited<T>) => U,
33
+ thisArg?: any,
34
+ ): Promise<Awaited<U>[]>
35
+ readonly [Symbol.species]: ArrayConstructor
36
+ }
37
+ required: true
38
+ }
39
+ /**
40
+ * 是否带有边框
41
+ */
42
+ border: {
43
+ type: BooleanConstructor
44
+ default: boolean
45
+ }
46
+ /**
47
+ * 是否为斑马纹 table
48
+ */
49
+ stripe: {
50
+ type: BooleanConstructor
51
+ default: boolean
52
+ }
53
+ /**
54
+ * Table 的高度
55
+ */
56
+ height: {
57
+ type: PropType<string>
58
+ default: string
59
+ }
60
+ /**
61
+ * 行高
62
+ */
63
+ rowHeight: {
64
+ type: NumberConstructor
65
+ default: number
66
+ }
67
+ /**
68
+ * 是否显示表头
69
+ */
70
+ showHeader: {
71
+ type: BooleanConstructor
72
+ default: boolean
73
+ }
74
+ /**
75
+ * 是否超出2行隐藏
76
+ */
77
+ ellipsis: {
78
+ type: BooleanConstructor
79
+ default: boolean
80
+ }
81
+ /**
82
+ * 是否显示索引列
83
+ */
84
+ index: {
85
+ type: PropType<boolean | Omit<Partial<TableColumnProps>, 'prop'>>
86
+ default: boolean
87
+ }
88
+ customStyle: {
89
+ type: PropType<string>
90
+ default: string
91
+ }
92
+ customClass: {
93
+ type: PropType<string>
94
+ default: string
95
+ }
96
+ }
97
+ export type TableProps = ExtractPropTypes<typeof tableProps>
85
98
  export type TableProvide = {
86
- props: Omit<TableProps, 'index' | 'customStyle' | 'customClass'>;
87
- scrollLeft: number;
88
- rowClick: (index: number) => void;
89
- getIsLastFixed: (column: {
90
- fixed: boolean;
91
- prop: string;
92
- }) => boolean;
93
- getFixedStyle: (index: number, style: CSSProperties) => CSSProperties;
94
- };
95
- export declare const TABLE_KEY: symbol;
99
+ props: Omit<TableProps, 'index' | 'customStyle' | 'customClass'>
100
+ scrollLeft: number
101
+ rowClick: (index: number) => void
102
+ getIsLastFixed: (column: { fixed: boolean; prop: string }) => boolean
103
+ getFixedStyle: (index: number, style: CSSProperties) => CSSProperties
104
+ }
105
+ export declare const TABLE_KEY: symbol
@@ -1,138 +1,183 @@
1
- import type { TableColumnProps } from '../wd-table-col/types';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
- data: {
1
+ import type { TableColumnProps } from '../wd-table-col/types'
2
+ declare const _default: __VLS_WithTemplateSlots<
3
+ import('vue').DefineComponent<
4
+ {
5
+ data: {
4
6
  type: {
5
- (arrayLength: number): Record<string, any>[];
6
- (...items: Record<string, any>[]): Record<string, any>[];
7
- new (arrayLength: number): Record<string, any>[];
8
- new (...items: Record<string, any>[]): Record<string, any>[];
9
- isArray(arg: any): arg is any[];
10
- readonly prototype: any[];
11
- from<T>(arrayLike: ArrayLike<T>): T[];
12
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
13
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
14
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
15
- of<T>(...items: T[]): T[];
16
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
17
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
18
- readonly [Symbol.species]: ArrayConstructor;
19
- };
20
- required: true;
21
- };
22
- border: {
23
- type: BooleanConstructor;
24
- default: boolean;
25
- };
26
- stripe: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- height: {
31
- type: import("vue").PropType<string>;
32
- default: string;
33
- };
34
- rowHeight: {
35
- type: NumberConstructor;
36
- default: number;
37
- };
38
- showHeader: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- ellipsis: {
43
- type: BooleanConstructor;
44
- default: boolean;
45
- };
46
- index: {
47
- type: import("vue").PropType<boolean | Omit<Partial<TableColumnProps>, "prop">>;
48
- default: boolean;
49
- };
50
- customStyle: {
51
- type: import("vue").PropType<string>;
52
- default: string;
53
- };
54
- customClass: {
55
- type: import("vue").PropType<string>;
56
- default: string;
57
- };
58
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
- "sort-method": (...args: any[]) => void;
60
- "row-click": (...args: any[]) => void;
61
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
- data: {
63
- type: {
64
- (arrayLength: number): Record<string, any>[];
65
- (...items: Record<string, any>[]): Record<string, any>[];
66
- new (arrayLength: number): Record<string, any>[];
67
- new (...items: Record<string, any>[]): Record<string, any>[];
68
- isArray(arg: any): arg is any[];
69
- readonly prototype: any[];
70
- from<T>(arrayLike: ArrayLike<T>): T[];
71
- from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
72
- from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
73
- from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
74
- of<T>(...items: T[]): T[];
75
- fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
76
- fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>) => U, thisArg?: any): Promise<Awaited<U>[]>;
77
- readonly [Symbol.species]: ArrayConstructor;
78
- };
79
- required: true;
80
- };
81
- border: {
82
- type: BooleanConstructor;
83
- default: boolean;
84
- };
85
- stripe: {
86
- type: BooleanConstructor;
87
- default: boolean;
88
- };
89
- height: {
90
- type: import("vue").PropType<string>;
91
- default: string;
92
- };
93
- rowHeight: {
94
- type: NumberConstructor;
95
- default: number;
96
- };
97
- showHeader: {
98
- type: BooleanConstructor;
99
- default: boolean;
100
- };
101
- ellipsis: {
102
- type: BooleanConstructor;
103
- default: boolean;
104
- };
105
- index: {
106
- type: import("vue").PropType<boolean | Omit<Partial<TableColumnProps>, "prop">>;
107
- default: boolean;
108
- };
109
- customStyle: {
110
- type: import("vue").PropType<string>;
111
- default: string;
112
- };
113
- customClass: {
114
- type: import("vue").PropType<string>;
115
- default: string;
116
- };
117
- }>> & {
118
- "onSort-method"?: ((...args: any[]) => any) | undefined;
119
- "onRow-click"?: ((...args: any[]) => any) | undefined;
120
- }, {
121
- customStyle: string;
122
- customClass: string;
123
- border: boolean;
124
- index: boolean | Omit<Partial<TableColumnProps>, "prop">;
125
- ellipsis: boolean;
126
- height: string;
127
- stripe: boolean;
128
- rowHeight: number;
129
- showHeader: boolean;
130
- }, {}>, {
131
- default?(_: {}): any;
132
- }>;
133
- export default _default;
7
+ (arrayLength: number): Record<string, any>[]
8
+ (...items: Record<string, any>[]): Record<string, any>[]
9
+ new (arrayLength: number): Record<string, any>[]
10
+ new (...items: Record<string, any>[]): Record<string, any>[]
11
+ isArray(arg: any): arg is any[]
12
+ readonly prototype: any[]
13
+ from<T>(arrayLike: ArrayLike<T>): T[]
14
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]
15
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]
16
+ from<T, U>(
17
+ iterable: Iterable<T> | ArrayLike<T>,
18
+ mapfn: (v: T, k: number) => U,
19
+ thisArg?: any,
20
+ ): U[]
21
+ of<T>(...items: T[]): T[]
22
+ fromAsync<T>(
23
+ iterableOrArrayLike:
24
+ | AsyncIterable<T>
25
+ | Iterable<T | PromiseLike<T>>
26
+ | ArrayLike<T | PromiseLike<T>>,
27
+ ): Promise<T[]>
28
+ fromAsync<T, U>(
29
+ iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>,
30
+ mapFn: (value: Awaited<T>) => U,
31
+ thisArg?: any,
32
+ ): Promise<Awaited<U>[]>
33
+ readonly [Symbol.species]: ArrayConstructor
34
+ }
35
+ required: true
36
+ }
37
+ border: {
38
+ type: BooleanConstructor
39
+ default: boolean
40
+ }
41
+ stripe: {
42
+ type: BooleanConstructor
43
+ default: boolean
44
+ }
45
+ height: {
46
+ type: import('vue').PropType<string>
47
+ default: string
48
+ }
49
+ rowHeight: {
50
+ type: NumberConstructor
51
+ default: number
52
+ }
53
+ showHeader: {
54
+ type: BooleanConstructor
55
+ default: boolean
56
+ }
57
+ ellipsis: {
58
+ type: BooleanConstructor
59
+ default: boolean
60
+ }
61
+ index: {
62
+ type: import('vue').PropType<boolean | Omit<Partial<TableColumnProps>, 'prop'>>
63
+ default: boolean
64
+ }
65
+ customStyle: {
66
+ type: import('vue').PropType<string>
67
+ default: string
68
+ }
69
+ customClass: {
70
+ type: import('vue').PropType<string>
71
+ default: string
72
+ }
73
+ },
74
+ {},
75
+ unknown,
76
+ {},
77
+ {},
78
+ import('vue').ComponentOptionsMixin,
79
+ import('vue').ComponentOptionsMixin,
80
+ {
81
+ 'sort-method': (...args: any[]) => void
82
+ 'row-click': (...args: any[]) => void
83
+ },
84
+ string,
85
+ import('vue').PublicProps,
86
+ Readonly<
87
+ import('vue').ExtractPropTypes<{
88
+ data: {
89
+ type: {
90
+ (arrayLength: number): Record<string, any>[]
91
+ (...items: Record<string, any>[]): Record<string, any>[]
92
+ new (arrayLength: number): Record<string, any>[]
93
+ new (...items: Record<string, any>[]): Record<string, any>[]
94
+ isArray(arg: any): arg is any[]
95
+ readonly prototype: any[]
96
+ from<T>(arrayLike: ArrayLike<T>): T[]
97
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[]
98
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[]
99
+ from<T, U>(
100
+ iterable: Iterable<T> | ArrayLike<T>,
101
+ mapfn: (v: T, k: number) => U,
102
+ thisArg?: any,
103
+ ): U[]
104
+ of<T>(...items: T[]): T[]
105
+ fromAsync<T>(
106
+ iterableOrArrayLike:
107
+ | AsyncIterable<T>
108
+ | Iterable<T | PromiseLike<T>>
109
+ | ArrayLike<T | PromiseLike<T>>,
110
+ ): Promise<T[]>
111
+ fromAsync<T, U>(
112
+ iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>,
113
+ mapFn: (value: Awaited<T>) => U,
114
+ thisArg?: any,
115
+ ): Promise<Awaited<U>[]>
116
+ readonly [Symbol.species]: ArrayConstructor
117
+ }
118
+ required: true
119
+ }
120
+ border: {
121
+ type: BooleanConstructor
122
+ default: boolean
123
+ }
124
+ stripe: {
125
+ type: BooleanConstructor
126
+ default: boolean
127
+ }
128
+ height: {
129
+ type: import('vue').PropType<string>
130
+ default: string
131
+ }
132
+ rowHeight: {
133
+ type: NumberConstructor
134
+ default: number
135
+ }
136
+ showHeader: {
137
+ type: BooleanConstructor
138
+ default: boolean
139
+ }
140
+ ellipsis: {
141
+ type: BooleanConstructor
142
+ default: boolean
143
+ }
144
+ index: {
145
+ type: import('vue').PropType<boolean | Omit<Partial<TableColumnProps>, 'prop'>>
146
+ default: boolean
147
+ }
148
+ customStyle: {
149
+ type: import('vue').PropType<string>
150
+ default: string
151
+ }
152
+ customClass: {
153
+ type: import('vue').PropType<string>
154
+ default: string
155
+ }
156
+ }>
157
+ > & {
158
+ 'onSort-method'?: ((...args: any[]) => any) | undefined
159
+ 'onRow-click'?: ((...args: any[]) => any) | undefined
160
+ },
161
+ {
162
+ customStyle: string
163
+ customClass: string
164
+ border: boolean
165
+ index: boolean | Omit<Partial<TableColumnProps>, 'prop'>
166
+ ellipsis: boolean
167
+ height: string
168
+ stripe: boolean
169
+ rowHeight: number
170
+ showHeader: boolean
171
+ },
172
+ {}
173
+ >,
174
+ {
175
+ default?(_: {}): any
176
+ }
177
+ >
178
+ export default _default
134
179
  type __VLS_WithTemplateSlots<T, S> = T & {
135
- new (): {
136
- $slots: S;
137
- };
138
- };
180
+ new (): {
181
+ $slots: S
182
+ }
183
+ }
@@ -1,58 +1,58 @@
1
- import type { ComponentPublicInstance, ExtractPropTypes } from 'vue';
2
- export type AlignType = 'left' | 'center' | 'right';
3
- export type SortDirection = 0 | 1 | -1;
1
+ import type { ComponentPublicInstance, ExtractPropTypes } from 'vue'
2
+ export type AlignType = 'left' | 'center' | 'right'
3
+ export type SortDirection = 0 | 1 | -1
4
4
  export interface TableColumn {
5
- prop: string;
6
- label: string;
7
- width: string | number;
8
- sortable?: boolean;
9
- align?: AlignType;
10
- sortDirection: SortDirection;
11
- fixed?: boolean;
5
+ prop: string
6
+ label: string
7
+ width: string | number
8
+ sortable?: boolean
9
+ align?: AlignType
10
+ sortDirection: SortDirection
11
+ fixed?: boolean
12
12
  }
13
13
  export declare const tableColumnProps: {
14
- /**
15
- * 列对应字段
16
- */
17
- prop: {
18
- type: StringConstructor;
19
- required: true;
20
- };
21
- /**
22
- * 列对应字段标题
23
- */
24
- label: {
25
- type: StringConstructor;
26
- required: true;
27
- };
28
- /**
29
- * 列宽度,单位px
30
- */
31
- width: {
32
- type: (NumberConstructor | StringConstructor)[];
33
- default: number;
34
- };
35
- /**
36
- * 是否开启列排序
37
- */
38
- sortable: {
39
- type: BooleanConstructor;
40
- default: boolean;
41
- };
42
- /**
43
- * 是否固定本列
44
- */
45
- fixed: {
46
- type: BooleanConstructor;
47
- default: boolean;
48
- };
49
- /**
50
- * 列的对齐方式,可选值left,center,right
51
- */
52
- align: {
53
- type: import("vue").PropType<AlignType>;
54
- default: AlignType;
55
- };
56
- };
57
- export type TableColumnProps = ExtractPropTypes<typeof tableColumnProps>;
58
- export type TableColumnInstance = ComponentPublicInstance<TableColumnProps>;
14
+ /**
15
+ * 列对应字段
16
+ */
17
+ prop: {
18
+ type: StringConstructor
19
+ required: true
20
+ }
21
+ /**
22
+ * 列对应字段标题
23
+ */
24
+ label: {
25
+ type: StringConstructor
26
+ required: true
27
+ }
28
+ /**
29
+ * 列宽度,单位px
30
+ */
31
+ width: {
32
+ type: (NumberConstructor | StringConstructor)[]
33
+ default: number
34
+ }
35
+ /**
36
+ * 是否开启列排序
37
+ */
38
+ sortable: {
39
+ type: BooleanConstructor
40
+ default: boolean
41
+ }
42
+ /**
43
+ * 是否固定本列
44
+ */
45
+ fixed: {
46
+ type: BooleanConstructor
47
+ default: boolean
48
+ }
49
+ /**
50
+ * 列的对齐方式,可选值left,center,right
51
+ */
52
+ align: {
53
+ type: import('vue').PropType<AlignType>
54
+ default: AlignType
55
+ }
56
+ }
57
+ export type TableColumnProps = ExtractPropTypes<typeof tableColumnProps>
58
+ export type TableColumnInstance = ComponentPublicInstance<TableColumnProps>