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,125 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface KeyboardProps {
4
+ /**
5
+ * 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
6
+ * @default "car"
7
+ */
8
+ mode?: 'car' | 'number' | 'card'
9
+ /**
10
+ * 是否显示"."按键,只在mode=number时有效
11
+ * @default false
12
+ */
13
+ dotDisabled?: boolean
14
+ /**
15
+ * 是否显示键盘顶部工具条
16
+ * @default true
17
+ */
18
+ tooltip?: boolean
19
+ /**
20
+ * 是否显示工具条中间的提示
21
+ * @default true
22
+ */
23
+ showTips?: boolean
24
+ /**
25
+ * 工具条中间的提示文字,详见[文档](https://www.uviewui.com/components/keyboard.html#%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8)
26
+ */
27
+ tips?: string
28
+ /**
29
+ * 是否显示工具条左边的"取消"按钮
30
+ * @default true
31
+ */
32
+ showCancel?: boolean
33
+ /**
34
+ * 是否显示工具条右边的"完成"按钮
35
+ * @default true
36
+ */
37
+ showConfirm?: boolean
38
+ /**
39
+ * 是否打乱键盘按键的顺序
40
+ * @default false
41
+ */
42
+ random?: boolean
43
+ /**
44
+ * 是否开启底部安全区适配
45
+ * @default false
46
+ */
47
+ safeAreaInsetBottom?: boolean
48
+ /**
49
+ * 是否允许点击遮罩收起键盘(注意:关闭事件需要自行处理,只会在开启closeOnClickOverlay后点击遮罩层执行close回调)
50
+ * @default true
51
+ */
52
+ closeOnClickOverlay?: boolean
53
+ /**
54
+ * 控制键盘的弹出与收起
55
+ * @default true
56
+ */
57
+ show?: boolean
58
+ /**
59
+ * 是否显示遮罩
60
+ * @default true
61
+ */
62
+ overlay?: boolean
63
+ /**
64
+ * 弹出键盘的`z-index`值
65
+ * @default 1075
66
+ */
67
+ zIndex?: string | number
68
+ /**
69
+ * 确认按钮的文字
70
+ * @default "确认"
71
+ */
72
+ confirmText?: string
73
+ /**
74
+ * 取消按钮的文字
75
+ * @default "取消"
76
+ */
77
+ cancelText?: string
78
+ /**
79
+ * 自定义样式
80
+ */
81
+ customStyle?: unknown
82
+ /**
83
+ * `mode`为`car`下,输入文字后,是否自动切换为字母模式
84
+ * @default false
85
+ */
86
+ autoChange?: boolean
87
+ /**
88
+ * 按键被点击(不包含退格键被点击)
89
+ */
90
+ onChange?: () => any
91
+ /**
92
+ * 键盘关闭
93
+ */
94
+ onClose?: () => any
95
+ /**
96
+ * 键盘顶部工具条右边的"完成"按钮被点击
97
+ */
98
+ onConfirm?: () => any
99
+ /**
100
+ * 键盘顶部工具条左边的"取消"按钮被点击
101
+ */
102
+ onCancel?: () => any
103
+ /**
104
+ * 键盘退格键被点击
105
+ */
106
+ onBackspace?: () => any
107
+ }
108
+
109
+ declare interface KeyboardSlots {
110
+ /**
111
+ * 内容将会显示键盘的工具条上面,可以结合MessageInput 验证码输入组件实现类似支付宝输入密码时,上方显示输入内容的功能
112
+ */
113
+ ['default']: () => any
114
+ }
115
+
116
+ declare interface _Keyboard {
117
+ new (): {
118
+ $props: AllowedComponentProps &
119
+ VNodeProps &
120
+ KeyboardProps
121
+ $slots: KeyboardSlots
122
+ }
123
+ }
124
+
125
+ export declare const Keyboard: _Keyboard
@@ -0,0 +1,44 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LineProps {
4
+ /**
5
+ * 线条的颜色
6
+ * @default "#d6d7d9"
7
+ */
8
+ color?: string
9
+ /**
10
+ * 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带rpx单位的值等
11
+ * @default 100%
12
+ */
13
+ length?: string | number
14
+ /**
15
+ * 线条的方向,`row`-横向,`col`-竖向
16
+ * @default "row"
17
+ */
18
+ direction?: "row" | "col"
19
+ /**
20
+ * 是否显示细边框
21
+ * @default true
22
+ */
23
+ hairline?: boolean
24
+ /**
25
+ * 线条与上下左右元素的间距,字符串形式,如"30rpx"、"20rpx 30rpx",默认单位px
26
+ * @default 0
27
+ */
28
+ margin?: string | number
29
+ /**
30
+ * 是否虚线,false-实线,true-虚线
31
+ * @default false
32
+ */
33
+ dashed?: boolean
34
+ }
35
+
36
+ declare interface _Line {
37
+ new (): {
38
+ $props: AllowedComponentProps &
39
+ VNodeProps &
40
+ LineProps
41
+ }
42
+ }
43
+
44
+ export declare const Line: _Line
@@ -0,0 +1,51 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LineProgressProps {
4
+ /**
5
+ * 进度条激活部分的颜色
6
+ * @default "#19be6b"
7
+ */
8
+ activeColor?: string
9
+ /**
10
+ * 进度条的底色,默认为灰色
11
+ * @default "#ececec"
12
+ */
13
+ inactiveColor?: string
14
+ /**
15
+ * 进度百分比,数值
16
+ * @default 0
17
+ */
18
+ percentage?: string | number
19
+ /**
20
+ * 是否在进度条内部显示百分比的值
21
+ * @default true
22
+ */
23
+ showText?: boolean
24
+ /**
25
+ * 进度条的高度,默认单位px
26
+ * @default 12
27
+ */
28
+ height?: string | number
29
+ /**
30
+ * 点击触发事件
31
+ */
32
+ onClick?: () => any
33
+ }
34
+
35
+ declare interface LineProgressSlots {
36
+ /**
37
+ * 传入自定义的显示内容,将会覆盖默认显示的百分比值
38
+ */
39
+ ['default']?: (arg: any) => any
40
+ }
41
+
42
+ declare interface _LineProgress {
43
+ new (): {
44
+ $props: AllowedComponentProps &
45
+ VNodeProps &
46
+ LineProgressProps
47
+ $slots: LineProgressSlots
48
+ }
49
+ }
50
+
51
+ export declare const LineProgress: _LineProgress
@@ -0,0 +1,51 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LinkProps {
4
+ /**
5
+ * 文字颜色
6
+ * @default color['u-primary']
7
+ */
8
+ color?: string
9
+ /**
10
+ * 字体大小,默认单位px
11
+ * @default 15
12
+ */
13
+ fontSize?: string | number
14
+ /**
15
+ * 是否显示下划线
16
+ * @default false
17
+ */
18
+ underLine?: boolean
19
+ /**
20
+ * 跳转的链接,要带上http(s)
21
+ */
22
+ href?: string
23
+ /**
24
+ * 各个小程序平台把链接复制到粘贴板后的提示语
25
+ * @default "链接已复制,请在浏览器打开"
26
+ */
27
+ mpTips?: string
28
+ /**
29
+ * 下划线颜色,默认同color参数颜色
30
+ */
31
+ lineColor?: string
32
+ /**
33
+ * 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
34
+ */
35
+ text?: string
36
+ }
37
+
38
+ declare interface LinkSlots {
39
+ ['default']?: () => any
40
+ }
41
+
42
+ declare interface _Link {
43
+ new (): {
44
+ $props: AllowedComponentProps &
45
+ VNodeProps &
46
+ LinkProps
47
+ $slots: LinkSlots
48
+ }
49
+ }
50
+
51
+ export declare const Link: _Link
@@ -0,0 +1,92 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ListProps {
4
+ /**
5
+ * 控制是否出现滚动条,仅nvue有效
6
+ * @default false
7
+ */
8
+ showScrollbar?: boolean
9
+ /**
10
+ * 距底部多少时触发scrolltolower事件
11
+ * @default 50
12
+ */
13
+ lowerThreshold?: string | number
14
+ /**
15
+ * 距顶部多少时触发scrolltoupper事件,非nvue有效
16
+ * @default 0
17
+ */
18
+ upperThreshold?: string | number
19
+ /**
20
+ * 设置竖向滚动条位置
21
+ * @default 0
22
+ */
23
+ scrollTop?: string | number
24
+ /**
25
+ * 控制 onscroll 事件触发的频率,仅nvue有效
26
+ * @default 10
27
+ */
28
+ offsetAccuracy?: string | number
29
+ /**
30
+ * 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
31
+ * @default false
32
+ */
33
+ enableFlex?: boolean
34
+ /**
35
+ * 是否按分页模式显示List
36
+ * @default false
37
+ */
38
+ pagingEnabled?: boolean
39
+ /**
40
+ * 是否允许List滚动
41
+ * @default true
42
+ */
43
+ scrollable?: boolean
44
+ /**
45
+ * 值应为某子元素id(id不能以数字开头)
46
+ */
47
+ scrollIntoView?: string
48
+ /**
49
+ * 在设置滚动条位置时使用动画过渡
50
+ * @default false
51
+ */
52
+ scrollWithAnimation?: boolean
53
+ /**
54
+ * iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
55
+ * @default false
56
+ */
57
+ enableBackToTop?: boolean
58
+ /**
59
+ * 列表的高度
60
+ * @default 0
61
+ */
62
+ height?: string | number
63
+ /**
64
+ * 列表宽度
65
+ * @default 0
66
+ */
67
+ width?: string | number
68
+ /**
69
+ * 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
70
+ * @default 1
71
+ */
72
+ preLoadScreen?: string | number
73
+ /**
74
+ * 滚动条滚动触发事件
75
+ * @param scrollTop 滚动条位置
76
+ */
77
+ onScroll?: (scrollTop: number) => any
78
+ /**
79
+ * 滚动到底部触发事件
80
+ */
81
+ onScrolltolower?: () => any
82
+ }
83
+
84
+ declare interface _List {
85
+ new (): {
86
+ $props: AllowedComponentProps &
87
+ VNodeProps &
88
+ ListProps
89
+ }
90
+ }
91
+
92
+ export declare const List: _List
@@ -0,0 +1,18 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface ListItemProps {
4
+ /**
5
+ * 用于滚动到指定item
6
+ */
7
+ anchor?: string | number
8
+ }
9
+
10
+ declare interface _ListItem {
11
+ new (): {
12
+ $props: AllowedComponentProps &
13
+ VNodeProps &
14
+ ListItemProps
15
+ }
16
+ }
17
+
18
+ export declare const ListItem: _ListItem
@@ -0,0 +1,108 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LoadMoreProps {
4
+ /**
5
+ * 组件状态
6
+ * @default "loadmore"
7
+ */
8
+ status?: 'loadmore' | 'loading' | 'nomore'
9
+ /**
10
+ * 组件背景颜色,在页面是非白色时会用到
11
+ * @default "transparent"
12
+ */
13
+ bgColor?: string
14
+ /**
15
+ * 加载中时是否显示图标
16
+ * @default true
17
+ */
18
+ icon?: boolean
19
+ /**
20
+ * 字体大小,单位rpx
21
+ * @default 14
22
+ */
23
+ fontSize?: string | number
24
+ /**
25
+ * 图标大小,单位px
26
+ * @default 17
27
+ */
28
+ iconSize?: string | number
29
+ /**
30
+ * 字体颜色
31
+ * @default "#606266"
32
+ */
33
+ color?: string
34
+ /**
35
+ * 加载中状态的图标
36
+ * @default "circle"
37
+ */
38
+ loadingIcon?: 'circle' | 'spinner' | 'semicircle'
39
+ /**
40
+ * 加载前的提示语
41
+ * @default "加载更多"
42
+ */
43
+ loadmoreText?: string
44
+ /**
45
+ * 加载中提示语
46
+ * @default "正在加载..."
47
+ */
48
+ loadingText?: string
49
+ /**
50
+ * 没有更多的提示语
51
+ * @default "没有更多了"
52
+ */
53
+ nomoreText?: string
54
+ /**
55
+ * `status`为`nomore`时,内容显示为一个"●"
56
+ * @default false
57
+ */
58
+ isDot?: boolean
59
+ /**
60
+ * 加载中的动画图标的颜色
61
+ * @default "#b7b7b7"
62
+ */
63
+ iconColor?: string
64
+ /**
65
+ * 线条颜色
66
+ * @default "#E6E8EB"
67
+ */
68
+ lineColor?: string
69
+ /**
70
+ * 是否虚线,false-实线,true-虚线
71
+ * @default false
72
+ */
73
+ dashed?: boolean
74
+ /**
75
+ * 与前一个元素的距离,单位rpx
76
+ * @default 10
77
+ */
78
+ marginTop?: string | number
79
+ /**
80
+ * 与后一个元素的距离,单位rpx
81
+ * @default 10
82
+ */
83
+ marginBottom?: string | number
84
+ /**
85
+ * 高度
86
+ * @default "auto"
87
+ */
88
+ height?: string | number
89
+ /**
90
+ * 是否显示左边分割线
91
+ * @default false
92
+ */
93
+ line?: boolean
94
+ /**
95
+ * `status`为`loadmore`时,点击组件会发出此事件
96
+ */
97
+ onLoadmore?: () => any
98
+ }
99
+
100
+ declare interface _LoadMore {
101
+ new (): {
102
+ $props: AllowedComponentProps &
103
+ VNodeProps &
104
+ LoadMoreProps
105
+ }
106
+ }
107
+
108
+ export declare const LoadMore: _LoadMore
@@ -0,0 +1,68 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LoadingIconProps {
4
+ /**
5
+ * 是否显示动画
6
+ * @default true
7
+ */
8
+ show?: boolean
9
+ /**
10
+ * 图标颜色
11
+ * @default "color['u-tips-color']"
12
+ */
13
+ color?: string
14
+ /**
15
+ * 提示文本颜色
16
+ * @default "color['u-tips-color']"
17
+ */
18
+ textColor?: string
19
+ /**
20
+ * 图标和文字是否垂直排列
21
+ * @default false
22
+ */
23
+ vertical?: boolean
24
+ /**
25
+ * 模式选
26
+ * @default "circle"
27
+ */
28
+ mode?: 'circle' | 'semicircle'
29
+ /**
30
+ * 加载图标的大小,单位px
31
+ * @default 24
32
+ */
33
+ size?: string | number
34
+ /**
35
+ * 加载文字的大小,单位px
36
+ * @default 15
37
+ */
38
+ textSize?: string | number
39
+ /**
40
+ * 文字内容
41
+ */
42
+ text?: string
43
+ /**
44
+ * 指定`animation-timing-function`的css属性,但只支持`mode`为`circle`或`semicircle`才有效
45
+ * @default "ease-in-out"
46
+ */
47
+ timingFunction?: string
48
+ /**
49
+ * 动画执行周期时间,单位ms
50
+ * @default 1200
51
+ */
52
+ duration?: string | number
53
+ /**
54
+ * 图标的暗边颜色, `mode`为`circle` 模式有效
55
+ * @default "transparent"
56
+ */
57
+ inactiveColor?: string
58
+ }
59
+
60
+ declare interface _LoadingIcon {
61
+ new (): {
62
+ $props: AllowedComponentProps &
63
+ VNodeProps &
64
+ LoadingIconProps
65
+ }
66
+ }
67
+
68
+ export declare const LoadingIcon: _LoadingIcon
@@ -0,0 +1,58 @@
1
+ import { AllowedComponentProps, VNodeProps } from './_common'
2
+
3
+ declare interface LoadingPageProps {
4
+ /**
5
+ * 提示内容
6
+ * @default "正在加载"
7
+ */
8
+ loadingText?: string | number
9
+ /**
10
+ * 文字上方用于替换loading动画的图片
11
+ */
12
+ image?: string
13
+ /**
14
+ * 加载动画的模式
15
+ * @default "circle"
16
+ */
17
+ loadingMode?: 'circle' | 'spinner' | 'semicircle'
18
+ /**
19
+ * 是否加载中
20
+ * @default false
21
+ */
22
+ loading?: boolean
23
+ /**
24
+ * 背景颜色
25
+ * @default "#ffffff"
26
+ */
27
+ bgColor?: string
28
+ /**
29
+ * 文字颜色
30
+ * @default "#C8C8C8"
31
+ */
32
+ color?: string
33
+ /**
34
+ * 文字大小
35
+ * @default 19
36
+ */
37
+ fontSize?: string | number
38
+ /**
39
+ * 图标大小
40
+ * @default 28
41
+ */
42
+ iconSize?: string | number
43
+ /**
44
+ * 加载中图标的颜色
45
+ * @default "#C8C8C8"
46
+ */
47
+ loadingColor?: string
48
+ }
49
+
50
+ declare interface _LoadingPage {
51
+ new (): {
52
+ $props: AllowedComponentProps &
53
+ VNodeProps &
54
+ LoadingPageProps
55
+ }
56
+ }
57
+
58
+ export declare const LoadingPage: _LoadingPage