@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,276 @@
1
+ import { type ColumnItem } from '../wd-picker-view/types';
2
+ import { type FormItemRule } from '../wd-form/types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ customLabelClass: {
5
+ type: import("vue").PropType<string>;
6
+ default: string;
7
+ };
8
+ customValueClass: {
9
+ type: import("vue").PropType<string>;
10
+ default: string;
11
+ };
12
+ customViewClass: {
13
+ type: import("vue").PropType<string>;
14
+ default: string;
15
+ };
16
+ label: StringConstructor;
17
+ placeholder: StringConstructor;
18
+ disabled: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ readonly: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ loading: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ loadingColor: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ title: StringConstructor;
35
+ cancelButtonText: StringConstructor;
36
+ confirmButtonText: StringConstructor;
37
+ required: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ size: StringConstructor;
42
+ labelWidth: StringConstructor;
43
+ useDefaultSlot: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ useLabelSlot: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ error: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ alignRight: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ beforeConfirm: import("vue").PropType<import("./types").PickerBeforeConfirm>;
60
+ closeOnClickModal: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ safeAreaInsetBottom: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
68
+ ellipsis: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ columnsHeight: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ valueKey: {
77
+ type: import("vue").PropType<string>;
78
+ default: string;
79
+ };
80
+ labelKey: {
81
+ type: import("vue").PropType<string>;
82
+ default: string;
83
+ };
84
+ modelValue: {
85
+ type: import("vue").PropType<string | number | Array<string> | Array<number>>;
86
+ default: string;
87
+ };
88
+ columns: {
89
+ type: import("vue").PropType<Array<string | number | ColumnItem | Array<string | number | ColumnItem>>>;
90
+ default: () => never[];
91
+ };
92
+ columnChange: import("vue").PropType<import("../wd-picker-view/types").PickerViewColumnChange>;
93
+ displayFormat: import("vue").PropType<import("./types").PickerDisplayFormat>;
94
+ zIndex: {
95
+ type: NumberConstructor;
96
+ default: number;
97
+ };
98
+ prop: StringConstructor;
99
+ rules: {
100
+ type: import("vue").PropType<FormItemRule[]>;
101
+ default: () => never[];
102
+ };
103
+ immediateChange: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
107
+ customStyle: {
108
+ type: import("vue").PropType<string>;
109
+ default: string;
110
+ };
111
+ customClass: {
112
+ type: import("vue").PropType<string>;
113
+ default: string;
114
+ };
115
+ }, {
116
+ open: () => void;
117
+ close: () => void;
118
+ setLoading: (loading: boolean) => void;
119
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
120
+ cancel: (...args: any[]) => void;
121
+ open: (...args: any[]) => void;
122
+ "update:modelValue": (...args: any[]) => void;
123
+ confirm: (...args: any[]) => void;
124
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
125
+ customLabelClass: {
126
+ type: import("vue").PropType<string>;
127
+ default: string;
128
+ };
129
+ customValueClass: {
130
+ type: import("vue").PropType<string>;
131
+ default: string;
132
+ };
133
+ customViewClass: {
134
+ type: import("vue").PropType<string>;
135
+ default: string;
136
+ };
137
+ label: StringConstructor;
138
+ placeholder: StringConstructor;
139
+ disabled: {
140
+ type: BooleanConstructor;
141
+ default: boolean;
142
+ };
143
+ readonly: {
144
+ type: BooleanConstructor;
145
+ default: boolean;
146
+ };
147
+ loading: {
148
+ type: BooleanConstructor;
149
+ default: boolean;
150
+ };
151
+ loadingColor: {
152
+ type: import("vue").PropType<string>;
153
+ default: string;
154
+ };
155
+ title: StringConstructor;
156
+ cancelButtonText: StringConstructor;
157
+ confirmButtonText: StringConstructor;
158
+ required: {
159
+ type: BooleanConstructor;
160
+ default: boolean;
161
+ };
162
+ size: StringConstructor;
163
+ labelWidth: StringConstructor;
164
+ useDefaultSlot: {
165
+ type: BooleanConstructor;
166
+ default: boolean;
167
+ };
168
+ useLabelSlot: {
169
+ type: BooleanConstructor;
170
+ default: boolean;
171
+ };
172
+ error: {
173
+ type: BooleanConstructor;
174
+ default: boolean;
175
+ };
176
+ alignRight: {
177
+ type: BooleanConstructor;
178
+ default: boolean;
179
+ };
180
+ beforeConfirm: import("vue").PropType<import("./types").PickerBeforeConfirm>;
181
+ closeOnClickModal: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ safeAreaInsetBottom: {
186
+ type: BooleanConstructor;
187
+ default: boolean;
188
+ };
189
+ ellipsis: {
190
+ type: BooleanConstructor;
191
+ default: boolean;
192
+ };
193
+ columnsHeight: {
194
+ type: NumberConstructor;
195
+ default: number;
196
+ };
197
+ valueKey: {
198
+ type: import("vue").PropType<string>;
199
+ default: string;
200
+ };
201
+ labelKey: {
202
+ type: import("vue").PropType<string>;
203
+ default: string;
204
+ };
205
+ modelValue: {
206
+ type: import("vue").PropType<string | number | Array<string> | Array<number>>;
207
+ default: string;
208
+ };
209
+ columns: {
210
+ type: import("vue").PropType<Array<string | number | ColumnItem | Array<string | number | ColumnItem>>>;
211
+ default: () => never[];
212
+ };
213
+ columnChange: import("vue").PropType<import("../wd-picker-view/types").PickerViewColumnChange>;
214
+ displayFormat: import("vue").PropType<import("./types").PickerDisplayFormat>;
215
+ zIndex: {
216
+ type: NumberConstructor;
217
+ default: number;
218
+ };
219
+ prop: StringConstructor;
220
+ rules: {
221
+ type: import("vue").PropType<FormItemRule[]>;
222
+ default: () => never[];
223
+ };
224
+ immediateChange: {
225
+ type: BooleanConstructor;
226
+ default: boolean;
227
+ };
228
+ customStyle: {
229
+ type: import("vue").PropType<string>;
230
+ default: string;
231
+ };
232
+ customClass: {
233
+ type: import("vue").PropType<string>;
234
+ default: string;
235
+ };
236
+ }>> & {
237
+ onCancel?: ((...args: any[]) => any) | undefined;
238
+ onOpen?: ((...args: any[]) => any) | undefined;
239
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
240
+ onConfirm?: ((...args: any[]) => any) | undefined;
241
+ }, {
242
+ modelValue: string | number | string[] | number[];
243
+ closeOnClickModal: boolean;
244
+ zIndex: number;
245
+ safeAreaInsetBottom: boolean;
246
+ customStyle: string;
247
+ customClass: string;
248
+ readonly: boolean;
249
+ required: boolean;
250
+ error: boolean;
251
+ disabled: boolean;
252
+ loading: boolean;
253
+ loadingColor: string;
254
+ immediateChange: boolean;
255
+ rules: FormItemRule[];
256
+ useLabelSlot: boolean;
257
+ useDefaultSlot: boolean;
258
+ alignRight: boolean;
259
+ ellipsis: boolean;
260
+ customViewClass: string;
261
+ customLabelClass: string;
262
+ customValueClass: string;
263
+ columns: (string | number | ColumnItem | (string | number | ColumnItem)[])[];
264
+ columnsHeight: number;
265
+ valueKey: string;
266
+ labelKey: string;
267
+ }, {}>, {
268
+ default?(_: {}): any;
269
+ label?(_: {}): any;
270
+ }>;
271
+ export default _default;
272
+ type __VLS_WithTemplateSlots<T, S> = T & {
273
+ new (): {
274
+ $slots: S;
275
+ };
276
+ };
@@ -0,0 +1,100 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ export type ColumnItem = {
3
+ [key: string]: any;
4
+ value?: string | number | boolean;
5
+ label?: string;
6
+ disabled?: boolean;
7
+ };
8
+ export type PickerViewColumnChange = (pickerView: PickerViewInstance, selects: Record<string, any> | Record<string, any>[], index: number, reslove: () => void) => void;
9
+ export declare const pickerViewProps: {
10
+ /**
11
+ * 加载状态
12
+ */
13
+ loading: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ /**
18
+ * 加载的颜色,只能使用十六进制的色值写法,且不能使用缩写
19
+ */
20
+ loadingColor: {
21
+ type: PropType<string>;
22
+ default: string;
23
+ };
24
+ /**
25
+ * picker内部滚筒高
26
+ */
27
+ columnsHeight: {
28
+ type: NumberConstructor;
29
+ default: number;
30
+ };
31
+ /**
32
+ * 选项对象中,value对应的 key
33
+ */
34
+ valueKey: {
35
+ type: PropType<string>;
36
+ default: string;
37
+ };
38
+ /**
39
+ * 选项对象中,展示的文本对应的 key
40
+ */
41
+ labelKey: {
42
+ type: PropType<string>;
43
+ default: string;
44
+ };
45
+ /**
46
+ * 是否在手指松开时立即触发picker-view的 change 事件。若不开启则会在滚动动画结束后触发 change 事件,1.2.25版本起提供,仅微信小程序和支付宝小程序支持。
47
+ */
48
+ immediateChange: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ /**
53
+ * 选中项,如果为多列选择器,则其类型应为数组
54
+ */
55
+ modelValue: {
56
+ type: PropType<string | number | boolean | Array<number> | Array<string> | Array<boolean>>;
57
+ default: string;
58
+ required: boolean;
59
+ };
60
+ /**
61
+ * 选择器数据,可以为字符串数组,也可以为对象数组,如果为二维数组,则为多列选择器
62
+ */
63
+ columns: {
64
+ type: PropType<(string | number | string[] | number[] | ColumnItem | ColumnItem[])[]>;
65
+ default: () => never[];
66
+ };
67
+ /**
68
+ * 接收 pickerView 实例、选中项、当前修改列的下标、resolve 作为入参,根据选中项和列下标进行判断,通过 pickerView 实例暴露出来的 setColumnData 方法修改其他列的数据源。
69
+ */
70
+ columnChange: PropType<PickerViewColumnChange>;
71
+ customStyle: {
72
+ type: PropType<string>;
73
+ default: string;
74
+ };
75
+ customClass: {
76
+ type: PropType<string>;
77
+ default: string;
78
+ };
79
+ };
80
+ export type PickerViewExpose = {
81
+ getSelects: () => Record<string, any> | Record<string, any>[];
82
+ getValues: () => string | string[];
83
+ setColumnData: (columnIndex: number, data: Array<string | number | ColumnItem | Array<string | number | ColumnItem>>, rowIndex?: number) => void;
84
+ getColumnsData: () => Record<string, string>[][];
85
+ getColumnData: (columnIndex: number) => Record<string, string>[];
86
+ getColumnIndex: (columnIndex: number) => number;
87
+ getLabels: () => string[];
88
+ getSelectedIndex: () => number[];
89
+ };
90
+ export type PickerViewProps = ExtractPropTypes<typeof pickerViewProps>;
91
+ export type PickerViewInstance = ComponentPublicInstance<PickerViewProps, PickerViewExpose>;
92
+ /**
93
+ * 格式化传入的列数据
94
+ * 列数据统一格式化为二维数组
95
+ * @param array 列数据
96
+ * @param valueKey
97
+ * @param labelKey
98
+ * @returns
99
+ */
100
+ export declare function formatArray(array: Array<string | number | ColumnItem | Array<string | number | ColumnItem>>, valueKey: string, labelKey: string): ColumnItem[][];
@@ -0,0 +1,119 @@
1
+ import { type ColumnItem } from './types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ loading: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ loadingColor: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ columnsHeight: {
12
+ type: NumberConstructor;
13
+ default: number;
14
+ };
15
+ valueKey: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ labelKey: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ immediateChange: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ modelValue: {
28
+ type: import("vue").PropType<string | number | boolean | Array<number> | Array<string> | Array<boolean>>;
29
+ default: string;
30
+ required: boolean;
31
+ };
32
+ columns: {
33
+ type: import("vue").PropType<(string | number | string[] | number[] | ColumnItem | ColumnItem[])[]>;
34
+ default: () => never[];
35
+ };
36
+ columnChange: import("vue").PropType<import("./types").PickerViewColumnChange>;
37
+ customStyle: {
38
+ type: import("vue").PropType<string>;
39
+ default: string;
40
+ };
41
+ customClass: {
42
+ type: import("vue").PropType<string>;
43
+ default: string;
44
+ };
45
+ }, {
46
+ getSelects: () => Record<string, any> | Record<string, any>[];
47
+ getValues: () => string | string[];
48
+ setColumnData: (columnIndex: number, data: Array<string | number | ColumnItem | Array<string | number | ColumnItem>>, rowIndex?: number) => void;
49
+ getColumnsData: () => Record<string, string>[][];
50
+ getColumnData: (columnIndex: number) => Record<string, string>[];
51
+ getColumnIndex: (columnIndex: number) => number;
52
+ getLabels: () => string[];
53
+ getSelectedIndex: () => number[];
54
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
55
+ "update:modelValue": (...args: any[]) => void;
56
+ change: (...args: any[]) => void;
57
+ pickstart: (...args: any[]) => void;
58
+ pickend: (...args: any[]) => void;
59
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
60
+ loading: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ loadingColor: {
65
+ type: import("vue").PropType<string>;
66
+ default: string;
67
+ };
68
+ columnsHeight: {
69
+ type: NumberConstructor;
70
+ default: number;
71
+ };
72
+ valueKey: {
73
+ type: import("vue").PropType<string>;
74
+ default: string;
75
+ };
76
+ labelKey: {
77
+ type: import("vue").PropType<string>;
78
+ default: string;
79
+ };
80
+ immediateChange: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ modelValue: {
85
+ type: import("vue").PropType<string | number | boolean | Array<number> | Array<string> | Array<boolean>>;
86
+ default: string;
87
+ required: boolean;
88
+ };
89
+ columns: {
90
+ type: import("vue").PropType<(string | number | string[] | number[] | ColumnItem | ColumnItem[])[]>;
91
+ default: () => never[];
92
+ };
93
+ columnChange: import("vue").PropType<import("./types").PickerViewColumnChange>;
94
+ customStyle: {
95
+ type: import("vue").PropType<string>;
96
+ default: string;
97
+ };
98
+ customClass: {
99
+ type: import("vue").PropType<string>;
100
+ default: string;
101
+ };
102
+ }>> & {
103
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
104
+ onChange?: ((...args: any[]) => any) | undefined;
105
+ onPickstart?: ((...args: any[]) => any) | undefined;
106
+ onPickend?: ((...args: any[]) => any) | undefined;
107
+ }, {
108
+ modelValue: string | number | boolean | string[] | number[] | boolean[];
109
+ customStyle: string;
110
+ customClass: string;
111
+ loading: boolean;
112
+ loadingColor: string;
113
+ immediateChange: boolean;
114
+ columns: (string | number | string[] | number[] | ColumnItem | ColumnItem[])[];
115
+ columnsHeight: number;
116
+ valueKey: string;
117
+ labelKey: string;
118
+ }, {}>;
119
+ export default _default;
@@ -0,0 +1,86 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ export type PlacementType = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
3
+ export type PopoverMode = 'menu' | 'normal';
4
+ export declare const popoverProps: {
5
+ customArrow: {
6
+ type: PropType<string>;
7
+ default: string;
8
+ };
9
+ customPop: {
10
+ type: PropType<string>;
11
+ default: string;
12
+ };
13
+ /**
14
+ * 是否显示 popover 箭头
15
+ */
16
+ visibleArrow: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ /**
21
+ * 显示的内容,也可以通过 slot#content 传入
22
+ */
23
+ content: PropType<string | Record<string, any>[]>;
24
+ /**
25
+ * 指定 popover 的放置位置:top / top-start / top-end / bottom / bottom-start / bottom-end / left / left-start / left-end / right / right-start / right-end
26
+ */
27
+ placement: {
28
+ type: PropType<PlacementType>;
29
+ default: PlacementType;
30
+ };
31
+ /**
32
+ * 偏移量
33
+ */
34
+ offset: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ /**
39
+ * 是否使用内容插槽
40
+ */
41
+ useContentSlot: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ /**
46
+ * 是否禁用 popover
47
+ */
48
+ disabled: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ /**
53
+ * 是否显示关闭按钮
54
+ */
55
+ showClose: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ /**
60
+ * 控制 popover 的显示状态
61
+ */
62
+ modelValue: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ /**
67
+ * 当前显示的模式,决定内容的展现形式,可选值:normal(普通模式)/ menu(菜单模式)
68
+ */
69
+ mode: {
70
+ type: PropType<PopoverMode>;
71
+ default: PopoverMode;
72
+ };
73
+ customStyle: {
74
+ type: PropType<string>;
75
+ default: string;
76
+ };
77
+ customClass: {
78
+ type: PropType<string>;
79
+ default: string;
80
+ };
81
+ };
82
+ export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
83
+ export type PopoverExpose = {
84
+ open: () => void;
85
+ close: () => void;
86
+ };