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.
- package/changelog.md +9 -0
- package/components/u-checkbox/u-checkbox.vue +2 -2
- package/components/u-number-box/u-number-box.vue +4 -4
- package/components/u-picker/u-picker.vue +1 -1
- package/components/u-radio/u-radio.vue +2 -2
- package/components/u-rate/u-rate.vue +1 -1
- package/components/u-subsection/u-subsection.vue +22 -14
- package/components/u-swipe-action-item/u-swipe-action-item.vue +18 -1
- package/components/u-switch/u-switch.vue +1 -1
- package/components/u-tabbar-item/u-tabbar-item.vue +1 -1
- package/components/u-tag/u-tag.vue +1 -1
- package/index.js +5 -2
- package/libs/css/common.scss +3 -0
- package/libs/mixin/mpShare.js +15 -13
- package/package.json +2 -1
- package/types/comps/_common.d.ts +9 -0
- package/types/comps/actionSheet.d.ts +121 -0
- package/types/comps/album.d.ts +72 -0
- package/types/comps/alert.d.ts +55 -0
- package/types/comps/avatar.d.ts +85 -0
- package/types/comps/avatarGroup.d.ts +62 -0
- package/types/comps/backTop.d.ts +74 -0
- package/types/comps/badge.d.ts +76 -0
- package/types/comps/button.d.ts +169 -0
- package/types/comps/calendar.d.ts +164 -0
- package/types/comps/cell.d.ts +133 -0
- package/types/comps/cellGroup.d.ts +27 -0
- package/types/comps/checkbox.d.ts +69 -0
- package/types/comps/checkboxGroup.d.ts +93 -0
- package/types/comps/code.d.ts +69 -0
- package/types/comps/codeInput.d.ts +98 -0
- package/types/comps/col.d.ts +43 -0
- package/types/comps/collapse.d.ts +52 -0
- package/types/comps/collapseItem.d.ts +83 -0
- package/types/comps/countDown.d.ts +60 -0
- package/types/comps/countTo.d.ts +88 -0
- package/types/comps/datetimePicker.d.ts +146 -0
- package/types/comps/divider.d.ts +58 -0
- package/types/comps/empty.d.ts +72 -0
- package/types/comps/form.d.ts +76 -0
- package/types/comps/formItem.d.ts +68 -0
- package/types/comps/gap.d.ts +35 -0
- package/types/comps/grid.d.ts +34 -0
- package/types/comps/gridItem.d.ts +28 -0
- package/types/comps/icon.d.ts +93 -0
- package/types/comps/image.d.ts +119 -0
- package/types/comps/indexAnchor.d.ts +38 -0
- package/types/comps/indexItem.d.ts +18 -0
- package/types/comps/indexList.d.ts +39 -0
- package/types/comps/input.d.ts +234 -0
- package/types/comps/keyboard.d.ts +125 -0
- package/types/comps/line.d.ts +44 -0
- package/types/comps/lineProgress.d.ts +51 -0
- package/types/comps/link.d.ts +51 -0
- package/types/comps/list.d.ts +92 -0
- package/types/comps/listItem.d.ts +18 -0
- package/types/comps/loadMore.d.ts +108 -0
- package/types/comps/loadingIcon.d.ts +68 -0
- package/types/comps/loadingPage.d.ts +58 -0
- package/types/comps/modal.d.ts +115 -0
- package/types/comps/navbar.d.ts +113 -0
- package/types/comps/noNetwork.d.ts +40 -0
- package/types/comps/noticeBar.d.ts +85 -0
- package/types/comps/notify.d.ts +73 -0
- package/types/comps/numberBox.d.ts +155 -0
- package/types/comps/overlay.d.ts +46 -0
- package/types/comps/parse.d.ts +101 -0
- package/types/comps/picker.d.ts +115 -0
- package/types/comps/popup.d.ts +103 -0
- package/types/comps/radio.d.ts +77 -0
- package/types/comps/radioGroup.d.ts +97 -0
- package/types/comps/rate.d.ts +85 -0
- package/types/comps/readMore.d.ts +80 -0
- package/types/comps/row.d.ts +34 -0
- package/types/comps/scrollList.d.ts +51 -0
- package/types/comps/search.d.ts +167 -0
- package/types/comps/skeleton.d.ts +70 -0
- package/types/comps/slider.d.ts +79 -0
- package/types/comps/steps.d.ts +48 -0
- package/types/comps/stepsItem.d.ts +41 -0
- package/types/comps/sticky.d.ts +48 -0
- package/types/comps/subsection.d.ts +64 -0
- package/types/comps/swipeAction.d.ts +24 -0
- package/types/comps/swipeActionItem.d.ts +58 -0
- package/types/comps/swiper.d.ts +142 -0
- package/types/comps/swiperIndicator.d.ts +37 -0
- package/types/comps/switch.d.ts +73 -0
- package/types/comps/tabbar.d.ts +54 -0
- package/types/comps/tabbarItem.d.ts +52 -0
- package/types/comps/tabs.d.ts +85 -0
- package/types/comps/tag.d.ts +93 -0
- package/types/comps/text.d.ts +110 -0
- package/types/comps/textarea.d.ts +158 -0
- package/types/comps/toast.d.ts +59 -0
- package/types/comps/tooltip.d.ts +71 -0
- package/types/comps/transition.d.ts +61 -0
- package/types/comps/upload.d.ts +163 -0
- package/types/comps.d.ts +99 -0
- package/types/index.d.ts +48 -0
- package/types/package.json +26 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CheckboxProps {
|
|
4
|
+
/**
|
|
5
|
+
* checkbox的名称
|
|
6
|
+
*/
|
|
7
|
+
name?: string | number | boolean
|
|
8
|
+
/**
|
|
9
|
+
* 形状,square为方形,circle为圆型
|
|
10
|
+
* @default "square"
|
|
11
|
+
*/
|
|
12
|
+
shape?: 'square' | 'circle'
|
|
13
|
+
/**
|
|
14
|
+
* 整体的大小
|
|
15
|
+
*/
|
|
16
|
+
size?: string | number
|
|
17
|
+
/**
|
|
18
|
+
* 是否默认选中
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
checked?: boolean
|
|
22
|
+
/**
|
|
23
|
+
* 是否禁用
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
disabled?: string | boolean
|
|
27
|
+
/**
|
|
28
|
+
* 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
29
|
+
*/
|
|
30
|
+
activeColor?: string
|
|
31
|
+
/**
|
|
32
|
+
* 未选中的颜色
|
|
33
|
+
*/
|
|
34
|
+
inactiveColor?: string
|
|
35
|
+
/**
|
|
36
|
+
* 图标的大小,单位px
|
|
37
|
+
*/
|
|
38
|
+
iconSize?: string | number
|
|
39
|
+
/**
|
|
40
|
+
* 图标颜色
|
|
41
|
+
*/
|
|
42
|
+
iconColor?: string
|
|
43
|
+
/**
|
|
44
|
+
* label提示文字,因为nvue下,直接slot进来的文字,由于特殊的结构,无法修改样式
|
|
45
|
+
*/
|
|
46
|
+
label?: string | number
|
|
47
|
+
/**
|
|
48
|
+
* label的字体大小,px单位
|
|
49
|
+
*/
|
|
50
|
+
labelSize?: string | number
|
|
51
|
+
/**
|
|
52
|
+
* label的颜色
|
|
53
|
+
*/
|
|
54
|
+
labelColor?: string
|
|
55
|
+
/**
|
|
56
|
+
* 是否禁止点击提示语选中复选框
|
|
57
|
+
*/
|
|
58
|
+
labelDisabled?: string | boolean
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare interface _Checkbox {
|
|
62
|
+
new (): {
|
|
63
|
+
$props: AllowedComponentProps &
|
|
64
|
+
VNodeProps &
|
|
65
|
+
CheckboxProps
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export declare const Checkbox: _Checkbox
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CheckboxGroupProps {
|
|
4
|
+
/**
|
|
5
|
+
* 标识符
|
|
6
|
+
*/
|
|
7
|
+
name?: string
|
|
8
|
+
/**
|
|
9
|
+
* 绑定的值
|
|
10
|
+
* @default []
|
|
11
|
+
*/
|
|
12
|
+
value?: string[]
|
|
13
|
+
/**
|
|
14
|
+
* 形状,square为方形,circle为圆型
|
|
15
|
+
* @default "square"
|
|
16
|
+
*/
|
|
17
|
+
shape?: 'square' | 'circle'
|
|
18
|
+
/**
|
|
19
|
+
* 是否禁用全部checkbox
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean
|
|
23
|
+
/**
|
|
24
|
+
* 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
25
|
+
* @default "#2979ff"
|
|
26
|
+
*/
|
|
27
|
+
activeColor?: string
|
|
28
|
+
/**
|
|
29
|
+
* 未选中的颜色
|
|
30
|
+
* @default "#c8c9cc"
|
|
31
|
+
*/
|
|
32
|
+
inactiveColor?: string
|
|
33
|
+
/**
|
|
34
|
+
* 整体的大小
|
|
35
|
+
* @default 18
|
|
36
|
+
*/
|
|
37
|
+
size?: string
|
|
38
|
+
/**
|
|
39
|
+
* 布局方式,row-横向,column-纵向
|
|
40
|
+
* @default "row"
|
|
41
|
+
*/
|
|
42
|
+
placement?: 'row' | 'column'
|
|
43
|
+
/**
|
|
44
|
+
* label的字体大小,px单位
|
|
45
|
+
* @default 14
|
|
46
|
+
*/
|
|
47
|
+
labelSize?: string | number
|
|
48
|
+
/**
|
|
49
|
+
* label的颜色
|
|
50
|
+
* @default "#303133"
|
|
51
|
+
*/
|
|
52
|
+
labelColor?: string
|
|
53
|
+
/**
|
|
54
|
+
* 是否禁止点击文本操作
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
labelDisabled?: boolean
|
|
58
|
+
/**
|
|
59
|
+
* 图标的大小,单位px
|
|
60
|
+
* @default 12
|
|
61
|
+
*/
|
|
62
|
+
iconSize?: string | number
|
|
63
|
+
/**
|
|
64
|
+
* 图标颜色
|
|
65
|
+
* @default "#fff"
|
|
66
|
+
*/
|
|
67
|
+
iconColor?: string
|
|
68
|
+
/**
|
|
69
|
+
* 勾选图标的对齐方式,left-左边,right-右边
|
|
70
|
+
* @default "left"
|
|
71
|
+
*/
|
|
72
|
+
iconPlacement?: 'left' | 'right'
|
|
73
|
+
/**
|
|
74
|
+
* 竖向配列时,是否显示下划线
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
borderBottom?: boolean
|
|
78
|
+
/**
|
|
79
|
+
* 任一个`checkbox`状态发生变化时触发,回调为一个对象
|
|
80
|
+
* @param detail 元素为被选中的`checkbox`的`name`数组
|
|
81
|
+
*/
|
|
82
|
+
onChange?: (detail: any[]) => any
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare interface _CheckboxGroup {
|
|
86
|
+
new (): {
|
|
87
|
+
$props: AllowedComponentProps &
|
|
88
|
+
VNodeProps &
|
|
89
|
+
CheckboxGroupProps
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare const CheckboxGroup: _CheckboxGroup
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CodeProps {
|
|
4
|
+
/**
|
|
5
|
+
* 倒计时所需的秒数
|
|
6
|
+
* @default 60
|
|
7
|
+
*/
|
|
8
|
+
seconds?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 开始前的提示语,详细见[文档](https://www.uviewui.com/components/code.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8F%90%E7%A4%BA%E8%AF%AD)
|
|
11
|
+
* @default "获取验证码"
|
|
12
|
+
*/
|
|
13
|
+
startText?: string
|
|
14
|
+
/**
|
|
15
|
+
* 倒计时期间的提示语,必须带有字母"x",详细见[文档](https://www.uviewui.com/components/code.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8F%90%E7%A4%BA%E8%AF%AD)
|
|
16
|
+
* @default "X秒重新获取"
|
|
17
|
+
*/
|
|
18
|
+
changeText?: string
|
|
19
|
+
/**
|
|
20
|
+
* 倒计结束的提示语,详细见[文档](https://www.uviewui.com/components/code.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E6%8F%90%E7%A4%BA%E8%AF%AD)
|
|
21
|
+
* @default "重新获取"
|
|
22
|
+
*/
|
|
23
|
+
endText?: string
|
|
24
|
+
/**
|
|
25
|
+
* 是否在H5刷新或各端返回再进入时继续倒计时
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
keepRunning?: boolean
|
|
29
|
+
/**
|
|
30
|
+
* 多个组件之间继续倒计时的区分`key`,详细见[文档](https://www.uviewui.com/components/code.html#%E4%BF%9D%E6%8C%81%E5%80%92%E8%AE%A1%E6%97%B6)
|
|
31
|
+
*/
|
|
32
|
+
uniqueKey?: string
|
|
33
|
+
/**
|
|
34
|
+
* 倒计时期间,每秒触发一次
|
|
35
|
+
* @param text 当前剩余多少秒的状态
|
|
36
|
+
*/
|
|
37
|
+
onChange?: (text: string) => any
|
|
38
|
+
/**
|
|
39
|
+
* 开始倒计时触发
|
|
40
|
+
*/
|
|
41
|
+
onStart?: () => any
|
|
42
|
+
/**
|
|
43
|
+
* 结束倒计时触发
|
|
44
|
+
*/
|
|
45
|
+
onEnd?: () => any
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare interface _Code {
|
|
49
|
+
new (): {
|
|
50
|
+
$props: AllowedComponentProps &
|
|
51
|
+
VNodeProps &
|
|
52
|
+
CodeProps
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare interface _CodeRef {
|
|
57
|
+
/**
|
|
58
|
+
* 开始倒计时
|
|
59
|
+
*/
|
|
60
|
+
start: () => void
|
|
61
|
+
/**
|
|
62
|
+
* 结束当前正在进行中的倒计时,设置组件为可以重新获取验证码的状态
|
|
63
|
+
*/
|
|
64
|
+
reset: () => void
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export declare const Code: _Code
|
|
68
|
+
|
|
69
|
+
export declare const CodeRef: _CodeRef
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CodeInputProps {
|
|
4
|
+
/**
|
|
5
|
+
* 键盘弹起时,是否自动上推页面
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
adjustPosition?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* 输入字符个数
|
|
11
|
+
* @default 6
|
|
12
|
+
*/
|
|
13
|
+
maxlength?: string | number
|
|
14
|
+
/**
|
|
15
|
+
* 是否用圆点填充
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
dot?: boolean
|
|
19
|
+
/**
|
|
20
|
+
* 模式选择
|
|
21
|
+
* @default "box"
|
|
22
|
+
*/
|
|
23
|
+
mode?: 'box' | 'bottomLine' | 'middleLine'
|
|
24
|
+
/**
|
|
25
|
+
* 是否细边框
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
hairline?: boolean
|
|
29
|
+
/**
|
|
30
|
+
* 字符间的距离
|
|
31
|
+
* @default 10
|
|
32
|
+
*/
|
|
33
|
+
space?: string | number
|
|
34
|
+
/**
|
|
35
|
+
* 预置值
|
|
36
|
+
*/
|
|
37
|
+
value?: string | number
|
|
38
|
+
/**
|
|
39
|
+
* 是否自动获取焦点
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
focus?: boolean
|
|
43
|
+
/**
|
|
44
|
+
* 字体和输入横线是否加粗
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
bold?: boolean
|
|
48
|
+
/**
|
|
49
|
+
* 字体颜色
|
|
50
|
+
* @default "#606266"
|
|
51
|
+
*/
|
|
52
|
+
color?: string
|
|
53
|
+
/**
|
|
54
|
+
* 字体大小,单位rpx
|
|
55
|
+
* @default 18
|
|
56
|
+
*/
|
|
57
|
+
fontSize?: string | number
|
|
58
|
+
/**
|
|
59
|
+
* 输入框的大小,宽等于高
|
|
60
|
+
* @default 35
|
|
61
|
+
*/
|
|
62
|
+
size?: string | number
|
|
63
|
+
/**
|
|
64
|
+
* 禁止点击输入框唤起系统键盘
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
disabledKeyboard?: boolean
|
|
68
|
+
/**
|
|
69
|
+
* 边框和线条颜色
|
|
70
|
+
* @default "#c9cacc"
|
|
71
|
+
*/
|
|
72
|
+
borderColor?: string
|
|
73
|
+
/**
|
|
74
|
+
* 是否禁止输入"."符号
|
|
75
|
+
* @default true
|
|
76
|
+
*/
|
|
77
|
+
disabledDot?: boolean
|
|
78
|
+
/**
|
|
79
|
+
* 输入内容发生改变时触发
|
|
80
|
+
* @param value 当前输入的值
|
|
81
|
+
*/
|
|
82
|
+
onChange?: (value: any) => any
|
|
83
|
+
/**
|
|
84
|
+
* 输入字符个数达`maxlength`值时触发
|
|
85
|
+
* @param value 当前输入的值
|
|
86
|
+
*/
|
|
87
|
+
onFinish?: (value: any) => any
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare interface _CodeInput {
|
|
91
|
+
new (): {
|
|
92
|
+
$props: AllowedComponentProps &
|
|
93
|
+
VNodeProps &
|
|
94
|
+
CodeInputProps
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export declare const CodeInput: _CodeInput
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface ColProps {
|
|
4
|
+
/**
|
|
5
|
+
* 栅格占据的列数,总12等分
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
span?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 分栏左边偏移,计算方式与span相同
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
offset?: string | number
|
|
14
|
+
/**
|
|
15
|
+
* 水平排列方式(微信小程序暂不支持)
|
|
16
|
+
* @default "start"
|
|
17
|
+
*/
|
|
18
|
+
justify?: 'start' | 'flex-start' | 'end' | 'flex-end' | 'center' | 'around' | 'space-around' | 'between' | 'space-between'
|
|
19
|
+
/**
|
|
20
|
+
* 垂直排列方式
|
|
21
|
+
* @default "stretch"
|
|
22
|
+
*/
|
|
23
|
+
align?: 'top' | 'center' | 'bottom' | 'stretch'
|
|
24
|
+
/**
|
|
25
|
+
* 文字水平对齐方式
|
|
26
|
+
* @default 'left
|
|
27
|
+
*/
|
|
28
|
+
textAlign?: 'left' | 'center' | 'right'
|
|
29
|
+
/**
|
|
30
|
+
* 点击触发事件
|
|
31
|
+
*/
|
|
32
|
+
onClick?: () => any
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface _Col {
|
|
36
|
+
new (): {
|
|
37
|
+
$props: AllowedComponentProps &
|
|
38
|
+
VNodeProps &
|
|
39
|
+
ColProps
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const Col: _Col
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CollapseProps {
|
|
4
|
+
/**
|
|
5
|
+
* 当前展开面板的name,非手风琴模式:[<String | Number>],手风琴模式:String | Number
|
|
6
|
+
*/
|
|
7
|
+
value: string | number | (string | number)[]
|
|
8
|
+
/**
|
|
9
|
+
* 是否手风琴模式
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
accordion?: boolean
|
|
13
|
+
/**
|
|
14
|
+
* 是否显示外边框
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
border?: boolean
|
|
18
|
+
/**
|
|
19
|
+
* 当前激活面板展开时触发(如果是手风琴模式,参数activeNames类型为String,否则为Array)
|
|
20
|
+
* @param activeNames 活动项
|
|
21
|
+
*/
|
|
22
|
+
onChange?: (activeNames: string | any[]) => any
|
|
23
|
+
/**
|
|
24
|
+
* 当前激活面板展开时触发(如果是手风琴模式,参数activeNames类型为String,否则为Array)
|
|
25
|
+
* @param activeNames 活动项
|
|
26
|
+
*/
|
|
27
|
+
onOpen?: (activeNames: string | any[]) => any
|
|
28
|
+
/**
|
|
29
|
+
* 当前激活面板关闭时触发(如果是手风琴模式,参数activeNames类型为String,否则为Array)
|
|
30
|
+
* @param activeNames 活动项
|
|
31
|
+
*/
|
|
32
|
+
onClose?: (activeNames: string | any[]) => any
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface _Collapse {
|
|
36
|
+
new (): {
|
|
37
|
+
$props: AllowedComponentProps &
|
|
38
|
+
VNodeProps &
|
|
39
|
+
CollapseProps
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare interface _CollapseRef {
|
|
44
|
+
/**
|
|
45
|
+
* 重新初始化内部高度计算,用于异步获取内容的情形,请结合`this.$nextTick()`使用
|
|
46
|
+
*/
|
|
47
|
+
init: () => void
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export declare const Collapse: _Collapse
|
|
51
|
+
|
|
52
|
+
export declare const CollapseRef: _CollapseRef
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CollapseItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* 面板标题
|
|
6
|
+
*/
|
|
7
|
+
title?: string
|
|
8
|
+
/**
|
|
9
|
+
* 标题右侧内容
|
|
10
|
+
*/
|
|
11
|
+
value?: string
|
|
12
|
+
/**
|
|
13
|
+
* 标题下方的描述信息
|
|
14
|
+
*/
|
|
15
|
+
label?: string
|
|
16
|
+
/**
|
|
17
|
+
* 面板是否可以打开或收起
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean
|
|
21
|
+
/**
|
|
22
|
+
* 是否展示右侧箭头并开启点击反馈
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
isLink?: boolean
|
|
26
|
+
/**
|
|
27
|
+
* 是否开启点击反馈
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
|
+
clickable?: boolean
|
|
31
|
+
/**
|
|
32
|
+
* 是否显示内边框
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
border?: boolean
|
|
36
|
+
/**
|
|
37
|
+
* 唯一标识符,如不设置,默认用当前`collapse-item`的索引值
|
|
38
|
+
*/
|
|
39
|
+
name?: string | number
|
|
40
|
+
/**
|
|
41
|
+
* 标题左侧图片,可为绝对路径的图片或内置图标
|
|
42
|
+
*/
|
|
43
|
+
icon?: string
|
|
44
|
+
/**
|
|
45
|
+
* 面板展开收起的过渡时间,单位`ms`
|
|
46
|
+
* @default 300
|
|
47
|
+
*/
|
|
48
|
+
duration?: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare interface CollapseItemSlots {
|
|
52
|
+
/**
|
|
53
|
+
* 主体部分的内容
|
|
54
|
+
*/
|
|
55
|
+
['default']?: () => any
|
|
56
|
+
/**
|
|
57
|
+
* 标题内容
|
|
58
|
+
*/
|
|
59
|
+
['title']?: () => any
|
|
60
|
+
/**
|
|
61
|
+
* icon
|
|
62
|
+
*/
|
|
63
|
+
['icon']?: () => any
|
|
64
|
+
/**
|
|
65
|
+
* 右侧value
|
|
66
|
+
*/
|
|
67
|
+
['value']?: () => any
|
|
68
|
+
/**
|
|
69
|
+
* 右侧icon
|
|
70
|
+
*/
|
|
71
|
+
['right-icon']?: () => any
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare interface _CollapseItem {
|
|
75
|
+
new (): {
|
|
76
|
+
$props: AllowedComponentProps &
|
|
77
|
+
VNodeProps &
|
|
78
|
+
CollapseItemProps
|
|
79
|
+
$slots: CollapseItemSlots
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export declare const CollapseItem: _CollapseItem
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CountDownProps {
|
|
4
|
+
/**
|
|
5
|
+
* 倒计时时长,单位ms
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
time?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒
|
|
11
|
+
* @default "HH:mm:ss"
|
|
12
|
+
*/
|
|
13
|
+
format?: string
|
|
14
|
+
/**
|
|
15
|
+
* 是否自动开始倒计时
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
autoStart?: boolean
|
|
19
|
+
/**
|
|
20
|
+
* 是否展示毫秒倒计时
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
millisecond?: boolean
|
|
24
|
+
/**
|
|
25
|
+
* 过程中,倒计时变化时触发
|
|
26
|
+
* @param time 剩余的时间
|
|
27
|
+
*/
|
|
28
|
+
onChange?: (time: any) => any
|
|
29
|
+
/**
|
|
30
|
+
* 倒计时结束
|
|
31
|
+
*/
|
|
32
|
+
onFinish?: () => any
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface _CountDownRef {
|
|
36
|
+
/**
|
|
37
|
+
* 开始倒计时
|
|
38
|
+
*/
|
|
39
|
+
start: () => void
|
|
40
|
+
/**
|
|
41
|
+
* 暂停倒计时
|
|
42
|
+
*/
|
|
43
|
+
pause: () => void
|
|
44
|
+
/**
|
|
45
|
+
* 重置倒计时
|
|
46
|
+
*/
|
|
47
|
+
reset: () => void
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare interface _CountDown {
|
|
51
|
+
new (): {
|
|
52
|
+
$props: AllowedComponentProps &
|
|
53
|
+
VNodeProps &
|
|
54
|
+
CountDownProps
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare const CountDown: _CountDown
|
|
59
|
+
|
|
60
|
+
export declare const CountDownRef: _CountDownRef
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface CountToProps {
|
|
4
|
+
/**
|
|
5
|
+
* 开始值
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
startVal?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 结束值
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
endVal?: string | number
|
|
14
|
+
/**
|
|
15
|
+
* 滚动过程所需的时间,单位ms
|
|
16
|
+
* @default 2000
|
|
17
|
+
*/
|
|
18
|
+
duration?: string | number
|
|
19
|
+
/**
|
|
20
|
+
* 是否自动开始滚动
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
autoplay?: boolean
|
|
24
|
+
/**
|
|
25
|
+
* 要显示的小数位数,详细见[文档](https://www.uviewui.com/components/countTo.html#%E6%98%AF%E5%90%A6%E6%98%BE%E7%A4%BA%E5%B0%8F%E6%95%B0%E4%BD%8D)
|
|
26
|
+
* @default 0
|
|
27
|
+
*/
|
|
28
|
+
decimals?: string | number
|
|
29
|
+
/**
|
|
30
|
+
* 滚动结束时,是否缓动结尾,详细见[文档](https://www.uviewui.com/components/countTo.html#%E8%AE%BE%E7%BD%AE%E6%BB%9A%E5%8A%A8%E7%9B%B8%E5%85%B3%E5%8F%82%E6%95%B0)
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
useEasing?: boolean
|
|
34
|
+
/**
|
|
35
|
+
* 十进制分割
|
|
36
|
+
*/
|
|
37
|
+
decimal?: string
|
|
38
|
+
/**
|
|
39
|
+
* 字体颜色
|
|
40
|
+
* @default #606266
|
|
41
|
+
*/
|
|
42
|
+
color?: string
|
|
43
|
+
/**
|
|
44
|
+
* 字体大小,单位px
|
|
45
|
+
* @default 22
|
|
46
|
+
*/
|
|
47
|
+
fontSize?: string | number
|
|
48
|
+
/**
|
|
49
|
+
* 字体是否加粗
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
bold?: boolean
|
|
53
|
+
/**
|
|
54
|
+
* 千位分隔符,详细见[文档](https://www.uviewui.com/components/countTo.html#%E5%8D%83%E5%88%86%E4%BD%8D%E5%88%86%E9%9A%94%E7%AC%A6)
|
|
55
|
+
*/
|
|
56
|
+
separator?: string
|
|
57
|
+
/**
|
|
58
|
+
* 数值滚动到目标值时触发
|
|
59
|
+
*/
|
|
60
|
+
onEnd?: () => any
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
declare interface _CountToRef {
|
|
64
|
+
/**
|
|
65
|
+
* `autoplay`为`false`时,通过此方法启动滚动
|
|
66
|
+
*/
|
|
67
|
+
start: () => void
|
|
68
|
+
/**
|
|
69
|
+
* 暂停后重新开始滚动(从暂停前的值开始滚动)
|
|
70
|
+
*/
|
|
71
|
+
reStart: () => void
|
|
72
|
+
/**
|
|
73
|
+
* 暂停滚动
|
|
74
|
+
*/
|
|
75
|
+
paused: () => void
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare interface _CountTo {
|
|
79
|
+
new (): {
|
|
80
|
+
$props: AllowedComponentProps &
|
|
81
|
+
VNodeProps &
|
|
82
|
+
CountToProps
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export declare const CountTo: _CountTo
|
|
87
|
+
|
|
88
|
+
export declare const CountToRef: _CountToRef
|