@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,226 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ import type { FormItemRule } from '../wd-form/types';
3
+ export declare const colPickerProps: {
4
+ /**
5
+ * 选中项
6
+ */
7
+ modelValue: {
8
+ type: PropType<(string | number)[]>;
9
+ required: true;
10
+ };
11
+ /**
12
+ * 选择器数据,二维数组
13
+ */
14
+ columns: {
15
+ type: PropType<Record<string, any>[][]>;
16
+ default: () => never[];
17
+ };
18
+ /**
19
+ * 选择器左侧文案
20
+ */
21
+ label: StringConstructor;
22
+ /**
23
+ * 设置左侧标题宽度
24
+ */
25
+ labelWidth: {
26
+ type: PropType<string>;
27
+ default: string;
28
+ };
29
+ /**
30
+ * 使用 label 插槽时设置该选项
31
+ */
32
+ useLabelSlot: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ /**
37
+ * 使用默认插槽时设置该选项
38
+ */
39
+ useDefaultSlot: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ /**
44
+ * 禁用
45
+ */
46
+ disabled: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ /**
51
+ * 只读
52
+ */
53
+ readonly: {
54
+ type: BooleanConstructor;
55
+ default: boolean;
56
+ };
57
+ /**
58
+ * 选择器占位符
59
+ */
60
+ placeholder: StringConstructor;
61
+ /**
62
+ * 弹出层标题
63
+ */
64
+ title: StringConstructor;
65
+ /**
66
+ * 接收当前列的选中项 item、当前列下标、当前列选中项下标下一列数据处理函数 resolve、结束选择 finish
67
+ */
68
+ columnChange: PropType<ColPickerColumnChange>;
69
+ /**
70
+ * 自定义展示文案的格式化函数,返回一个字符串
71
+ */
72
+ displayFormat: PropType<ColPickerDisplayFormat>;
73
+ /**
74
+ * 确定前校验函数,接收 (value, resolve) 参数,通过 resolve 继续执行 picker,resolve 接收 1 个 boolean 参数
75
+ */
76
+ beforeConfirm: PropType<ColPickerBeforeConfirm>;
77
+ /**
78
+ * 选择器的值靠右展示
79
+ */
80
+ alignRight: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ /**
85
+ * 是否为错误状态,错误状态时右侧内容为红色
86
+ */
87
+ error: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ /**
92
+ * 是否必填
93
+ */
94
+ required: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ /**
99
+ * 设置选择器大小,可选值:large
100
+ */
101
+ size: StringConstructor;
102
+ /**
103
+ * 选项对象中,value 对应的 key
104
+ */
105
+ valueKey: {
106
+ type: PropType<string>;
107
+ default: string;
108
+ };
109
+ /**
110
+ * 选项对象中,展示的文本对应的 key
111
+ */
112
+ labelKey: {
113
+ type: PropType<string>;
114
+ default: string;
115
+ };
116
+ /**
117
+ * 选项对象中,提示文案对应的 key
118
+ */
119
+ tipKey: {
120
+ type: PropType<string>;
121
+ default: string;
122
+ };
123
+ /**
124
+ * loading 图标的颜色
125
+ */
126
+ loadingColor: {
127
+ type: PropType<string>;
128
+ default: string;
129
+ };
130
+ /**
131
+ * 点击遮罩是否关闭
132
+ */
133
+ closeOnClickModal: {
134
+ type: BooleanConstructor;
135
+ default: boolean;
136
+ };
137
+ /**
138
+ * 自动触发 column-change 事件来补全数据,当 columns 为空数组或者 columns 数组长度小于 value 数组长度时,会自动触发 column-change
139
+ */
140
+ autoComplete: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ /**
145
+ * 弹窗层级
146
+ */
147
+ zIndex: {
148
+ type: NumberConstructor;
149
+ default: number;
150
+ };
151
+ /**
152
+ * 弹出面板是否设置底部安全距离(iphone X 类型的机型)
153
+ */
154
+ safeAreaInsetBottom: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ /**
159
+ * 是否超出隐藏
160
+ */
161
+ ellipsis: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ /**
166
+ * 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
167
+ */
168
+ prop: StringConstructor;
169
+ /**
170
+ * 表单验证规则,结合wd-form组件使用
171
+ */
172
+ rules: {
173
+ type: PropType<FormItemRule[]>;
174
+ default: () => never[];
175
+ };
176
+ /**
177
+ * 底部条宽度,单位像素
178
+ */
179
+ lineWidth: (NumberConstructor | StringConstructor)[];
180
+ /**
181
+ * 底部条高度,单位像素
182
+ */
183
+ lineHeight: (NumberConstructor | StringConstructor)[];
184
+ /**
185
+ * label 外部自定义样式
186
+ */
187
+ customViewClass: {
188
+ type: PropType<string>;
189
+ default: string;
190
+ };
191
+ /**
192
+ * value 外部自定义样式
193
+ */
194
+ customLabelClass: {
195
+ type: PropType<string>;
196
+ default: string;
197
+ };
198
+ customValueClass: {
199
+ type: PropType<string>;
200
+ default: string;
201
+ };
202
+ customStyle: {
203
+ type: PropType<string>;
204
+ default: string;
205
+ };
206
+ customClass: {
207
+ type: PropType<string>;
208
+ default: string;
209
+ };
210
+ };
211
+ export type ColPickerProps = ExtractPropTypes<typeof colPickerProps>;
212
+ export type ColPickerColumnChangeOption = {
213
+ selectedItem: Record<string, any>;
214
+ index: number;
215
+ rowIndex: number;
216
+ resolve: (nextColumn: Record<string, any>[]) => void;
217
+ finish: (isOk?: boolean) => void;
218
+ };
219
+ export type ColPickerColumnChange = (option: ColPickerColumnChangeOption) => void;
220
+ export type ColPickerDisplayFormat = (selectedItems: Record<string, any>[]) => string;
221
+ export type ColPickerBeforeConfirm = (value: (string | number)[], selectedItems: Record<string, any>[], resolve: (isPass: boolean) => void) => void;
222
+ export type ColPickerExpose = {
223
+ close: () => void;
224
+ open: () => void;
225
+ };
226
+ export type ColPickerInstance = ComponentPublicInstance<ColPickerExpose, ColPickerProps>;
@@ -0,0 +1,269 @@
1
+ import { type FormItemRule } from '../wd-form/types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: import("vue").PropType<(string | number)[]>;
5
+ required: true;
6
+ };
7
+ columns: {
8
+ type: import("vue").PropType<Record<string, any>[][]>;
9
+ default: () => never[];
10
+ };
11
+ label: StringConstructor;
12
+ labelWidth: {
13
+ type: import("vue").PropType<string>;
14
+ default: string;
15
+ };
16
+ useLabelSlot: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ useDefaultSlot: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ disabled: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ readonly: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ placeholder: StringConstructor;
33
+ title: StringConstructor;
34
+ columnChange: import("vue").PropType<import("./types").ColPickerColumnChange>;
35
+ displayFormat: import("vue").PropType<import("./types").ColPickerDisplayFormat>;
36
+ beforeConfirm: import("vue").PropType<import("./types").ColPickerBeforeConfirm>;
37
+ alignRight: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ error: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ required: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ size: StringConstructor;
50
+ valueKey: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ labelKey: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ tipKey: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ loadingColor: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ closeOnClickModal: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ autoComplete: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ zIndex: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ safeAreaInsetBottom: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ ellipsis: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ prop: StringConstructor;
87
+ rules: {
88
+ type: import("vue").PropType<FormItemRule[]>;
89
+ default: () => never[];
90
+ };
91
+ lineWidth: (NumberConstructor | StringConstructor)[];
92
+ lineHeight: (NumberConstructor | StringConstructor)[];
93
+ customViewClass: {
94
+ type: import("vue").PropType<string>;
95
+ default: string;
96
+ };
97
+ customLabelClass: {
98
+ type: import("vue").PropType<string>;
99
+ default: string;
100
+ };
101
+ customValueClass: {
102
+ type: import("vue").PropType<string>;
103
+ default: string;
104
+ };
105
+ customStyle: {
106
+ type: import("vue").PropType<string>;
107
+ default: string;
108
+ };
109
+ customClass: {
110
+ type: import("vue").PropType<string>;
111
+ default: string;
112
+ };
113
+ }, {
114
+ close: () => void;
115
+ open: () => void;
116
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
117
+ close: (...args: any[]) => void;
118
+ "update:modelValue": (...args: any[]) => void;
119
+ confirm: (...args: any[]) => void;
120
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
121
+ modelValue: {
122
+ type: import("vue").PropType<(string | number)[]>;
123
+ required: true;
124
+ };
125
+ columns: {
126
+ type: import("vue").PropType<Record<string, any>[][]>;
127
+ default: () => never[];
128
+ };
129
+ label: StringConstructor;
130
+ labelWidth: {
131
+ type: import("vue").PropType<string>;
132
+ default: string;
133
+ };
134
+ useLabelSlot: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ useDefaultSlot: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ disabled: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ readonly: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ placeholder: StringConstructor;
151
+ title: StringConstructor;
152
+ columnChange: import("vue").PropType<import("./types").ColPickerColumnChange>;
153
+ displayFormat: import("vue").PropType<import("./types").ColPickerDisplayFormat>;
154
+ beforeConfirm: import("vue").PropType<import("./types").ColPickerBeforeConfirm>;
155
+ alignRight: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ error: {
160
+ type: BooleanConstructor;
161
+ default: boolean;
162
+ };
163
+ required: {
164
+ type: BooleanConstructor;
165
+ default: boolean;
166
+ };
167
+ size: StringConstructor;
168
+ valueKey: {
169
+ type: import("vue").PropType<string>;
170
+ default: string;
171
+ };
172
+ labelKey: {
173
+ type: import("vue").PropType<string>;
174
+ default: string;
175
+ };
176
+ tipKey: {
177
+ type: import("vue").PropType<string>;
178
+ default: string;
179
+ };
180
+ loadingColor: {
181
+ type: import("vue").PropType<string>;
182
+ default: string;
183
+ };
184
+ closeOnClickModal: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ autoComplete: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ zIndex: {
193
+ type: NumberConstructor;
194
+ default: number;
195
+ };
196
+ safeAreaInsetBottom: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
200
+ ellipsis: {
201
+ type: BooleanConstructor;
202
+ default: boolean;
203
+ };
204
+ prop: StringConstructor;
205
+ rules: {
206
+ type: import("vue").PropType<FormItemRule[]>;
207
+ default: () => never[];
208
+ };
209
+ lineWidth: (NumberConstructor | StringConstructor)[];
210
+ lineHeight: (NumberConstructor | StringConstructor)[];
211
+ customViewClass: {
212
+ type: import("vue").PropType<string>;
213
+ default: string;
214
+ };
215
+ customLabelClass: {
216
+ type: import("vue").PropType<string>;
217
+ default: string;
218
+ };
219
+ customValueClass: {
220
+ type: import("vue").PropType<string>;
221
+ default: string;
222
+ };
223
+ customStyle: {
224
+ type: import("vue").PropType<string>;
225
+ default: string;
226
+ };
227
+ customClass: {
228
+ type: import("vue").PropType<string>;
229
+ default: string;
230
+ };
231
+ }>> & {
232
+ onClose?: ((...args: any[]) => any) | undefined;
233
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
234
+ onConfirm?: ((...args: any[]) => any) | undefined;
235
+ }, {
236
+ closeOnClickModal: boolean;
237
+ zIndex: number;
238
+ safeAreaInsetBottom: boolean;
239
+ customStyle: string;
240
+ customClass: string;
241
+ readonly: boolean;
242
+ required: boolean;
243
+ error: boolean;
244
+ disabled: boolean;
245
+ loadingColor: string;
246
+ rules: FormItemRule[];
247
+ labelWidth: string;
248
+ useLabelSlot: boolean;
249
+ useDefaultSlot: boolean;
250
+ alignRight: boolean;
251
+ ellipsis: boolean;
252
+ customViewClass: string;
253
+ customLabelClass: string;
254
+ customValueClass: string;
255
+ columns: Record<string, any>[][];
256
+ valueKey: string;
257
+ labelKey: string;
258
+ tipKey: string;
259
+ autoComplete: boolean;
260
+ }, {}>, {
261
+ default?(_: {}): any;
262
+ label?(_: {}): any;
263
+ }>;
264
+ export default _default;
265
+ type __VLS_WithTemplateSlots<T, S> = T & {
266
+ new (): {
267
+ $slots: S;
268
+ };
269
+ };
@@ -0,0 +1,70 @@
1
+ import { type ComponentPublicInstance, type ExtractPropTypes, type InjectionKey, type PropType } from 'vue';
2
+ export type CollapseToggleAllOptions = boolean | {
3
+ expanded?: boolean;
4
+ skipDisabled?: boolean;
5
+ };
6
+ export type CollapseProvide = {
7
+ props: Partial<CollapseProps>;
8
+ toggle: (name: string, expanded: boolean) => void;
9
+ };
10
+ export declare const COLLAPSE_KEY: InjectionKey<CollapseProvide>;
11
+ export declare const collapseProps: {
12
+ /**
13
+ * 查看更多模式下的插槽外部自定义样式
14
+ */
15
+ customMoreSlotClass: {
16
+ type: PropType<string>;
17
+ default: string;
18
+ };
19
+ /**
20
+ * 绑定值
21
+ */
22
+ modelValue: {
23
+ type: PropType<string | Array<string> | boolean>;
24
+ };
25
+ /**
26
+ * 手风琴模式
27
+ */
28
+ accordion: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ /**
33
+ * 查看更多的折叠面板
34
+ */
35
+ viewmore: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ /**
40
+ * 查看更多的自定义插槽使用标志
41
+ */
42
+ useMoreSlot: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ /**
47
+ * 查看更多的折叠面板,收起时的显示行数
48
+ */
49
+ lineNum: {
50
+ type: NumberConstructor;
51
+ default: number;
52
+ };
53
+ customStyle: {
54
+ type: PropType<string>;
55
+ default: string;
56
+ };
57
+ customClass: {
58
+ type: PropType<string>;
59
+ default: string;
60
+ };
61
+ };
62
+ export type CollapseProps = ExtractPropTypes<typeof collapseProps>;
63
+ export type CollapseExpose = {
64
+ /**
65
+ * 切换所有面板展开状态,传 true 为全部展开,false 为全部收起,不传参为全部切换
66
+ * @param options 面板状态
67
+ */
68
+ toggleAll: (options?: boolean | CollapseToggleAllOptions) => void;
69
+ };
70
+ export type CollapseInstance = ComponentPublicInstance<CollapseProps, CollapseExpose>;
@@ -0,0 +1,92 @@
1
+ import { type CollapseToggleAllOptions } from './types';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ customMoreSlotClass: {
4
+ type: import("vue").PropType<string>;
5
+ default: string;
6
+ };
7
+ modelValue: {
8
+ type: import("vue").PropType<string | Array<string> | boolean>;
9
+ };
10
+ accordion: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ viewmore: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ useMoreSlot: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ lineNum: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ customStyle: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ customClass: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ }, {
35
+ toggleAll: (options?: boolean | CollapseToggleAllOptions) => void;
36
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ "update:modelValue": (...args: any[]) => void;
38
+ change: (...args: any[]) => void;
39
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
+ customMoreSlotClass: {
41
+ type: import("vue").PropType<string>;
42
+ default: string;
43
+ };
44
+ modelValue: {
45
+ type: import("vue").PropType<string | Array<string> | boolean>;
46
+ };
47
+ accordion: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ viewmore: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ useMoreSlot: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ lineNum: {
60
+ type: NumberConstructor;
61
+ default: number;
62
+ };
63
+ customStyle: {
64
+ type: import("vue").PropType<string>;
65
+ default: string;
66
+ };
67
+ customClass: {
68
+ type: import("vue").PropType<string>;
69
+ default: string;
70
+ };
71
+ }>> & {
72
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
73
+ onChange?: ((...args: any[]) => any) | undefined;
74
+ }, {
75
+ customStyle: string;
76
+ customClass: string;
77
+ customMoreSlotClass: string;
78
+ accordion: boolean;
79
+ viewmore: boolean;
80
+ useMoreSlot: boolean;
81
+ lineNum: number;
82
+ }, {}>, {
83
+ default?(_: {}): any;
84
+ default?(_: {}): any;
85
+ more?(_: {}): any;
86
+ }>;
87
+ export default _default;
88
+ type __VLS_WithTemplateSlots<T, S> = T & {
89
+ new (): {
90
+ $slots: S;
91
+ };
92
+ };
@@ -0,0 +1,46 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ export type CollapseItemBeforeExpand = (name: string) => void;
3
+ export declare const collapseItemProps: {
4
+ /**
5
+ * 折叠栏的标题, 可通过 slot 传递自定义内容
6
+ */
7
+ title: {
8
+ type: PropType<string>;
9
+ default: string;
10
+ };
11
+ /**
12
+ * 禁用折叠栏
13
+ */
14
+ disabled: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ /**
19
+ * 折叠栏的标识符
20
+ */
21
+ name: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ /**
26
+ * 打开前的回调函数,返回 false 可以阻止打开,支持返回 Promise
27
+ */
28
+ beforeExpend: PropType<CollapseItemBeforeExpand>;
29
+ customStyle: {
30
+ type: PropType<string>;
31
+ default: string;
32
+ };
33
+ customClass: {
34
+ type: PropType<string>;
35
+ default: string;
36
+ };
37
+ };
38
+ export type CollapseItemProps = ExtractPropTypes<typeof collapseItemProps>;
39
+ export type CollapseItemExpose = {
40
+ /**
41
+ * 获取展开状态
42
+ * @returns boolean
43
+ */
44
+ getExpanded: () => boolean;
45
+ };
46
+ export type CollapseItemInstance = ComponentPublicInstance<CollapseItemProps, CollapseItemExpose>;