@tplc/wot 0.0.1 → 0.1.0

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 +10 -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,148 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ export type DateTimeType = 'date' | 'year-month' | 'time' | 'datetime' | 'year';
3
+ /**
4
+ * @description 根据传入的值和类型,获取当前的选项数组,便于传入 pickerView
5
+ * @param value
6
+ * @param type picker类型
7
+ * @return {Array} pickerValue
8
+ */
9
+ export declare function getPickerValue(value: string | number, type: DateTimeType): number[];
10
+ export declare const datetimePickerViewProps: {
11
+ /**
12
+ * 选中项,当 type 为 time 时,类型为字符串,否则为 时间戳
13
+ */
14
+ modelValue: {
15
+ type: (NumberConstructor | StringConstructor | DateConstructor)[];
16
+ required: true;
17
+ };
18
+ /**
19
+ * 加载中
20
+ */
21
+ loading: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ /**
26
+ * 加载的颜色,只能使用十六进制的色值写法,且不能使用缩写
27
+ */
28
+ loadingColor: {
29
+ type: PropType<string>;
30
+ default: string;
31
+ };
32
+ /**
33
+ * picker内部滚筒高
34
+ */
35
+ columnsHeight: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ valueKey: {
40
+ type: PropType<string>;
41
+ default: string;
42
+ };
43
+ labelKey: {
44
+ type: PropType<string>;
45
+ default: string;
46
+ };
47
+ /**
48
+ * 选择器类型,可选值:date / year-month / time
49
+ */
50
+ type: {
51
+ type: PropType<DateTimeType>;
52
+ default: DateTimeType;
53
+ };
54
+ /**
55
+ * 自定义过滤选项的函数,返回列的选项数组
56
+ */
57
+ filter: PropType<DatetimePickerViewFilter>;
58
+ /**
59
+ * 自定义弹出层选项文案的格式化函数,返回一个字符串
60
+ */
61
+ formatter: PropType<DatetimePickerViewFormatter>;
62
+ /**
63
+ * 自定义列的格式化函数
64
+ */
65
+ columnFormatter: PropType<DatetimePickerViewColumnFormatter>;
66
+ /**
67
+ * 最小日期
68
+ */
69
+ minDate: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ /**
74
+ * 最大日期
75
+ */
76
+ maxDate: {
77
+ type: NumberConstructor;
78
+ default: number;
79
+ };
80
+ /**
81
+ * 最小小时,time类型时生效
82
+ */
83
+ minHour: {
84
+ type: NumberConstructor;
85
+ default: number;
86
+ };
87
+ /**
88
+ * 最大小时,time类型时生效
89
+ */
90
+ maxHour: {
91
+ type: NumberConstructor;
92
+ default: number;
93
+ };
94
+ /**
95
+ * 最小分钟,time类型时生效
96
+ */
97
+ minMinute: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ /**
102
+ * 最大分钟,time类型时生效
103
+ */
104
+ maxMinute: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ };
108
+ /**
109
+ * 是否在手指松开时立即触发picker-view的 change 事件。若不开启则会在滚动动画结束后触发 change 事件,1.2.25版本起提供,仅微信小程序和支付宝小程序支持。
110
+ */
111
+ immediateChange: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ startSymbol: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ customStyle: {
120
+ type: PropType<string>;
121
+ default: string;
122
+ };
123
+ customClass: {
124
+ type: PropType<string>;
125
+ default: string;
126
+ };
127
+ };
128
+ export type DatetimePickerViewColumnType = 'year' | 'month' | 'date' | 'hour' | 'minute';
129
+ export type DatetimePickerViewOption = {
130
+ label: string;
131
+ value: number;
132
+ };
133
+ export type DatetimePickerViewFilter = (type: DatetimePickerViewColumnType, values: number[]) => number[];
134
+ export type DatetimePickerViewFormatter = (type: string, value: string) => string;
135
+ export type DatetimePickerViewColumnFormatter = (picker: DatetimePickerViewInstance) => DatetimePickerViewOption[][];
136
+ export type DatetimePickerViewProps = ExtractPropTypes<typeof datetimePickerViewProps>;
137
+ export type DatetimePickerViewExpose = {
138
+ updateColumns: () => DatetimePickerViewOption[][];
139
+ setColumns: (columnList: DatetimePickerViewOption[][]) => void;
140
+ getSelects: () => Record<string, any> | Record<string, any>[] | undefined;
141
+ correctValue: (value: string | number) => string | number;
142
+ getPickerValue: (value: string | number, type: DateTimeType) => number[];
143
+ getOriginColumns: () => {
144
+ type: DatetimePickerViewColumnType;
145
+ values: number[];
146
+ }[];
147
+ };
148
+ export type DatetimePickerViewInstance = ComponentPublicInstance<DatetimePickerViewProps, DatetimePickerViewExpose>;
@@ -0,0 +1,184 @@
1
+ import { type DatetimePickerViewColumnType, type DatetimePickerViewOption } from './types';
2
+ declare const _default: import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: (NumberConstructor | StringConstructor | DateConstructor)[];
5
+ required: true;
6
+ };
7
+ loading: {
8
+ type: BooleanConstructor;
9
+ default: boolean;
10
+ };
11
+ loadingColor: {
12
+ type: import("vue").PropType<string>;
13
+ default: string;
14
+ };
15
+ columnsHeight: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ valueKey: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ labelKey: {
24
+ type: import("vue").PropType<string>;
25
+ default: string;
26
+ };
27
+ type: {
28
+ type: import("vue").PropType<import("./types").DateTimeType>;
29
+ default: import("./types").DateTimeType;
30
+ };
31
+ filter: import("vue").PropType<import("./types").DatetimePickerViewFilter>;
32
+ formatter: import("vue").PropType<import("./types").DatetimePickerViewFormatter>;
33
+ columnFormatter: import("vue").PropType<import("./types").DatetimePickerViewColumnFormatter>;
34
+ minDate: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ maxDate: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ minHour: {
43
+ type: NumberConstructor;
44
+ default: number;
45
+ };
46
+ maxHour: {
47
+ type: NumberConstructor;
48
+ default: number;
49
+ };
50
+ minMinute: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ maxMinute: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ immediateChange: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ startSymbol: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ customStyle: {
67
+ type: import("vue").PropType<string>;
68
+ default: string;
69
+ };
70
+ customClass: {
71
+ type: import("vue").PropType<string>;
72
+ default: string;
73
+ };
74
+ }, {
75
+ updateColumns: () => DatetimePickerViewOption[][];
76
+ setColumns: (columnList: DatetimePickerViewOption[][]) => void;
77
+ getSelects: () => Record<string, any> | Record<string, any>[] | undefined;
78
+ correctValue: (value: string | number) => string | number;
79
+ getPickerValue: (value: string | number, type: import("./types").DateTimeType) => number[];
80
+ getOriginColumns: () => {
81
+ type: DatetimePickerViewColumnType;
82
+ values: number[];
83
+ }[];
84
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
85
+ "update:modelValue": (...args: any[]) => void;
86
+ change: (...args: any[]) => void;
87
+ pickstart: (...args: any[]) => void;
88
+ pickend: (...args: any[]) => void;
89
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
90
+ modelValue: {
91
+ type: (NumberConstructor | StringConstructor | DateConstructor)[];
92
+ required: true;
93
+ };
94
+ loading: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ loadingColor: {
99
+ type: import("vue").PropType<string>;
100
+ default: string;
101
+ };
102
+ columnsHeight: {
103
+ type: NumberConstructor;
104
+ default: number;
105
+ };
106
+ valueKey: {
107
+ type: import("vue").PropType<string>;
108
+ default: string;
109
+ };
110
+ labelKey: {
111
+ type: import("vue").PropType<string>;
112
+ default: string;
113
+ };
114
+ type: {
115
+ type: import("vue").PropType<import("./types").DateTimeType>;
116
+ default: import("./types").DateTimeType;
117
+ };
118
+ filter: import("vue").PropType<import("./types").DatetimePickerViewFilter>;
119
+ formatter: import("vue").PropType<import("./types").DatetimePickerViewFormatter>;
120
+ columnFormatter: import("vue").PropType<import("./types").DatetimePickerViewColumnFormatter>;
121
+ minDate: {
122
+ type: NumberConstructor;
123
+ default: number;
124
+ };
125
+ maxDate: {
126
+ type: NumberConstructor;
127
+ default: number;
128
+ };
129
+ minHour: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ maxHour: {
134
+ type: NumberConstructor;
135
+ default: number;
136
+ };
137
+ minMinute: {
138
+ type: NumberConstructor;
139
+ default: number;
140
+ };
141
+ maxMinute: {
142
+ type: NumberConstructor;
143
+ default: number;
144
+ };
145
+ immediateChange: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ startSymbol: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ customStyle: {
154
+ type: import("vue").PropType<string>;
155
+ default: string;
156
+ };
157
+ customClass: {
158
+ type: import("vue").PropType<string>;
159
+ default: string;
160
+ };
161
+ }>> & {
162
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
163
+ onChange?: ((...args: any[]) => any) | undefined;
164
+ onPickstart?: ((...args: any[]) => any) | undefined;
165
+ onPickend?: ((...args: any[]) => any) | undefined;
166
+ }, {
167
+ customStyle: string;
168
+ customClass: string;
169
+ type: import("./types").DateTimeType;
170
+ loading: boolean;
171
+ loadingColor: string;
172
+ minDate: number;
173
+ maxDate: number;
174
+ immediateChange: boolean;
175
+ columnsHeight: number;
176
+ valueKey: string;
177
+ labelKey: string;
178
+ minHour: number;
179
+ maxHour: number;
180
+ minMinute: number;
181
+ maxMinute: number;
182
+ startSymbol: boolean;
183
+ }, {}>;
184
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const dividerProps: {
3
+ /**
4
+ * 自定义颜色,所有颜色的写法
5
+ */
6
+ color: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ customStyle: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ customClass: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ };
19
+ export type DividerProps = ExtractPropTypes<typeof dividerProps>;
@@ -0,0 +1,39 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ color: {
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
+ color: {
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
+ color: string;
31
+ }, {}>, {
32
+ default?(_: {}): any;
33
+ }>;
34
+ export default _default;
35
+ type __VLS_WithTemplateSlots<T, S> = T & {
36
+ new (): {
37
+ $slots: S;
38
+ };
39
+ };
@@ -0,0 +1,54 @@
1
+ import { type ExtractPropTypes, type InjectionKey, type Ref } from 'vue';
2
+ export type DropDirction = 'up' | 'down';
3
+ export type DropMenuProvide = {
4
+ props: Partial<DropMenuProps>;
5
+ fold: (child?: any) => void;
6
+ offset: Ref<number>;
7
+ };
8
+ export declare const DROP_MENU_KEY: InjectionKey<DropMenuProvide>;
9
+ export declare const dropMenuProps: {
10
+ /**
11
+ * 弹框层级
12
+ */
13
+ zIndex: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ /**
18
+ * 菜单展开方向,可选值为up 或 down
19
+ */
20
+ direction: {
21
+ type: import("vue").PropType<DropDirction>;
22
+ default: DropDirction;
23
+ };
24
+ /**
25
+ * 是否展示蒙层
26
+ */
27
+ modal: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ /**
32
+ * 是否点击蒙层时关闭
33
+ */
34
+ closeOnClickModal: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ /**
39
+ * 菜单展开收起动画时间,单位 ms
40
+ */
41
+ duration: {
42
+ type: NumberConstructor;
43
+ default: number;
44
+ };
45
+ customStyle: {
46
+ type: import("vue").PropType<string>;
47
+ default: string;
48
+ };
49
+ customClass: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ };
54
+ export type DropMenuProps = ExtractPropTypes<typeof dropMenuProps>;
@@ -0,0 +1,75 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ zIndex: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ direction: {
7
+ type: import("vue").PropType<import("./types").DropDirction>;
8
+ default: import("./types").DropDirction;
9
+ };
10
+ modal: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ closeOnClickModal: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ duration: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ customStyle: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ customClass: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ zIndex: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ direction: {
36
+ type: import("vue").PropType<import("./types").DropDirction>;
37
+ default: import("./types").DropDirction;
38
+ };
39
+ modal: {
40
+ type: BooleanConstructor;
41
+ default: boolean;
42
+ };
43
+ closeOnClickModal: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ duration: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ customStyle: {
52
+ type: import("vue").PropType<string>;
53
+ default: string;
54
+ };
55
+ customClass: {
56
+ type: import("vue").PropType<string>;
57
+ default: string;
58
+ };
59
+ }>>, {
60
+ closeOnClickModal: boolean;
61
+ duration: number;
62
+ zIndex: number;
63
+ customStyle: string;
64
+ customClass: string;
65
+ direction: import("./types").DropDirction;
66
+ modal: boolean;
67
+ }, {}>, {
68
+ default?(_: {}): any;
69
+ }>;
70
+ export default _default;
71
+ type __VLS_WithTemplateSlots<T, S> = T & {
72
+ new (): {
73
+ $slots: S;
74
+ };
75
+ };
@@ -0,0 +1,106 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ export type DropMenuItemBeforeToggleOption = {
3
+ status: boolean;
4
+ resolve: (isPass: boolean) => void;
5
+ };
6
+ export type DropMenuItemBeforeToggle = (option: DropMenuItemBeforeToggleOption) => void;
7
+ export declare const dorpMenuItemProps: {
8
+ /**
9
+ * DropMenuItem 左侧文字样式
10
+ */
11
+ customTitle: {
12
+ type: PropType<string>;
13
+ default: string;
14
+ };
15
+ /**
16
+ * DropMenuItem 右侧 icon 样式
17
+ */
18
+ customIcon: {
19
+ type: PropType<string>;
20
+ default: string;
21
+ };
22
+ /**
23
+ * 当前选中项对应选中的 value
24
+ */
25
+ modelValue: (NumberConstructor | StringConstructor)[];
26
+ /**
27
+ * 列表数据,对应数据结构 [{text: '标题', value: '0', tip: '提示文字'}]
28
+ */
29
+ options: {
30
+ type: PropType<Record<string, any>[]>;
31
+ default: () => never[];
32
+ };
33
+ /**
34
+ * 禁用菜单
35
+ */
36
+ disabled: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ /**
41
+ * 选中的图标名称(可选名称在 wd-icon 组件中)
42
+ */
43
+ iconName: {
44
+ type: PropType<string>;
45
+ default: string;
46
+ };
47
+ /**
48
+ * 菜单标题
49
+ */
50
+ title: StringConstructor;
51
+ /**
52
+ * 菜单图标
53
+ */
54
+ icon: {
55
+ type: PropType<string>;
56
+ default: string;
57
+ };
58
+ /**
59
+ * 菜单图标大小
60
+ */
61
+ iconSize: {
62
+ type: PropType<string>;
63
+ default: string;
64
+ };
65
+ /**
66
+ * 自定义点击事件
67
+ */
68
+ beforeToggle: PropType<DropMenuItemBeforeToggle>;
69
+ /**
70
+ * 选项对象中,value 对应的 key
71
+ */
72
+ valueKey: {
73
+ type: PropType<string>;
74
+ default: string;
75
+ };
76
+ /**
77
+ * 选项对象中,展示的文本对应的 key
78
+ */
79
+ labelKey: {
80
+ type: PropType<string>;
81
+ default: string;
82
+ };
83
+ /**
84
+ * 选项对象中,选项说明对应的 key
85
+ */
86
+ tipKey: {
87
+ type: PropType<string>;
88
+ default: string;
89
+ };
90
+ customStyle: {
91
+ type: PropType<string>;
92
+ default: string;
93
+ };
94
+ customClass: {
95
+ type: PropType<string>;
96
+ default: string;
97
+ };
98
+ };
99
+ export type DropMenuItemProps = ExtractPropTypes<typeof dorpMenuItemProps>;
100
+ export type DropMenuItemExpose = {
101
+ getShowPop: () => boolean;
102
+ open: () => void;
103
+ close: () => void;
104
+ toggle: () => void;
105
+ };
106
+ export type DropMenuItemInstance = ComponentPublicInstance<DropMenuItemProps>;