@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,63 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ type: import("vue").PropType<import("./types").CardType>;
3
+ title: StringConstructor;
4
+ customTitleClass: {
5
+ type: import("vue").PropType<string>;
6
+ default: string;
7
+ };
8
+ customContentClass: {
9
+ type: import("vue").PropType<string>;
10
+ default: string;
11
+ };
12
+ customFooterClass: {
13
+ type: import("vue").PropType<string>;
14
+ default: string;
15
+ };
16
+ customStyle: {
17
+ type: import("vue").PropType<string>;
18
+ default: string;
19
+ };
20
+ customClass: {
21
+ type: import("vue").PropType<string>;
22
+ default: string;
23
+ };
24
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ type: import("vue").PropType<import("./types").CardType>;
26
+ title: StringConstructor;
27
+ customTitleClass: {
28
+ type: import("vue").PropType<string>;
29
+ default: string;
30
+ };
31
+ customContentClass: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ customFooterClass: {
36
+ type: import("vue").PropType<string>;
37
+ default: string;
38
+ };
39
+ customStyle: {
40
+ type: import("vue").PropType<string>;
41
+ default: string;
42
+ };
43
+ customClass: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ }>>, {
48
+ customStyle: string;
49
+ customClass: string;
50
+ customTitleClass: string;
51
+ customContentClass: string;
52
+ customFooterClass: string;
53
+ }, {}>, {
54
+ title?(_: {}): any;
55
+ default?(_: {}): any;
56
+ footer?(_: {}): any;
57
+ }>;
58
+ export default _default;
59
+ type __VLS_WithTemplateSlots<T, S> = T & {
60
+ new (): {
61
+ $slots: S;
62
+ };
63
+ };
@@ -0,0 +1,129 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import { type FormItemRule } from '../wd-form/types';
3
+ export declare const cellProps: {
4
+ /**
5
+ * 标题
6
+ */
7
+ title: StringConstructor;
8
+ /**
9
+ * 右侧内容
10
+ */
11
+ value: {
12
+ type: (NumberConstructor | StringConstructor)[];
13
+ default: string;
14
+ };
15
+ /**
16
+ * 图标类名
17
+ */
18
+ icon: StringConstructor;
19
+ /**
20
+ * 描述信息
21
+ */
22
+ label: StringConstructor;
23
+ /**
24
+ * 是否为跳转链接
25
+ */
26
+ isLink: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ /**
31
+ * 跳转地址
32
+ */
33
+ to: StringConstructor;
34
+ /**
35
+ * 跳转时是否替换栈顶页面
36
+ */
37
+ replace: {
38
+ type: BooleanConstructor;
39
+ default: boolean;
40
+ };
41
+ /**
42
+ * 开启点击反馈,is-link 默认开启
43
+ */
44
+ clickable: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ /**
49
+ * 设置单元格大小,可选值:large
50
+ */
51
+ size: StringConstructor;
52
+ /**
53
+ * 是否展示边框线
54
+ */
55
+ border: BooleanConstructor;
56
+ /**
57
+ * 设置左侧标题宽度
58
+ */
59
+ titleWidth: StringConstructor;
60
+ /**
61
+ * 是否垂直居中,默认顶部居中
62
+ */
63
+ center: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ /**
68
+ * 是否必填
69
+ */
70
+ required: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ /**
75
+ * 表单属性,上下结构
76
+ */
77
+ vertical: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ /**
82
+ * 表单域 model 字段名,在使用表单校验功能的情况下,该属性是必填的
83
+ */
84
+ prop: StringConstructor;
85
+ /**
86
+ * 表单验证规则,结合wd-form组件使用
87
+ */
88
+ rules: {
89
+ type: import("vue").PropType<FormItemRule[]>;
90
+ default: () => never[];
91
+ };
92
+ /**
93
+ * icon 使用 slot 时的自定义样式
94
+ */
95
+ customIconClass: {
96
+ type: import("vue").PropType<string>;
97
+ default: string;
98
+ };
99
+ /**
100
+ * label 使用 slot 时的自定义样式
101
+ */
102
+ customLabelClass: {
103
+ type: import("vue").PropType<string>;
104
+ default: string;
105
+ };
106
+ /**
107
+ * value 使用 slot 时的自定义样式
108
+ */
109
+ customValueClass: {
110
+ type: import("vue").PropType<string>;
111
+ default: string;
112
+ };
113
+ /**
114
+ * title 使用 slot 时的自定义样式
115
+ */
116
+ customTitleClass: {
117
+ type: import("vue").PropType<string>;
118
+ default: string;
119
+ };
120
+ customStyle: {
121
+ type: import("vue").PropType<string>;
122
+ default: string;
123
+ };
124
+ customClass: {
125
+ type: import("vue").PropType<string>;
126
+ default: string;
127
+ };
128
+ };
129
+ export type CellProps = ExtractPropTypes<typeof cellProps>;
@@ -0,0 +1,163 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ title: StringConstructor;
3
+ value: {
4
+ type: (NumberConstructor | StringConstructor)[];
5
+ default: string;
6
+ };
7
+ icon: StringConstructor;
8
+ label: StringConstructor;
9
+ isLink: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ to: StringConstructor;
14
+ replace: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ clickable: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ size: StringConstructor;
23
+ border: BooleanConstructor;
24
+ titleWidth: StringConstructor;
25
+ center: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ required: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ vertical: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ prop: StringConstructor;
38
+ rules: {
39
+ type: import("vue").PropType<import("../wd-form/types").FormItemRule[]>;
40
+ default: () => never[];
41
+ };
42
+ customIconClass: {
43
+ type: import("vue").PropType<string>;
44
+ default: string;
45
+ };
46
+ customLabelClass: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ customValueClass: {
51
+ type: import("vue").PropType<string>;
52
+ default: string;
53
+ };
54
+ customTitleClass: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ customStyle: {
59
+ type: import("vue").PropType<string>;
60
+ default: string;
61
+ };
62
+ customClass: {
63
+ type: import("vue").PropType<string>;
64
+ default: string;
65
+ };
66
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
67
+ click: (...args: any[]) => void;
68
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
69
+ title: StringConstructor;
70
+ value: {
71
+ type: (NumberConstructor | StringConstructor)[];
72
+ default: string;
73
+ };
74
+ icon: StringConstructor;
75
+ label: StringConstructor;
76
+ isLink: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ to: StringConstructor;
81
+ replace: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ clickable: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
89
+ size: StringConstructor;
90
+ border: BooleanConstructor;
91
+ titleWidth: StringConstructor;
92
+ center: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ required: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ vertical: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ prop: StringConstructor;
105
+ rules: {
106
+ type: import("vue").PropType<import("../wd-form/types").FormItemRule[]>;
107
+ default: () => never[];
108
+ };
109
+ customIconClass: {
110
+ type: import("vue").PropType<string>;
111
+ default: string;
112
+ };
113
+ customLabelClass: {
114
+ type: import("vue").PropType<string>;
115
+ default: string;
116
+ };
117
+ customValueClass: {
118
+ type: import("vue").PropType<string>;
119
+ default: string;
120
+ };
121
+ customTitleClass: {
122
+ type: import("vue").PropType<string>;
123
+ default: string;
124
+ };
125
+ customStyle: {
126
+ type: import("vue").PropType<string>;
127
+ default: string;
128
+ };
129
+ customClass: {
130
+ type: import("vue").PropType<string>;
131
+ default: string;
132
+ };
133
+ }>> & {
134
+ onClick?: ((...args: any[]) => any) | undefined;
135
+ }, {
136
+ customStyle: string;
137
+ customClass: string;
138
+ value: string | number;
139
+ replace: boolean;
140
+ required: boolean;
141
+ border: boolean;
142
+ rules: import("../wd-form/types").FormItemRule[];
143
+ center: boolean;
144
+ customLabelClass: string;
145
+ customValueClass: string;
146
+ customTitleClass: string;
147
+ isLink: boolean;
148
+ clickable: boolean;
149
+ vertical: boolean;
150
+ customIconClass: string;
151
+ }, {}>, {
152
+ icon?(_: {}): any;
153
+ title?(_: {}): any;
154
+ label?(_: {}): any;
155
+ default?(_: {}): any;
156
+ "right-icon"?(_: {}): any;
157
+ }>;
158
+ export default _default;
159
+ type __VLS_WithTemplateSlots<T, S> = T & {
160
+ new (): {
161
+ $slots: S;
162
+ };
163
+ };
@@ -0,0 +1,40 @@
1
+ import { type ExtractPropTypes, type InjectionKey } from 'vue';
2
+ export type CelllGroupProvide = {
3
+ props: {
4
+ border?: boolean;
5
+ };
6
+ };
7
+ export declare const CELL_GROUP_KEY: InjectionKey<CelllGroupProvide>;
8
+ export declare const cellGroupProps: {
9
+ /**
10
+ * 分组标题
11
+ */
12
+ title: StringConstructor;
13
+ /**
14
+ * 分组右侧内容
15
+ */
16
+ value: StringConstructor;
17
+ /**
18
+ * 分组启用插槽
19
+ */
20
+ useSlot: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ /**
25
+ * 是否展示边框线
26
+ */
27
+ border: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ customStyle: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ customClass: {
36
+ type: import("vue").PropType<string>;
37
+ default: string;
38
+ };
39
+ };
40
+ export type CellGroupProps = ExtractPropTypes<typeof cellGroupProps>;
@@ -0,0 +1,54 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ title: StringConstructor;
3
+ value: StringConstructor;
4
+ useSlot: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ border: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ customStyle: {
13
+ type: import("vue").PropType<string>;
14
+ default: string;
15
+ };
16
+ customClass: {
17
+ type: import("vue").PropType<string>;
18
+ default: string;
19
+ };
20
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
+ title: StringConstructor;
22
+ value: StringConstructor;
23
+ useSlot: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ border: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ customStyle: {
32
+ type: import("vue").PropType<string>;
33
+ default: string;
34
+ };
35
+ customClass: {
36
+ type: import("vue").PropType<string>;
37
+ default: string;
38
+ };
39
+ }>>, {
40
+ customStyle: string;
41
+ customClass: string;
42
+ useSlot: boolean;
43
+ border: boolean;
44
+ }, {}>, {
45
+ title?(_: {}): any;
46
+ value?(_: {}): any;
47
+ default?(_: {}): any;
48
+ }>;
49
+ export default _default;
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -0,0 +1,75 @@
1
+ import type { ComponentPublicInstance, ExtractPropTypes, PropType } from 'vue';
2
+ export type CheckShape = 'circle' | 'square' | 'button';
3
+ export declare const checkboxProps: {
4
+ customLabelClass: {
5
+ type: PropType<string>;
6
+ default: string;
7
+ };
8
+ customShapeClass: {
9
+ type: PropType<string>;
10
+ default: string;
11
+ };
12
+ /**
13
+ * 单选框选中时的值
14
+ */
15
+ modelValue: {
16
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
17
+ required: boolean;
18
+ default: boolean;
19
+ };
20
+ /**
21
+ * 单选框形状,可选值:circle / square / button
22
+ */
23
+ shape: {
24
+ type: PropType<CheckShape>;
25
+ };
26
+ /**
27
+ * 选中的颜色
28
+ */
29
+ checkedColor: StringConstructor;
30
+ /**
31
+ * 禁用
32
+ */
33
+ disabled: {
34
+ type: PropType<boolean | null>;
35
+ default: null;
36
+ };
37
+ /**
38
+ * 选中值,在 checkbox-group 中使用无效,需同 false-value 一块使用
39
+ */
40
+ trueValue: {
41
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
42
+ default: boolean;
43
+ };
44
+ /**
45
+ * 非选中时的值,在 checkbox-group 中使用无效,需同 true-value 一块使用
46
+ */
47
+ falseValue: {
48
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
49
+ default: boolean;
50
+ };
51
+ /**
52
+ * 设置大小,可选值:large
53
+ */
54
+ size: StringConstructor;
55
+ /**
56
+ * 文字位置最大宽度
57
+ */
58
+ maxWidth: StringConstructor;
59
+ customStyle: {
60
+ type: PropType<string>;
61
+ default: string;
62
+ };
63
+ customClass: {
64
+ type: PropType<string>;
65
+ default: string;
66
+ };
67
+ };
68
+ export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
69
+ export type CheckboxExpose = {
70
+ /**
71
+ * 切换当前选中状态
72
+ */
73
+ toggle: () => void;
74
+ };
75
+ export type CheckboxInstance = ComponentPublicInstance<CheckboxProps, CheckboxExpose>;
@@ -0,0 +1,106 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ customLabelClass: {
3
+ type: import("vue").PropType<string>;
4
+ default: string;
5
+ };
6
+ customShapeClass: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ modelValue: {
11
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
12
+ required: boolean;
13
+ default: boolean;
14
+ };
15
+ shape: {
16
+ type: import("vue").PropType<import("./types").CheckShape>;
17
+ };
18
+ checkedColor: StringConstructor;
19
+ disabled: {
20
+ type: import("vue").PropType<boolean | null>;
21
+ default: null;
22
+ };
23
+ trueValue: {
24
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
25
+ default: boolean;
26
+ };
27
+ falseValue: {
28
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
29
+ default: boolean;
30
+ };
31
+ size: StringConstructor;
32
+ maxWidth: StringConstructor;
33
+ customStyle: {
34
+ type: import("vue").PropType<string>;
35
+ default: string;
36
+ };
37
+ customClass: {
38
+ type: import("vue").PropType<string>;
39
+ default: string;
40
+ };
41
+ }, {
42
+ toggle: () => void;
43
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
44
+ "update:modelValue": (...args: any[]) => void;
45
+ change: (...args: any[]) => void;
46
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ customLabelClass: {
48
+ type: import("vue").PropType<string>;
49
+ default: string;
50
+ };
51
+ customShapeClass: {
52
+ type: import("vue").PropType<string>;
53
+ default: string;
54
+ };
55
+ modelValue: {
56
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
57
+ required: boolean;
58
+ default: boolean;
59
+ };
60
+ shape: {
61
+ type: import("vue").PropType<import("./types").CheckShape>;
62
+ };
63
+ checkedColor: StringConstructor;
64
+ disabled: {
65
+ type: import("vue").PropType<boolean | null>;
66
+ default: null;
67
+ };
68
+ trueValue: {
69
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
70
+ default: boolean;
71
+ };
72
+ falseValue: {
73
+ type: (NumberConstructor | StringConstructor | BooleanConstructor)[];
74
+ default: boolean;
75
+ };
76
+ size: StringConstructor;
77
+ maxWidth: StringConstructor;
78
+ customStyle: {
79
+ type: import("vue").PropType<string>;
80
+ default: string;
81
+ };
82
+ customClass: {
83
+ type: import("vue").PropType<string>;
84
+ default: string;
85
+ };
86
+ }>> & {
87
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
88
+ onChange?: ((...args: any[]) => any) | undefined;
89
+ }, {
90
+ modelValue: string | number | boolean;
91
+ customStyle: string;
92
+ customClass: string;
93
+ disabled: boolean | null;
94
+ customLabelClass: string;
95
+ customShapeClass: string;
96
+ trueValue: string | number | boolean;
97
+ falseValue: string | number | boolean;
98
+ }, {}>, {
99
+ default?(_: {}): any;
100
+ }>;
101
+ export default _default;
102
+ type __VLS_WithTemplateSlots<T, S> = T & {
103
+ new (): {
104
+ $slots: S;
105
+ };
106
+ };
@@ -0,0 +1,78 @@
1
+ import { type ExtractPropTypes, type InjectionKey, type PropType } from 'vue';
2
+ import type { CheckShape } from '../wd-checkbox/types';
3
+ export type RequiredModelValue = {
4
+ modelValue: Array<string | number | boolean>;
5
+ };
6
+ export type checkboxGroupProvide = {
7
+ props: Partial<Omit<CheckboxGroupProps, 'modelValue'>> & RequiredModelValue;
8
+ changeSelectState: (value: string | number | boolean) => void;
9
+ };
10
+ export declare const CHECKBOX_GROUP_KEY: InjectionKey<checkboxGroupProvide>;
11
+ export declare const checkboxGroupProps: {
12
+ /**
13
+ * 绑定值
14
+ */
15
+ modelValue: {
16
+ type: PropType<Array<string | number | boolean>>;
17
+ default: () => never[];
18
+ };
19
+ /**
20
+ * 表单模式
21
+ */
22
+ cell: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * 单选框形状,可选值:circle / square / button
28
+ */
29
+ shape: {
30
+ type: PropType<CheckShape>;
31
+ default: CheckShape;
32
+ };
33
+ /**
34
+ * 选中的颜色
35
+ */
36
+ checkedColor: StringConstructor;
37
+ /**
38
+ * 禁用
39
+ */
40
+ disabled: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ /**
45
+ * 最小选中的数量
46
+ */
47
+ min: {
48
+ type: NumberConstructor;
49
+ default: number;
50
+ };
51
+ /**
52
+ * 最大选中的数量,0 为无限数量,默认为 0
53
+ */
54
+ max: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ /**
59
+ * 同行展示
60
+ */
61
+ inline: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ /**
66
+ * 设置大小,可选值:large
67
+ */
68
+ size: StringConstructor;
69
+ customStyle: {
70
+ type: PropType<string>;
71
+ default: string;
72
+ };
73
+ customClass: {
74
+ type: PropType<string>;
75
+ default: string;
76
+ };
77
+ };
78
+ export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;