@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,390 @@
1
+ import { type FormItemRule } from '../wd-form/types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ customTextareaContainerClass: {
4
+ type: import("vue").PropType<string>;
5
+ default: string;
6
+ };
7
+ customTextareaClass: {
8
+ type: import("vue").PropType<string>;
9
+ default: string;
10
+ };
11
+ customLabelClass: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ modelValue: {
16
+ type: (NumberConstructor | StringConstructor)[];
17
+ default: string;
18
+ };
19
+ placeholder: StringConstructor;
20
+ placeholderStyle: StringConstructor;
21
+ placeholderClass: {
22
+ type: import("vue").PropType<string>;
23
+ default: string;
24
+ };
25
+ disabled: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ maxlength: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ autoFocus: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ focus: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ autoHeight: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ fixed: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ cursorSpacing: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ cursor: {
54
+ type: NumberConstructor;
55
+ default: number;
56
+ };
57
+ confirmType: {
58
+ type: import("vue").PropType<import("./types").ConfirmType | null>;
59
+ default: import("./types").ConfirmType | null;
60
+ };
61
+ confirmHold: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ showConfirmBar: {
66
+ type: BooleanConstructor;
67
+ default: boolean;
68
+ };
69
+ selectionStart: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ selectionEnd: {
74
+ type: NumberConstructor;
75
+ default: number;
76
+ };
77
+ adjustPosition: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ disableDefaultPadding: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ holdKeyboard: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ showPassword: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ clearable: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ readonly: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ prefixIcon: StringConstructor;
102
+ usePrefixSlot: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ showWordLimit: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ label: StringConstructor;
111
+ labelWidth: {
112
+ type: import("vue").PropType<string>;
113
+ default: string;
114
+ };
115
+ useLabelSlot: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ size: StringConstructor;
120
+ error: {
121
+ type: BooleanConstructor;
122
+ default: boolean;
123
+ };
124
+ center: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ noBorder: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ required: {
133
+ type: BooleanConstructor;
134
+ default: boolean;
135
+ };
136
+ prop: {
137
+ type: import("vue").PropType<string>;
138
+ default: string;
139
+ };
140
+ rules: {
141
+ type: import("vue").PropType<FormItemRule[]>;
142
+ default: () => never[];
143
+ };
144
+ clearTrigger: {
145
+ type: import("vue").PropType<import("../wd-input/types").InputClearTrigger>;
146
+ default: import("../wd-input/types").InputClearTrigger;
147
+ };
148
+ focusWhenClear: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ customStyle: {
153
+ type: import("vue").PropType<string>;
154
+ default: string;
155
+ };
156
+ customClass: {
157
+ type: import("vue").PropType<string>;
158
+ default: string;
159
+ };
160
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
161
+ "update:modelValue": (...args: any[]) => void;
162
+ input: (...args: any[]) => void;
163
+ click: (...args: any[]) => void;
164
+ change: (...args: any[]) => void;
165
+ confirm: (...args: any[]) => void;
166
+ clear: (...args: any[]) => void;
167
+ focus: (...args: any[]) => void;
168
+ blur: (...args: any[]) => void;
169
+ keyboardheightchange: (...args: any[]) => void;
170
+ clickprefixicon: (...args: any[]) => void;
171
+ linechange: (...args: any[]) => void;
172
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
173
+ customTextareaContainerClass: {
174
+ type: import("vue").PropType<string>;
175
+ default: string;
176
+ };
177
+ customTextareaClass: {
178
+ type: import("vue").PropType<string>;
179
+ default: string;
180
+ };
181
+ customLabelClass: {
182
+ type: import("vue").PropType<string>;
183
+ default: string;
184
+ };
185
+ modelValue: {
186
+ type: (NumberConstructor | StringConstructor)[];
187
+ default: string;
188
+ };
189
+ placeholder: StringConstructor;
190
+ placeholderStyle: StringConstructor;
191
+ placeholderClass: {
192
+ type: import("vue").PropType<string>;
193
+ default: string;
194
+ };
195
+ disabled: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ maxlength: {
200
+ type: NumberConstructor;
201
+ default: number;
202
+ };
203
+ autoFocus: {
204
+ type: BooleanConstructor;
205
+ default: boolean;
206
+ };
207
+ focus: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ };
211
+ autoHeight: {
212
+ type: BooleanConstructor;
213
+ default: boolean;
214
+ };
215
+ fixed: {
216
+ type: BooleanConstructor;
217
+ default: boolean;
218
+ };
219
+ cursorSpacing: {
220
+ type: NumberConstructor;
221
+ default: number;
222
+ };
223
+ cursor: {
224
+ type: NumberConstructor;
225
+ default: number;
226
+ };
227
+ confirmType: {
228
+ type: import("vue").PropType<import("./types").ConfirmType | null>;
229
+ default: import("./types").ConfirmType | null;
230
+ };
231
+ confirmHold: {
232
+ type: BooleanConstructor;
233
+ default: boolean;
234
+ };
235
+ showConfirmBar: {
236
+ type: BooleanConstructor;
237
+ default: boolean;
238
+ };
239
+ selectionStart: {
240
+ type: NumberConstructor;
241
+ default: number;
242
+ };
243
+ selectionEnd: {
244
+ type: NumberConstructor;
245
+ default: number;
246
+ };
247
+ adjustPosition: {
248
+ type: BooleanConstructor;
249
+ default: boolean;
250
+ };
251
+ disableDefaultPadding: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ holdKeyboard: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
259
+ showPassword: {
260
+ type: BooleanConstructor;
261
+ default: boolean;
262
+ };
263
+ clearable: {
264
+ type: BooleanConstructor;
265
+ default: boolean;
266
+ };
267
+ readonly: {
268
+ type: BooleanConstructor;
269
+ default: boolean;
270
+ };
271
+ prefixIcon: StringConstructor;
272
+ usePrefixSlot: {
273
+ type: BooleanConstructor;
274
+ default: boolean;
275
+ };
276
+ showWordLimit: {
277
+ type: BooleanConstructor;
278
+ default: boolean;
279
+ };
280
+ label: StringConstructor;
281
+ labelWidth: {
282
+ type: import("vue").PropType<string>;
283
+ default: string;
284
+ };
285
+ useLabelSlot: {
286
+ type: BooleanConstructor;
287
+ default: boolean;
288
+ };
289
+ size: StringConstructor;
290
+ error: {
291
+ type: BooleanConstructor;
292
+ default: boolean;
293
+ };
294
+ center: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ noBorder: {
299
+ type: BooleanConstructor;
300
+ default: boolean;
301
+ };
302
+ required: {
303
+ type: BooleanConstructor;
304
+ default: boolean;
305
+ };
306
+ prop: {
307
+ type: import("vue").PropType<string>;
308
+ default: string;
309
+ };
310
+ rules: {
311
+ type: import("vue").PropType<FormItemRule[]>;
312
+ default: () => never[];
313
+ };
314
+ clearTrigger: {
315
+ type: import("vue").PropType<import("../wd-input/types").InputClearTrigger>;
316
+ default: import("../wd-input/types").InputClearTrigger;
317
+ };
318
+ focusWhenClear: {
319
+ type: BooleanConstructor;
320
+ default: boolean;
321
+ };
322
+ customStyle: {
323
+ type: import("vue").PropType<string>;
324
+ default: string;
325
+ };
326
+ customClass: {
327
+ type: import("vue").PropType<string>;
328
+ default: string;
329
+ };
330
+ }>> & {
331
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
332
+ onFocus?: ((...args: any[]) => any) | undefined;
333
+ onBlur?: ((...args: any[]) => any) | undefined;
334
+ onChange?: ((...args: any[]) => any) | undefined;
335
+ onInput?: ((...args: any[]) => any) | undefined;
336
+ onClick?: ((...args: any[]) => any) | undefined;
337
+ onConfirm?: ((...args: any[]) => any) | undefined;
338
+ onClear?: ((...args: any[]) => any) | undefined;
339
+ onKeyboardheightchange?: ((...args: any[]) => any) | undefined;
340
+ onClickprefixicon?: ((...args: any[]) => any) | undefined;
341
+ onLinechange?: ((...args: any[]) => any) | undefined;
342
+ }, {
343
+ modelValue: string | number;
344
+ customStyle: string;
345
+ customClass: string;
346
+ fixed: boolean;
347
+ readonly: boolean;
348
+ required: boolean;
349
+ error: boolean;
350
+ disabled: boolean;
351
+ rules: FormItemRule[];
352
+ labelWidth: string;
353
+ useLabelSlot: boolean;
354
+ center: boolean;
355
+ prop: string;
356
+ customLabelClass: string;
357
+ focus: boolean;
358
+ placeholderClass: string;
359
+ cursorSpacing: number;
360
+ cursor: number;
361
+ selectionStart: number;
362
+ selectionEnd: number;
363
+ adjustPosition: boolean;
364
+ holdKeyboard: boolean;
365
+ confirmType: import("./types").ConfirmType | null;
366
+ confirmHold: boolean;
367
+ maxlength: number;
368
+ showPassword: boolean;
369
+ clearable: boolean;
370
+ usePrefixSlot: boolean;
371
+ showWordLimit: boolean;
372
+ noBorder: boolean;
373
+ clearTrigger: import("../wd-input/types").InputClearTrigger;
374
+ focusWhenClear: boolean;
375
+ customTextareaContainerClass: string;
376
+ customTextareaClass: string;
377
+ autoFocus: boolean;
378
+ autoHeight: boolean;
379
+ showConfirmBar: boolean;
380
+ disableDefaultPadding: boolean;
381
+ }, {}>, {
382
+ prefix?(_: {}): any;
383
+ label?(_: {}): any;
384
+ }>;
385
+ export default _default;
386
+ type __VLS_WithTemplateSlots<T, S> = T & {
387
+ new (): {
388
+ $slots: S;
389
+ };
390
+ };
@@ -0,0 +1,15 @@
1
+ import type { Toast, ToastOptions } from './types';
2
+ /**
3
+ * useToast 用到的key
4
+ *
5
+ * @internal
6
+ */
7
+ export declare const toastDefaultOptionKey = "__TOAST_OPTION__";
8
+ export declare const defaultOptions: ToastOptions;
9
+ export declare function useToast(selector?: string): Toast;
10
+ export declare const toastIcon: {
11
+ success(): string;
12
+ warning(): string;
13
+ info(): string;
14
+ error(): string;
15
+ };
@@ -0,0 +1,62 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type { LoadingType } from '../wd-loading/types';
3
+ export type ToastIconType = 'success' | 'error' | 'warning' | 'loading' | 'info';
4
+ export type ToastPositionType = 'top' | 'middle' | 'bottom';
5
+ export type ToastLoadingType = LoadingType;
6
+ export type ToastOptions = {
7
+ msg?: string;
8
+ duration?: number;
9
+ iconName?: ToastIconType;
10
+ iconSize?: number;
11
+ loadingType?: ToastLoadingType;
12
+ loadingColor?: string;
13
+ loadingSize?: number;
14
+ iconColor?: string;
15
+ position?: ToastPositionType;
16
+ show?: boolean;
17
+ zIndex?: number;
18
+ /**
19
+ * 是否存在遮罩层
20
+ */
21
+ cover?: boolean;
22
+ /**
23
+ * 图标类名
24
+ */
25
+ iconClass?: string;
26
+ /**
27
+ * 类名前缀,用于使用自定义图标
28
+ */
29
+ classPrefix?: string;
30
+ /**
31
+ * 完全展示后的回调函数
32
+ */
33
+ opened?: () => void;
34
+ /**
35
+ * 完全关闭时的回调函数
36
+ */
37
+ closed?: () => void;
38
+ };
39
+ export interface Toast {
40
+ show(toastOptions: ToastOptions | string): void;
41
+ success(toastOptions: ToastOptions | string): void;
42
+ error(toastOptions: ToastOptions | string): void;
43
+ info(toastOptions: ToastOptions | string): void;
44
+ warning(toastOptions: ToastOptions | string): void;
45
+ loading(toastOptions: ToastOptions | string): void;
46
+ close(): void;
47
+ }
48
+ export declare const toastProps: {
49
+ selector: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ customStyle: {
54
+ type: import("vue").PropType<string>;
55
+ default: string;
56
+ };
57
+ customClass: {
58
+ type: import("vue").PropType<string>;
59
+ default: string;
60
+ };
61
+ };
62
+ export type ToastProps = ExtractPropTypes<typeof toastProps>;
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ selector: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
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, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ selector: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ customStyle: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ customClass: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ customStyle: string;
29
+ customClass: string;
30
+ selector: string;
31
+ }, {}>;
32
+ export default _default;
@@ -0,0 +1,106 @@
1
+ import type { ComponentPublicInstance, 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 declare const tooltipProps: {
4
+ /**
5
+ * 自定义箭头内容
6
+ * 类型:string
7
+ */
8
+ customArrow: {
9
+ type: PropType<string>;
10
+ default: string;
11
+ };
12
+ /**
13
+ * 自定义弹出内容
14
+ * 类型:string
15
+ */
16
+ customPop: {
17
+ type: PropType<string>;
18
+ default: string;
19
+ };
20
+ /**
21
+ * 是否显示Tooltip箭头
22
+ * 类型:boolean
23
+ * 默认值:true
24
+ */
25
+ visibleArrow: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ /**
30
+ * 显示的内容,也可以通过`slot#content`传入
31
+ * 类型:string | Array<Record<string, any>>
32
+ * 默认值:无(根据传入值而定)
33
+ */
34
+ content: {
35
+ type: PropType<string | Array<Record<string, any>>>;
36
+ };
37
+ /**
38
+ * Tooltip的出现位置
39
+ * 类型:string
40
+ * 可选值:top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end
41
+ * 默认值:'bottom'
42
+ */
43
+ placement: {
44
+ type: PropType<PlacementType>;
45
+ default: PlacementType;
46
+ };
47
+ /**
48
+ * 出现位置的偏移量
49
+ * 类型:number
50
+ * 默认值:0
51
+ */
52
+ offset: {
53
+ type: NumberConstructor;
54
+ default: number;
55
+ };
56
+ /**
57
+ * 是否使用slot来传入content内容
58
+ * 类型:boolean
59
+ * 默认值:false
60
+ */
61
+ useContentSlot: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * Tooltip是否可用
67
+ * 类型:boolean
68
+ * 默认值:false
69
+ */
70
+ disabled: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ /**
75
+ * 是否显示Tooltip内部的关闭按钮
76
+ * 类型:boolean
77
+ * 默认值:false
78
+ */
79
+ showClose: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ /**
84
+ * Tooltip的状态是否可见,通过v-model绑定
85
+ * 类型:boolean
86
+ * 默认值:false
87
+ */
88
+ modelValue: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ customStyle: {
93
+ type: PropType<string>;
94
+ default: string;
95
+ };
96
+ customClass: {
97
+ type: PropType<string>;
98
+ default: string;
99
+ };
100
+ };
101
+ export type TooltipProps = ExtractPropTypes<typeof tooltipProps>;
102
+ export type TooltipExpose = {
103
+ open: () => void;
104
+ close: () => void;
105
+ };
106
+ export type TooltipInstance = ComponentPublicInstance<TooltipProps, TooltipExpose>;