@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,125 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export type ButtonType = 'primary' | 'success' | 'info' | 'warning' | 'error' | 'default' | 'text' | 'icon';
3
+ export type ButtonSize = 'small' | 'medium' | 'large';
4
+ export declare const buttonProps: {
5
+ /**
6
+ * 幽灵按钮
7
+ */
8
+ plain: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ /**
13
+ * 圆角按钮
14
+ */
15
+ round: {
16
+ type: BooleanConstructor;
17
+ default: boolean;
18
+ };
19
+ /**
20
+ * 禁用按钮
21
+ */
22
+ disabled: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * 是否细边框
28
+ */
29
+ hairline: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ /**
34
+ * 块状按钮
35
+ */
36
+ block: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ /**
41
+ * 按钮类型,可选值:primary / success / info / warning / error / text / icon
42
+ */
43
+ type: {
44
+ type: import("vue").PropType<ButtonType>;
45
+ default: ButtonType;
46
+ };
47
+ /**
48
+ * 按钮尺寸,可选值:small / medium / large
49
+ */
50
+ size: {
51
+ type: import("vue").PropType<ButtonSize>;
52
+ default: ButtonSize;
53
+ };
54
+ /**
55
+ * 图标类名
56
+ */
57
+ icon: StringConstructor;
58
+ /**
59
+ * 类名前缀,用于使用自定义图标,用法参考Icon组件
60
+ */
61
+ classPrefix: {
62
+ type: import("vue").PropType<string>;
63
+ default: string;
64
+ };
65
+ /**
66
+ * 加载中按钮
67
+ */
68
+ loading: {
69
+ type: BooleanConstructor;
70
+ default: boolean;
71
+ };
72
+ /**
73
+ * 加载图标颜色
74
+ */
75
+ loadingColor: StringConstructor;
76
+ /**
77
+ * 开放能力
78
+ */
79
+ openType: StringConstructor;
80
+ /**
81
+ * 指定是否阻止本节点的祖先节点出现点击态
82
+ */
83
+ hoverStopPropagation: BooleanConstructor;
84
+ /**
85
+ * 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文
86
+ */
87
+ lang: StringConstructor;
88
+ /**
89
+ * 会话来源,open-type="contact"时有效
90
+ */
91
+ sessionFrom: StringConstructor;
92
+ /**
93
+ * 会话内消息卡片标题,open-type="contact"时有效
94
+ */
95
+ sendMessageTitle: StringConstructor;
96
+ /**
97
+ * 会话内消息卡片点击跳转小程序路径,open-type="contact"时有效
98
+ */
99
+ sendMessagePath: StringConstructor;
100
+ /**
101
+ * 会话内消息卡片图片,open-type="contact"时有效
102
+ */
103
+ sendMessageImg: StringConstructor;
104
+ /**
105
+ * 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效
106
+ */
107
+ appParameter: StringConstructor;
108
+ /**
109
+ * 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,open-type="contact"时有效
110
+ */
111
+ showMessageCard: BooleanConstructor;
112
+ /**
113
+ * 按钮的唯一标识,可用于设置隐私同意授权按钮的id
114
+ */
115
+ buttonId: StringConstructor;
116
+ customStyle: {
117
+ type: import("vue").PropType<string>;
118
+ default: string;
119
+ };
120
+ customClass: {
121
+ type: import("vue").PropType<string>;
122
+ default: string;
123
+ };
124
+ };
125
+ export type ButtonProps = ExtractPropTypes<typeof buttonProps>;
@@ -0,0 +1,157 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ plain: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ round: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ disabled: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ hairline: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ block: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ type: {
23
+ type: import("vue").PropType<import("./types").ButtonType>;
24
+ default: import("./types").ButtonType;
25
+ };
26
+ size: {
27
+ type: import("vue").PropType<import("./types").ButtonSize>;
28
+ default: import("./types").ButtonSize;
29
+ };
30
+ icon: StringConstructor;
31
+ classPrefix: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ loading: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ loadingColor: StringConstructor;
40
+ openType: StringConstructor;
41
+ hoverStopPropagation: BooleanConstructor;
42
+ lang: StringConstructor;
43
+ sessionFrom: StringConstructor;
44
+ sendMessageTitle: StringConstructor;
45
+ sendMessagePath: StringConstructor;
46
+ sendMessageImg: StringConstructor;
47
+ appParameter: StringConstructor;
48
+ showMessageCard: BooleanConstructor;
49
+ buttonId: StringConstructor;
50
+ customStyle: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ customClass: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
59
+ click: (...args: any[]) => void;
60
+ error: (...args: any[]) => void;
61
+ getuserinfo: (...args: any[]) => void;
62
+ contact: (...args: any[]) => void;
63
+ getphonenumber: (...args: any[]) => void;
64
+ launchapp: (...args: any[]) => void;
65
+ opensetting: (...args: any[]) => void;
66
+ chooseavatar: (...args: any[]) => void;
67
+ agreeprivacyauthorization: (...args: any[]) => void;
68
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
69
+ plain: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ round: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ disabled: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ hairline: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ block: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ type: {
90
+ type: import("vue").PropType<import("./types").ButtonType>;
91
+ default: import("./types").ButtonType;
92
+ };
93
+ size: {
94
+ type: import("vue").PropType<import("./types").ButtonSize>;
95
+ default: import("./types").ButtonSize;
96
+ };
97
+ icon: StringConstructor;
98
+ classPrefix: {
99
+ type: import("vue").PropType<string>;
100
+ default: string;
101
+ };
102
+ loading: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ loadingColor: StringConstructor;
107
+ openType: StringConstructor;
108
+ hoverStopPropagation: BooleanConstructor;
109
+ lang: StringConstructor;
110
+ sessionFrom: StringConstructor;
111
+ sendMessageTitle: StringConstructor;
112
+ sendMessagePath: StringConstructor;
113
+ sendMessageImg: StringConstructor;
114
+ appParameter: StringConstructor;
115
+ showMessageCard: BooleanConstructor;
116
+ buttonId: StringConstructor;
117
+ customStyle: {
118
+ type: import("vue").PropType<string>;
119
+ default: string;
120
+ };
121
+ customClass: {
122
+ type: import("vue").PropType<string>;
123
+ default: string;
124
+ };
125
+ }>> & {
126
+ onError?: ((...args: any[]) => any) | undefined;
127
+ onClick?: ((...args: any[]) => any) | undefined;
128
+ onGetuserinfo?: ((...args: any[]) => any) | undefined;
129
+ onContact?: ((...args: any[]) => any) | undefined;
130
+ onGetphonenumber?: ((...args: any[]) => any) | undefined;
131
+ onLaunchapp?: ((...args: any[]) => any) | undefined;
132
+ onOpensetting?: ((...args: any[]) => any) | undefined;
133
+ onChooseavatar?: ((...args: any[]) => any) | undefined;
134
+ onAgreeprivacyauthorization?: ((...args: any[]) => any) | undefined;
135
+ }, {
136
+ customStyle: string;
137
+ customClass: string;
138
+ type: import("./types").ButtonType;
139
+ plain: boolean;
140
+ round: boolean;
141
+ disabled: boolean;
142
+ hairline: boolean;
143
+ block: boolean;
144
+ size: import("./types").ButtonSize;
145
+ classPrefix: string;
146
+ loading: boolean;
147
+ hoverStopPropagation: boolean;
148
+ showMessageCard: boolean;
149
+ }, {}>, {
150
+ default?(_: {}): any;
151
+ }>;
152
+ export default _default;
153
+ type __VLS_WithTemplateSlots<T, S> = T & {
154
+ new (): {
155
+ $slots: S;
156
+ };
157
+ };
@@ -0,0 +1,283 @@
1
+ import type { PropType } from 'vue';
2
+ import type { CalendarFormatter, CalendarTimeFilter, CalendarType } from '../wd-calendar-view/types';
3
+ import type { FormItemRule } from '../wd-form/types';
4
+ export declare const calendarProps: {
5
+ /**
6
+ * 选中值,为 13 位时间戳或时间戳数组
7
+ */
8
+ modelValue: {
9
+ type: PropType<number | number[] | null>;
10
+ required: true;
11
+ };
12
+ /**
13
+ * 日期类型,可选值:date / dates / datetime / week / month / daterange / datetimerange / weekrange / monthrange
14
+ */
15
+ type: {
16
+ type: PropType<CalendarType>;
17
+ default: CalendarType;
18
+ };
19
+ /**
20
+ * 最小日期,为 13 位时间戳
21
+ */
22
+ minDate: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ /**
27
+ * 最大日期,为 13 位时间戳
28
+ */
29
+ maxDate: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ /**
34
+ * 周起始天
35
+ */
36
+ firstDayOfWeek: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ /**
41
+ * 日期格式化函数
42
+ */
43
+ formatter: PropType<CalendarFormatter>;
44
+ /**
45
+ * type 为范围选择时有效,最大日期范围
46
+ */
47
+ maxRange: NumberConstructor;
48
+ /**
49
+ * type 为范围选择时有效,选择超出最大日期范围时的错误提示文案
50
+ */
51
+ rangePrompt: StringConstructor;
52
+ /**
53
+ * type 为范围选择时有效,是否允许选择同一天
54
+ */
55
+ allowSameDay: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ /**
60
+ * 选中日期所使用的当日内具体时刻
61
+ */
62
+ defaultTime: {
63
+ type: PropType<string | string[]>;
64
+ };
65
+ /**
66
+ * type 为 'datetime' 或 'datetimerange' 时有效,用于过滤时间选择器的数据
67
+ */
68
+ timeFilter: PropType<CalendarTimeFilter>;
69
+ /**
70
+ * type 为 'datetime' 或 'datetimerange' 时有效,是否不展示秒修改
71
+ */
72
+ hideSecond: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ /**
77
+ * 选择器左侧文案
78
+ */
79
+ label: StringConstructor;
80
+ /**
81
+ * 设置左侧标题宽度
82
+ */
83
+ labelWidth: StringConstructor;
84
+ /**
85
+ * 使用 label 插槽时设置该选项
86
+ */
87
+ useLabelSlot: {
88
+ type: BooleanConstructor;
89
+ default: boolean;
90
+ };
91
+ /**
92
+ * 使用默认插槽时设置该选项
93
+ */
94
+ useDefaultSlot: {
95
+ type: BooleanConstructor;
96
+ default: boolean;
97
+ };
98
+ /**
99
+ * 禁用
100
+ */
101
+ disabled: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ /**
106
+ * 只读
107
+ */
108
+ readonly: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ /**
113
+ * 选择器占位符
114
+ */
115
+ placeholder: StringConstructor;
116
+ /**
117
+ * 弹出层标题
118
+ */
119
+ title: StringConstructor;
120
+ /**
121
+ * 选择器的值靠右展示
122
+ */
123
+ alignRight: {
124
+ type: BooleanConstructor;
125
+ default: boolean;
126
+ };
127
+ /**
128
+ * 是否为错误状态,错误状态时右侧内容为红色
129
+ */
130
+ error: {
131
+ type: BooleanConstructor;
132
+ default: boolean;
133
+ };
134
+ /**
135
+ * 是否必填
136
+ */
137
+ required: {
138
+ type: BooleanConstructor;
139
+ default: boolean;
140
+ };
141
+ /**
142
+ * 设置选择器大小,可选值:large
143
+ */
144
+ size: StringConstructor;
145
+ /**
146
+ * 是否垂直居中
147
+ */
148
+ center: {
149
+ type: BooleanConstructor;
150
+ default: boolean;
151
+ };
152
+ /**
153
+ * 点击遮罩是否关闭
154
+ */
155
+ closeOnClickModal: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ /**
160
+ * 弹框层级
161
+ */
162
+ zIndex: {
163
+ type: NumberConstructor;
164
+ default: number;
165
+ };
166
+ /**
167
+ * 是否显示确定按钮
168
+ */
169
+ showConfirm: {
170
+ type: BooleanConstructor;
171
+ default: boolean;
172
+ };
173
+ /**
174
+ * 确定按钮文字
175
+ */
176
+ confirmText: StringConstructor;
177
+ /**
178
+ * 自定义展示文案的格式化函数,返回一个字符串
179
+ */
180
+ displayFormat: PropType<CalendarDisplayFormat>;
181
+ /**
182
+ * 自定义范围选择类型的面板内部回显,返回一个字符串
183
+ */
184
+ innerDisplayFormat: PropType<CalendarInnerDisplayFormat>;
185
+ /**
186
+ * 是否超出隐藏
187
+ */
188
+ ellipsis: {
189
+ type: BooleanConstructor;
190
+ default: boolean;
191
+ };
192
+ /**
193
+ * 是否显示类型切换功能
194
+ */
195
+ showTypeSwitch: {
196
+ type: BooleanConstructor;
197
+ default: boolean;
198
+ };
199
+ /**
200
+ * 快捷选项,为对象数组,其中对象的 text 必传
201
+ */
202
+ shortcuts: {
203
+ type: PropType<Record<string, any>[]>;
204
+ default: () => never[];
205
+ };
206
+ /**
207
+ * 快捷操作点击回调
208
+ */
209
+ onShortcutsClick: PropType<CalendarOnShortcutsClick>;
210
+ /**
211
+ * 弹出面板是否设置底部安全距离(iphone X 类型的机型)
212
+ */
213
+ safeAreaInsetBottom: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ /**
218
+ * 确定前校验函数,接收 { value, resolve } 参数,通过 resolve 继续执行,resolve 接收 1 个 boolean 参数
219
+ */
220
+ beforeConfirm: PropType<CalendarBeforeConfirm>;
221
+ /**
222
+ * 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
223
+ */
224
+ prop: StringConstructor;
225
+ /**
226
+ * 表单验证规则,结合wd-form组件使用
227
+ */
228
+ rules: {
229
+ type: PropType<FormItemRule[]>;
230
+ default: () => never[];
231
+ };
232
+ customViewClass: {
233
+ type: PropType<string>;
234
+ default: string;
235
+ };
236
+ /**
237
+ * label 外部自定义样式
238
+ */
239
+ customLabelClass: {
240
+ type: PropType<string>;
241
+ default: string;
242
+ };
243
+ /**
244
+ * value 外部自定义样式
245
+ */
246
+ customValueClass: {
247
+ type: PropType<string>;
248
+ default: string;
249
+ };
250
+ /**
251
+ * 是否在手指松开时立即触发picker-view的 change 事件。若不开启则会在滚动动画结束后触发 change 事件,1.2.25版本起提供,仅微信小程序和支付宝小程序支持。
252
+ */
253
+ immediateChange: {
254
+ type: BooleanConstructor;
255
+ default: boolean;
256
+ };
257
+ customStyle: {
258
+ type: PropType<string>;
259
+ default: string;
260
+ };
261
+ customClass: {
262
+ type: PropType<string>;
263
+ default: string;
264
+ };
265
+ };
266
+ export type CalendarDisplayFormat = (value: number | number[], type: CalendarType) => string;
267
+ export type CalendarInnerDisplayFormat = (value: number, rangeType: 'start' | 'end', type: CalendarType) => string;
268
+ export type CalendarBeforeConfirmOption = {
269
+ value: number | number[] | null;
270
+ resolve: (isPass: boolean) => void;
271
+ };
272
+ export type CalendarBeforeConfirm = (option: CalendarBeforeConfirmOption) => void;
273
+ export type CalendarOnShortcutsClickOption = {
274
+ item: Record<string, any>;
275
+ index: number;
276
+ };
277
+ export type CalendarOnShortcutsClick = (option: CalendarOnShortcutsClickOption) => number | number[];
278
+ export type CalendarExpose = {
279
+ /** 关闭时间选择器弹窗 */
280
+ close: () => void;
281
+ /** 打开时间选择器弹窗 */
282
+ open: () => void;
283
+ };