@tplc/wot 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/components/composables/useParent.ts +1 -1
  3. package/components/wd-table/types.ts +1 -1
  4. package/components/wd-table-col/wd-table-col.vue +1 -1
  5. package/global.d.ts +91 -102
  6. package/package.json +7 -1
  7. package/tsconfig.dts.json +9 -0
  8. package/types/components/common/AbortablePromise.d.ts +8 -0
  9. package/types/components/common/base64.d.ts +1 -0
  10. package/types/components/common/canvasHelper.d.ts +6 -0
  11. package/types/components/common/clickoutside.d.ts +4 -0
  12. package/types/components/common/dayjs.d.ts +26 -0
  13. package/types/components/common/props.d.ts +47 -0
  14. package/types/components/common/util.d.ts +263 -0
  15. package/types/components/composables/useCell.d.ts +3 -0
  16. package/types/components/composables/useChildren.d.ts +9 -0
  17. package/types/components/composables/useCountDown.d.ts +20 -0
  18. package/types/components/composables/useLockScroll.d.ts +5 -0
  19. package/types/components/composables/useParent.d.ts +15 -0
  20. package/types/components/composables/usePopover.d.ts +9 -0
  21. package/types/components/composables/useQueue.d.ts +13 -0
  22. package/types/components/composables/useRaf.d.ts +6 -0
  23. package/types/components/composables/useTouch.d.ts +11 -0
  24. package/types/components/composables/useTranslate.d.ts +3 -0
  25. package/types/components/wd-action-sheet/types.d.ts +145 -0
  26. package/types/components/wd-action-sheet/wd-action-sheet.vue.d.ts +145 -0
  27. package/types/components/wd-backtop/types.d.ts +66 -0
  28. package/types/components/wd-backtop/wd-backtop.vue.d.ts +101 -0
  29. package/types/components/wd-badge/types.d.ts +53 -0
  30. package/types/components/wd-badge/wd-badge.vue.d.ts +71 -0
  31. package/types/components/wd-button/types.d.ts +125 -0
  32. package/types/components/wd-button/wd-button.vue.d.ts +157 -0
  33. package/types/components/wd-calendar/types.d.ts +283 -0
  34. package/types/components/wd-calendar/wd-calendar.vue.d.ts +324 -0
  35. package/types/components/wd-calendar-view/month/month.vue.d.ts +79 -0
  36. package/types/components/wd-calendar-view/month/types.d.ts +38 -0
  37. package/types/components/wd-calendar-view/monthPanel/month-panel.vue.d.ts +113 -0
  38. package/types/components/wd-calendar-view/monthPanel/types.d.ts +70 -0
  39. package/types/components/wd-calendar-view/types.d.ts +131 -0
  40. package/types/components/wd-calendar-view/utils.d.ts +121 -0
  41. package/types/components/wd-calendar-view/wd-calendar-view.vue.d.ts +141 -0
  42. package/types/components/wd-calendar-view/year/types.d.ts +34 -0
  43. package/types/components/wd-calendar-view/year/year.vue.d.ts +71 -0
  44. package/types/components/wd-calendar-view/yearPanel/types.d.ts +53 -0
  45. package/types/components/wd-calendar-view/yearPanel/year-panel.vue.d.ts +81 -0
  46. package/types/components/wd-card/types.d.ts +42 -0
  47. package/types/components/wd-card/wd-card.vue.d.ts +63 -0
  48. package/types/components/wd-cell/types.d.ts +129 -0
  49. package/types/components/wd-cell/wd-cell.vue.d.ts +163 -0
  50. package/types/components/wd-cell-group/types.d.ts +40 -0
  51. package/types/components/wd-cell-group/wd-cell-group.vue.d.ts +54 -0
  52. package/types/components/wd-checkbox/types.d.ts +75 -0
  53. package/types/components/wd-checkbox/wd-checkbox.vue.d.ts +106 -0
  54. package/types/components/wd-checkbox-group/types.d.ts +78 -0
  55. package/types/components/wd-checkbox-group/wd-checkbox-group.vue.d.ts +103 -0
  56. package/types/components/wd-circle/types.d.ts +77 -0
  57. package/types/components/wd-circle/wd-circle.vue.d.ts +106 -0
  58. package/types/components/wd-col/types.d.ts +26 -0
  59. package/types/components/wd-col/wd-col.vue.d.ts +48 -0
  60. package/types/components/wd-col-picker/types.d.ts +226 -0
  61. package/types/components/wd-col-picker/wd-col-picker.vue.d.ts +269 -0
  62. package/types/components/wd-collapse/types.d.ts +70 -0
  63. package/types/components/wd-collapse/wd-collapse.vue.d.ts +92 -0
  64. package/types/components/wd-collapse-item/types.d.ts +46 -0
  65. package/types/components/wd-collapse-item/wd-collapse-item.vue.d.ts +65 -0
  66. package/types/components/wd-config-provider/types.d.ts +874 -0
  67. package/types/components/wd-config-provider/wd-config-provider.vue.d.ts +48 -0
  68. package/types/components/wd-count-down/types.d.ts +55 -0
  69. package/types/components/wd-count-down/utils.d.ts +8 -0
  70. package/types/components/wd-count-down/wd-count-down.vue.d.ts +77 -0
  71. package/types/components/wd-count-to/types.d.ts +125 -0
  72. package/types/components/wd-count-to/wd-count-to.vue.d.ts +154 -0
  73. package/types/components/wd-curtain/types.d.ts +53 -0
  74. package/types/components/wd-curtain/wd-curtain.vue.d.ts +91 -0
  75. package/types/components/wd-datetime-picker/types.d.ts +297 -0
  76. package/types/components/wd-datetime-picker/wd-datetime-picker.vue.d.ts +354 -0
  77. package/types/components/wd-datetime-picker-view/types.d.ts +148 -0
  78. package/types/components/wd-datetime-picker-view/wd-datetime-picker-view.vue.d.ts +184 -0
  79. package/types/components/wd-divider/types.d.ts +19 -0
  80. package/types/components/wd-divider/wd-divider.vue.d.ts +39 -0
  81. package/types/components/wd-drop-menu/types.d.ts +54 -0
  82. package/types/components/wd-drop-menu/wd-drop-menu.vue.d.ts +75 -0
  83. package/types/components/wd-drop-menu-item/types.d.ts +106 -0
  84. package/types/components/wd-drop-menu-item/wd-drop-menu-item.vue.d.ts +145 -0
  85. package/types/components/wd-fab/types.d.ts +88 -0
  86. package/types/components/wd-fab/wd-fab.vue.d.ts +127 -0
  87. package/types/components/wd-form/types.d.ts +79 -0
  88. package/types/components/wd-form/wd-form.vue.d.ts +72 -0
  89. package/types/components/wd-form-item/types.d.ts +32 -0
  90. package/types/components/wd-form-item/wd-form-item.vue.d.ts +73 -0
  91. package/types/components/wd-gap/types.d.ts +31 -0
  92. package/types/components/wd-gap/wd-gap.vue.d.ts +50 -0
  93. package/types/components/wd-grid/types.d.ts +59 -0
  94. package/types/components/wd-grid/wd-grid.vue.d.ts +70 -0
  95. package/types/components/wd-grid-item/types.d.ts +101 -0
  96. package/types/components/wd-grid-item/wd-grid-item.vue.d.ts +134 -0
  97. package/types/components/wd-icon/types.d.ts +32 -0
  98. package/types/components/wd-icon/wd-icon.vue.d.ts +50 -0
  99. package/types/components/wd-img/types.d.ts +59 -0
  100. package/types/components/wd-img/wd-img.vue.d.ts +92 -0
  101. package/types/components/wd-img-cropper/types.d.ts +101 -0
  102. package/types/components/wd-img-cropper/wd-img-cropper.vue.d.ts +124 -0
  103. package/types/components/wd-index-anchor/type.d.ts +16 -0
  104. package/types/components/wd-index-anchor/wd-index-anchor.vue.d.ts +40 -0
  105. package/types/components/wd-index-bar/type.d.ts +26 -0
  106. package/types/components/wd-index-bar/wd-index-bar.vue.d.ts +23 -0
  107. package/types/components/wd-input/types.d.ts +271 -0
  108. package/types/components/wd-input/wd-input.vue.d.ts +369 -0
  109. package/types/components/wd-input-number/types.d.ts +108 -0
  110. package/types/components/wd-input-number/wd-input-number.vue.d.ts +158 -0
  111. package/types/components/wd-loading/types.d.ts +34 -0
  112. package/types/components/wd-loading/wd-loading.vue.d.ts +50 -0
  113. package/types/components/wd-loadmore/types.d.ts +31 -0
  114. package/types/components/wd-loadmore/wd-loadmore.vue.d.ts +43 -0
  115. package/types/components/wd-message-box/index.d.ts +9 -0
  116. package/types/components/wd-message-box/types.d.ts +99 -0
  117. package/types/components/wd-message-box/wd-message-box.vue.d.ts +32 -0
  118. package/types/components/wd-navbar/types.d.ts +80 -0
  119. package/types/components/wd-navbar/wd-navbar.vue.d.ts +117 -0
  120. package/types/components/wd-navbar-capsule/wd-navbar-capsule.vue.d.ts +8 -0
  121. package/types/components/wd-notice-bar/types.d.ts +81 -0
  122. package/types/components/wd-notice-bar/wd-notice-bar.vue.d.ts +118 -0
  123. package/types/components/wd-notify/index.d.ts +8 -0
  124. package/types/components/wd-notify/types.d.ts +87 -0
  125. package/types/components/wd-notify/wd-notify.vue.d.ts +105 -0
  126. package/types/components/wd-number-keyboard/key/index.vue.d.ts +54 -0
  127. package/types/components/wd-number-keyboard/key/types.d.ts +23 -0
  128. package/types/components/wd-number-keyboard/types.d.ts +118 -0
  129. package/types/components/wd-number-keyboard/wd-number-keyboard.vue.d.ts +158 -0
  130. package/types/components/wd-overlay/types.d.ts +39 -0
  131. package/types/components/wd-overlay/wd-overlay.vue.d.ts +70 -0
  132. package/types/components/wd-pagination/types.d.ts +67 -0
  133. package/types/components/wd-pagination/wd-pagination.vue.d.ts +95 -0
  134. package/types/components/wd-password-input/types.d.ts +59 -0
  135. package/types/components/wd-password-input/wd-password-input.vue.d.ts +90 -0
  136. package/types/components/wd-picker/types.d.ts +234 -0
  137. package/types/components/wd-picker/wd-picker.vue.d.ts +276 -0
  138. package/types/components/wd-picker-view/types.d.ts +100 -0
  139. package/types/components/wd-picker-view/wd-picker-view.vue.d.ts +119 -0
  140. package/types/components/wd-popover/types.d.ts +86 -0
  141. package/types/components/wd-popover/wd-popover.vue.d.ts +138 -0
  142. package/types/components/wd-popup/types.d.ts +96 -0
  143. package/types/components/wd-popup/wd-popup.vue.d.ts +160 -0
  144. package/types/components/wd-progress/types.d.ts +44 -0
  145. package/types/components/wd-progress/wd-progress.vue.d.ts +61 -0
  146. package/types/components/wd-radio/types.d.ts +40 -0
  147. package/types/components/wd-radio/wd-radio.vue.d.ts +73 -0
  148. package/types/components/wd-radio-group/types.d.ts +54 -0
  149. package/types/components/wd-radio-group/wd-radio-group.vue.d.ts +85 -0
  150. package/types/components/wd-rate/types.d.ts +110 -0
  151. package/types/components/wd-rate/wd-rate.vue.d.ts +128 -0
  152. package/types/components/wd-resize/types.d.ts +14 -0
  153. package/types/components/wd-resize/wd-resize.vue.d.ts +43 -0
  154. package/types/components/wd-row/types.d.ts +24 -0
  155. package/types/components/wd-row/wd-row.vue.d.ts +39 -0
  156. package/types/components/wd-search/types.d.ts +104 -0
  157. package/types/components/wd-search/wd-search.vue.d.ts +132 -0
  158. package/types/components/wd-segmented/types.d.ts +69 -0
  159. package/types/components/wd-segmented/wd-segmented.vue.d.ts +87 -0
  160. package/types/components/wd-select-picker/types.d.ts +180 -0
  161. package/types/components/wd-select-picker/wd-select-picker.vue.d.ts +316 -0
  162. package/types/components/wd-sidebar/types.d.ts +24 -0
  163. package/types/components/wd-sidebar/wd-sidebar.vue.d.ts +45 -0
  164. package/types/components/wd-sidebar-item/types.d.ts +44 -0
  165. package/types/components/wd-sidebar-item/wd-sidebar-item.vue.d.ts +80 -0
  166. package/types/components/wd-skeleton/types.d.ts +72 -0
  167. package/types/components/wd-skeleton/wd-skeleton.vue.d.ts +68 -0
  168. package/types/components/wd-slider/types.d.ts +117 -0
  169. package/types/components/wd-slider/wd-slider.vue.d.ts +134 -0
  170. package/types/components/wd-sort-button/types.d.ts +58 -0
  171. package/types/components/wd-sort-button/wd-sort-button.vue.d.ts +74 -0
  172. package/types/components/wd-status-tip/types.d.ts +60 -0
  173. package/types/components/wd-status-tip/wd-status-tip.vue.d.ts +59 -0
  174. package/types/components/wd-step/types.d.ts +33 -0
  175. package/types/components/wd-step/wd-step.vue.d.ts +40 -0
  176. package/types/components/wd-steps/types.d.ts +59 -0
  177. package/types/components/wd-steps/wd-steps.vue.d.ts +68 -0
  178. package/types/components/wd-sticky/types.d.ts +24 -0
  179. package/types/components/wd-sticky/wd-sticky.vue.d.ts +59 -0
  180. package/types/components/wd-sticky-box/types.d.ts +9 -0
  181. package/types/components/wd-sticky-box/wd-sticky-box.vue.d.ts +30 -0
  182. package/types/components/wd-swipe-action/types.d.ts +42 -0
  183. package/types/components/wd-swipe-action/wd-swipe-action.vue.d.ts +61 -0
  184. package/types/components/wd-swiper/types.d.ts +213 -0
  185. package/types/components/wd-swiper/wd-swiper.vue.d.ts +236 -0
  186. package/types/components/wd-swiper-nav/types.d.ts +66 -0
  187. package/types/components/wd-swiper-nav/wd-swiper-nav.vue.d.ts +90 -0
  188. package/types/components/wd-switch/types.d.ts +65 -0
  189. package/types/components/wd-switch/wd-switch.vue.d.ts +82 -0
  190. package/types/components/wd-tab/types.d.ts +27 -0
  191. package/types/components/wd-tab/wd-tab.vue.d.ts +46 -0
  192. package/types/components/wd-tabbar/types.d.ts +87 -0
  193. package/types/components/wd-tabbar/wd-tabbar.vue.d.ts +103 -0
  194. package/types/components/wd-tabbar-item/types.d.ts +53 -0
  195. package/types/components/wd-tabbar-item/wd-tabbar-item.vue.d.ts +61 -0
  196. package/types/components/wd-table/types.d.ts +95 -0
  197. package/types/components/wd-table/wd-table.vue.d.ts +138 -0
  198. package/types/components/wd-table-col/types.d.ts +58 -0
  199. package/types/components/wd-table-col/wd-table-col.vue.d.ts +70 -0
  200. package/types/components/wd-tabs/types.d.ts +96 -0
  201. package/types/components/wd-tabs/wd-tabs.vue.d.ts +139 -0
  202. package/types/components/wd-tag/types.d.ts +104 -0
  203. package/types/components/wd-tag/wd-tag.vue.d.ts +130 -0
  204. package/types/components/wd-text/types.d.ts +128 -0
  205. package/types/components/wd-text/wd-text.vue.d.ts +131 -0
  206. package/types/components/wd-textarea/types.d.ts +363 -0
  207. package/types/components/wd-textarea/wd-textarea.vue.d.ts +390 -0
  208. package/types/components/wd-toast/index.d.ts +15 -0
  209. package/types/components/wd-toast/types.d.ts +62 -0
  210. package/types/components/wd-toast/wd-toast.vue.d.ts +32 -0
  211. package/types/components/wd-tooltip/types.d.ts +106 -0
  212. package/types/components/wd-tooltip/wd-tooltip.vue.d.ts +133 -0
  213. package/types/components/wd-transition/types.d.ts +98 -0
  214. package/types/components/wd-transition/wd-transition.vue.d.ts +136 -0
  215. package/types/components/wd-upload/types.d.ts +396 -0
  216. package/types/components/wd-upload/utils.d.ts +2 -0
  217. package/types/components/wd-upload/wd-upload.vue.d.ts +283 -0
  218. package/types/components/wd-video-preview/types.d.ts +22 -0
  219. package/types/components/wd-video-preview/wd-video-preview.vue.d.ts +27 -0
  220. package/types/components/wd-watermark/types.d.ts +131 -0
  221. package/types/components/wd-watermark/wd-watermark.vue.d.ts +176 -0
  222. package/types/locale/index.d.ts +9 -0
  223. package/types/locale/lang/zh-CN.d.ts +128 -0
  224. package/components/wot-design-uni/wot-design-uni.vue +0 -14
