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,115 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ModalProps {
4
+ /**
5
+ * 是否显示模态框,请赋值给`show`
6
+ * @default false
7
+ */
8
+ show?: boolean
9
+ /**
10
+ * 标题内容
11
+ */
12
+ title?: string
13
+ /**
14
+ * 模态框内容,如传入`slot`内容,则此参数无效
15
+ */
16
+ content?: string
17
+ /**
18
+ * 确认按钮的文字
19
+ * @default "确认"
20
+ */
21
+ confirmText?: string
22
+ /**
23
+ * 取消按钮的文字
24
+ * @default "取消"
25
+ */
26
+ cancelText?: string
27
+ /**
28
+ * 是否显示确认按钮
29
+ * @default true
30
+ */
31
+ showConfirmButton?: boolean
32
+ /**
33
+ * 是否显示取消按钮
34
+ * @default false
35
+ */
36
+ showCancelButton?: boolean
37
+ /**
38
+ * 确认按钮的颜色
39
+ * @default "#2979ff"
40
+ */
41
+ confirmColor?: string
42
+ /**
43
+ * 取消按钮的颜色
44
+ * @default "#606266"
45
+ */
46
+ cancelColor?: string
47
+ /**
48
+ * 对调确认和取消的位置
49
+ * @default false
50
+ */
51
+ buttonReverse?: boolean
52
+ /**
53
+ * 是否开启缩放模式
54
+ * @default true
55
+ */
56
+ zoom?: boolean
57
+ /**
58
+ * 是否异步关闭,只对确定按钮有效
59
+ * @default false
60
+ */
61
+ asyncClose?: boolean
62
+ /**
63
+ * 是否允许点击遮罩关闭Modal(注意:关闭事件需要自行处理,只会在开启closeOnClickOverlay后点击遮罩层执行close回调)
64
+ * @default false
65
+ */
66
+ closeOnClickOverlay?: boolean
67
+ /**
68
+ * 往上偏移的值,给一个负的margin-top,往上偏移,避免和键盘重合的情况,单位任意,数值则默认为rpx单位
69
+ * @default 0
70
+ */
71
+ negativeTop?: string | number
72
+ /**
73
+ * modal宽度,不支持百分比,可以数值,px,rpx单位
74
+ * @default "650rpx"
75
+ */
76
+ width?: string | number
77
+ /**
78
+ * 确认按钮的样式,如设置,将不会显示取消按钮
79
+ */
80
+ confirmButtonShape?: 'circle' | 'square'
81
+ /**
82
+ * 点击确认按钮时触发
83
+ */
84
+ onConfirm?: () => any
85
+ /**
86
+ * 点击取消按钮时触发
87
+ */
88
+ onCancel?: () => any
89
+ /**
90
+ * 点击遮罩关闭出发,closeOnClickOverlay为true有效
91
+ */
92
+ onClose?: () => any
93
+ }
94
+
95
+ declare interface ModalSlots {
96
+ /**
97
+ * 传入自定义内容,一般为富文本
98
+ */
99
+ ['default']?: () => any
100
+ /**
101
+ * 传入自定义按钮,用于在微信小程序弹窗通过按钮授权的场景
102
+ */
103
+ ['confirm-button']?: () => any
104
+ }
105
+
106
+ declare interface _Modal {
107
+ new (): {
108
+ $props: AllowedComponentProps &
109
+ VNodeProps &
110
+ ModalProps
111
+ $slots: ModalSlots
112
+ }
113
+ }
114
+
115
+ export declare const Modal: _Modal
@@ -0,0 +1,113 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface NavbarProps {
4
+ /**
5
+ * 是否开启顶部安全区适配
6
+ * @default true
7
+ */
8
+ safeAreaInsetTop?: boolean
9
+ /**
10
+ * 固定在顶部时,是否生成一个等高元素,以防止塌陷
11
+ * @default false
12
+ */
13
+ placeholder?: boolean
14
+ /**
15
+ * 导航栏是否固定在顶部
16
+ * @default true
17
+ */
18
+ fixed?: boolean
19
+ /**
20
+ * 导航栏底部是否显示下边框
21
+ * @default false
22
+ */
23
+ border?: boolean
24
+ /**
25
+ * 左边返回图标的名称,只能为uView自带的图标
26
+ * @default "arrow-left"
27
+ */
28
+ leftIcon?: string
29
+ /**
30
+ * 左边的提示文字
31
+ */
32
+ leftText?: string
33
+ /**
34
+ * 右边的提示文字
35
+ */
36
+ rightText?: string
37
+ /**
38
+ * 右边返回图标的名称,只能为uView自带的图标
39
+ */
40
+ rightIcon?: string
41
+ /**
42
+ * 导航栏标题,如设置为空字符,将会隐藏标题占位区域
43
+ */
44
+ title?: string
45
+ /**
46
+ * 导航栏背景设置
47
+ * @default"#fff
48
+ */
49
+ bgColor?: string
50
+ /**
51
+ * 导航栏标题的最大宽度,内容超出会以省略号隐藏,单位rpx
52
+ * @default "400rpx"
53
+ */
54
+ titleWidth?: string | number
55
+ /**
56
+ * 导航栏高度(不包括状态栏高度在内,内部自动加上),单位px
57
+ * @default "44px"
58
+ */
59
+ height?: string | number
60
+ /**
61
+ * 左侧返回图标的大小
62
+ * @default "20px"
63
+ */
64
+ leftIconSize?: string | number
65
+ /**
66
+ * 左侧返回图标的颜色
67
+ * @default "#303133"
68
+ */
69
+ leftIconColor?: string
70
+ /**
71
+ * 点击左侧区域(返回图标),是否自动返回上一页
72
+ * @default false
73
+ */
74
+ autoBack?: boolean
75
+ /**
76
+ * 标题的样式
77
+ */
78
+ titleStyle?: unknown
79
+ /**
80
+ * 点击左侧区域
81
+ */
82
+ onLeftClick?: () => any
83
+ /**
84
+ * 点击右侧区域
85
+ */
86
+ onRightClick?: () => any
87
+ }
88
+
89
+ declare interface NavbarSlots {
90
+ /**
91
+ * 自定义左侧部分内容
92
+ */
93
+ ['left']?: () => any
94
+ /**
95
+ * 自定义右侧部分内容
96
+ */
97
+ ['right']?: () => any
98
+ /**
99
+ * 自定义中部内容
100
+ */
101
+ ['center']?: () => any
102
+ }
103
+
104
+ declare interface _Navbar {
105
+ new (): {
106
+ $props: AllowedComponentProps &
107
+ VNodeProps &
108
+ NavbarProps
109
+ $slots: NavbarSlots
110
+ }
111
+ }
112
+
113
+ export declare const Navbar: _Navbar
@@ -0,0 +1,40 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface NoNetworkProps {
4
+ /**
5
+ * 没有网络时的提示语
6
+ * @default "哎呀,网络信号丢失"
7
+ */
8
+ tips?: string
9
+ /**
10
+ * 组件的`z-index`值
11
+ * @default 10080
12
+ */
13
+ zIndex?: string | number
14
+ /**
15
+ * 无网络的图片提示,可用的src地址或base64图片
16
+ */
17
+ image?: string
18
+ /**
19
+ * 用户点击页面的"重试"按钮时触发
20
+ */
21
+ onRetry?: () => any
22
+ /**
23
+ * "重试"后,有网络触发
24
+ */
25
+ onConnected?: () => any
26
+ /**
27
+ * "重试"后,无网络触发
28
+ */
29
+ onDisconnected?: () => any
30
+ }
31
+
32
+ declare interface _NoNetwork {
33
+ new (): {
34
+ $props: AllowedComponentProps &
35
+ VNodeProps &
36
+ NoNetworkProps
37
+ }
38
+ }
39
+
40
+ export declare const NoNetwork: _NoNetwork
@@ -0,0 +1,85 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface NoticeBarProps {
4
+ /**
5
+ * 显示的内容,direction为column时要求为数组, 为row时要求为字符串
6
+ */
7
+ text?: string | string[]
8
+ /**
9
+ * 通告滚动模式,row-横向滚动,column-竖向滚动
10
+ * @default "row"
11
+ */
12
+ direction?: 'row' | 'column'
13
+ /**
14
+ * direction = row时,是否使用步进形式滚动
15
+ * @default false
16
+ */
17
+ step?: boolean
18
+ /**
19
+ * 是否显示左侧的音量图标
20
+ * @default "volume"
21
+ */
22
+ icon?: string
23
+ /**
24
+ * 通告模式,link-显示右箭头,closable-显示右侧关闭图标
25
+ */
26
+ mode?: 'link' | 'closable'
27
+ /**
28
+ * 文字颜色
29
+ * @default "#f9ae3d"
30
+ */
31
+ color?: string
32
+ /**
33
+ * 背景颜色
34
+ * @default "#fdf6ec"
35
+ */
36
+ bgColor?: string
37
+ /**
38
+ * 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
39
+ * @default 80
40
+ */
41
+ speed?: string | number
42
+ /**
43
+ * 字体大小
44
+ * @default 14
45
+ */
46
+ fontSize?: string | number
47
+ /**
48
+ * 滚动一个周期的时间长,单位ms
49
+ * @default 2000
50
+ */
51
+ duration?: string | number
52
+ /**
53
+ * 是否禁止用手滑动切换(目前HX2.6.11,只支持App 2.5.5+、H5 2.5.5+、支付宝小程序、字节跳动小程序)
54
+ * @default true
55
+ */
56
+ disableTouch?: boolean
57
+ /**
58
+ * 跳转的页面路径
59
+ */
60
+ url?: string
61
+ /**
62
+ * 页面跳转的类型
63
+ * @default "navigateTo"
64
+ */
65
+ linkType?: string
66
+ /**
67
+ * 点击通告文字触发
68
+ * @param index 点击的text的索引
69
+ */
70
+ onClick?: (index: number) => any
71
+ /**
72
+ * 点击右侧关闭图标触发
73
+ */
74
+ onClose?: () => any
75
+ }
76
+
77
+ declare interface _NoticeBar {
78
+ new (): {
79
+ $props: AllowedComponentProps &
80
+ VNodeProps &
81
+ NoticeBarProps
82
+ }
83
+ }
84
+
85
+ export declare const NoticeBar: _NoticeBar
@@ -0,0 +1,73 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface NotifyProps {
4
+ /**
5
+ * 到顶部的距离
6
+ * @default 0
7
+ */
8
+ top?: string | number
9
+ /**
10
+ * 主题
11
+ * @default "primary"
12
+ */
13
+ type?: 'primary' | 'success' | 'warning' | 'error'
14
+ /**
15
+ * 字体颜色
16
+ * @default "#fff"
17
+ */
18
+ color?: string
19
+ /**
20
+ * 背景颜色
21
+ */
22
+ bgColor?: string
23
+ /**
24
+ * 展示的文字内容
25
+ */
26
+ message?: string
27
+ /**
28
+ * 展示时长,为0时不消失,单位ms
29
+ * @default 3000
30
+ */
31
+ duration?: string | number
32
+ /**
33
+ * 字体大小,单位rpx
34
+ * @default 15
35
+ */
36
+ fontSize?: string | number
37
+ /**
38
+ * 是否留出顶部安全距离(状态栏高度)
39
+ * @default false
40
+ */
41
+ safeAreaInsetTop?: boolean
42
+ }
43
+
44
+ declare interface NotifySlots {
45
+ /**
46
+ * 通知内容
47
+ */
48
+ ['icon']?: () => any
49
+ }
50
+
51
+ declare interface _NotifyRef {
52
+ /**
53
+ * 显示并加载配置
54
+ */
55
+ show: (options: NotifyProps) => void
56
+ /**
57
+ * 关闭消息提示
58
+ */
59
+ close: () => void
60
+ }
61
+
62
+ declare interface _Notify {
63
+ new (): {
64
+ $props: AllowedComponentProps &
65
+ VNodeProps &
66
+ NotifyProps
67
+ $slots: NotifySlots
68
+ }
69
+ }
70
+
71
+ export declare const Notify: _Notify
72
+
73
+ export declare const NotifyRef: _NotifyRef
@@ -0,0 +1,155 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface NumberBoxProps {
4
+ /**
5
+ * 步进器标识符,在change回调返回
6
+ */
7
+ name?: string | number
8
+ /**
9
+ * 用于双向绑定的值,初始化时设置设为默认min值(最小值)
10
+ * @default 1
11
+ */
12
+ value?: string | number
13
+ /**
14
+ * 用户可输入的最小值
15
+ * @default 1
16
+ */
17
+ min?: string | number
18
+ /**
19
+ * 用户可输入的最大值
20
+ * @default Number.MAX_SAFE_INTEGER
21
+ */
22
+ max?: string | number
23
+ /**
24
+ * 步长,每次加或减的值, 支持小数值,如需小数
25
+ * @default 1
26
+ */
27
+ step?: string | number
28
+ /**
29
+ * 是否只能输入正整数
30
+ * @default false
31
+ */
32
+ integer?: boolean
33
+ /**
34
+ * 是否禁用操作,包括输入框,加减按钮
35
+ * @default false
36
+ */
37
+ disabled?: boolean
38
+ /**
39
+ * 是否禁止输入框
40
+ * @default false
41
+ */
42
+ disabledInput?: boolean
43
+ /**
44
+ * 是否开启异步变更,开启后需要手动控制输入值
45
+ * @default false
46
+ */
47
+ asyncChange?: boolean
48
+ /**
49
+ * 输入框宽度,单位px
50
+ * @default 35
51
+ */
52
+ inputWidth?: string | number
53
+ /**
54
+ * 是否显示减少按钮
55
+ * @default true
56
+ */
57
+ showMinus?: boolean
58
+ /**
59
+ * 是否显示增加按钮
60
+ * @default true
61
+ */
62
+ showPlus?: boolean
63
+ /**
64
+ * 显示的小数位数
65
+ */
66
+ decimalLength?: string | number
67
+ /**
68
+ * 是否允许长按进行加减
69
+ * @default true
70
+ */
71
+ longPress?: boolean
72
+ /**
73
+ * 输入框文字和加减按钮图标的颜色
74
+ * @default "#323233"
75
+ */
76
+ color?: string
77
+ /**
78
+ * 按钮大小,宽高等于此值,单位px,输入框高度和此值保持一致
79
+ * @default 30
80
+ */
81
+ buttonSize?: string | number
82
+ /**
83
+ * 输入框和按钮的背景颜色
84
+ * @default "#EBECEE"
85
+ */
86
+ bgColor?: string
87
+ /**
88
+ * 指定光标于键盘的距离,避免键盘遮挡输入框,单位px
89
+ * @default 100
90
+ */
91
+ cursorSpacing?: string | number
92
+ /**
93
+ * 是否禁用增加按钮
94
+ * @default false
95
+ */
96
+ disablePlus?: boolean
97
+ /**
98
+ * 是否禁用减少按钮
99
+ * @default false
100
+ */
101
+ disableMinus?: boolean
102
+ /**
103
+ * 加减按钮图标的样式
104
+ */
105
+ iconStyle?: string
106
+ /**
107
+ * 输入框得到焦点触发(按钮可点击情况下)
108
+ * @param value 输入框当前值
109
+ * @param value 步进器标识符
110
+ */
111
+ onFocus?: (value: any, name: any) => any
112
+ /**
113
+ * 输入框失去焦点时触发
114
+ * @param value 输入框当前值
115
+ * @param value 步进器标识符
116
+ */
117
+ onBlur?: (value: any, name: any) => any
118
+ /**
119
+ * 输入框内容发生变化时触发
120
+ * @param value 输入框当前值
121
+ * @param value 步进器标识符
122
+ */
123
+ onChange?: (value: any, name: any) => any
124
+ /**
125
+ * 超过范围阈值时触发
126
+ * @type type 限制类型
127
+ */
128
+ onOverlimit?: (type: 'minus' | 'plus') => any
129
+ }
130
+
131
+ declare interface NumberBoxSlots {
132
+ /**
133
+ * 减少按钮
134
+ */
135
+ ['minus']?: () => any
136
+ /**
137
+ * 输入框
138
+ */
139
+ ['input']?: () => any
140
+ /**
141
+ * 增加按钮
142
+ */
143
+ ['plus']?: () => any
144
+ }
145
+
146
+ declare interface _NumberBox {
147
+ new (): {
148
+ $props: AllowedComponentProps &
149
+ VNodeProps &
150
+ NumberBoxProps
151
+ $slots: NumberBoxSlots
152
+ }
153
+ }
154
+
155
+ export declare const NumberBox: _NumberBox
@@ -0,0 +1,46 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface OverlayProps {
4
+ /**
5
+ * 是否显示遮罩
6
+ * @default false
7
+ */
8
+ show?: boolean
9
+ /**
10
+ * z-index 层级
11
+ * @default 10070
12
+ */
13
+ zIndex?: string | number
14
+ /**
15
+ * 动画时长,单位毫秒
16
+ * @default 300
17
+ */
18
+ duration?: string | number
19
+ /**
20
+ * 不透明度值,当做rgba的第四个参数
21
+ * @default 0.5
22
+ */
23
+ opacity?: string | number
24
+ /**
25
+ * 点击遮罩发送此事件
26
+ */
27
+ onClick?: () => any
28
+ }
29
+
30
+ declare interface OverlaySlots {
31
+ /**
32
+ * 默认插槽,用于在遮罩层上方嵌入内容
33
+ */
34
+ ['default']?: () => any
35
+ }
36
+
37
+ declare interface _Overlay {
38
+ new (): {
39
+ $props: AllowedComponentProps &
40
+ VNodeProps &
41
+ OverlayProps
42
+ $slots: OverlaySlots
43
+ }
44
+ }
45
+
46
+ export declare const Overlay: _Overlay