uview-plus 3.1.52 → 3.2.5

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 (134) hide show
  1. package/changelog.md +51 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +1 -1
  3. package/components/u-album/u-album.vue +261 -261
  4. package/components/u-avatar/u-avatar.vue +3 -2
  5. package/components/u-avatar-group/u-avatar-group.vue +106 -106
  6. package/components/u-button/u-button.vue +6 -1
  7. package/components/u-calendar/u-calendar.vue +4 -3
  8. package/components/u-cell/u-cell.vue +4 -2
  9. package/components/u-checkbox/props.js +5 -0
  10. package/components/u-checkbox/u-checkbox.vue +29 -17
  11. package/components/u-code/u-code.vue +1 -1
  12. package/components/u-dropdown/props.js +8 -14
  13. package/components/u-dropdown/u-dropdown.vue +202 -77
  14. package/components/u-dropdown-item/props.js +45 -36
  15. package/components/u-dropdown-item/u-dropdown-item.vue +121 -148
  16. package/components/u-form/u-form.vue +1 -1
  17. package/components/u-form-item/props.js +6 -1
  18. package/components/u-form-item/u-form-item.vue +1 -1
  19. package/components/u-grid/u-grid.vue +4 -2
  20. package/components/u-grid-item/u-grid-item.vue +8 -7
  21. package/components/u-input/u-input.vue +1 -1
  22. package/components/u-lazy-load/u-lazy-load.vue +251 -0
  23. package/components/u-number-box/u-number-box.vue +4 -4
  24. package/components/u-picker/u-picker.vue +5 -2
  25. package/components/u-popup/u-popup.vue +1 -1
  26. package/components/u-radio/u-radio.vue +2 -2
  27. package/components/u-rate/u-rate.vue +1 -1
  28. package/components/u-read-more/u-read-more.vue +164 -160
  29. package/components/u-slider/u-slider.vue +6 -6
  30. package/components/u-steps-item/u-steps-item.vue +318 -318
  31. package/components/u-subsection/u-subsection.vue +35 -21
  32. package/components/u-swiper/u-swiper.vue +6 -8
  33. package/components/u-switch/u-switch.vue +1 -1
  34. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  35. package/components/u-tabs/u-tabs.vue +1 -0
  36. package/components/u-tag/props.js +5 -2
  37. package/components/u-tag/u-tag.vue +1 -1
  38. package/components/u-text/u-text.vue +226 -226
  39. package/components/u-textarea/u-textarea.vue +275 -275
  40. package/components/u-transition/u-transition.vue +1 -1
  41. package/components/u-waterfall/u-waterfall.vue +225 -0
  42. package/index.js +5 -2
  43. package/libs/config/props/formItem.js +1 -0
  44. package/libs/config/props/tag.js +30 -29
  45. package/libs/css/common.scss +4 -1
  46. package/libs/css/components.scss +5 -5
  47. package/libs/css/flex.scss +45 -45
  48. package/libs/mixin/mixin.js +2 -2
  49. package/libs/mixin/mpShare.js +15 -13
  50. package/package.json +1 -1
  51. package/types/comps/_common.d.ts +9 -0
  52. package/types/comps/actionSheet.d.ts +121 -0
  53. package/types/comps/album.d.ts +72 -0
  54. package/types/comps/alert.d.ts +55 -0
  55. package/types/comps/avatar.d.ts +85 -0
  56. package/types/comps/avatarGroup.d.ts +62 -0
  57. package/types/comps/backTop.d.ts +74 -0
  58. package/types/comps/badge.d.ts +76 -0
  59. package/types/comps/button.d.ts +169 -0
  60. package/types/comps/calendar.d.ts +164 -0
  61. package/types/comps/cell.d.ts +133 -0
  62. package/types/comps/cellGroup.d.ts +27 -0
  63. package/types/comps/checkbox.d.ts +69 -0
  64. package/types/comps/checkboxGroup.d.ts +93 -0
  65. package/types/comps/code.d.ts +69 -0
  66. package/types/comps/codeInput.d.ts +98 -0
  67. package/types/comps/col.d.ts +43 -0
  68. package/types/comps/collapse.d.ts +52 -0
  69. package/types/comps/collapseItem.d.ts +83 -0
  70. package/types/comps/countDown.d.ts +60 -0
  71. package/types/comps/countTo.d.ts +88 -0
  72. package/types/comps/datetimePicker.d.ts +146 -0
  73. package/types/comps/divider.d.ts +58 -0
  74. package/types/comps/empty.d.ts +72 -0
  75. package/types/comps/form.d.ts +76 -0
  76. package/types/comps/formItem.d.ts +68 -0
  77. package/types/comps/gap.d.ts +35 -0
  78. package/types/comps/grid.d.ts +34 -0
  79. package/types/comps/gridItem.d.ts +28 -0
  80. package/types/comps/icon.d.ts +93 -0
  81. package/types/comps/image.d.ts +119 -0
  82. package/types/comps/indexAnchor.d.ts +38 -0
  83. package/types/comps/indexItem.d.ts +18 -0
  84. package/types/comps/indexList.d.ts +39 -0
  85. package/types/comps/input.d.ts +234 -0
  86. package/types/comps/keyboard.d.ts +125 -0
  87. package/types/comps/line.d.ts +44 -0
  88. package/types/comps/lineProgress.d.ts +51 -0
  89. package/types/comps/link.d.ts +51 -0
  90. package/types/comps/list.d.ts +92 -0
  91. package/types/comps/listItem.d.ts +18 -0
  92. package/types/comps/loadMore.d.ts +108 -0
  93. package/types/comps/loadingIcon.d.ts +68 -0
  94. package/types/comps/loadingPage.d.ts +58 -0
  95. package/types/comps/modal.d.ts +115 -0
  96. package/types/comps/navbar.d.ts +113 -0
  97. package/types/comps/noNetwork.d.ts +40 -0
  98. package/types/comps/noticeBar.d.ts +85 -0
  99. package/types/comps/notify.d.ts +73 -0
  100. package/types/comps/numberBox.d.ts +155 -0
  101. package/types/comps/overlay.d.ts +46 -0
  102. package/types/comps/parse.d.ts +101 -0
  103. package/types/comps/picker.d.ts +115 -0
  104. package/types/comps/popup.d.ts +103 -0
  105. package/types/comps/radio.d.ts +77 -0
  106. package/types/comps/radioGroup.d.ts +97 -0
  107. package/types/comps/rate.d.ts +85 -0
  108. package/types/comps/readMore.d.ts +80 -0
  109. package/types/comps/row.d.ts +34 -0
  110. package/types/comps/scrollList.d.ts +51 -0
  111. package/types/comps/search.d.ts +167 -0
  112. package/types/comps/skeleton.d.ts +70 -0
  113. package/types/comps/slider.d.ts +79 -0
  114. package/types/comps/steps.d.ts +48 -0
  115. package/types/comps/stepsItem.d.ts +41 -0
  116. package/types/comps/sticky.d.ts +48 -0
  117. package/types/comps/subsection.d.ts +64 -0
  118. package/types/comps/swipeAction.d.ts +24 -0
  119. package/types/comps/swipeActionItem.d.ts +58 -0
  120. package/types/comps/swiper.d.ts +142 -0
  121. package/types/comps/swiperIndicator.d.ts +37 -0
  122. package/types/comps/switch.d.ts +73 -0
  123. package/types/comps/tabbar.d.ts +54 -0
  124. package/types/comps/tabbarItem.d.ts +52 -0
  125. package/types/comps/tabs.d.ts +85 -0
  126. package/types/comps/tag.d.ts +93 -0
  127. package/types/comps/text.d.ts +110 -0
  128. package/types/comps/textarea.d.ts +158 -0
  129. package/types/comps/toast.d.ts +59 -0
  130. package/types/comps/tooltip.d.ts +71 -0
  131. package/types/comps/transition.d.ts +61 -0
  132. package/types/comps/upload.d.ts +163 -0
  133. package/types/comps.d.ts +99 -0
  134. package/types/index.d.ts +47 -0
