uview-plus 3.2.3 → 3.2.6

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 (100) hide show
  1. package/changelog.md +9 -0
  2. package/components/u-checkbox/u-checkbox.vue +2 -2
  3. package/components/u-number-box/u-number-box.vue +4 -4
  4. package/components/u-picker/u-picker.vue +1 -1
  5. package/components/u-radio/u-radio.vue +2 -2
  6. package/components/u-rate/u-rate.vue +1 -1
  7. package/components/u-subsection/u-subsection.vue +22 -14
  8. package/components/u-swipe-action-item/u-swipe-action-item.vue +18 -1
  9. package/components/u-switch/u-switch.vue +1 -1
  10. package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
  11. package/components/u-tag/u-tag.vue +1 -1
  12. package/index.js +5 -2
  13. package/libs/css/common.scss +3 -0
  14. package/libs/mixin/mpShare.js +15 -13
  15. package/package.json +2 -1
  16. package/types/comps/_common.d.ts +9 -0
  17. package/types/comps/actionSheet.d.ts +121 -0
  18. package/types/comps/album.d.ts +72 -0
  19. package/types/comps/alert.d.ts +55 -0
  20. package/types/comps/avatar.d.ts +85 -0
  21. package/types/comps/avatarGroup.d.ts +62 -0
  22. package/types/comps/backTop.d.ts +74 -0
  23. package/types/comps/badge.d.ts +76 -0
  24. package/types/comps/button.d.ts +169 -0
  25. package/types/comps/calendar.d.ts +164 -0
  26. package/types/comps/cell.d.ts +133 -0
  27. package/types/comps/cellGroup.d.ts +27 -0
  28. package/types/comps/checkbox.d.ts +69 -0
  29. package/types/comps/checkboxGroup.d.ts +93 -0
  30. package/types/comps/code.d.ts +69 -0
  31. package/types/comps/codeInput.d.ts +98 -0
  32. package/types/comps/col.d.ts +43 -0
  33. package/types/comps/collapse.d.ts +52 -0
  34. package/types/comps/collapseItem.d.ts +83 -0
  35. package/types/comps/countDown.d.ts +60 -0
  36. package/types/comps/countTo.d.ts +88 -0
  37. package/types/comps/datetimePicker.d.ts +146 -0
  38. package/types/comps/divider.d.ts +58 -0
  39. package/types/comps/empty.d.ts +72 -0
  40. package/types/comps/form.d.ts +76 -0
  41. package/types/comps/formItem.d.ts +68 -0
  42. package/types/comps/gap.d.ts +35 -0
  43. package/types/comps/grid.d.ts +34 -0
  44. package/types/comps/gridItem.d.ts +28 -0
  45. package/types/comps/icon.d.ts +93 -0
  46. package/types/comps/image.d.ts +119 -0
  47. package/types/comps/indexAnchor.d.ts +38 -0
  48. package/types/comps/indexItem.d.ts +18 -0
  49. package/types/comps/indexList.d.ts +39 -0
  50. package/types/comps/input.d.ts +234 -0
  51. package/types/comps/keyboard.d.ts +125 -0
  52. package/types/comps/line.d.ts +44 -0
  53. package/types/comps/lineProgress.d.ts +51 -0
  54. package/types/comps/link.d.ts +51 -0
  55. package/types/comps/list.d.ts +92 -0
  56. package/types/comps/listItem.d.ts +18 -0
  57. package/types/comps/loadMore.d.ts +108 -0
  58. package/types/comps/loadingIcon.d.ts +68 -0
  59. package/types/comps/loadingPage.d.ts +58 -0
  60. package/types/comps/modal.d.ts +115 -0
  61. package/types/comps/navbar.d.ts +113 -0
  62. package/types/comps/noNetwork.d.ts +40 -0
  63. package/types/comps/noticeBar.d.ts +85 -0
  64. package/types/comps/notify.d.ts +73 -0
  65. package/types/comps/numberBox.d.ts +155 -0
  66. package/types/comps/overlay.d.ts +46 -0
  67. package/types/comps/parse.d.ts +101 -0
  68. package/types/comps/picker.d.ts +115 -0
  69. package/types/comps/popup.d.ts +103 -0
  70. package/types/comps/radio.d.ts +77 -0
  71. package/types/comps/radioGroup.d.ts +97 -0
  72. package/types/comps/rate.d.ts +85 -0
  73. package/types/comps/readMore.d.ts +80 -0
  74. package/types/comps/row.d.ts +34 -0
  75. package/types/comps/scrollList.d.ts +51 -0
  76. package/types/comps/search.d.ts +167 -0
  77. package/types/comps/skeleton.d.ts +70 -0
  78. package/types/comps/slider.d.ts +79 -0
  79. package/types/comps/steps.d.ts +48 -0
  80. package/types/comps/stepsItem.d.ts +41 -0
  81. package/types/comps/sticky.d.ts +48 -0
  82. package/types/comps/subsection.d.ts +64 -0
  83. package/types/comps/swipeAction.d.ts +24 -0
  84. package/types/comps/swipeActionItem.d.ts +58 -0
  85. package/types/comps/swiper.d.ts +142 -0
  86. package/types/comps/swiperIndicator.d.ts +37 -0
  87. package/types/comps/switch.d.ts +73 -0
  88. package/types/comps/tabbar.d.ts +54 -0
  89. package/types/comps/tabbarItem.d.ts +52 -0
  90. package/types/comps/tabs.d.ts +85 -0
  91. package/types/comps/tag.d.ts +93 -0
  92. package/types/comps/text.d.ts +110 -0
  93. package/types/comps/textarea.d.ts +158 -0
  94. package/types/comps/toast.d.ts +59 -0
  95. package/types/comps/tooltip.d.ts +71 -0
  96. package/types/comps/transition.d.ts +61 -0
  97. package/types/comps/upload.d.ts +163 -0
  98. package/types/comps.d.ts +99 -0
  99. package/types/index.d.ts +48 -0
  100. package/types/package.json +26 -0