@@ -0,0 +1,128 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export type TextType = 'default' | 'primary' | 'success' | 'warning' | 'error';
3
+ export declare const textProps: {
4
+ /**
5
+ * 主题类型
6
+ * 类型:string
7
+ * 可选值:'default' /'primary' / 'error' / 'warning' / 'success'
8
+ * 默认值:'default'
9
+ */
10
+ type: {
11
+ type: import("vue").PropType<TextType>;
12
+ default: TextType;
13
+ };
14
+ /**
15
+ * 文字
16
+ * 类型:string
17
+ * 默认值:'空字符串'
18
+ */
19
+ text: {
20
+ type: import("vue").PropType<string>;
21
+ default: string;
22
+ };
23
+ /**
24
+ * 字体大小
25
+ * 类型:string
26
+ * 默认值:'空字符串'
27
+ */
28
+ size: {
29
+ type: import("vue").PropType<string>;
30
+ default: string;
31
+ };
32
+ /**
33
+ * 文本处理的匹配模式
34
+ * 可选值:'text-普通文本' / 'date - 日期' / 'phone - 手机号' / 'name - 姓名' / 'price - 金额'
35
+ * 类型:string
36
+ * 默认值:'text'
37
+ */
38
+ mode: {
39
+ type: import("vue").PropType<string>;
40
+ default: string;
41
+ };
42
+ /**
43
+ * 文字装饰,下划线,中划线等
44
+ * 可选值:'underline/line-through/overline'
45
+ * 类型:string
46
+ * 默认值:'none'
47
+ */
48
+ decoration: {
49
+ type: import("vue").PropType<string>;
50
+ default: string;
51
+ };
52
+ /**
53
+ * mode=phone时,点击文本是否拨打电话
54
+ * 类型:boolean
55
+ * 默认值:false
56
+ */
57
+ call: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ /**
62
+ * 是否粗体,默认normal
63
+ * 类型:boolean
64
+ * 默认值:false
65
+ */
66
+ bold: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ /**
71
+ * 是否脱敏,当mode为phone和name时生效
72
+ * 类型:boolean
73
+ * 默认值:false
74
+ */
75
+ format: {
76
+ type: BooleanConstructor;
77
+ default: boolean;
78
+ };
79
+ /**
80
+ * 文本颜色
81
+ * 类型:string
82
+ * 默认值:''
83
+ */
84
+ color: {
85
+ type: import("vue").PropType<string>;
86
+ default: string;
87
+ };
88
+ /**
89
+ * 前置插槽
90
+ * 类型:string
91
+ * 默认值:''
92
+ */
93
+ prefix: StringConstructor;
94
+ /**
95
+ * 后置插槽
96
+ * 类型:string
97
+ * 默认值:''
98
+ */
99
+ suffix: StringConstructor;
100
+ /**
101
+ * 文本显示的行数,如果设置,超出此行数,将会显示省略号。最大值为5。
102
+ */
103
+ lines: NumberConstructor;
104
+ /**
105
+ * 文本行高
106
+ * 类型:string
107
+ * 默认值:''
108
+ */
109
+ lineHeight: {
110
+ type: import("vue").PropType<string>;
111
+ default: string;
112
+ };
113
+ /**
114
+ * 自定义根节点样式
115
+ */
116
+ customStyle: {
117
+ type: import("vue").PropType<string>;
118
+ default: string;
119
+ };
120
+ /**
121
+ * 自定义根节点样式类
122
+ */
123
+ customClass: {
124
+ type: import("vue").PropType<string>;
125
+ default: string;
126
+ };
127
+ };
128
+ export type TextProps = ExtractPropTypes<typeof textProps>;
@@ -0,0 +1,131 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ type: {
3
+ type: import("vue").PropType<import("./types").TextType>;
4
+ default: import("./types").TextType;
5
+ };
6
+ text: {
7
+ type: import("vue").PropType<string>;
8
+ default: string;
9
+ };
10
+ size: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ mode: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ decoration: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ call: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ bold: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ format: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ color: {
35
+ type: import("vue").PropType<string>;
36
+ default: string;
37
+ };
38
+ prefix: StringConstructor;
39
+ suffix: StringConstructor;
40
+ lines: NumberConstructor;
41
+ lineHeight: {
42
+ type: import("vue").PropType<string>;
43
+ default: string;
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
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
+ click: (...args: any[]) => void;
55
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56
+ type: {
57
+ type: import("vue").PropType<import("./types").TextType>;
58
+ default: import("./types").TextType;
59
+ };
60
+ text: {
61
+ type: import("vue").PropType<string>;
62
+ default: string;
63
+ };
64
+ size: {
65
+ type: import("vue").PropType<string>;
66
+ default: string;
67
+ };
68
+ mode: {
69
+ type: import("vue").PropType<string>;
70
+ default: string;
71
+ };
72
+ decoration: {
73
+ type: import("vue").PropType<string>;
74
+ default: string;
75
+ };
76
+ call: {
77
+ type: BooleanConstructor;
78
+ default: boolean;
79
+ };
80
+ bold: {
81
+ type: BooleanConstructor;
82
+ default: boolean;
83
+ };
84
+ format: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ color: {
89
+ type: import("vue").PropType<string>;
90
+ default: string;
91
+ };
92
+ prefix: StringConstructor;
93
+ suffix: StringConstructor;
94
+ lines: NumberConstructor;
95
+ lineHeight: {
96
+ type: import("vue").PropType<string>;
97
+ default: string;
98
+ };
99
+ customStyle: {
100
+ type: import("vue").PropType<string>;
101
+ default: string;
102
+ };
103
+ customClass: {
104
+ type: import("vue").PropType<string>;
105
+ default: string;
106
+ };
107
+ }>> & {
108
+ onClick?: ((...args: any[]) => any) | undefined;
109
+ }, {
110
+ customStyle: string;
111
+ customClass: string;
112
+ bold: boolean;
113
+ type: import("./types").TextType;
114
+ text: string;
115
+ size: string;
116
+ color: string;
117
+ lineHeight: string;
118
+ format: boolean;
119
+ mode: string;
120
+ decoration: string;
121
+ call: boolean;
122
+ }, {}>, {
123
+ prefix?(_: {}): any;
124
+ suffix?(_: {}): any;
125
+ }>;
126
+ export default _default;
127
+ type __VLS_WithTemplateSlots<T, S> = T & {
128
+ new (): {
129
+ $slots: S;
130
+ };
131
+ };
@@ -0,0 +1,363 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type { FormItemRule } from '../wd-form/types';
3
+ import type { InputClearTrigger } from '../wd-input/types';
4
+ export type ConfirmType = 'send' | 'search' | 'next' | 'go' | 'done';
5
+ export declare const textareaProps: {
6
+ /**
7
+ * * 自定义文本域容器class名称。
8
+ * 类型:string
9
+ */
10
+ customTextareaContainerClass: {
11
+ type: import("vue").PropType<string>;
12
+ default: string;
13
+ };
14
+ /**
15
+ * * 自定义文本域class名称。
16
+ * 类型:string
17
+ */
18
+ customTextareaClass: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ /**
23
+ * * 自定义标签class名称。
24
+ * 类型:string
25
+ */
26
+ customLabelClass: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ /**
31
+ * * 绑定值。
32
+ * 类型:string | number
33
+ */
34
+ modelValue: {
35
+ type: (NumberConstructor | StringConstructor)[];
36
+ default: string;
37
+ };
38
+ /**
39
+ * * 占位文本。
40
+ * 类型:string
41
+ * 默认值:'请输入...'
42
+ */
43
+ placeholder: StringConstructor;
44
+ /**
45
+ * 指定placeholder的样式。
46
+ * 类型:string
47
+ */
48
+ placeholderStyle: StringConstructor;
49
+ /**
50
+ * * 指定placeholder的样式类。
51
+ * 类型:string
52
+ * 默认值:空字符串
53
+ */
54
+ placeholderClass: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
58
+ /**
59
+ * * 禁用输入框。
60
+ * 类型:boolean
61
+ * 默认值:false
62
+ */
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ /**
68
+ * * 最大输入长度,设置为-1表示不限制最大长度。
69
+ * 类型:number
70
+ * 默认值:-1
71
+ */
72
+ maxlength: {
73
+ type: NumberConstructor;
74
+ default: number;
75
+ };
76
+ /**
77
+ * * 自动聚焦并拉起键盘。
78
+ * 类型:boolean
79
+ * 默认值:false
80
+ */
81
+ autoFocus: {
82
+ type: BooleanConstructor;
83
+ default: boolean;
84
+ };
85
+ /**
86
+ * * 获取焦点。
87
+ * 类型:boolean
88
+ * 默认值:false
89
+ */
90
+ focus: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
94
+ /**
95
+ * * 是否自动增高输入框高度,style.height属性在auto-height生效时不生效。
96
+ * 类型:boolean
97
+ * 默认值:false
98
+ */
99
+ autoHeight: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
103
+ /**
104
+ * * 如果textarea处于position:fixed区域,需要设置此属性为true。
105
+ * 类型:boolean
106
+ * 默认值:false
107
+ */
108
+ fixed: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ /**
113
+ * * 指定光标与键盘的距离,取textarea距离底部的距离和cursor-spacing指定的距离的最小值作为实际距离。
114
+ * 类型:number
115
+ * 默认值:0
116
+ */
117
+ cursorSpacing: {
118
+ type: NumberConstructor;
119
+ default: number;
120
+ };
121
+ /**
122
+ * * 指定focus时的光标位置。
123
+ * 类型:number
124
+ * 默认值:-1
125
+ */
126
+ cursor: {
127
+ type: NumberConstructor;
128
+ default: number;
129
+ };
130
+ /**
131
+ * * 设置键盘右下角按钮的文字。
132
+ * 类型:string
133
+ * 默认值:'done'
134
+ * 可选值有'done', 'go', 'next', 'search', 'send'
135
+ */
136
+ confirmType: {
137
+ type: import("vue").PropType<ConfirmType | null>;
138
+ default: ConfirmType | null;
139
+ };
140
+ /**
141
+ * * 点击键盘右下角按钮时是否保持键盘不收起。
142
+ * 类型:boolean
143
+ * 默认值:false
144
+ */
145
+ confirmHold: {
146
+ type: BooleanConstructor;
147
+ default: boolean;
148
+ };
149
+ /**
150
+ * * 是否显示键盘上方带有“完成”按钮那一栏。
151
+ * 类型:boolean
152
+ * 默认值:true
153
+ */
154
+ showConfirmBar: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
158
+ /**
159
+ * * 光标起始位置,自动聚集时有效,需与selection-end搭配使用。
160
+ * 类型:number
161
+ * 默认值:-1
162
+ */
163
+ selectionStart: {
164
+ type: NumberConstructor;
165
+ default: number;
166
+ };
167
+ /**
168
+ * * 光标结束位置,自动聚集时有效,需与selection-start搭配使用。
169
+ * 类型:number
170
+ * 默认值:-1
171
+ */
172
+ selectionEnd: {
173
+ type: NumberConstructor;
174
+ default: number;
175
+ };
176
+ /**
177
+ * * 键盘弹起时是否自动上推页面。
178
+ * 类型:boolean
179
+ * 默认值:true
180
+ */
181
+ adjustPosition: {
182
+ type: BooleanConstructor;
183
+ default: boolean;
184
+ };
185
+ /**
186
+ * * 是否去掉iOS下的默认内边距。
187
+ * 类型:boolean
188
+ * 默认值:false
189
+ */
190
+ disableDefaultPadding: {
191
+ type: BooleanConstructor;
192
+ default: boolean;
193
+ };
194
+ /**
195
+ * * focus状态下点击页面时是否不收起键盘。
196
+ * 类型:boolean
197
+ * 默认值:false
198
+ */
199
+ holdKeyboard: {
200
+ type: BooleanConstructor;
201
+ default: boolean;
202
+ };
203
+ /**
204
+ * * 显示为密码框。
205
+ * 类型:boolean
206
+ * 默认值:false
207
+ */
208
+ showPassword: {
209
+ type: BooleanConstructor;
210
+ default: boolean;
211
+ };
212
+ /**
213
+ * * 是否显示清空按钮。
214
+ * 类型:boolean
215
+ * 默认值:false
216
+ */
217
+ clearable: {
218
+ type: BooleanConstructor;
219
+ default: boolean;
220
+ };
221
+ /**
222
+ * * 输入框只读状态。
223
+ * 类型:boolean
224
+ * 默认值:false
225
+ */
226
+ readonly: {
227
+ type: BooleanConstructor;
228
+ default: boolean;
229
+ };
230
+ /**
231
+ * * 前置图标,icon组件中的图标类名。
232
+ * 类型:string
233
+ */
234
+ prefixIcon: StringConstructor;
235
+ /**
236
+ * * 是否使用前置图标插槽。
237
+ * 类型:boolean
238
+ * 默认值:false
239
+ */
240
+ usePrefixSlot: {
241
+ type: BooleanConstructor;
242
+ default: boolean;
243
+ };
244
+ /**
245
+ * * 是否显示字数限制,需要同时设置maxlength。
246
+ * 类型:boolean
247
+ * 默认值:false
248
+ */
249
+ showWordLimit: {
250
+ type: BooleanConstructor;
251
+ default: boolean;
252
+ };
253
+ /**
254
+ * * 设置左侧标题。
255
+ * 类型:string
256
+ */
257
+ label: StringConstructor;
258
+ /**
259
+ * * 设置左侧标题宽度。
260
+ * 类型:string
261
+ * 默认值:'33%'
262
+ */
263
+ labelWidth: {
264
+ type: import("vue").PropType<string>;
265
+ default: string;
266
+ };
267
+ /**
268
+ * * 是否使用label插槽。
269
+ * 类型:boolean
270
+ * 默认值:false
271
+ */
272
+ useLabelSlot: {
273
+ type: BooleanConstructor;
274
+ default: boolean;
275
+ };
276
+ /**
277
+ * * 设置输入框大小。
278
+ * 类型:string
279
+ */
280
+ size: StringConstructor;
281
+ /**
282
+ * * 设置输入框错误状态(红色)。
283
+ * 类型:boolean
284
+ * 默认值:false
285
+ */
286
+ error: {
287
+ type: BooleanConstructor;
288
+ default: boolean;
289
+ };
290
+ /**
291
+ * * 当存在label属性时,设置标题和输入框垂直居中,默认为顶部居中。
292
+ * 类型:boolean
293
+ * 默认值:false
294
+ */
295
+ center: {
296
+ type: BooleanConstructor;
297
+ default: boolean;
298
+ };
299
+ /**
300
+ * * 非cell类型下是否隐藏下划线。
301
+ * 类型:boolean
302
+ * 默认值:false
303
+ */
304
+ noBorder: {
305
+ type: BooleanConstructor;
306
+ default: boolean;
307
+ };
308
+ /**
309
+ * * cell类型下必填样式。
310
+ * 类型:boolean
311
+ * 默认值:false
312
+ */
313
+ required: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ /**
318
+ * * 表单域model字段名,在使用表单校验功能的情况下,该属性是必填的。
319
+ * 类型:string
320
+ */
321
+ prop: {
322
+ type: import("vue").PropType<string>;
323
+ default: string;
324
+ };
325
+ /**
326
+ * * 表单验证规则。
327
+ * 类型:FormItemRule[]
328
+ * 默认值:[]
329
+ */
330
+ rules: {
331
+ type: import("vue").PropType<FormItemRule[]>;
332
+ default: () => never[];
333
+ };
334
+ /**
335
+ * 显示清除图标的时机,always 表示输入框不为空时展示,focus 表示输入框聚焦且不为空时展示
336
+ * 类型: "focus" | "always"
337
+ * 默认值: "always"
338
+ * 最低版本: $LOWEST_VERSION$
339
+ */
340
+ clearTrigger: {
341
+ type: import("vue").PropType<InputClearTrigger>;
342
+ default: InputClearTrigger;
343
+ };
344
+ /**
345
+ * 是否在点击清除按钮时聚焦输入框
346
+ * 类型: boolean
347
+ * 默认值: true
348
+ * 最低版本: $LOWEST_VERSION$
349
+ */
350
+ focusWhenClear: {
351
+ type: BooleanConstructor;
352
+ default: boolean;
353
+ };
354
+ customStyle: {
355
+ type: import("vue").PropType<string>;
356
+ default: string;
357
+ };
358
+ customClass: {
359
+ type: import("vue").PropType<string>;
360
+ default: string;
361
+ };
362
+ };
363
+ export type TextareaProps = ExtractPropTypes<typeof textareaProps>;