@@ -0,0 +1,35 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface GapProps {
4
+ /**
5
+ * 背景颜色
6
+ * @default "transparent"
7
+ */
8
+ bgColor?: string
9
+ /**
10
+ * 间隔槽高度,单位px
11
+ * @default 20
12
+ */
13
+ height?: string | number
14
+ /**
15
+ * 与前一个元素的距离,单位px
16
+ * @default 0
17
+ */
18
+ marginTop?: string | number
19
+ /**
20
+ * 与后一个元素的距离,单位px
21
+ * @default 0
22
+ */
23
+ marginBottom?: string | number
24
+ }
25
+
26
+ declare interface _Gap {
27
+ new (): {
28
+ $props: AllowedComponentProps &
29
+ VNodeProps &
30
+ GapProps
31
+ }
32
+ }
33
+
34
+ export declare const Gap: _Gap
35
+
@@ -0,0 +1,34 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface GridProps {
4
+ /**
5
+ * 宫格的列数
6
+ * @default 3
7
+ */
8
+ col?: string | number
9
+ /**
10
+ * 是否显示宫格的边框
11
+ * @default true
12
+ */
13
+ border?: boolean
14
+ /**
15
+ * 宫格的对齐方式,用于控制只有一两个宫格时的对齐场景
16
+ * @default "left"
17
+ */
18
+ align?: 'left' | 'center' | 'right'
19
+ /**
20
+ * 点击宫格触发
21
+ * @param name `grid-item` 的 `name`
22
+ */
23
+ onClick?: (name: any) => any
24
+ }
25
+
26
+ declare interface _Grid {
27
+ new (): {
28
+ $props: AllowedComponentProps &
29
+ VNodeProps &
30
+ GridProps
31
+ }
32
+ }
33
+
34
+ export declare const Grid: _Grid
@@ -0,0 +1,28 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface GridItemProps {
4
+ /**
5
+ * 宫格的name
6
+ */
7
+ name?: string | number
8
+ /**
9
+ * 宫格的背景颜色
10
+ * @default "transparent"
11
+ */
12
+ bgColor?: string
13
+ /**
14
+ * 点击宫格触发
15
+ * @param name `grid-item` 的 `name`
16
+ */
17
+ onClick?: (name: any) => any
18
+ }
19
+
20
+ declare interface _GridItem {
21
+ new (): {
22
+ $props: AllowedComponentProps &
23
+ VNodeProps &
24
+ GridItemProps
25
+ }
26
+ }
27
+
28
+ export declare const GridItem: _GridItem
@@ -0,0 +1,93 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+ import { ImageMode } from './image'
3
+
4
+ declare interface IconProps {
5
+ /**
6
+ * 图标名称,如名称带有`/`,会被认为是图片图标
7
+ */
8
+ name?: string
9
+ /**
10
+ * 图标颜色
11
+ * @default "color['u-content-color']"
12
+ */
13
+ color?: string
14
+ /**
15
+ * 图标字体大小,单位默认px
16
+ * @default "16px"
17
+ */
18
+ size?: string | number
19
+ /**
20
+ * 是否显示粗体
21
+ * @default false
22
+ */
23
+ bold?: boolean
24
+ /**
25
+ * 一个用于区分多个图标的值,点击图标时通过`click`事件传出
26
+ */
27
+ index?: string | number
28
+ /**
29
+ * 图标按下去的样式类,用法同uni的`view`组件的`hover-class`参数,详见:[hover-class](https://uniapp.dcloud.io/component/view)
30
+ */
31
+ hoverClass?: string
32
+ /**
33
+ * 图标右侧/下方的label文字
34
+ */
35
+ label?: string | number
36
+ /**
37
+ * `label`相对于图标的位置
38
+ * @default "right"
39
+ */
40
+ labelPos?: 'right' | 'bottom' | 'top' | 'left'
41
+ /**
42
+ * `label`字体大小,单位默认px
43
+ * @default "15px"
44
+ */
45
+ labelSize?: string | number
46
+ /**
47
+ * `label`字体颜色
48
+ * @default "color['u-content-color']"
49
+ */
50
+ labelColor?: string
51
+ /**
52
+ * `label`与图标的距离,单位默认px
53
+ * @default "3px"
54
+ */
55
+ space?: string | number
56
+ /**
57
+ * 裁剪模式
58
+ */
59
+ imgMode?: ImageMode
60
+ /**
61
+ * `name`为图片路径时图片的宽度,单位默认px
62
+ */
63
+ width?: string | number
64
+ /**
65
+ * `name`为图片路径时图片的高度,单位默认px
66
+ */
67
+ height?: string | number
68
+ /**
69
+ * 图标到顶部的距离,如果某些场景,如果图标没有垂直居中,可以调整此参数,单位默认px
70
+ * @default 0
71
+ */
72
+ top?: string | number
73
+ /**
74
+ * 是否阻止事件传播
75
+ * @default false
76
+ */
77
+ stop?: boolean
78
+ /**
79
+ * 点击图标时触发
80
+ * @param index 通过`props`传递的`index`值
81
+ */
82
+ onClick?: (index: any) => any
83
+ }
84
+
85
+ declare interface _Icon {
86
+ new (): {
87
+ $props: AllowedComponentProps &
88
+ VNodeProps &
89
+ IconProps
90
+ }
91
+ }
92
+
93
+ export declare const Icon: _Icon
@@ -0,0 +1,119 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ export declare type ImageMode = 'scaleToFill' | 'aspectFit' | 'aspectFill' | 'widthFix' | 'heightFix' | 'top' | 'bottom' | 'center' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right'
4
+
5
+ declare interface ImageProps {
6
+ /**
7
+ * 图片地址,强烈建议使用绝对或者网络路径
8
+ */
9
+ src?: string
10
+ /**
11
+ * 裁剪模式
12
+ * @default "aspectFill"
13
+ */
14
+ mode?: ImageMode
15
+ /**
16
+ * 宽度,单位任意,如果为数值,默认单位px
17
+ * @default 300
18
+ */
19
+ width?: string | number
20
+ /**
21
+ * 高度,单位任意,如果为数值,默认单位px
22
+ * @default 225
23
+ */
24
+ height?: string | number
25
+ /**
26
+ * 图片形状
27
+ * @default "square"
28
+ */
29
+ shape?: 'circle' | 'square'
30
+ /**
31
+ * 圆角,默认单位px
32
+ * @default 0
33
+ */
34
+ radius?: string | number
35
+ /**
36
+ * 是否懒加载,仅微信小程序、App、百度小程序、字节跳动小程序有效
37
+ * @default true
38
+ */
39
+ lazyLoad?: boolean
40
+ /**
41
+ * 是否开启长按图片显示识别小程序码菜单,仅微信小程序有效
42
+ */
43
+ showMenuByLongpress?: boolean
44
+ /**
45
+ * 加载中的图标,或者小图片
46
+ * @default "photo"
47
+ */
48
+ loadingIcon?: string
49
+ /**
50
+ * 加载失败的图标,或者小图片
51
+ * @default "error-circle"
52
+ */
53
+ errorIcon?: string
54
+ /**
55
+ * 是否显示加载中的图标或者自定义的slot
56
+ * @default true
57
+ */
58
+ showLoading?: boolean
59
+ /**
60
+ * 是否显示加载错误的图标或者自定义的slot
61
+ * @default true
62
+ */
63
+ showError?: boolean
64
+ /**
65
+ * 是否需要淡入效果
66
+ * @default true
67
+ */
68
+ fade?: boolean
69
+ /**
70
+ * 只支持网络资源,只对微信小程序有效
71
+ * @default false
72
+ */
73
+ webp?: boolean
74
+ /**
75
+ * 搭配`fade`参数的过渡时间,单位ms
76
+ * @default 500
77
+ */
78
+ duration?: string | number
79
+ /**
80
+ * 背景颜色,用于深色页面加载图片时,为了和背景色融合
81
+ * @default "#f3f4f6"
82
+ */
83
+ bgColor?: string
84
+ /**
85
+ * 点击图片时触发
86
+ */
87
+ onClick?: () => any
88
+ /**
89
+ * 图片加载失败时触发
90
+ * @param err 错误信息
91
+ */
92
+ onError?: (err: any) => any
93
+ /**
94
+ * 图片加载成功时触发
95
+ */
96
+ onLoad?: () => any
97
+ }
98
+
99
+ declare interface ImageSlots {
100
+ /**
101
+ * 自定义加载中的提示内容
102
+ */
103
+ ['loading']?: () => any
104
+ /**
105
+ * 自定义失败的提示内容
106
+ */
107
+ ['error']?: () => any
108
+ }
109
+
110
+ declare interface _Image {
111
+ new (): {
112
+ $props: AllowedComponentProps &
113
+ VNodeProps &
114
+ ImageProps
115
+ $slots: ImageSlots
116
+ }
117
+ }
118
+
119
+ export declare const Image: _Image
@@ -0,0 +1,38 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface IndexAnchorProps {
4
+ /**
5
+ * 列表锚点文本内容
6
+ */
7
+ text?: string | number
8
+ /**
9
+ * 列表锚点文字颜色
10
+ * @default "#606266"
11
+ */
12
+ color?: string
13
+ /**
14
+ * 列表锚点文字大小,单位默认px
15
+ * @default 14
16
+ */
17
+ size?: string | number
18
+ /**
19
+ * 列表锚点背景颜色
20
+ * @default "#dedede"
21
+ */
22
+ bgColor?: string
23
+ /**
24
+ * 列表锚点高度,单位默认px
25
+ * @default 32
26
+ */
27
+ height?: string | number
28
+ }
29
+
30
+ declare interface _IndexAnchor {
31
+ new (): {
32
+ $props: AllowedComponentProps &
33
+ VNodeProps &
34
+ IndexAnchorProps
35
+ }
36
+ }
37
+
38
+ export declare const IndexAnchor: _IndexAnchor
@@ -0,0 +1,18 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface IndexItemSlots {
4
+ /**
5
+ * 自定义列表内容
6
+ */
7
+ ['default']?: () => any
8
+ }
9
+
10
+ declare interface _IndexItem {
11
+ new (): {
12
+ $props: AllowedComponentProps &
13
+ VNodeProps
14
+ $slots: IndexItemSlots
15
+ }
16
+ }
17
+
18
+ export declare const IndexItem: _IndexItem
@@ -0,0 +1,39 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface IndexListProps {
4
+ /**
5
+ * 右边锚点状态非激活时的颜色
6
+ * @default "#606266"
7
+ */
8
+ inactiveColor?: string
9
+ /**
10
+ * 右边锚点状态激活时的颜色
11
+ * @default "#5677fc"
12
+ */
13
+ activeColor?: string
14
+ /**
15
+ * 索引字符列表,数组
16
+ * @default "A-Z"
17
+ */
18
+ indexList?: (string | number)[]
19
+ /**
20
+ * 是否开启锚点自动吸顶
21
+ * @default true
22
+ */
23
+ sticky?: boolean
24
+ /**
25
+ * 自定义导航栏的高度,单位默认px
26
+ * @default 0
27
+ */
28
+ customNavHeight?: string | number
29
+ }
30
+
31
+ declare interface _IndexList {
32
+ new (): {
33
+ $props: AllowedComponentProps &
34
+ VNodeProps &
35
+ IndexListProps
36
+ }
37
+ }
38
+
39
+ export declare const IndexList: _IndexList
@@ -0,0 +1,234 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface InputProps {
4
+ /**
5
+ * 输入的值
6
+ */
7
+ value?: string | number
8
+ /**
9
+ * 输入框类型,详见[文档](https://www.uviewui.com/components/input.html#%E8%BE%93%E5%85%A5%E6%A1%86%E7%9A%84%E7%B1%BB%E5%9E%8B)
10
+ * @default "text"
11
+ */
12
+ type?: 'text' | 'number' | 'idcard' | 'digit' | 'password'
13
+ /**
14
+ * 是否禁用输入框
15
+ * @default false
16
+ */
17
+ disabled?: boolean
18
+ /**
19
+ * 禁用状态时的背景色
20
+ * @default "#f5f7fa"
21
+ */
22
+ disabledColor?: string
23
+ /**
24
+ * 是否显示清除控件
25
+ * @default false
26
+ */
27
+ clearable?: boolean
28
+ /**
29
+ * 是否密码类型
30
+ * @default false
31
+ */
32
+ password?: boolean
33
+ /**
34
+ * 最大输入长度,设置为 -1 的时候不限制最大长度
35
+ * @default -1
36
+ */
37
+ maxlength?: string | number
38
+ /**
39
+ * 输入框为空时的占位符
40
+ */
41
+ placeholder?: string
42
+ /**
43
+ * 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
44
+ * @default "input-placeholder"
45
+ */
46
+ placeholderClass?: string
47
+ /**
48
+ * 指定placeholder的样式
49
+ * @default "color: #c0c4cc"
50
+ */
51
+ placeholderStyle?: unknown
52
+ /**
53
+ * 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
54
+ * @default false
55
+ */
56
+ showWordLimit?: boolean
57
+ /**
58
+ * 设置右下角按钮的文字
59
+ * @default "done"
60
+ */
61
+ confirmType?: 'send' | 'search' | 'next' | 'go' | 'done'
62
+ /**
63
+ * 点击键盘右下角按钮时是否保持键盘不收起,H5无效
64
+ * @default false
65
+ */
66
+ confirmHold?: boolean
67
+ /**
68
+ * focus时,点击页面的时候不收起键盘,微信小程序有效
69
+ * @default false
70
+ */
71
+ holdKeyboard?: boolean
72
+ /**
73
+ * 自动获取焦点,在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
74
+ * @default false
75
+ */
76
+ focus?: boolean
77
+ /**
78
+ * 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
79
+ * @default false
80
+ */
81
+ autoBlur?: boolean
82
+ /**
83
+ * 是否忽略组件内对文本合成系统事件的处理。为 false 时将触发 compositionstart、compositionend、compositionupdate 事件,且在文本合成期间会触发 input 事件
84
+ * @default true
85
+ */
86
+ ignoreCompositionEvent?: boolean
87
+ /**
88
+ * 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
89
+ * @default false
90
+ */
91
+ disableDefaultPadding?: boolean
92
+ /**
93
+ * 指定focus时光标的位置
94
+ * @default -1
95
+ */
96
+ cursor?: string | number
97
+ /**
98
+ * 输入框聚焦时底部与键盘的距离
99
+ * @default 30
100
+ */
101
+ cursorSpacing?: string | number
102
+ /**
103
+ * 光标起始位置,自动聚集时有效,需与selection-end搭配使用
104
+ * @default -1
105
+ */
106
+ selectionStart?: string | number
107
+ /**
108
+ * 光标结束位置,自动聚集时有效,需与selection-start搭配使用
109
+ * @default -1
110
+ */
111
+ selectionEnd?: string | number
112
+ /**
113
+ * 键盘弹起时,是否自动上推页面
114
+ * @default true
115
+ */
116
+ adjustPosition?: boolean
117
+ /**
118
+ * 输入框内容对齐方式
119
+ * @default "left"
120
+ */
121
+ inputAlign?: 'left' | 'center' | 'right'
122
+ /**
123
+ * 输入框字体的大小
124
+ * @default "15px"
125
+ */
126
+ fontSize?: string | number
127
+ /**
128
+ * 输入框字体颜色
129
+ * @default "#303133"
130
+ */
131
+ color?: string
132
+ /**
133
+ * 输入框前置图标
134
+ */
135
+ prefixIcon?: string
136
+ /**
137
+ * 前置图标样式
138
+ */
139
+ prefixIconStyle?: unknown
140
+ /**
141
+ * 输入框后置图标
142
+ */
143
+ suffixIcon?: string
144
+ /**
145
+ * 后置图标样式
146
+ */
147
+ suffixIconStyle?: unknown
148
+ /**
149
+ * 边框类型,surround-四周边框,bottom-底部边框,none-无边框
150
+ * @default "surround"
151
+ */
152
+ border?: 'surround' | 'bottom' | 'none'
153
+ /**
154
+ * 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
155
+ * @default false
156
+ */
157
+ readonly?: boolean
158
+ /**
159
+ * 输入框形状,circle-圆形,square-方形
160
+ * @default "square"
161
+ */
162
+ shape?: 'square' | 'circle'
163
+ /**
164
+ * 输入过滤或格式化函数(如需兼容微信小程序,则只能通过`setFormatter`方法)
165
+ */
166
+ formatter?: (...args: any) => any
167
+ /**
168
+ * 定义需要用到的外部样式
169
+ */
170
+ customStyle?: unknown
171
+ /**
172
+ * 输入框失去焦点时触发
173
+ * @param value 内容值
174
+ */
175
+ onBlur?: (value: any) => any
176
+ /**
177
+ * 输入框聚焦时触发
178
+ */
179
+ onFocus?: () => any
180
+ /**
181
+ * 点击完成按钮时触发
182
+ * @param value 内容值
183
+ */
184
+ onConfirm?: (value: any) => any
185
+ /**
186
+ * 键盘高度发生变化的时候触发此事件
187
+ */
188
+ onKeyboardheightchange?: () => any
189
+ /**
190
+ * 内容发生变化触发此事件
191
+ * @param value 内容值
192
+ */
193
+ onInput?: (value: any) => any
194
+ /**
195
+ * 内容发生变化触发此事件
196
+ * @param value 内容值
197
+ */
198
+ onChange?: (value: any) => any
199
+ /**
200
+ * 点击清空内容
201
+ */
202
+ onClear?: () => any
203
+ }
204
+
205
+ declare interface InputSlots {
206
+ /**
207
+ * 输入框前置内容,`nuve`环境需`u--input`有效,非`nvue`环境需`u-input`才有效
208
+ */
209
+ ['prefix']?: () => any
210
+ /**
211
+ * 输入框后置内容,`nuve`环境需`u--input`有效,非`nvue`环境需`u-input`才有效
212
+ */
213
+ ['suffix']?: () => any
214
+ }
215
+
216
+ declare interface _Input {
217
+ new (): {
218
+ $props: AllowedComponentProps &
219
+ VNodeProps &
220
+ InputProps
221
+ $slots: InputSlots
222
+ }
223
+ }
224
+
225
+ declare interface _InputRef {
226
+ /**
227
+ * 为兼容微信小程序而暴露的内部方法
228
+ */
229
+ setFormatter: () => void
230
+ }
231
+
232
+ export declare const Input: _Input
233
+
234
+ export declare const InputRef: _InputRef