@@ -0,0 +1,62 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+ import { ImageMode } from './image'
3
+
4
+ declare interface AvatarGroupProps {
5
+ /**
6
+ * 头像图片组
7
+ * @default []
8
+ */
9
+ urls?: string[]
10
+ /**
11
+ * 最多展示的头像数量
12
+ * @default 5
13
+ */
14
+ maxCount?: string | number
15
+ /**
16
+ * 头像形状
17
+ * @default "circle"
18
+ */
19
+ shape?: 'circle' | 'square'
20
+ /**
21
+ * 裁剪模式
22
+ * @default "aspectFill"
23
+ */
24
+ mode?: ImageMode
25
+ /**
26
+ * 超出maxCount时是否显示查看更多的提示
27
+ * @default true
28
+ */
29
+ showMore?: boolean
30
+ /**
31
+ * 头像大小
32
+ * @default 40
33
+ */
34
+ size?: string | number
35
+ /**
36
+ * 指定从数组的对象元素中读取哪个属性作为图片地址
37
+ */
38
+ keyName?: string
39
+ /**
40
+ * 头像之间的遮挡比例(0.4代表遮挡40%)
41
+ * @default 0.5
42
+ */
43
+ gap?: string | number
44
+ /**
45
+ * 需额外显示的值,如设置则优先于内部的`urls.length - maxCount`值
46
+ */
47
+ extraValue?: string | number
48
+ /**
49
+ * 头像组更多点击
50
+ */
51
+ onShowMore?: () => any
52
+ }
53
+
54
+ declare interface _AvatarGroup {
55
+ new (): {
56
+ $props: AllowedComponentProps &
57
+ VNodeProps &
58
+ AvatarGroupProps
59
+ }
60
+ }
61
+
62
+ export declare const AvatarGroup: _AvatarGroup
@@ -0,0 +1,74 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface BackTopProps {
4
+ /**
5
+ * 按钮形状
6
+ * @default "circle"
7
+ */
8
+ mode?: 'circle' | 'square'
9
+ /**
10
+ * uView内置图标名称,或图片路径
11
+ * @default "arrow-upward"
12
+ */
13
+ icon?: string
14
+ /**
15
+ * 返回顶部按钮的提示文字
16
+ */
17
+ text?: string
18
+ /**
19
+ * 返回顶部过程中的过渡时间,单位ms
20
+ * @default 100
21
+ */
22
+ duration?: string | number
23
+ /**
24
+ * 页面的滚动距离,通过`onPageScroll`生命周期获取
25
+ * @default 0
26
+ */
27
+ scrollTop?: string | number
28
+ /**
29
+ * 滚动条滑动多少距离时显示,单位rpx
30
+ * @default 400
31
+ */
32
+ top?: string | number
33
+ /**
34
+ * 返回按钮位置到屏幕底部的距离,单位rpx
35
+ * @default 100
36
+ */
37
+ bottom?: string | number
38
+ /**
39
+ * 返回按钮位置到屏幕右边的距离,单位rpx
40
+ * @default 20
41
+ */
42
+ right?: string | number
43
+ /**
44
+ * 返回顶部按钮的层级
45
+ * @default 9
46
+ */
47
+ zIndex?: string | number
48
+ /**
49
+ * 图标的样式
50
+ */
51
+ iconStyle?: unknown
52
+ /**
53
+ * 按钮外层的自定义样式
54
+ */
55
+ customStyle?: unknown
56
+ }
57
+
58
+ declare interface BackTopSlots {
59
+ /**
60
+ * 自定义返回按钮的所有内容
61
+ */
62
+ ['default']?: () => any
63
+ }
64
+
65
+ declare interface _BackTop {
66
+ new (): {
67
+ $props: AllowedComponentProps &
68
+ VNodeProps &
69
+ BackTopProps
70
+ $slots: BackTopSlots
71
+ }
72
+ }
73
+
74
+ export declare const BackTop: _BackTop
@@ -0,0 +1,76 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface BadgeProps {
4
+ /**
5
+ * 不展示数字,只有一个小点
6
+ * @default false
7
+ */
8
+ isDot?: boolean
9
+ /**
10
+ * 展示的数字,大于`overflowCount`时显示为`${overflowCount}+`,为`0`且`show-zero`为`false`时隐藏
11
+ */
12
+ value?: string | number
13
+ /**
14
+ * 组件是否显示
15
+ * @default true
16
+ */
17
+ show?: boolean
18
+ /**
19
+ * 最大值,超过最大值会显示 '{max}+'
20
+ * @default 99
21
+ */
22
+ max?: string | number
23
+ /**
24
+ * 主题类型
25
+ * @default "error"
26
+ */
27
+ type?: 'error' | 'warning' | 'success' | 'primary' | 'info'
28
+ /**
29
+ * 当数值为 0 时,是否展示 Badge
30
+ * @default false
31
+ */
32
+ showZero?: boolean
33
+ /**
34
+ * 背景颜色,优先级比`type`高,如设置,`type`参数会失效
35
+ */
36
+ bgColor?: string
37
+ /**
38
+ * 字体颜色
39
+ * @default "#fff"
40
+ */
41
+ color?: string
42
+ /**
43
+ * 徽标形状,circle-四角均为圆角,horn-左下角为直角
44
+ * @default "circle"
45
+ */
46
+ shape?: 'circle' | 'horn'
47
+ /**
48
+ * 置数字的显示方式,详细见[文档](https://www.uviewui.com/components/badge.html#%E8%AE%BE%E7%BD%AE%E6%95%B0%E5%AD%97%E7%9A%84%E6%98%BE%E7%A4%BA%E6%96%B9%E5%BC%8F-overflow-ellipsis-limit)
49
+ * @default "overflow"
50
+ */
51
+ numberType?: 'overflow' | 'ellipsis' | 'limit'
52
+ /**
53
+ * 设置badge的位置偏移,格式为 [x, y],也即设置的为`top`和`right`的值,`absolute`为`true`时有效
54
+ */
55
+ offset?: string[]
56
+ /**
57
+ * 是否反转背景和字体颜色
58
+ * @default false
59
+ */
60
+ inverted?: boolean
61
+ /**
62
+ * 组件是否绝对定位,为`true`时,`offset`参数才有效
63
+ * @default false
64
+ */
65
+ absolute?: boolean
66
+ }
67
+
68
+ declare interface _Badge {
69
+ new (): {
70
+ $props: AllowedComponentProps &
71
+ VNodeProps &
72
+ BadgeProps
73
+ }
74
+ }
75
+
76
+ export declare const Badge: _Badge
@@ -0,0 +1,169 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ButtonProps {
4
+ /**
5
+ * 是否显示按钮的细边框
6
+ * @default true
7
+ */
8
+ hairline?: boolean
9
+ /**
10
+ * 按钮的样式类型
11
+ * @default "info"
12
+ */
13
+ type?: 'info' | 'primary' | 'error' | 'warning' | 'success'
14
+ /**
15
+ * 按钮的大小
16
+ * @default "normal"
17
+ */
18
+ size?: 'normal' | 'large' | 'mini'
19
+ /**
20
+ * 按钮外观形状
21
+ * @default "square"
22
+ */
23
+ shape?: 'square' | 'circle'
24
+ /**
25
+ * 按钮是否镂空
26
+ * @default false
27
+ */
28
+ plain?: boolean
29
+ /**
30
+ * 是否禁用
31
+ * @default false
32
+ */
33
+ disabled?: boolean
34
+ /**
35
+ * 按钮名称前是否带 loading 图标
36
+ * @default false
37
+ */
38
+ loading?: boolean
39
+ /**
40
+ * 加载中提示文字
41
+ */
42
+ loadingText?: string
43
+ /**
44
+ * 加载状态图标类型
45
+ * @default "spinner"
46
+ */
47
+ loadingMode?: string
48
+ /**
49
+ * 加载图标大小
50
+ * @default 15
51
+ */
52
+ loadingSize?: string | number
53
+ /**
54
+ * 开放能力,具体请看 [button](https://uniapp.dcloud.net.cn/component/button.html#open-type-%E6%9C%89%E6%95%88%E5%80%BC)
55
+ */
56
+ openType?: string
57
+ /**
58
+ * 用于 <form> 组件
59
+ */
60
+ formType?: 'submit' | 'reset'
61
+ /**
62
+ * 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 (注:只微信小程序、QQ小程序有效)
63
+ */
64
+ appParameter?: string
65
+ /**
66
+ * 指定是否阻止本节点的祖先节点出现点击态,微信小程序有效
67
+ * @default true
68
+ */
69
+ hoverStopPropagation?: boolean
70
+ /**
71
+ * 指定返回用户信息的语言
72
+ * @default "en"
73
+ */
74
+ lang?: 'en' | 'zh_CN' | 'zh_TW'
75
+ /**
76
+ * 会话来源,openType="contact"时有效
77
+ */
78
+ sessionFrom?: string
79
+ /**
80
+ * 会话内消息卡片标题,openType="contact"时有效
81
+ */
82
+ sendMessageTitle?: string
83
+ /**
84
+ * 会话内消息卡片点击跳转小程序路径,openType="contact"时有效
85
+ */
86
+ sendMessagePath?: string
87
+ /**
88
+ * 会话内消息卡片图片,openType="contact"时有效
89
+ */
90
+ sendMessageImg?: string
91
+ /**
92
+ * 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示"可能要发送的小程序"提示,用户点击后可以快速发送小程序消息,openType="contact"时有效
93
+ */
94
+ showMessageCard?: string
95
+ /**
96
+ * 额外传参参数,用于小程序的data-xxx属性,通过target.dataset.name获取
97
+ */
98
+ dataName?: string
99
+ /**
100
+ * 节流,一定时间内只能触发一次,单位毫秒
101
+ * @default 0
102
+ */
103
+ throttleTime?: string | number
104
+ /**
105
+ * 按住后多久出现点击态,单位毫秒
106
+ * @default 0
107
+ */
108
+ hoverStartTime?: string | number
109
+ /**
110
+ * 手指松开后点击态保留时间,单位毫秒
111
+ * @default 200
112
+ */
113
+ hoverStayTime?: string | number
114
+ /**
115
+ * 按钮文字,之所以通过props传入,是因为slot传入的话(注:nvue中无法控制文字的样式)
116
+ */
117
+ text?: string | number
118
+ /**
119
+ * 按钮图标
120
+ */
121
+ icon?: string
122
+ /**
123
+ * 按钮颜色
124
+ */
125
+ iconColor?: string
126
+ /**
127
+ * 按钮颜色,支持传入linear-gradient渐变色
128
+ */
129
+ color?: string
130
+ /**
131
+ * 定义需要用到的外部样式
132
+ */
133
+ customStyle?: unknown
134
+ /**
135
+ * 按钮点击,请勿使用@tap点击事件,微信小程序无效,返回值为点击事件及参数
136
+ */
137
+ onClick?: (...args: any) => any
138
+ /**
139
+ * open-type="getPhoneNumber"时有效
140
+ */
141
+ onGetphonenumber?: (...args: any) => any
142
+ /**
143
+ * 获取用户信息回调,openType="getUserInfo"时有效
144
+ * @param detail 用户信息
145
+ */
146
+ onGetuserinfo?: (detail: any) => any
147
+ /**
148
+ * 当使用开放能力时,发生错误的回调
149
+ */
150
+ onError?: (...args: any) => any
151
+ /**
152
+ * 在打开授权设置页并关闭后回调
153
+ */
154
+ onOpensetting?: (...args: any) => any
155
+ /**
156
+ * 打开 APP 成功的回调
157
+ */
158
+ onLaunchapp?: (...args: any) => any
159
+ }
160
+
161
+ declare interface _Button {
162
+ new (): {
163
+ $props: AllowedComponentProps &
164
+ VNodeProps &
165
+ ButtonProps
166
+ }
167
+ }
168
+
169
+ export declare const Button: _Button
@@ -0,0 +1,164 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface CalendarProps {
4
+ /**
5
+ * 标题内容
6
+ * @default "日期选择"
7
+ */
8
+ title?: string
9
+ /**
10
+ * 是否显示标题
11
+ * @default true
12
+ */
13
+ showTitle?: boolean
14
+ /**
15
+ * 是否显示副标题
16
+ * @default true
17
+ */
18
+ showSubtitle?: boolean
19
+ /**
20
+ * 日期类型选择
21
+ * @default 'single
22
+ */
23
+ mode?: 'single' | 'multiple' | 'range'
24
+ /**
25
+ * mode=range时,第一个日期底部的提示文字
26
+ * @default "开始"
27
+ */
28
+ startText?: string
29
+ /**
30
+ * mode=range时,最后一个日期底部的提示文字
31
+ * @default "结束"
32
+ */
33
+ endText?: string
34
+ /**
35
+ * 自定义列表
36
+ */
37
+ customList?: any[]
38
+ /**
39
+ * 主题色,对底部按钮和选中日期有效
40
+ * @default "#3c9cff"
41
+ */
42
+ color?: string
43
+ /**
44
+ * 最小的可选日期
45
+ * @default 0
46
+ */
47
+ minDate?: string | number
48
+ /**
49
+ * 最大可选日期
50
+ * @default 0
51
+ */
52
+ maxDate?: string | number
53
+ /**
54
+ * 默认选中的日期,mode为multiple或range是必须为数组格式
55
+ * @default null
56
+ */
57
+ defaultDate?: string | Date | any[]
58
+ /**
59
+ * mode=multiple时,最多可选多少个日期
60
+ * @default Number.MAX_SAFE_INTEGER
61
+ */
62
+ maxCount?: string | number
63
+ /**
64
+ * 日期行高
65
+ * @default 56
66
+ */
67
+ rowHeight?: string | number
68
+ /**
69
+ * 日期格式化函数(如需兼容微信小程序,则只能通过setFormatter方法)
70
+ */
71
+ formatter?: (...args: any) => any
72
+ /**
73
+ * 是否显示农历
74
+ * @default false
75
+ */
76
+ showLunar?: boolean
77
+ /**
78
+ * 是否显示月份背景色
79
+ * @default true
80
+ */
81
+ showMark?: boolean
82
+ /**
83
+ * 确定按钮的文字
84
+ * @default "确定"
85
+ */
86
+ confirmText?: string
87
+ /**
88
+ * 确认按钮处于禁用状态时的文字
89
+ * @default "确定"
90
+ */
91
+ confirmDisabledText?: string
92
+ /**
93
+ * 是否显示日历弹窗
94
+ * @default false
95
+ */
96
+ show?: boolean
97
+ /**
98
+ * 是否允许点击遮罩关闭日历 (注意:关闭事件需要自行处理,只会在开启closeOnClickOverlay后点击遮罩层执行close回调)
99
+ * @default false
100
+ */
101
+ closeOnClickOverlay?: boolean
102
+ /**
103
+ * 是否为只读状态,只读状态下禁止选择日期
104
+ * @default false
105
+ */
106
+ readonly?: boolean
107
+ /**
108
+ * 日期区间最多可选天数,默认无限制,mode = range时有效
109
+ * @default 无限制
110
+ */
111
+ maxRange?: string | number
112
+ /**
113
+ * 范围选择超过最多可选天数时的提示文案,mode = range时有效
114
+ * @default "选择天数不能超过 xx 天"
115
+ */
116
+ rangePrompt?: string | null
117
+ /**
118
+ * 范围选择超过最多可选天数时,是否展示提示文案,mode = range时有效
119
+ * @default true
120
+ */
121
+ showRangePrompt?: boolean
122
+ /**
123
+ * 是否允许日期范围的起止时间为同一天,mode = range时有效
124
+ * @default false
125
+ */
126
+ allowSameDay?: boolean
127
+ /**
128
+ * 圆角值,默认无圆角
129
+ * @default 0
130
+ */
131
+ round?: string | number
132
+ /**
133
+ * 最大展示的月份数量
134
+ * @default 3
135
+ */
136
+ monthNum?: string | number
137
+ /**
138
+ * 日期选择完成后触发,若`show-confirm`为`true`,则点击确认按钮后触发
139
+ */
140
+ onConfirm?: (...args: any) => any
141
+ /**
142
+ * 日历关闭时触发
143
+ */
144
+ onClose?: () => any
145
+ }
146
+
147
+ declare interface _Calendar {
148
+ new (): {
149
+ $props: AllowedComponentProps &
150
+ VNodeProps &
151
+ CalendarProps
152
+ }
153
+ }
154
+
155
+ declare interface _CalendarRef {
156
+ /**
157
+ * 为兼容微信小程序而暴露的内部方法,详见[文档](https://www.uviewui.com/components/calendar.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%96%87%E6%A1%88)
158
+ */
159
+ setFormatter: (type, value) => any
160
+ }
161
+
162
+ export declare const Calendar: _Calendar
163
+
164
+ export declare const CalendarRef: _CalendarRef
@@ -0,0 +1,133 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface CellProps {
4
+ /**
5
+ * 左侧标题
6
+ */
7
+ title?: string | number
8
+ /**
9
+ * 标题下方的描述信息
10
+ */
11
+ label?: string | number
12
+ /**
13
+ * 右侧的内容
14
+ */
15
+ value?: string | number
16
+ /**
17
+ * 左侧图标名称,或者图片链接(本地文件建议使用绝对地址)
18
+ */
19
+ icon?: string
20
+ /**
21
+ * 是否禁用cell
22
+ * @default false
23
+ */
24
+ disabled?: boolean
25
+ /**
26
+ * 是否显示下边框
27
+ * @default true
28
+ */
29
+ border?: boolean
30
+ /**
31
+ * 内容是否垂直居中(主要是针对右侧的value部分)
32
+ * @default false
33
+ */
34
+ center?: boolean
35
+ /**
36
+ * 点击后跳转的URL地址
37
+ */
38
+ url?: string
39
+ /**
40
+ * 链接跳转的方式,内部使用的是uView封装的route方法,可能会进行拦截操作
41
+ * @default "navigateTo"
42
+ */
43
+ linkType?: string
44
+ /**
45
+ * 是否开启点击反馈(表现为点击时加上灰色背景)
46
+ * @default false
47
+ */
48
+ clickable?: boolean
49
+ /**
50
+ * 是否展示右侧箭头并开启点击反馈
51
+ * @default false
52
+ */
53
+ isLink?: boolean
54
+ /**
55
+ * 是否显示表单状态下的必填星号(此组件可能会内嵌入input组件)
56
+ * @default false
57
+ */
58
+ required?: boolean
59
+ /**
60
+ * 右侧的图标箭头
61
+ * @default "arrow-right"
62
+ */
63
+ rightIcon?: string
64
+ /**
65
+ * 右侧箭头的方向
66
+ * @default "right"
67
+ */
68
+ arrowDirection?: 'left' | 'right' | 'up' | 'down'
69
+ /**
70
+ * 左侧图标样式
71
+ */
72
+ iconStyle?: unknown
73
+ /**
74
+ * 右侧箭头图标的样式
75
+ */
76
+ rightIconStyle?: unknown
77
+ /**
78
+ * 标题的样式
79
+ */
80
+ titleStyle?: unknown
81
+ /**
82
+ * 单位元的大小,可选值为large
83
+ */
84
+ size?: string
85
+ /**
86
+ * 点击cell是否阻止事件传播
87
+ * @default true
88
+ */
89
+ stop?: boolean
90
+ /**
91
+ * 标识符,用于在`click`事件中进行返回
92
+ */
93
+ name?: string | number
94
+ /**
95
+ * 点击cell列表时触发
96
+ * @param name `props`的`name`参数标识符
97
+ */
98
+ onClick?: (name: any) => any
99
+ }
100
+
101
+ declare interface CellSlots {
102
+ /**
103
+ * 自定义左侧标题部分的内容,如需使用,请勿定义`title`参数,或赋值`null`即可
104
+ */
105
+ ['title']?: () => any
106
+ /**
107
+ * 自定义右侧标题部分的内容,如需使用,请勿定义`value`参数,或赋值`null`即可
108
+ */
109
+ ['value']?: () => any
110
+ /**
111
+ * 自定义左侧的图标
112
+ */
113
+ ['icon']?: () => any
114
+ /**
115
+ * 自定义右侧图标内容,需设置`arrow`为`false`才起作用
116
+ */
117
+ ['right-icon']?: () => any
118
+ /**
119
+ * 自定义label内容
120
+ */
121
+ ['label']?: () => any
122
+ }
123
+
124
+ declare interface _Cell {
125
+ new (): {
126
+ $props: AllowedComponentProps &
127
+ VNodeProps &
128
+ CellProps
129
+ $slots: CellSlots
130
+ }
131
+ }
132
+
133
+ export declare const Cell: _Cell
@@ -0,0 +1,27 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface CellGroupProps {
4
+ /**
5
+ * 分组标题
6
+ */
7
+ title?: string
8
+ /**
9
+ * 是否显示外边框
10
+ * @default true
11
+ */
12
+ border?: boolean
13
+ /**
14
+ * 用户自定义外部样式,对象形式
15
+ */
16
+ customStyle?: unknown
17
+ }
18
+
19
+ declare interface _CellGroup {
20
+ new (): {
21
+ $props: AllowedComponentProps &
22
+ VNodeProps &
23
+ CellGroupProps
24
+ }
25
+ }
26
+
27
+ export declare const CellGroup: _CellGroup