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,79 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
declare interface SliderProps {
|
|
5
|
+
/**
|
|
6
|
+
* 双向绑定滑块选择值
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
9
|
+
value?: string | number
|
|
10
|
+
/**
|
|
11
|
+
* 滑块的大小
|
|
12
|
+
* @default 18
|
|
13
|
+
*/
|
|
14
|
+
blockSize?: string | number
|
|
15
|
+
/**
|
|
16
|
+
* 可选的最小值(0-100之间)
|
|
17
|
+
* @default 1
|
|
18
|
+
*/
|
|
19
|
+
min?: string | number
|
|
20
|
+
/**
|
|
21
|
+
* 可选的最大值(0-100之间)
|
|
22
|
+
* @default 100
|
|
23
|
+
*/
|
|
24
|
+
max?: string | number
|
|
25
|
+
/**
|
|
26
|
+
* 选择的步长
|
|
27
|
+
* @default 1
|
|
28
|
+
*/
|
|
29
|
+
step?: string | number
|
|
30
|
+
/**
|
|
31
|
+
* 进度条的激活部分颜色
|
|
32
|
+
* @default "#2979ff"
|
|
33
|
+
*/
|
|
34
|
+
activeColor?: string
|
|
35
|
+
/**
|
|
36
|
+
* 进度条的背景颜色
|
|
37
|
+
* @default "#c0c4cc"
|
|
38
|
+
*/
|
|
39
|
+
inactiveColor?: string
|
|
40
|
+
/**
|
|
41
|
+
* 滑块背景颜色
|
|
42
|
+
* @default "#ffffff"
|
|
43
|
+
*/
|
|
44
|
+
blockColor?: string
|
|
45
|
+
/**
|
|
46
|
+
* 是否显示当前 value
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
showValue?: boolean
|
|
50
|
+
/**
|
|
51
|
+
* 滑块按钮自定义样式
|
|
52
|
+
*/
|
|
53
|
+
blockStyle?: unknown
|
|
54
|
+
/**
|
|
55
|
+
* 更新v-model的
|
|
56
|
+
* @param value 当前值
|
|
57
|
+
*/
|
|
58
|
+
onInput?: (value: any) => any
|
|
59
|
+
/**
|
|
60
|
+
* 触发事件(拖动过程中)
|
|
61
|
+
* @param value 当前值
|
|
62
|
+
*/
|
|
63
|
+
onChanging?: (value: any) => any
|
|
64
|
+
/**
|
|
65
|
+
* 触发事件
|
|
66
|
+
* @param value 当前值
|
|
67
|
+
*/
|
|
68
|
+
onChange?: (value: any) => any
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare interface _Slider {
|
|
72
|
+
new (): {
|
|
73
|
+
$props: AllowedComponentProps &
|
|
74
|
+
VNodeProps &
|
|
75
|
+
SliderProps
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export declare const Slider: _Slider
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
declare interface StepsProps {
|
|
5
|
+
/**
|
|
6
|
+
* 方向
|
|
7
|
+
* @default "row"
|
|
8
|
+
*/
|
|
9
|
+
direction?: 'row' | 'column'
|
|
10
|
+
/**
|
|
11
|
+
* 设置当前处于第几步
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
current?: number | string
|
|
15
|
+
/**
|
|
16
|
+
* 激活状态颜色
|
|
17
|
+
* @default "#3c9cff"
|
|
18
|
+
*/
|
|
19
|
+
activeColor?: string
|
|
20
|
+
/**
|
|
21
|
+
* 未激活状态颜色
|
|
22
|
+
* @default "#969799"
|
|
23
|
+
*/
|
|
24
|
+
inactiveColor?: string
|
|
25
|
+
/**
|
|
26
|
+
* 激活状态的图标
|
|
27
|
+
*/
|
|
28
|
+
activeIcon?: string
|
|
29
|
+
/**
|
|
30
|
+
* 未激活状态图标
|
|
31
|
+
*/
|
|
32
|
+
inactiveIcon?: string
|
|
33
|
+
/**
|
|
34
|
+
* 是否显示点类型
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
dot?: boolean
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare interface _Steps {
|
|
41
|
+
new (): {
|
|
42
|
+
$props: AllowedComponentProps &
|
|
43
|
+
VNodeProps &
|
|
44
|
+
StepsProps
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare const Steps: _Steps
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
declare interface StepsItemProps {
|
|
5
|
+
/**
|
|
6
|
+
* 标题文字
|
|
7
|
+
*/
|
|
8
|
+
title?: string
|
|
9
|
+
/**
|
|
10
|
+
* 描述文本
|
|
11
|
+
*/
|
|
12
|
+
current?: string
|
|
13
|
+
/**
|
|
14
|
+
* 图标大小
|
|
15
|
+
* @default 17
|
|
16
|
+
*/
|
|
17
|
+
iconSize?: string | number
|
|
18
|
+
/**
|
|
19
|
+
* 当前步骤是否处于失败状态
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
error?: boolean
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare interface StepsItemSlots {
|
|
26
|
+
/**
|
|
27
|
+
* 自定步骤状态内容
|
|
28
|
+
*/
|
|
29
|
+
['default']?: () => any
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
declare interface _StepsItem {
|
|
33
|
+
new (): {
|
|
34
|
+
$props: AllowedComponentProps &
|
|
35
|
+
VNodeProps &
|
|
36
|
+
StepsItemProps
|
|
37
|
+
$slots: StepsItemSlots
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export declare const StepsItem: _StepsItem
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
declare interface StickyProps {
|
|
5
|
+
/**
|
|
6
|
+
* 吸顶时与顶部的距离,单位rpx
|
|
7
|
+
* @default 0
|
|
8
|
+
*/
|
|
9
|
+
offsetTop?: string | number
|
|
10
|
+
/**
|
|
11
|
+
* 导航栏高度,自定义导航栏时,需要传入此值
|
|
12
|
+
* @default 0
|
|
13
|
+
*/
|
|
14
|
+
customNavHeight?: string | number
|
|
15
|
+
/**
|
|
16
|
+
* 是否禁用吸顶功能
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean
|
|
20
|
+
/**
|
|
21
|
+
* 组件背景颜色
|
|
22
|
+
* @default #ffffff
|
|
23
|
+
*/
|
|
24
|
+
bgColor?: string
|
|
25
|
+
/**
|
|
26
|
+
* 吸顶时的z-index值,NVUE无效
|
|
27
|
+
*/
|
|
28
|
+
zIndex?: string | number
|
|
29
|
+
/**
|
|
30
|
+
* 自定义标识,用于区分是哪一个组件
|
|
31
|
+
*/
|
|
32
|
+
index?: string | number
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare interface StickySlots {
|
|
36
|
+
['default']?: () => any
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare interface _Sticky {
|
|
40
|
+
new (): {
|
|
41
|
+
$props: AllowedComponentProps &
|
|
42
|
+
VNodeProps &
|
|
43
|
+
StickyProps
|
|
44
|
+
$slots: StickySlots
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export declare const Sticky: _Sticky
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
declare interface SubsectionProps {
|
|
5
|
+
/**
|
|
6
|
+
* 选项的数组
|
|
7
|
+
*/
|
|
8
|
+
list?: any[]
|
|
9
|
+
/**
|
|
10
|
+
* 初始化时默认选中的选项索引值
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
current?: string | number
|
|
14
|
+
/**
|
|
15
|
+
* 激活时的颜色
|
|
16
|
+
* @default "#3c9cff"
|
|
17
|
+
*/
|
|
18
|
+
activeColor?: string
|
|
19
|
+
/**
|
|
20
|
+
* 未激活时的颜色
|
|
21
|
+
* @default "#303133"
|
|
22
|
+
*/
|
|
23
|
+
inactiveColor?: string
|
|
24
|
+
/**
|
|
25
|
+
* 模式选择
|
|
26
|
+
* @default "button"
|
|
27
|
+
*/
|
|
28
|
+
mode?: 'button' | 'subsection'
|
|
29
|
+
/**
|
|
30
|
+
* 字体大小,单位px
|
|
31
|
+
* @default 12
|
|
32
|
+
*/
|
|
33
|
+
fontSize?: string | number
|
|
34
|
+
/**
|
|
35
|
+
* 激活选项的字体是否加粗
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
bold?: boolean
|
|
39
|
+
/**
|
|
40
|
+
* 组件背景颜色,`mode`为`button`时有效
|
|
41
|
+
* @default "#eeeeef"
|
|
42
|
+
*/
|
|
43
|
+
bgColor?: string
|
|
44
|
+
/**
|
|
45
|
+
* 从`list`元素对象中读取的键名
|
|
46
|
+
* @default "name"
|
|
47
|
+
*/
|
|
48
|
+
keyName?: string
|
|
49
|
+
/**
|
|
50
|
+
* 分段器选项发生改变时触发
|
|
51
|
+
* @param index 选项的index索引值,从0开始
|
|
52
|
+
*/
|
|
53
|
+
onChange?: (index: number) => any
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare interface _Subsection {
|
|
57
|
+
new (): {
|
|
58
|
+
$props: AllowedComponentProps &
|
|
59
|
+
VNodeProps &
|
|
60
|
+
SubsectionProps
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export declare const Subsection: _Subsection
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface SwipeActionProps {
|
|
4
|
+
/**
|
|
5
|
+
* 是否自动关闭其他swipe按钮组
|
|
6
|
+
* @default true
|
|
7
|
+
*/
|
|
8
|
+
autoClose?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* 点击组件时触发
|
|
11
|
+
* @param index 索引
|
|
12
|
+
*/
|
|
13
|
+
onClick?: (index: number) => any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare interface _SwipeAction {
|
|
17
|
+
new (): {
|
|
18
|
+
$props: AllowedComponentProps &
|
|
19
|
+
VNodeProps &
|
|
20
|
+
SwipeActionProps
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export declare const SwipeAction: _SwipeAction
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface SwipeActionItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* 控制打开或者关闭
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
show?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* 标识符,如果是v-for,可用index索引
|
|
11
|
+
*/
|
|
12
|
+
index?: string | number
|
|
13
|
+
/**
|
|
14
|
+
* 是否禁用
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean
|
|
18
|
+
/**
|
|
19
|
+
* 是否自动关闭其他swipe按钮组
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
autoClose?: boolean
|
|
23
|
+
/**
|
|
24
|
+
* 滑动距离阈值,只有大于此值,才被认为是要打开菜单
|
|
25
|
+
* @default 20
|
|
26
|
+
*/
|
|
27
|
+
threshold?: number
|
|
28
|
+
/**
|
|
29
|
+
* 右侧按钮内容
|
|
30
|
+
*/
|
|
31
|
+
options?: any[]
|
|
32
|
+
/**
|
|
33
|
+
* 动画过渡时间,单位ms
|
|
34
|
+
* @default 300
|
|
35
|
+
*/
|
|
36
|
+
duration?: string | number
|
|
37
|
+
/**
|
|
38
|
+
* 标识符,如果是v-for,可用index索引值
|
|
39
|
+
*/
|
|
40
|
+
name?: string | number
|
|
41
|
+
/**
|
|
42
|
+
* 按钮被点击时触发
|
|
43
|
+
* @param name props参数`name`的值
|
|
44
|
+
* @param index 第几个按钮被点击
|
|
45
|
+
*/
|
|
46
|
+
onClick?: (name: any, index: number) => any
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
declare interface _SwipeActionItem {
|
|
51
|
+
new (): {
|
|
52
|
+
$props: AllowedComponentProps &
|
|
53
|
+
VNodeProps &
|
|
54
|
+
SwipeActionItemProps
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export declare const SwipeActionItem: _SwipeActionItem
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
import { ImageMode } from './image'
|
|
3
|
+
|
|
4
|
+
declare interface SwiperProps {
|
|
5
|
+
/**
|
|
6
|
+
* 轮播图数据
|
|
7
|
+
*/
|
|
8
|
+
list?: any[]
|
|
9
|
+
/**
|
|
10
|
+
* 是否显示面板指示器
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
indicator?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* 指示器激活的颜色
|
|
16
|
+
* @default "#fff"
|
|
17
|
+
*/
|
|
18
|
+
indicatorActiveColor?: string
|
|
19
|
+
/**
|
|
20
|
+
* 指示器非激活颜色
|
|
21
|
+
* @default "rgba(255, 255, 255, 0.35)"
|
|
22
|
+
*/
|
|
23
|
+
indicatorInactiveColor?: string
|
|
24
|
+
/**
|
|
25
|
+
* 指示器样式,可通过bottom,left,right进行定位
|
|
26
|
+
*/
|
|
27
|
+
indicatorStyle?: string | Record<string, any>
|
|
28
|
+
/**
|
|
29
|
+
* 指示器模式
|
|
30
|
+
* @default "line"
|
|
31
|
+
*/
|
|
32
|
+
indicatorMode?: 'line' | 'dot'
|
|
33
|
+
/**
|
|
34
|
+
* 是否自动切换
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
autoplay?: boolean
|
|
38
|
+
/**
|
|
39
|
+
* 当前所在滑块的 index
|
|
40
|
+
* @default 0
|
|
41
|
+
*/
|
|
42
|
+
current?: string | number
|
|
43
|
+
/**
|
|
44
|
+
* 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
45
|
+
*/
|
|
46
|
+
currentItemId?: string
|
|
47
|
+
/**
|
|
48
|
+
* 滑块自动切换时间间隔(ms)
|
|
49
|
+
* @default 3000
|
|
50
|
+
*/
|
|
51
|
+
interval?: string | number
|
|
52
|
+
/**
|
|
53
|
+
* 滑块切换过程所需时间(ms),nvue不支持
|
|
54
|
+
* @default 300
|
|
55
|
+
*/
|
|
56
|
+
duration?: string | number
|
|
57
|
+
/**
|
|
58
|
+
* 播放到末尾后是否重新回到开头
|
|
59
|
+
* @default false
|
|
60
|
+
*/
|
|
61
|
+
circular?: boolean
|
|
62
|
+
/**
|
|
63
|
+
* 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
|
|
64
|
+
* @default 0
|
|
65
|
+
*/
|
|
66
|
+
previousMargin?: string | number
|
|
67
|
+
/**
|
|
68
|
+
* 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
|
|
69
|
+
* @default 0
|
|
70
|
+
*/
|
|
71
|
+
nextMargin?: string | number
|
|
72
|
+
/**
|
|
73
|
+
* 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
76
|
+
acceleration?: boolean
|
|
77
|
+
/**
|
|
78
|
+
* 同时显示的滑块数量,nvue、支付宝小程序不支持
|
|
79
|
+
* @default 1
|
|
80
|
+
*/
|
|
81
|
+
displayMultipleItems?: number
|
|
82
|
+
/**
|
|
83
|
+
* 指定swiper切换缓动动画类型, 只对微信小程序有效
|
|
84
|
+
* @default "default"
|
|
85
|
+
*/
|
|
86
|
+
easingFunction?: 'default' | 'linear' | 'easeInCubic' | 'easeOutCubic' | 'easeInOutCubic'
|
|
87
|
+
/**
|
|
88
|
+
* list数组中指定对象的目标属性名
|
|
89
|
+
* @default "url"
|
|
90
|
+
*/
|
|
91
|
+
keyName?: string
|
|
92
|
+
/**
|
|
93
|
+
* 裁剪模式
|
|
94
|
+
* @default "aspectFill"
|
|
95
|
+
*/
|
|
96
|
+
imgMode?: ImageMode
|
|
97
|
+
/**
|
|
98
|
+
* 组件高度
|
|
99
|
+
* @default 130
|
|
100
|
+
*/
|
|
101
|
+
height?: string | number
|
|
102
|
+
/**
|
|
103
|
+
* 背景颜色
|
|
104
|
+
* @default "#f3f4f6"
|
|
105
|
+
*/
|
|
106
|
+
bgColor?: string
|
|
107
|
+
/**
|
|
108
|
+
* 组件圆角,数值或带单位的字符串
|
|
109
|
+
* @default 4
|
|
110
|
+
*/
|
|
111
|
+
radius?: string | number
|
|
112
|
+
/**
|
|
113
|
+
* 是否加载中
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
loading?: boolean
|
|
117
|
+
/**
|
|
118
|
+
* 是否显示标题,要求数组对象中有title属性
|
|
119
|
+
* @default false
|
|
120
|
+
*/
|
|
121
|
+
showTitle?: boolean
|
|
122
|
+
/**
|
|
123
|
+
* 点击轮播图时触发
|
|
124
|
+
* @param index 点击了第几张图片,从0开始
|
|
125
|
+
*/
|
|
126
|
+
onClick?: (index: number) => any
|
|
127
|
+
/**
|
|
128
|
+
* 轮播图切换时触发(自动或者手动切换)
|
|
129
|
+
* @param index 点击了第几张图片,从0开始
|
|
130
|
+
*/
|
|
131
|
+
onChange?: (index: number) => any
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare interface _Swiper {
|
|
135
|
+
new (): {
|
|
136
|
+
$props: AllowedComponentProps &
|
|
137
|
+
VNodeProps &
|
|
138
|
+
SwiperProps
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export declare const Swiper: _Swiper
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface SwiperIndicatorProps {
|
|
4
|
+
/**
|
|
5
|
+
* 轮播的长度
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
length?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 当前处于活动状态的轮播的索引
|
|
11
|
+
* @default 0
|
|
12
|
+
*/
|
|
13
|
+
current?: string | number
|
|
14
|
+
/**
|
|
15
|
+
* 指示器非激活颜色
|
|
16
|
+
*/
|
|
17
|
+
indicatorActiveColor?: string
|
|
18
|
+
/**
|
|
19
|
+
* 指示器的激活颜色
|
|
20
|
+
*/
|
|
21
|
+
indicatorInactiveColor?: string
|
|
22
|
+
/**
|
|
23
|
+
* 指示器的形式
|
|
24
|
+
* @default "line"
|
|
25
|
+
*/
|
|
26
|
+
indicatorStyle?: 'line' | 'dot'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare interface _SwiperIndicator {
|
|
30
|
+
new (): {
|
|
31
|
+
$props: AllowedComponentProps &
|
|
32
|
+
VNodeProps &
|
|
33
|
+
SwiperIndicatorProps
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export declare const SwiperIndicator: _SwiperIndicator
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface SwitchProps {
|
|
4
|
+
/**
|
|
5
|
+
* 是否处于加载中
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
loading?: boolean
|
|
9
|
+
/**
|
|
10
|
+
* 是否禁用
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* 开关尺寸,单位rpx
|
|
16
|
+
*/
|
|
17
|
+
size?: string | number
|
|
18
|
+
/**
|
|
19
|
+
* 打开时的背景色
|
|
20
|
+
* @default "#2979ff"
|
|
21
|
+
*/
|
|
22
|
+
activeColor?: string
|
|
23
|
+
/**
|
|
24
|
+
* 关闭时的背景色
|
|
25
|
+
* @default "#ffffff"
|
|
26
|
+
*/
|
|
27
|
+
inactiveColor?: string
|
|
28
|
+
/**
|
|
29
|
+
* 通过v-model双向绑定的值
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
value?: string | number | boolean
|
|
33
|
+
/**
|
|
34
|
+
* switch打开时的值
|
|
35
|
+
* @default true
|
|
36
|
+
*/
|
|
37
|
+
activeValue?: string | number | boolean
|
|
38
|
+
/**
|
|
39
|
+
* switch关闭时的值
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
inactiveValue?: string | number | boolean
|
|
43
|
+
/**
|
|
44
|
+
* 是否开启异步变更,开启后需要手动控制输入值
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
asyncChange?: boolean
|
|
48
|
+
/**
|
|
49
|
+
* 圆点与外边框的距离
|
|
50
|
+
* @default 0
|
|
51
|
+
*/
|
|
52
|
+
space?: string | number
|
|
53
|
+
/**
|
|
54
|
+
* 在`switch`打开或关闭时触发
|
|
55
|
+
* @param value 打开时为`activeValue`值,关闭时为`inactiveValue`值
|
|
56
|
+
*/
|
|
57
|
+
onChange?: (value: any) => any
|
|
58
|
+
/**
|
|
59
|
+
* 在`switch`打开或关闭时触发(没开启异步)
|
|
60
|
+
* @param value 打开时为`activeValue`值,关闭时为`inactiveValue`值
|
|
61
|
+
*/
|
|
62
|
+
onInput?: (value: any) => any
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
declare interface _Switch {
|
|
66
|
+
new (): {
|
|
67
|
+
$props: AllowedComponentProps &
|
|
68
|
+
VNodeProps &
|
|
69
|
+
SwitchProps
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export declare const Switch: _Switch
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { AllowedComponentProps, VNodeProps } from './_common'
|
|
2
|
+
|
|
3
|
+
declare interface TabbarProps {
|
|
4
|
+
/**
|
|
5
|
+
* 当前匹配项的name
|
|
6
|
+
* @default null
|
|
7
|
+
*/
|
|
8
|
+
value?: string | number
|
|
9
|
+
/**
|
|
10
|
+
* 是否为iPhoneX留出底部安全距离
|
|
11
|
+
* @default true
|
|
12
|
+
*/
|
|
13
|
+
safeAreaInsetBottom?: boolean
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示上方边框
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
border?: boolean
|
|
19
|
+
/**
|
|
20
|
+
* 元素层级z-index
|
|
21
|
+
* @default 1
|
|
22
|
+
*/
|
|
23
|
+
zIndex?: string | number
|
|
24
|
+
/**
|
|
25
|
+
* 选中标签的颜色
|
|
26
|
+
* @default "#1989fa"
|
|
27
|
+
*/
|
|
28
|
+
activeColor?: string
|
|
29
|
+
/**
|
|
30
|
+
* 未选中标签的颜色
|
|
31
|
+
* @default "#7d7e80"
|
|
32
|
+
*/
|
|
33
|
+
inactiveColor?: string
|
|
34
|
+
/**
|
|
35
|
+
* 是否固定在底部
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
fixed?: boolean
|
|
39
|
+
/**
|
|
40
|
+
* fixed定位固定在底部时,是否生成一个等高元素防止塌陷
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
placeholder?: boolean
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare interface _Tabbar {
|
|
47
|
+
new (): {
|
|
48
|
+
$props: AllowedComponentProps &
|
|
49
|
+
VNodeProps &
|
|
50
|
+
TabbarProps
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export declare const Tabbar: _Tabbar
|