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,72 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface AlbumProps {
4
+ /**
5
+ * 图片地址列表
6
+ */
7
+ urls?: string[] | Record<string, any>[]
8
+ /**
9
+ * 指定从数组的对象元素中读取哪个属性作为图片地址
10
+ */
11
+ keyName?: string
12
+ /**
13
+ * 单图时,图片长边的长度
14
+ * @default 180
15
+ */
16
+ singleSize?: string | number
17
+ /**
18
+ * 多图时,图片边长
19
+ * @default 70
20
+ */
21
+ multipleSize?: string | number
22
+ /**
23
+ * 多图时,图片水平和垂直之间的间隔
24
+ * @default 6
25
+ */
26
+ space?: string | number
27
+ /**
28
+ * 单图时,图片缩放裁剪的模式
29
+ * @default "scaleToFill"
30
+ */
31
+ singleMode?: ImageMode
32
+ /**
33
+ * 多图时,图片缩放裁剪的模式
34
+ * @default "aspectFill"
35
+ */
36
+ multipleMode?: ImageMode
37
+ /**
38
+ * 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
39
+ * @default 9
40
+ */
41
+ maxCount?: string | number
42
+ /**
43
+ * 是否可以预览图片
44
+ * @default true
45
+ */
46
+ previewFullImage?: boolean
47
+ /**
48
+ * 每行展示图片数量,如设置,singleSize和multipleSize将会无效
49
+ * @default 3
50
+ */
51
+ rowCount?: string | number
52
+ /**
53
+ * 超出maxCount时是否显示查看更多的提示
54
+ * @default true
55
+ */
56
+ showMore?: boolean
57
+ /**
58
+ * 某些特殊的情况下,需要让文字与相册的宽度相等,这里事件的形式对外发送
59
+ * @param width 宽度
60
+ */
61
+ onAlbumWidth?: (width: any) => any
62
+ }
63
+
64
+ declare interface _Album {
65
+ new (): {
66
+ $props: AllowedComponentProps &
67
+ VNodeProps &
68
+ AlbumProps
69
+ }
70
+ }
71
+
72
+ export declare const Album: _Album
@@ -0,0 +1,55 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface AlertProps {
4
+ /**
5
+ * 显示的文字
6
+ */
7
+ title?: string
8
+ /**
9
+ * 使用预设的颜色
10
+ * @default "warning"
11
+ */
12
+ type?: 'warning' | 'success' | 'primary' | 'error' | 'info'
13
+ /**
14
+ * 辅助性文字,颜色比`title`浅一点,字号也小一点,可选
15
+ */
16
+ description?: string
17
+ /**
18
+ * 关闭按钮(默认为叉号icon图标)
19
+ * @default false
20
+ */
21
+ closable?: boolean
22
+ /**
23
+ * 是否显示左边的辅助图标
24
+ * @default false
25
+ */
26
+ showIcon?: boolean
27
+ /**
28
+ * 多图时,图片缩放裁剪的模式
29
+ */
30
+ effect?: 'light' | 'dark'
31
+ /**
32
+ * 文字是否居中
33
+ * @default false
34
+ */
35
+ center?: boolean
36
+ /**
37
+ * 字体大小
38
+ * @default 14
39
+ */
40
+ fontSize?: string | number
41
+ /**
42
+ * 点击组件时触发
43
+ */
44
+ onClick?: () => any
45
+ }
46
+
47
+ declare interface _Alert {
48
+ new (): {
49
+ $props: AllowedComponentProps &
50
+ VNodeProps &
51
+ AlertProps
52
+ }
53
+ }
54
+
55
+ export declare const Alert: _Alert
@@ -0,0 +1,85 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+ import { ImageMode } from './image'
3
+
4
+ declare interface AvatarProps {
5
+ /**
6
+ * 头像路径,如加载失败,将会显示默认头像(不能为相对路径)
7
+ */
8
+ src?: string
9
+ /**
10
+ * 头像形状
11
+ * @default "circle"
12
+ */
13
+ shape?: 'circle' | 'square'
14
+ /**
15
+ * 头像尺寸
16
+ * @default 40
17
+ */
18
+ size?: 'large' | 'default' | 'mini' | number
19
+ /**
20
+ * 裁剪类型
21
+ * @default "scaleToFill"
22
+ */
23
+ mode?: ImageMode
24
+ /**
25
+ * 用文字替代图片,级别优先于`src`
26
+ */
27
+ text?: string
28
+ /**
29
+ * 背景颜色
30
+ * @default "#c0c4cc"
31
+ */
32
+ bgColor?: string
33
+ /**
34
+ * 文字颜色
35
+ * @default "#fff"
36
+ */
37
+ color?: string
38
+ /**
39
+ * 文字大小
40
+ * @default 18
41
+ */
42
+ fontSize?: string | number
43
+ /**
44
+ * 显示的图标
45
+ */
46
+ icon?: string
47
+ /**
48
+ * 显示小程序头像,只对百度,微信,QQ小程序有效
49
+ * @default false
50
+ */
51
+ mpAvatar?: boolean
52
+ /**
53
+ * 是否使用随机背景色
54
+ * @default false
55
+ */
56
+ randomBgColor?: boolean
57
+ /**
58
+ * 加载失败的默认头像(组件有内置默认图片)
59
+ */
60
+ defaultUrl?: string
61
+ /**
62
+ * 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
63
+ */
64
+ colorIndex?: string | number
65
+ /**
66
+ * 组件标识符
67
+ * @default "level"
68
+ */
69
+ name?: string
70
+ /**
71
+ * 头像被点击
72
+ * @param index 用户传递的标识符
73
+ */
74
+ onClick?: (index: any) => any
75
+ }
76
+
77
+ declare interface _Avatar {
78
+ new (): {
79
+ $props: AllowedComponentProps &
80
+ VNodeProps &
81
+ AvatarProps
82
+ }
83
+ }
84
+
85
+ export declare const Avatar: _Avatar
@@ -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