uview-plus 3.2.6 → 3.2.7
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 +5 -0
- package/components/u-action-sheet/props.js +11 -10
- package/components/u-album/props.js +12 -11
- package/components/u-alert/props.js +9 -8
- package/components/u-avatar/props.js +15 -14
- package/components/u-avatar-group/props.js +10 -9
- package/components/u-back-top/props.js +11 -10
- package/components/u-badge/props.js +15 -14
- package/components/u-button/props.js +29 -37
- package/components/u-calendar/props.js +28 -27
- package/components/u-car-keyboard/props.js +1 -0
- package/components/u-cell/props.js +21 -20
- package/components/u-cell/u-cell.vue +3 -2
- package/components/u-cell-group/props.js +3 -2
- package/components/u-checkbox/props.js +14 -13
- package/components/u-checkbox-group/props.js +17 -16
- package/components/u-circle-progress/props.js +2 -1
- package/components/u-code/props.js +7 -6
- package/components/u-code-input/props.js +17 -16
- package/components/u-col/props.js +6 -5
- package/components/u-collapse/props.js +4 -3
- package/components/u-collapse-item/props.js +12 -11
- package/components/u-column-notice/props.js +11 -10
- package/components/u-count-down/props.js +5 -4
- package/components/u-count-to/props.js +12 -11
- package/components/u-datetime-picker/props.js +25 -24
- package/components/u-divider/props.js +9 -8
- package/components/u-dropdown/props.js +1 -0
- package/components/u-dropdown-item/props.js +1 -0
- package/components/u-dropdown-item/u-dropdown-item.vue +3 -5
- package/components/u-empty/props.js +12 -11
- package/components/u-form/props.js +9 -8
- package/components/u-form-item/props.js +11 -10
- package/components/u-gap/props.js +5 -4
- package/components/u-grid/props.js +4 -3
- package/components/u-grid-item/props.js +3 -2
- package/components/u-icon/props.js +18 -17
- package/components/u-image/props.js +17 -16
- package/components/u-index-anchor/props.js +6 -5
- package/components/u-index-item/props.js +1 -0
- package/components/u-index-list/props.js +6 -5
- package/components/u-input/props.js +36 -35
- package/components/u-keyboard/props.js +17 -16
- package/components/u-line/props.js +7 -6
- package/components/u-line-progress/props.js +6 -5
- package/components/u-link/props.js +8 -7
- package/components/u-list/props.js +15 -14
- package/components/u-list-item/props.js +2 -1
- package/components/u-loading-icon/props.js +12 -11
- package/components/u-loading-page/props.js +10 -9
- package/components/u-loadmore/props.js +19 -18
- package/components/u-modal/props.js +17 -16
- package/components/u-navbar/props.js +17 -16
- package/components/u-no-network/props.js +4 -3
- package/components/u-notice-bar/props.js +14 -13
- package/components/u-notify/props.js +10 -9
- package/components/u-number-box/props.js +23 -22
- package/components/u-number-keyboard/props.js +4 -3
- package/components/u-overlay/props.js +5 -4
- package/components/u-parse/props.js +9 -8
- package/components/u-picker/props.js +17 -16
- package/components/u-picker-column/props.js +1 -0
- package/components/u-popup/props.js +16 -15
- package/components/u-radio/props.js +14 -13
- package/components/u-radio-group/props.js +18 -17
- package/components/u-rate/props.js +15 -14
- package/components/u-read-more/props.js +9 -8
- package/components/u-row/props.js +4 -3
- package/components/u-row-notice/props.js +8 -7
- package/components/u-safe-bottom/props.js +1 -0
- package/components/u-scroll-list/props.js +7 -6
- package/components/u-search/props.js +25 -24
- package/components/u-skeleton/props.js +12 -11
- package/components/u-slider/props.js +12 -11
- package/components/u-status-bar/props.js +2 -1
- package/components/u-steps/props.js +8 -7
- package/components/u-steps-item/props.js +5 -4
- package/components/u-sticky/props.js +7 -6
- package/components/u-subsection/props.js +10 -9
- package/components/u-swipe-action/props.js +2 -1
- package/components/u-swipe-action-item/props.js +8 -7
- package/components/u-swiper/props.js +25 -24
- package/components/u-swiper-indicator/props.js +6 -5
- package/components/u-switch/props.js +12 -11
- package/components/u-tabbar/props.js +9 -8
- package/components/u-tabbar-item/props.js +7 -6
- package/components/u-table/props.js +1 -0
- package/components/u-tabs/props.js +13 -12
- package/components/u-tabs-item/props.js +1 -0
- package/components/u-tag/props.js +20 -18
- package/components/u-td/props.js +1 -0
- package/components/u-text/props.js +22 -21
- package/components/u-textarea/props.js +24 -23
- package/components/u-toolbar/props.js +7 -6
- package/components/u-tooltip/props.js +12 -11
- package/components/u-tr/props.js +1 -0
- package/components/u-transition/props.js +5 -4
- package/components/u-upload/props.js +23 -22
- package/index.js +16 -1
- package/libs/function/index.js +30 -23
- package/package.json +1 -1
|
@@ -1,63 +1,64 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 最小可选值
|
|
4
5
|
min: {
|
|
5
6
|
type: [Number, String],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.slider.min
|
|
7
8
|
},
|
|
8
9
|
// 最大可选值
|
|
9
10
|
max: {
|
|
10
11
|
type: [Number, String],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.slider.max
|
|
12
13
|
},
|
|
13
14
|
// 步长,取值必须大于 0,并且可被(max - min)整除
|
|
14
15
|
step: {
|
|
15
16
|
type: [Number, String],
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.slider.step
|
|
17
18
|
},
|
|
18
19
|
// #ifdef VUE3
|
|
19
20
|
// 当前取值
|
|
20
21
|
modelValue: {
|
|
21
22
|
type: [String, Number],
|
|
22
|
-
default: () =>
|
|
23
|
+
default: () => defProps.slider.value
|
|
23
24
|
},
|
|
24
25
|
// #endif
|
|
25
26
|
// #ifdef VUE2
|
|
26
27
|
// 当前取值
|
|
27
28
|
value: {
|
|
28
29
|
type: [String, Number],
|
|
29
|
-
default: () =>
|
|
30
|
+
default: () => defProps.slider.value
|
|
30
31
|
},
|
|
31
32
|
// #endif
|
|
32
33
|
// 滑块右侧已选择部分的背景色
|
|
33
34
|
activeColor: {
|
|
34
35
|
type: String,
|
|
35
|
-
default: () =>
|
|
36
|
+
default: () => defProps.slider.activeColor
|
|
36
37
|
},
|
|
37
38
|
// 滑块左侧未选择部分的背景色
|
|
38
39
|
inactiveColor: {
|
|
39
40
|
type: String,
|
|
40
|
-
default: () =>
|
|
41
|
+
default: () => defProps.slider.inactiveColor
|
|
41
42
|
},
|
|
42
43
|
// 滑块的大小,取值范围为 12 - 28
|
|
43
44
|
blockSize: {
|
|
44
45
|
type: [Number, String],
|
|
45
|
-
default: () =>
|
|
46
|
+
default: () => defProps.slider.blockSize
|
|
46
47
|
},
|
|
47
48
|
// 滑块的颜色
|
|
48
49
|
blockColor: {
|
|
49
50
|
type: String,
|
|
50
|
-
default: () =>
|
|
51
|
+
default: () => defProps.slider.blockColor
|
|
51
52
|
},
|
|
52
53
|
// 禁用状态
|
|
53
54
|
disabled: {
|
|
54
55
|
type: Boolean,
|
|
55
|
-
default: () =>
|
|
56
|
+
default: () => defProps.slider.disabled
|
|
56
57
|
},
|
|
57
58
|
// 是否显示当前的选择值
|
|
58
59
|
showValue: {
|
|
59
60
|
type: Boolean,
|
|
60
|
-
default: () =>
|
|
61
|
+
default: () => defProps.slider.showValue
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
64
|
}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 排列方向
|
|
4
5
|
direction: {
|
|
5
6
|
type: String,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.steps.direction
|
|
7
8
|
},
|
|
8
9
|
// 设置第几个步骤
|
|
9
10
|
current: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.steps.current
|
|
12
13
|
},
|
|
13
14
|
// 激活状态颜色
|
|
14
15
|
activeColor: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.steps.activeColor
|
|
17
18
|
},
|
|
18
19
|
// 未激活状态颜色
|
|
19
20
|
inactiveColor: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.steps.inactiveColor
|
|
22
23
|
},
|
|
23
24
|
// 激活状态的图标
|
|
24
25
|
activeIcon: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.steps.activeIcon
|
|
27
28
|
},
|
|
28
29
|
// 未激活状态图标
|
|
29
30
|
inactiveIcon: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.steps.inactiveIcon
|
|
32
33
|
},
|
|
33
34
|
// 是否显示点类型
|
|
34
35
|
dot: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.steps.dot
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 标题
|
|
4
5
|
title: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.stepsItem.title
|
|
7
8
|
},
|
|
8
9
|
// 描述文本
|
|
9
10
|
desc: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.stepsItem.desc
|
|
12
13
|
},
|
|
13
14
|
// 图标大小
|
|
14
15
|
iconSize: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.stepsItem.iconSize
|
|
17
18
|
},
|
|
18
19
|
// 当前步骤是否处于失败状态
|
|
19
20
|
error: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.stepsItem.error
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 吸顶容器到顶部某个距离的时候,进行吸顶,在H5平台,NavigationBar为44px
|
|
4
5
|
offsetTop: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.sticky.offsetTop
|
|
7
8
|
},
|
|
8
9
|
// 自定义导航栏的高度
|
|
9
10
|
customNavHeight: {
|
|
@@ -13,28 +14,28 @@ export default {
|
|
|
13
14
|
default: 44,
|
|
14
15
|
// #endif
|
|
15
16
|
// #ifndef H5
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.sticky.customNavHeight
|
|
17
18
|
// #endif
|
|
18
19
|
},
|
|
19
20
|
// 是否开启吸顶功能
|
|
20
21
|
disabled: {
|
|
21
22
|
type: Boolean,
|
|
22
|
-
default: () =>
|
|
23
|
+
default: () => defProps.sticky.disabled
|
|
23
24
|
},
|
|
24
25
|
// 吸顶区域的背景颜色
|
|
25
26
|
bgColor: {
|
|
26
27
|
type: String,
|
|
27
|
-
default: () =>
|
|
28
|
+
default: () => defProps.sticky.bgColor
|
|
28
29
|
},
|
|
29
30
|
// z-index值
|
|
30
31
|
zIndex: {
|
|
31
32
|
type: [String, Number],
|
|
32
|
-
default: () =>
|
|
33
|
+
default: () => defProps.sticky.zIndex
|
|
33
34
|
},
|
|
34
35
|
// 列表中的索引值
|
|
35
36
|
index: {
|
|
36
37
|
type: [String, Number],
|
|
37
|
-
default: () =>
|
|
38
|
+
default: () => defProps.sticky.index
|
|
38
39
|
}
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -1,49 +1,50 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// tab的数据
|
|
4
5
|
list: {
|
|
5
6
|
type: Array,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.subsection.list
|
|
7
8
|
},
|
|
8
9
|
// 当前活动的tab的index
|
|
9
10
|
current: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.subsection.current
|
|
12
13
|
},
|
|
13
14
|
// 激活的颜色
|
|
14
15
|
activeColor: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.subsection.activeColor
|
|
17
18
|
},
|
|
18
19
|
// 未激活的颜色
|
|
19
20
|
inactiveColor: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.subsection.inactiveColor
|
|
22
23
|
},
|
|
23
24
|
// 模式选择,mode=button为按钮形式,mode=subsection时为分段模式
|
|
24
25
|
mode: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.subsection.mode
|
|
27
28
|
},
|
|
28
29
|
// 字体大小
|
|
29
30
|
fontSize: {
|
|
30
31
|
type: [String, Number],
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.subsection.fontSize
|
|
32
33
|
},
|
|
33
34
|
// 激活tab的字体是否加粗
|
|
34
35
|
bold: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.subsection.bold
|
|
37
38
|
},
|
|
38
39
|
// mode = button时,组件背景颜色
|
|
39
40
|
bgColor: {
|
|
40
41
|
type: String,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.subsection.bgColor
|
|
42
43
|
},
|
|
43
44
|
// 从list元素对象中读取的键名
|
|
44
45
|
keyName: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.subsection.keyName
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 控制打开或者关闭
|
|
4
5
|
show: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.swipeActionItem.show
|
|
7
8
|
},
|
|
8
9
|
// 标识符,如果是v-for,可用index索引值
|
|
9
10
|
name: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.swipeActionItem.name
|
|
12
13
|
},
|
|
13
14
|
// 是否禁用
|
|
14
15
|
disabled: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.swipeActionItem.disabled
|
|
17
18
|
},
|
|
18
19
|
// 是否自动关闭其他swipe按钮组
|
|
19
20
|
autoClose: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.swipeActionItem.autoClose
|
|
22
23
|
},
|
|
23
24
|
// 滑动距离阈值,只有大于此值,才被认为是要打开菜单
|
|
24
25
|
threshold: {
|
|
25
26
|
type: Number,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.swipeActionItem.threshold
|
|
27
28
|
},
|
|
28
29
|
// 右侧按钮内容
|
|
29
30
|
options: {
|
|
30
31
|
type: Array,
|
|
31
32
|
default() {
|
|
32
|
-
return
|
|
33
|
+
return defProps.swipeActionItem.rightOptions
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
// 动画过渡时间,单位ms
|
|
36
37
|
duration: {
|
|
37
38
|
type: [String, Number],
|
|
38
|
-
default: () =>
|
|
39
|
+
default: () => defProps.swipeActionItem.duration
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
@@ -1,125 +1,126 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 列表数组,元素可为字符串,如为对象可通过keyName指定目标属性名
|
|
4
5
|
list: {
|
|
5
6
|
type: Array,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.swiper.list
|
|
7
8
|
},
|
|
8
9
|
// 是否显示面板指示器
|
|
9
10
|
indicator: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.swiper.indicator
|
|
12
13
|
},
|
|
13
14
|
// 指示器非激活颜色
|
|
14
15
|
indicatorActiveColor: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.swiper.indicatorActiveColor
|
|
17
18
|
},
|
|
18
19
|
// 指示器的激活颜色
|
|
19
20
|
indicatorInactiveColor: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.swiper.indicatorInactiveColor
|
|
22
23
|
},
|
|
23
24
|
// 指示器样式,可通过bottom,left,right进行定位
|
|
24
25
|
indicatorStyle: {
|
|
25
26
|
type: [String, Object],
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.swiper.indicatorStyle
|
|
27
28
|
},
|
|
28
29
|
// 指示器模式,line-线型,dot-点型
|
|
29
30
|
indicatorMode: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.swiper.indicatorMode
|
|
32
33
|
},
|
|
33
34
|
// 是否自动切换
|
|
34
35
|
autoplay: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.swiper.autoplay
|
|
37
38
|
},
|
|
38
39
|
// 当前所在滑块的 index
|
|
39
40
|
current: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.swiper.current
|
|
42
43
|
},
|
|
43
44
|
// 当前所在滑块的 item-id ,不能与 current 被同时指定
|
|
44
45
|
currentItemId: {
|
|
45
46
|
type: String,
|
|
46
|
-
default: () =>
|
|
47
|
+
default: () => defProps.swiper.currentItemId
|
|
47
48
|
},
|
|
48
49
|
// 滑块自动切换时间间隔
|
|
49
50
|
interval: {
|
|
50
51
|
type: [String, Number],
|
|
51
|
-
default: () =>
|
|
52
|
+
default: () => defProps.swiper.interval
|
|
52
53
|
},
|
|
53
54
|
// 滑块切换过程所需时间
|
|
54
55
|
duration: {
|
|
55
56
|
type: [String, Number],
|
|
56
|
-
default: () =>
|
|
57
|
+
default: () => defProps.swiper.duration
|
|
57
58
|
},
|
|
58
59
|
// 播放到末尾后是否重新回到开头
|
|
59
60
|
circular: {
|
|
60
61
|
type: Boolean,
|
|
61
|
-
default: () =>
|
|
62
|
+
default: () => defProps.swiper.circular
|
|
62
63
|
},
|
|
63
64
|
// 前边距,可用于露出前一项的一小部分,nvue和支付宝不支持
|
|
64
65
|
previousMargin: {
|
|
65
66
|
type: [String, Number],
|
|
66
|
-
default: () =>
|
|
67
|
+
default: () => defProps.swiper.previousMargin
|
|
67
68
|
},
|
|
68
69
|
// 后边距,可用于露出后一项的一小部分,nvue和支付宝不支持
|
|
69
70
|
nextMargin: {
|
|
70
71
|
type: [String, Number],
|
|
71
|
-
default: () =>
|
|
72
|
+
default: () => defProps.swiper.nextMargin
|
|
72
73
|
},
|
|
73
74
|
// 当开启时,会根据滑动速度,连续滑动多屏,支付宝不支持
|
|
74
75
|
acceleration: {
|
|
75
76
|
type: Boolean,
|
|
76
|
-
default: () =>
|
|
77
|
+
default: () => defProps.swiper.acceleration
|
|
77
78
|
},
|
|
78
79
|
// 同时显示的滑块数量,nvue、支付宝小程序不支持
|
|
79
80
|
displayMultipleItems: {
|
|
80
81
|
type: Number,
|
|
81
|
-
default: () =>
|
|
82
|
+
default: () => defProps.swiper.displayMultipleItems
|
|
82
83
|
},
|
|
83
84
|
// 指定swiper切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic
|
|
84
85
|
// 只对微信小程序有效
|
|
85
86
|
easingFunction: {
|
|
86
87
|
type: String,
|
|
87
|
-
default: () =>
|
|
88
|
+
default: () => defProps.swiper.easingFunction
|
|
88
89
|
},
|
|
89
90
|
// list数组中指定对象的目标属性名
|
|
90
91
|
keyName: {
|
|
91
92
|
type: String,
|
|
92
|
-
default: () =>
|
|
93
|
+
default: () => defProps.swiper.keyName
|
|
93
94
|
},
|
|
94
95
|
// 图片的裁剪模式
|
|
95
96
|
imgMode: {
|
|
96
97
|
type: String,
|
|
97
|
-
default: () =>
|
|
98
|
+
default: () => defProps.swiper.imgMode
|
|
98
99
|
},
|
|
99
100
|
// 组件高度
|
|
100
101
|
height: {
|
|
101
102
|
type: [String, Number],
|
|
102
|
-
default: () =>
|
|
103
|
+
default: () => defProps.swiper.height
|
|
103
104
|
},
|
|
104
105
|
// 背景颜色
|
|
105
106
|
bgColor: {
|
|
106
107
|
type: String,
|
|
107
|
-
default: () =>
|
|
108
|
+
default: () => defProps.swiper.bgColor
|
|
108
109
|
},
|
|
109
110
|
// 组件圆角,数值或带单位的字符串
|
|
110
111
|
radius: {
|
|
111
112
|
type: [String, Number],
|
|
112
|
-
default: () =>
|
|
113
|
+
default: () => defProps.swiper.radius
|
|
113
114
|
},
|
|
114
115
|
// 是否加载中
|
|
115
116
|
loading: {
|
|
116
117
|
type: Boolean,
|
|
117
|
-
default: () =>
|
|
118
|
+
default: () => defProps.swiper.loading
|
|
118
119
|
},
|
|
119
120
|
// 是否显示标题,要求数组对象中有title属性
|
|
120
121
|
showTitle: {
|
|
121
122
|
type: Boolean,
|
|
122
|
-
default: () =>
|
|
123
|
+
default: () => defProps.swiper.showTitle
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
}
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 轮播的长度
|
|
4
5
|
length: {
|
|
5
6
|
type: [String, Number],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.swiperIndicator.length
|
|
7
8
|
},
|
|
8
9
|
// 当前处于活动状态的轮播的索引
|
|
9
10
|
current: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.swiperIndicator.current
|
|
12
13
|
},
|
|
13
14
|
// 指示器非激活颜色
|
|
14
15
|
indicatorActiveColor: {
|
|
15
16
|
type: String,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.swiperIndicator.indicatorActiveColor
|
|
17
18
|
},
|
|
18
19
|
// 指示器的激活颜色
|
|
19
20
|
indicatorInactiveColor: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.swiperIndicator.indicatorInactiveColor
|
|
22
23
|
},
|
|
23
24
|
// 指示器模式,line-线型,dot-点型
|
|
24
25
|
indicatorMode: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.swiperIndicator.indicatorMode
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
}
|
|
@@ -1,62 +1,63 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 是否为加载中状态
|
|
4
5
|
loading: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.switch.loading
|
|
7
8
|
},
|
|
8
9
|
// 是否为禁用装填
|
|
9
10
|
disabled: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.switch.disabled
|
|
12
13
|
},
|
|
13
14
|
// 开关尺寸,单位px
|
|
14
15
|
size: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.switch.size
|
|
17
18
|
},
|
|
18
19
|
// 打开时的背景颜色
|
|
19
20
|
activeColor: {
|
|
20
21
|
type: String,
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.switch.activeColor
|
|
22
23
|
},
|
|
23
24
|
// 关闭时的背景颜色
|
|
24
25
|
inactiveColor: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.switch.inactiveColor
|
|
27
28
|
},
|
|
28
29
|
// 通过v-model双向绑定的值
|
|
29
30
|
// #ifdef VUE3
|
|
30
31
|
modelValue: {
|
|
31
32
|
type: [Boolean, String, Number],
|
|
32
|
-
default: () =>
|
|
33
|
+
default: () => defProps.switch.value
|
|
33
34
|
},
|
|
34
35
|
// #endif
|
|
35
36
|
// #ifdef VUE2
|
|
36
37
|
value: {
|
|
37
38
|
type: [Boolean, String, Number],
|
|
38
|
-
default: () =>
|
|
39
|
+
default: () => defProps.switch.value
|
|
39
40
|
},
|
|
40
41
|
// #endif
|
|
41
42
|
// switch打开时的值
|
|
42
43
|
activeValue: {
|
|
43
44
|
type: [String, Number, Boolean],
|
|
44
|
-
default: () =>
|
|
45
|
+
default: () => defProps.switch.activeValue
|
|
45
46
|
},
|
|
46
47
|
// switch关闭时的值
|
|
47
48
|
inactiveValue: {
|
|
48
49
|
type: [String, Number, Boolean],
|
|
49
|
-
default: () =>
|
|
50
|
+
default: () => defProps.switch.inactiveValue
|
|
50
51
|
},
|
|
51
52
|
// 是否开启异步变更,开启后需要手动控制输入值
|
|
52
53
|
asyncChange: {
|
|
53
54
|
type: Boolean,
|
|
54
|
-
default: () =>
|
|
55
|
+
default: () => defProps.switch.asyncChange
|
|
55
56
|
},
|
|
56
57
|
// 圆点与外边框的距离
|
|
57
58
|
space: {
|
|
58
59
|
type: [String, Number],
|
|
59
|
-
default: () =>
|
|
60
|
+
default: () => defProps.switch.space
|
|
60
61
|
}
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
+
import defProps from '../../libs/config/props.js';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 当前匹配项的name
|
|
4
5
|
value: {
|
|
5
6
|
type: [String, Number, null],
|
|
6
|
-
default: () =>
|
|
7
|
+
default: () => defProps.tabbar.value
|
|
7
8
|
},
|
|
8
9
|
// 是否为iPhoneX留出底部安全距离
|
|
9
10
|
safeAreaInsetBottom: {
|
|
10
11
|
type: Boolean,
|
|
11
|
-
default: () =>
|
|
12
|
+
default: () => defProps.tabbar.safeAreaInsetBottom
|
|
12
13
|
},
|
|
13
14
|
// 是否显示上方边框
|
|
14
15
|
border: {
|
|
15
16
|
type: Boolean,
|
|
16
|
-
default: () =>
|
|
17
|
+
default: () => defProps.tabbar.border
|
|
17
18
|
},
|
|
18
19
|
// 元素层级z-index
|
|
19
20
|
zIndex: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default: () =>
|
|
22
|
+
default: () => defProps.tabbar.zIndex
|
|
22
23
|
},
|
|
23
24
|
// 选中标签的颜色
|
|
24
25
|
activeColor: {
|
|
25
26
|
type: String,
|
|
26
|
-
default: () =>
|
|
27
|
+
default: () => defProps.tabbar.activeColor
|
|
27
28
|
},
|
|
28
29
|
// 未选中标签的颜色
|
|
29
30
|
inactiveColor: {
|
|
30
31
|
type: String,
|
|
31
|
-
default: () =>
|
|
32
|
+
default: () => defProps.tabbar.inactiveColor
|
|
32
33
|
},
|
|
33
34
|
// 是否固定在底部
|
|
34
35
|
fixed: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default: () =>
|
|
37
|
+
default: () => defProps.tabbar.fixed
|
|
37
38
|
},
|
|
38
39
|
// fixed定位固定在底部时,是否生成一个等高元素防止塌陷
|
|
39
40
|
placeholder: {
|
|
40
41
|
type: Boolean,
|
|
41
|
-
default: () =>
|
|
42
|
+
default: () => defProps.tabbar.placeholder
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}
|