uview-plus 3.1.49 → 3.1.50
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/README.md +10 -10
- package/changelog.md +5 -14
- 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-back-top/u-back-top.vue +1 -1
- package/components/u-badge/props.js +15 -14
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-button/props.js +29 -28
- package/components/u-calendar/month.vue +1 -1
- package/components/u-calendar/props.js +28 -27
- package/components/u-car-keyboard/props.js +1 -0
- package/components/u-car-keyboard/u-car-keyboard.vue +1 -1
- package/components/u-cell/props.js +18 -17
- package/components/u-cell/u-cell.vue +3 -12
- package/components/u-cell-group/props.js +3 -2
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/props.js +14 -13
- package/components/u-checkbox/u-checkbox.vue +1 -1
- 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/u-code.vue +0 -5
- 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-down/u-count-down.vue +1 -6
- package/components/u-count-to/props.js +12 -11
- package/components/u-datetime-picker/props.js +25 -37
- package/components/u-datetime-picker/u-datetime-picker.vue +3 -22
- 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-empty/props.js +12 -11
- package/components/u-form/props.js +9 -8
- package/components/u-form/u-form.vue +1 -1
- package/components/u-form-item/props.js +9 -13
- package/components/u-form-item/u-form-item.vue +0 -1
- 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-grid-item/u-grid-item.vue +0 -5
- package/components/u-icon/props.js +18 -17
- package/components/u-icon/u-icon.vue +6 -9
- package/components/u-image/props.js +17 -16
- package/components/u-image/u-image.vue +1 -1
- package/components/u-index-anchor/props.js +6 -5
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/props.js +1 -0
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/props.js +6 -5
- package/components/u-index-list/u-index-list.vue +2 -3
- package/components/u-input/props.js +36 -35
- package/components/u-input/u-input.vue +4 -10
- 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-notify/u-notify.vue +0 -5
- package/components/u-number-box/props.js +23 -22
- package/components/u-number-box/u-number-box.vue +1 -21
- 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-parse/u-parse.vue +1 -6
- 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-row-notice/u-row-notice.vue +0 -5
- 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-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/props.js +8 -7
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/props.js +5 -4
- package/components/u-steps-item/u-steps-item.vue +1 -1
- package/components/u-sticky/props.js +7 -6
- package/components/u-sticky/u-sticky.vue +0 -5
- package/components/u-subsection/props.js +10 -9
- package/components/u-swipe-action/props.js +2 -1
- package/components/u-swipe-action-item/nvue.js +0 -5
- package/components/u-swipe-action-item/props.js +7 -6
- 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 +16 -15
- 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-toast/u-toast.vue +0 -5
- 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-transition/transition.js +9 -8
- package/components/u-transition/u-transition.vue +1 -1
- package/components/u-upload/props.js +23 -22
- package/components/u-upload/u-upload.vue +1 -1
- package/index.js +5 -1
- 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 +0 -1
- 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 +1 -11
- package/libs/css/flex.scss +71 -73
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
[](https://github.com/ijry/uview-plus)
|
|
8
8
|
[](https://github.com/ijry/uview-plus)
|
|
9
9
|
[](https://github.com/ijry/uview-plus/issues)
|
|
10
|
-
[](https://gitee.com/
|
|
10
|
+
[](https://gitee.com/uiadmin/uview-plus/releases)
|
|
11
11
|
[](https://en.wikipedia.org/wiki/MIT_License)
|
|
12
12
|
|
|
13
13
|
## 说明
|
|
14
14
|
|
|
15
15
|
uview-plus,是uni-app全面兼容vue3/nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uview-plus是基于uView2.x移植的支持vue3的版本,感谢uView。
|
|
16
16
|
|
|
17
|
-
## [官方文档:https://uview-plus
|
|
17
|
+
## [官方文档:https://uiadmin.net/uview-plus](https://uiadmin.net/uview-plus)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
## 预览
|
|
@@ -22,18 +22,18 @@ uview-plus,是uni-app全面兼容vue3/nvue的uni-app生态框架,全面的
|
|
|
22
22
|
您可以通过**微信**扫码,查看最佳的演示效果。
|
|
23
23
|
<br>
|
|
24
24
|
<br>
|
|
25
|
-
<img src="https://uview-plus
|
|
25
|
+
<img src="https://uiadmin.net/uview-plus/common/h5_qrcode.png" width="220" height="220" >
|
|
26
26
|
|
|
27
27
|
## 链接
|
|
28
28
|
|
|
29
|
-
- [官方文档](https://uview-plus
|
|
30
|
-
- [更新日志](https://uview-plus
|
|
31
|
-
- [升级指南](https://uview-plus
|
|
32
|
-
- [关于我们](https://uview-plus
|
|
29
|
+
- [官方文档](https://uiadmin.net/uview-plus)
|
|
30
|
+
- [更新日志](https://uiadmin.net/uview-plus/components/changelog.html)
|
|
31
|
+
- [升级指南](https://uiadmin.net/uview-plus/components/changeGuide.html)
|
|
32
|
+
- [关于我们](https://uiadmin.net/uview-plus/cooperation/about.html)
|
|
33
33
|
|
|
34
34
|
## 交流反馈
|
|
35
35
|
|
|
36
|
-
欢迎加入我们的QQ群交流反馈:[点此跳转](https://uview-plus
|
|
36
|
+
欢迎加入我们的QQ群交流反馈:[点此跳转](https://uiadmin.net/uview-plus/components/addQQGroup.html)
|
|
37
37
|
|
|
38
38
|
## 关于PR
|
|
39
39
|
|
|
@@ -44,11 +44,11 @@ uview-plus,是uni-app全面兼容vue3/nvue的uni-app生态框架,全面的
|
|
|
44
44
|
|
|
45
45
|
#### **uni-app插件市场链接** —— [https://ext.dcloud.net.cn/plugin?name=uview-plus](https://ext.dcloud.net.cn/plugin?name=uview-plus)
|
|
46
46
|
|
|
47
|
-
请通过[官网安装文档](https://uview-plus
|
|
47
|
+
请通过[官网安装文档](https://uiadmin.net/uview-plus/components/install.html)了解更详细的内容
|
|
48
48
|
|
|
49
49
|
## 快速上手
|
|
50
50
|
|
|
51
|
-
请通过[快速上手](https://uview-plus
|
|
51
|
+
请通过[快速上手](https://uiadmin.net/uview-plus/components/quickstart.html)了解更详细的内容
|
|
52
52
|
|
|
53
53
|
## 使用方法
|
|
54
54
|
配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。
|
package/changelog.md
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
## 3.1.
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
fix:[plugin:uni:pre-css] Unbalanced delimiter found in string
|
|
7
|
-
## 3.1.47(2024-03-18)
|
|
8
|
-
fix: setConfig设置组件默认参数无效问题
|
|
9
|
-
fix: 修复自定义图标无效问题
|
|
10
|
-
feat: 增加u-form-item单独设置规则变量
|
|
11
|
-
fix:#293小程序是自定义导航栏的时候即传了customNavHeight的时候会出现跳转偏移的情况
|
|
12
|
-
|
|
13
|
-
## 3.1.46(2024-01-29)
|
|
14
|
-
beforeUnmount
|
|
1
|
+
## 3.1.50(2024-04-07)
|
|
2
|
+
优化时间选择器自带输入框格式化显示
|
|
3
|
+
防止按钮文字换行
|
|
4
|
+
修复订单列表模板滑动
|
|
5
|
+
增加u-qrcode二维码组件
|
|
15
6
|
## 3.1.45(2024-01-24)
|
|
16
7
|
fix: #262ext组件为超链接的情况下size属性不生效
|
|
17
8
|
fix: #263最新版本3.1.42中微信小程序u-swipe-action-item报错
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 操作菜单是否展示 (默认false)
|
|
4
5
|
show: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.actionSheet.show
|
|
7
8
|
},
|
|
8
9
|
// 标题
|
|
9
10
|
title: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.actionSheet.title
|
|
12
13
|
},
|
|
13
14
|
// 选项上方的描述信息
|
|
14
15
|
description: {
|
|
15
16
|
type: String,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.actionSheet.description
|
|
17
18
|
},
|
|
18
19
|
// 数据
|
|
19
20
|
actions: {
|
|
20
21
|
type: Array,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.actionSheet.actions
|
|
22
23
|
},
|
|
23
24
|
// 取消按钮的文字,不为空时显示按钮
|
|
24
25
|
cancelText: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.actionSheet.cancelText
|
|
27
28
|
},
|
|
28
29
|
// 点击某个菜单项时是否关闭弹窗
|
|
29
30
|
closeOnClickAction: {
|
|
30
31
|
type: Boolean,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.actionSheet.closeOnClickAction
|
|
32
33
|
},
|
|
33
34
|
// 处理底部安全区(默认true)
|
|
34
35
|
safeAreaInsetBottom: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.actionSheet.safeAreaInsetBottom
|
|
37
38
|
},
|
|
38
39
|
// 小程序的打开方式
|
|
39
40
|
openType: {
|
|
40
41
|
type: String,
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.actionSheet.openType
|
|
42
43
|
},
|
|
43
44
|
// 点击遮罩是否允许关闭 (默认true)
|
|
44
45
|
closeOnClickOverlay: {
|
|
45
46
|
type: Boolean,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.actionSheet.closeOnClickOverlay
|
|
47
48
|
},
|
|
48
49
|
// 圆角值
|
|
49
50
|
round: {
|
|
50
51
|
type: [Boolean, String, Number],
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.actionSheet.round
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -1,59 +1,60 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 图片地址,Array<String>|Array<Object>形式
|
|
4
5
|
urls: {
|
|
5
6
|
type: Array,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.album.urls
|
|
7
8
|
},
|
|
8
9
|
// 指定从数组的对象元素中读取哪个属性作为图片地址
|
|
9
10
|
keyName: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.album.keyName
|
|
12
13
|
},
|
|
13
14
|
// 单图时,图片长边的长度
|
|
14
15
|
singleSize: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.album.singleSize
|
|
17
18
|
},
|
|
18
19
|
// 多图时,图片边长
|
|
19
20
|
multipleSize: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.album.multipleSize
|
|
22
23
|
},
|
|
23
24
|
// 多图时,图片水平和垂直之间的间隔
|
|
24
25
|
space: {
|
|
25
26
|
type: [String, Number],
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.album.space
|
|
27
28
|
},
|
|
28
29
|
// 单图时,图片缩放裁剪的模式
|
|
29
30
|
singleMode: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.album.singleMode
|
|
32
33
|
},
|
|
33
34
|
// 多图时,图片缩放裁剪的模式
|
|
34
35
|
multipleMode: {
|
|
35
36
|
type: String,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.album.multipleMode
|
|
37
38
|
},
|
|
38
39
|
// 最多展示的图片数量,超出时最后一个位置将会显示剩余图片数量
|
|
39
40
|
maxCount: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.album.maxCount
|
|
42
43
|
},
|
|
43
44
|
// 是否可以预览图片
|
|
44
45
|
previewFullImage: {
|
|
45
46
|
type: Boolean,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.album.previewFullImage
|
|
47
48
|
},
|
|
48
49
|
// 每行展示图片数量,如设置,singleSize和multipleSize将会无效
|
|
49
50
|
rowCount: {
|
|
50
51
|
type: [String, Number],
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.album.rowCount
|
|
52
53
|
},
|
|
53
54
|
// 超出maxCount时是否显示查看更多的提示
|
|
54
55
|
showMore: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default:
|
|
57
|
+
default: defprops.album.showMore
|
|
57
58
|
}
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 显示文字
|
|
4
5
|
title: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.alert.title
|
|
7
8
|
},
|
|
8
9
|
// 主题,success/warning/info/error
|
|
9
10
|
type: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.alert.type
|
|
12
13
|
},
|
|
13
14
|
// 辅助性文字
|
|
14
15
|
description: {
|
|
15
16
|
type: String,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.alert.description
|
|
17
18
|
},
|
|
18
19
|
// 是否可关闭
|
|
19
20
|
closable: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.alert.closable
|
|
22
23
|
},
|
|
23
24
|
// 是否显示图标
|
|
24
25
|
showIcon: {
|
|
25
26
|
type: Boolean,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.alert.showIcon
|
|
27
28
|
},
|
|
28
29
|
// 浅或深色调,light-浅色,dark-深色
|
|
29
30
|
effect: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.alert.effect
|
|
32
33
|
},
|
|
33
34
|
// 文字是否居中
|
|
34
35
|
center: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.alert.center
|
|
37
38
|
},
|
|
38
39
|
// 字体大小
|
|
39
40
|
fontSize: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.alert.fontSize
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}
|
|
@@ -1,64 +1,65 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 头像图片路径(不能为相对路径)
|
|
4
5
|
src: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.avatar.src
|
|
7
8
|
},
|
|
8
9
|
// 头像形状,circle-圆形,square-方形
|
|
9
10
|
shape: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.avatar.shape
|
|
12
13
|
},
|
|
13
14
|
// 头像尺寸
|
|
14
15
|
size: {
|
|
15
16
|
type: [String, Number],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.avatar.size
|
|
17
18
|
},
|
|
18
19
|
// 裁剪模式
|
|
19
20
|
mode: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.avatar.mode
|
|
22
23
|
},
|
|
23
24
|
// 显示的文字
|
|
24
25
|
text: {
|
|
25
26
|
type: String,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.avatar.text
|
|
27
28
|
},
|
|
28
29
|
// 背景色
|
|
29
30
|
bgColor: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.avatar.bgColor
|
|
32
33
|
},
|
|
33
34
|
// 文字颜色
|
|
34
35
|
color: {
|
|
35
36
|
type: String,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.avatar.color
|
|
37
38
|
},
|
|
38
39
|
// 文字大小
|
|
39
40
|
fontSize: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.avatar.fontSize
|
|
42
43
|
},
|
|
43
44
|
// 显示的图标
|
|
44
45
|
icon: {
|
|
45
46
|
type: String,
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.avatar.icon
|
|
47
48
|
},
|
|
48
49
|
// 显示小程序头像,只对百度,微信,QQ小程序有效
|
|
49
50
|
mpAvatar: {
|
|
50
51
|
type: Boolean,
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.avatar.mpAvatar
|
|
52
53
|
},
|
|
53
54
|
// 是否使用随机背景色
|
|
54
55
|
randomBgColor: {
|
|
55
56
|
type: Boolean,
|
|
56
|
-
default:
|
|
57
|
+
default: defprops.avatar.randomBgColor
|
|
57
58
|
},
|
|
58
59
|
// 加载失败的默认头像(组件有内置默认图片)
|
|
59
60
|
defaultUrl: {
|
|
60
61
|
type: String,
|
|
61
|
-
default:
|
|
62
|
+
default: defprops.avatar.defaultUrl
|
|
62
63
|
},
|
|
63
64
|
// 如果配置了randomBgColor为true,且配置了此值,则从默认的背景色数组中取出对应索引的颜色值,取值0-19之间
|
|
64
65
|
colorIndex: {
|
|
@@ -67,12 +68,12 @@ export default {
|
|
|
67
68
|
validator(n) {
|
|
68
69
|
return uni.$u.test.range(n, [0, 19]) || n === ''
|
|
69
70
|
},
|
|
70
|
-
default:
|
|
71
|
+
default: defprops.avatar.colorIndex
|
|
71
72
|
},
|
|
72
73
|
// 组件标识符
|
|
73
74
|
name: {
|
|
74
75
|
type: String,
|
|
75
|
-
default:
|
|
76
|
+
default: defprops.avatar.name
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -1,39 +1,40 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 头像图片组
|
|
4
5
|
urls: {
|
|
5
6
|
type: Array,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.avatarGroup.urls
|
|
7
8
|
},
|
|
8
9
|
// 最多展示的头像数量
|
|
9
10
|
maxCount: {
|
|
10
11
|
type: [String, Number],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.avatarGroup.maxCount
|
|
12
13
|
},
|
|
13
14
|
// 头像形状
|
|
14
15
|
shape: {
|
|
15
16
|
type: String,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.avatarGroup.shape
|
|
17
18
|
},
|
|
18
19
|
// 图片裁剪模式
|
|
19
20
|
mode: {
|
|
20
21
|
type: String,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.avatarGroup.mode
|
|
22
23
|
},
|
|
23
24
|
// 超出maxCount时是否显示查看更多的提示
|
|
24
25
|
showMore: {
|
|
25
26
|
type: Boolean,
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.avatarGroup.showMore
|
|
27
28
|
},
|
|
28
29
|
// 头像大小
|
|
29
30
|
size: {
|
|
30
31
|
type: [String, Number],
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.avatarGroup.size
|
|
32
33
|
},
|
|
33
34
|
// 指定从数组的对象元素中读取哪个属性作为图片地址
|
|
34
35
|
keyName: {
|
|
35
36
|
type: String,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.avatarGroup.keyName
|
|
37
38
|
},
|
|
38
39
|
// 头像之间的遮挡比例
|
|
39
40
|
gap: {
|
|
@@ -41,12 +42,12 @@ export default {
|
|
|
41
42
|
validator(value) {
|
|
42
43
|
return value >= 0 && value <= 1
|
|
43
44
|
},
|
|
44
|
-
default:
|
|
45
|
+
default: defprops.avatarGroup.gap
|
|
45
46
|
},
|
|
46
47
|
// 需额外显示的值
|
|
47
48
|
extraValue: {
|
|
48
49
|
type: [Number, String],
|
|
49
|
-
default:
|
|
50
|
+
default: defprops.avatarGroup.extraValue
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 返回顶部的形状,circle-圆形,square-方形
|
|
4
5
|
mode: {
|
|
5
6
|
type: String,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.backtop.mode
|
|
7
8
|
},
|
|
8
9
|
// 自定义图标
|
|
9
10
|
icon: {
|
|
10
11
|
type: String,
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.backtop.icon
|
|
12
13
|
},
|
|
13
14
|
// 提示文字
|
|
14
15
|
text: {
|
|
15
16
|
type: String,
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.backtop.text
|
|
17
18
|
},
|
|
18
19
|
// 返回顶部滚动时间
|
|
19
20
|
duration: {
|
|
20
21
|
type: [String, Number],
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.backtop.duration
|
|
22
23
|
},
|
|
23
24
|
// 滚动距离
|
|
24
25
|
scrollTop: {
|
|
25
26
|
type: [String, Number],
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.backtop.scrollTop
|
|
27
28
|
},
|
|
28
29
|
// 距离顶部多少距离显示,单位px
|
|
29
30
|
top: {
|
|
30
31
|
type: [String, Number],
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.backtop.top
|
|
32
33
|
},
|
|
33
34
|
// 返回顶部按钮到底部的距离,单位px
|
|
34
35
|
bottom: {
|
|
35
36
|
type: [String, Number],
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.backtop.bottom
|
|
37
38
|
},
|
|
38
39
|
// 返回顶部按钮到右边的距离,单位px
|
|
39
40
|
right: {
|
|
40
41
|
type: [String, Number],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.backtop.right
|
|
42
43
|
},
|
|
43
44
|
// 层级
|
|
44
45
|
zIndex: {
|
|
45
46
|
type: [String, Number],
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.backtop.zIndex
|
|
47
48
|
},
|
|
48
49
|
// 图标的样式,对象形式
|
|
49
50
|
iconStyle: {
|
|
50
51
|
type: Object,
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.backtop.iconStyle
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
/**
|
|
34
34
|
* backTop 返回顶部
|
|
35
35
|
* @description 本组件一个用于长页面,滑动一定距离后,出现返回顶部按钮,方便快速返回顶部的场景。
|
|
36
|
-
* @tutorial https://uview-plus
|
|
36
|
+
* @tutorial https://uiadmin.net/uview-plus/components/backTop.html
|
|
37
37
|
*
|
|
38
38
|
* @property {String} mode 返回顶部的形状,circle-圆形,square-方形 (默认 'circle' )
|
|
39
39
|
* @property {String} icon 自定义图标 (默认 'arrow-upward' ) 见官方文档示例
|
|
@@ -1,54 +1,55 @@
|
|
|
1
|
+
import defprops from '../../libs/config/props';
|
|
1
2
|
export default {
|
|
2
3
|
props: {
|
|
3
4
|
// 是否显示圆点
|
|
4
5
|
isDot: {
|
|
5
6
|
type: Boolean,
|
|
6
|
-
default:
|
|
7
|
+
default: defprops.badge.isDot
|
|
7
8
|
},
|
|
8
9
|
// 显示的内容
|
|
9
10
|
value: {
|
|
10
11
|
type: [Number, String],
|
|
11
|
-
default:
|
|
12
|
+
default: defprops.badge.value
|
|
12
13
|
},
|
|
13
14
|
// 显示的内容
|
|
14
15
|
modelValue: {
|
|
15
16
|
type: [Number, String],
|
|
16
|
-
default:
|
|
17
|
+
default: defprops.badge.modelValue
|
|
17
18
|
},
|
|
18
19
|
// 是否显示
|
|
19
20
|
show: {
|
|
20
21
|
type: Boolean,
|
|
21
|
-
default:
|
|
22
|
+
default: defprops.badge.show
|
|
22
23
|
},
|
|
23
24
|
// 最大值,超过最大值会显示 '{max}+'
|
|
24
25
|
max: {
|
|
25
26
|
type: [Number, String],
|
|
26
|
-
default:
|
|
27
|
+
default: defprops.badge.max
|
|
27
28
|
},
|
|
28
29
|
// 主题类型,error|warning|success|primary
|
|
29
30
|
type: {
|
|
30
31
|
type: String,
|
|
31
|
-
default:
|
|
32
|
+
default: defprops.badge.type
|
|
32
33
|
},
|
|
33
34
|
// 当数值为 0 时,是否展示 Badge
|
|
34
35
|
showZero: {
|
|
35
36
|
type: Boolean,
|
|
36
|
-
default:
|
|
37
|
+
default: defprops.badge.showZero
|
|
37
38
|
},
|
|
38
39
|
// 背景颜色,优先级比type高,如设置,type参数会失效
|
|
39
40
|
bgColor: {
|
|
40
41
|
type: [String, null],
|
|
41
|
-
default:
|
|
42
|
+
default: defprops.badge.bgColor
|
|
42
43
|
},
|
|
43
44
|
// 字体颜色
|
|
44
45
|
color: {
|
|
45
46
|
type: [String, null],
|
|
46
|
-
default:
|
|
47
|
+
default: defprops.badge.color
|
|
47
48
|
},
|
|
48
49
|
// 徽标形状,circle-四角均为圆角,horn-左下角为直角
|
|
49
50
|
shape: {
|
|
50
51
|
type: String,
|
|
51
|
-
default:
|
|
52
|
+
default: defprops.badge.shape
|
|
52
53
|
},
|
|
53
54
|
// 设置数字的显示方式,overflow|ellipsis|limit
|
|
54
55
|
// overflow会根据max字段判断,超出显示`${max}+`
|
|
@@ -56,22 +57,22 @@ export default {
|
|
|
56
57
|
// limit会依据1000作为判断条件,超出1000,显示`${value/1000}K`,比如2.2k、3.34w,最多保留2位小数
|
|
57
58
|
numberType: {
|
|
58
59
|
type: String,
|
|
59
|
-
default:
|
|
60
|
+
default: defprops.badge.numberType
|
|
60
61
|
},
|
|
61
62
|
// 设置badge的位置偏移,格式为 [x, y],也即设置的为top和right的值,absolute为true时有效
|
|
62
63
|
offset: {
|
|
63
64
|
type: Array,
|
|
64
|
-
default:
|
|
65
|
+
default: defprops.badge.offset
|
|
65
66
|
},
|
|
66
67
|
// 是否反转背景和字体颜色
|
|
67
68
|
inverted: {
|
|
68
69
|
type: Boolean,
|
|
69
|
-
default:
|
|
70
|
+
default: defprops.badge.inverted
|
|
70
71
|
},
|
|
71
72
|
// 是否绝对定位
|
|
72
73
|
absolute: {
|
|
73
74
|
type: Boolean,
|
|
74
|
-
default:
|
|
75
|
+
default: defprops.badge.absolute
|
|
75
76
|
}
|
|
76
77
|
}
|
|
77
78
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* badge 徽标数
|
|
16
16
|
* @description 该组件一般用于图标右上角显示未读的消息数量,提示用户点击,有圆点和圆包含文字两种形式。
|
|
17
|
-
* @tutorial https://uview-plus
|
|
17
|
+
* @tutorial https://uiadmin.net/uview-plus/components/badge.html
|
|
18
18
|
*
|
|
19
19
|
* @property {Boolean} isDot 是否显示圆点 (默认 false )
|
|
20
20
|
* @property {String | Number} value 显示的内容
|