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