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,94 +1,93 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// #ifdef VUE3
|
|
5
4
|
// 绑定的值
|
|
6
5
|
modelValue: {
|
|
7
6
|
type: [String, Number, Boolean],
|
|
8
|
-
default:
|
|
7
|
+
default: () => uni.$u.props.radioGroup.value
|
|
9
8
|
},
|
|
10
9
|
// #endif
|
|
11
10
|
// #ifdef VUE2
|
|
12
11
|
// 绑定的值
|
|
13
12
|
value: {
|
|
14
13
|
type: [String, Number, Boolean],
|
|
15
|
-
default:
|
|
14
|
+
default: () => uni.$u.props.radioGroup.value
|
|
16
15
|
},
|
|
17
16
|
// #endif
|
|
18
17
|
// 是否禁用全部radio
|
|
19
18
|
disabled: {
|
|
20
19
|
type: Boolean,
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.radioGroup.disabled
|
|
22
21
|
},
|
|
23
22
|
// 形状,circle-圆形,square-方形
|
|
24
23
|
shape: {
|
|
25
24
|
type: String,
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.radioGroup.shape
|
|
27
26
|
},
|
|
28
27
|
// 选中状态下的颜色,如设置此值,将会覆盖parent的activeColor值
|
|
29
28
|
activeColor: {
|
|
30
29
|
type: String,
|
|
31
|
-
default:
|
|
30
|
+
default: () => uni.$u.props.radioGroup.activeColor
|
|
32
31
|
},
|
|
33
32
|
// 未选中的颜色
|
|
34
33
|
inactiveColor: {
|
|
35
34
|
type: String,
|
|
36
|
-
default:
|
|
35
|
+
default: () => uni.$u.props.radioGroup.inactiveColor
|
|
37
36
|
},
|
|
38
37
|
// 标识符
|
|
39
38
|
name: {
|
|
40
39
|
type: String,
|
|
41
|
-
default:
|
|
40
|
+
default: () => uni.$u.props.radioGroup.name
|
|
42
41
|
},
|
|
43
42
|
// 整个组件的尺寸,默认px
|
|
44
43
|
size: {
|
|
45
44
|
type: [String, Number],
|
|
46
|
-
default:
|
|
45
|
+
default: () => uni.$u.props.radioGroup.size
|
|
47
46
|
},
|
|
48
47
|
// 布局方式,row-横向,column-纵向
|
|
49
48
|
placement: {
|
|
50
49
|
type: String,
|
|
51
|
-
default:
|
|
50
|
+
default: () => uni.$u.props.radioGroup.placement
|
|
52
51
|
},
|
|
53
52
|
// label的文本
|
|
54
53
|
label: {
|
|
55
54
|
type: [String],
|
|
56
|
-
default:
|
|
55
|
+
default: () => uni.$u.props.radioGroup.label
|
|
57
56
|
},
|
|
58
57
|
// label的颜色 (默认 '#303133' )
|
|
59
58
|
labelColor: {
|
|
60
59
|
type: [String],
|
|
61
|
-
default:
|
|
60
|
+
default: () => uni.$u.props.radioGroup.labelColor
|
|
62
61
|
},
|
|
63
62
|
// label的字体大小,px单位
|
|
64
63
|
labelSize: {
|
|
65
64
|
type: [String, Number],
|
|
66
|
-
default:
|
|
65
|
+
default: () => uni.$u.props.radioGroup.labelSize
|
|
67
66
|
},
|
|
68
67
|
// 是否禁止点击文本操作checkbox(默认 false )
|
|
69
68
|
labelDisabled: {
|
|
70
69
|
type: Boolean,
|
|
71
|
-
default:
|
|
70
|
+
default: () => uni.$u.props.radioGroup.labelDisabled
|
|
72
71
|
},
|
|
73
72
|
// 图标颜色
|
|
74
73
|
iconColor: {
|
|
75
74
|
type: String,
|
|
76
|
-
default:
|
|
75
|
+
default: () => uni.$u.props.radioGroup.iconColor
|
|
77
76
|
},
|
|
78
77
|
// 图标的大小,单位px
|
|
79
78
|
iconSize: {
|
|
80
79
|
type: [String, Number],
|
|
81
|
-
default:
|
|
80
|
+
default: () => uni.$u.props.radioGroup.iconSize
|
|
82
81
|
},
|
|
83
82
|
// 竖向配列时,是否显示下划线
|
|
84
83
|
borderBottom: {
|
|
85
84
|
type: Boolean,
|
|
86
|
-
default:
|
|
85
|
+
default: () => uni.$u.props.radioGroup.borderBottom
|
|
87
86
|
},
|
|
88
87
|
// 图标与文字的对齐方式
|
|
89
88
|
iconPlacement: {
|
|
90
89
|
type: String,
|
|
91
|
-
default:
|
|
90
|
+
default: () => uni.$u.props.radio.iconPlacement
|
|
92
91
|
}
|
|
93
92
|
}
|
|
94
93
|
}
|
|
@@ -1,79 +1,78 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// #ifdef VUE3
|
|
5
4
|
// 用于v-model双向绑定选中的星星数量
|
|
6
5
|
modelValue: {
|
|
7
6
|
type: [String, Number],
|
|
8
|
-
default:
|
|
7
|
+
default: () => uni.$u.props.rate.value
|
|
9
8
|
},
|
|
10
9
|
// #endif
|
|
11
10
|
// #ifdef VUE2
|
|
12
11
|
// 用于v-model双向绑定选中的星星数量
|
|
13
12
|
value: {
|
|
14
13
|
type: [String, Number],
|
|
15
|
-
default:
|
|
14
|
+
default: () => uni.$u.props.rate.value
|
|
16
15
|
},
|
|
17
16
|
// #endif
|
|
18
17
|
// 要显示的星星数量
|
|
19
18
|
count: {
|
|
20
19
|
type: [String, Number],
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.rate.count
|
|
22
21
|
},
|
|
23
22
|
// 是否不可选中
|
|
24
23
|
disabled: {
|
|
25
24
|
type: Boolean,
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.rate.disabled
|
|
27
26
|
},
|
|
28
27
|
// 是否只读
|
|
29
28
|
readonly: {
|
|
30
29
|
type: Boolean,
|
|
31
|
-
default:
|
|
30
|
+
default: () => uni.$u.props.rate.readonly
|
|
32
31
|
},
|
|
33
32
|
// 星星的大小,单位px
|
|
34
33
|
size: {
|
|
35
34
|
type: [String, Number],
|
|
36
|
-
default:
|
|
35
|
+
default: () => uni.$u.props.rate.size
|
|
37
36
|
},
|
|
38
37
|
// 未选中时的颜色
|
|
39
38
|
inactiveColor: {
|
|
40
39
|
type: String,
|
|
41
|
-
default:
|
|
40
|
+
default: () => uni.$u.props.rate.inactiveColor
|
|
42
41
|
},
|
|
43
42
|
// 选中的颜色
|
|
44
43
|
activeColor: {
|
|
45
44
|
type: String,
|
|
46
|
-
default:
|
|
45
|
+
default: () => uni.$u.props.rate.activeColor
|
|
47
46
|
},
|
|
48
47
|
// 星星之间的间距,单位px
|
|
49
48
|
gutter: {
|
|
50
49
|
type: [String, Number],
|
|
51
|
-
default:
|
|
50
|
+
default: () => uni.$u.props.rate.gutter
|
|
52
51
|
},
|
|
53
52
|
// 最少能选择的星星个数
|
|
54
53
|
minCount: {
|
|
55
54
|
type: [String, Number],
|
|
56
|
-
default:
|
|
55
|
+
default: () => uni.$u.props.rate.minCount
|
|
57
56
|
},
|
|
58
57
|
// 是否允许半星
|
|
59
58
|
allowHalf: {
|
|
60
59
|
type: Boolean,
|
|
61
|
-
default:
|
|
60
|
+
default: () => uni.$u.props.rate.allowHalf
|
|
62
61
|
},
|
|
63
62
|
// 选中时的图标(星星)
|
|
64
63
|
activeIcon: {
|
|
65
64
|
type: String,
|
|
66
|
-
default:
|
|
65
|
+
default: () => uni.$u.props.rate.activeIcon
|
|
67
66
|
},
|
|
68
67
|
// 未选中时的图标(星星)
|
|
69
68
|
inactiveIcon: {
|
|
70
69
|
type: String,
|
|
71
|
-
default:
|
|
70
|
+
default: () => uni.$u.props.rate.inactiveIcon
|
|
72
71
|
},
|
|
73
72
|
// 是否可以通过滑动手势选择评分
|
|
74
73
|
touchable: {
|
|
75
74
|
type: Boolean,
|
|
76
|
-
default:
|
|
75
|
+
default: () => uni.$u.props.rate.touchable
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 默认的显示占位高度
|
|
5
4
|
showHeight: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.readMore.showHeight
|
|
8
7
|
},
|
|
9
8
|
// 展开后是否显示"收起"按钮
|
|
10
9
|
toggle: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.readMore.toggle
|
|
13
12
|
},
|
|
14
13
|
// 关闭时的提示文字
|
|
15
14
|
closeText: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.readMore.closeText
|
|
18
17
|
},
|
|
19
18
|
// 展开时的提示文字
|
|
20
19
|
openText: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.readMore.openText
|
|
23
22
|
},
|
|
24
23
|
// 提示的文字颜色
|
|
25
24
|
color: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.readMore.color
|
|
28
27
|
},
|
|
29
28
|
// 提示文字的大小
|
|
30
29
|
fontSize: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.readMore.fontSize
|
|
33
32
|
},
|
|
34
33
|
// 是否显示阴影
|
|
35
34
|
// 此参数不能写在props/readMore.js中进行默认配置,因为使用了条件编译,在外部js中
|
|
@@ -51,12 +50,12 @@ export default {
|
|
|
51
50
|
// 段落首行缩进的字符个数
|
|
52
51
|
textIndent: {
|
|
53
52
|
type: String,
|
|
54
|
-
default:
|
|
53
|
+
default: () => uni.$u.props.readMore.textIndent
|
|
55
54
|
},
|
|
56
55
|
// open和close事件时,将此参数返回在回调参数中
|
|
57
56
|
name: {
|
|
58
57
|
type: [String, Number],
|
|
59
|
-
default:
|
|
58
|
+
default: () => uni.$u.props.readMore.name
|
|
60
59
|
}
|
|
61
60
|
}
|
|
62
61
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 给col添加间距,左右边距各占一半
|
|
5
4
|
gutter: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.row.gutter
|
|
8
7
|
},
|
|
9
8
|
// 水平排列方式,可选值为`start`(或`flex-start`)、`end`(或`flex-end`)、`center`、`around`(或`space-around`)、`between`(或`space-between`)
|
|
10
9
|
justify: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.row.justify
|
|
13
12
|
},
|
|
14
13
|
// 垂直对齐方式,可选值为top、center、bottom
|
|
15
14
|
align: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.row.align
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 显示的内容,字符串
|
|
5
4
|
text: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.rowNotice.text
|
|
8
7
|
},
|
|
9
8
|
// 是否显示左侧的音量图标
|
|
10
9
|
icon: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.rowNotice.icon
|
|
13
12
|
},
|
|
14
13
|
// 通告模式,link-显示右箭头,closable-显示右侧关闭图标
|
|
15
14
|
mode: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.rowNotice.mode
|
|
18
17
|
},
|
|
19
18
|
// 文字颜色,各图标也会使用文字颜色
|
|
20
19
|
color: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.rowNotice.color
|
|
23
22
|
},
|
|
24
23
|
// 背景颜色
|
|
25
24
|
bgColor: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.rowNotice.bgColor
|
|
28
27
|
},
|
|
29
28
|
// 字体大小,单位px
|
|
30
29
|
fontSize: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.rowNotice.fontSize
|
|
33
32
|
},
|
|
34
33
|
// 水平滚动时的滚动速度,即每秒滚动多少px(rpx),这有利于控制文字无论多少时,都能有一个恒定的速度
|
|
35
34
|
speed: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.rowNotice.speed
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 指示器的整体宽度
|
|
5
4
|
indicatorWidth: {
|
|
6
5
|
type: [String, Number],
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.scrollList.indicatorWidth
|
|
8
7
|
},
|
|
9
8
|
// 滑块的宽度
|
|
10
9
|
indicatorBarWidth: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.scrollList.indicatorBarWidth
|
|
13
12
|
},
|
|
14
13
|
// 是否显示面板指示器
|
|
15
14
|
indicator: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.scrollList.indicator
|
|
18
17
|
},
|
|
19
18
|
// 指示器非激活颜色
|
|
20
19
|
indicatorColor: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.scrollList.indicatorColor
|
|
23
22
|
},
|
|
24
23
|
// 指示器的激活颜色
|
|
25
24
|
indicatorActiveColor: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.scrollList.indicatorActiveColor
|
|
28
27
|
},
|
|
29
28
|
// 指示器样式,可通过bottom,left,right进行定位
|
|
30
29
|
indicatorStyle: {
|
|
31
30
|
type: [String, Object],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.scrollList.indicatorStyle
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
}
|
|
@@ -1,123 +1,122 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 搜索框形状,round-圆形,square-方形
|
|
5
4
|
shape: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.search.shape
|
|
8
7
|
},
|
|
9
8
|
// 搜索框背景色,默认值#f2f2f2
|
|
10
9
|
bgColor: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.search.bgColor
|
|
13
12
|
},
|
|
14
13
|
// 占位提示文字
|
|
15
14
|
placeholder: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.search.placeholder
|
|
18
17
|
},
|
|
19
18
|
// 是否启用清除控件
|
|
20
19
|
clearabled: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.search.clearabled
|
|
23
22
|
},
|
|
24
23
|
// 是否自动聚焦
|
|
25
24
|
focus: {
|
|
26
25
|
type: Boolean,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.search.focus
|
|
28
27
|
},
|
|
29
28
|
// 是否在搜索框右侧显示取消按钮
|
|
30
29
|
showAction: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.search.showAction
|
|
33
32
|
},
|
|
34
33
|
// 右边控件的样式
|
|
35
34
|
actionStyle: {
|
|
36
35
|
type: Object,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.search.actionStyle
|
|
38
37
|
},
|
|
39
38
|
// 取消按钮文字
|
|
40
39
|
actionText: {
|
|
41
40
|
type: String,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.search.actionText
|
|
43
42
|
},
|
|
44
43
|
// 输入框内容对齐方式,可选值为 left|center|right
|
|
45
44
|
inputAlign: {
|
|
46
45
|
type: String,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.search.inputAlign
|
|
48
47
|
},
|
|
49
48
|
// input输入框的样式,可以定义文字颜色,大小等,对象形式
|
|
50
49
|
inputStyle: {
|
|
51
50
|
type: Object,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.search.inputStyle
|
|
53
52
|
},
|
|
54
53
|
// 是否启用输入框
|
|
55
54
|
disabled: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.search.disabled
|
|
58
57
|
},
|
|
59
58
|
// 边框颜色
|
|
60
59
|
borderColor: {
|
|
61
60
|
type: String,
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.search.borderColor
|
|
63
62
|
},
|
|
64
63
|
// 搜索图标的颜色,默认同输入框字体颜色
|
|
65
64
|
searchIconColor: {
|
|
66
65
|
type: String,
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.search.searchIconColor
|
|
68
67
|
},
|
|
69
68
|
// 输入框字体颜色
|
|
70
69
|
color: {
|
|
71
70
|
type: String,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.search.color
|
|
73
72
|
},
|
|
74
73
|
// placeholder的颜色
|
|
75
74
|
placeholderColor: {
|
|
76
75
|
type: String,
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.search.placeholderColor
|
|
78
77
|
},
|
|
79
78
|
// 左边输入框的图标,可以为uView图标名称或图片路径
|
|
80
79
|
searchIcon: {
|
|
81
80
|
type: String,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.search.searchIcon
|
|
83
82
|
},
|
|
84
83
|
searchIconSize: {
|
|
85
84
|
type: [Number, String],
|
|
86
|
-
default:
|
|
85
|
+
default: () => uni.$u.props.search.searchIconSize
|
|
87
86
|
},
|
|
88
87
|
// 组件与其他上下左右元素之间的距离,带单位的字符串形式,如"30px"、"30px 20px"等写法
|
|
89
88
|
margin: {
|
|
90
89
|
type: String,
|
|
91
|
-
default:
|
|
90
|
+
default: () => uni.$u.props.search.margin
|
|
92
91
|
},
|
|
93
92
|
// 开启showAction时,是否在input获取焦点时才显示
|
|
94
93
|
animation: {
|
|
95
94
|
type: Boolean,
|
|
96
|
-
default:
|
|
95
|
+
default: () => uni.$u.props.search.animation
|
|
97
96
|
},
|
|
98
97
|
// 输入框的初始化内容
|
|
99
98
|
modelValue: {
|
|
100
99
|
type: String,
|
|
101
|
-
default:
|
|
100
|
+
default: () => uni.$u.props.search.value
|
|
102
101
|
},
|
|
103
102
|
value: {
|
|
104
103
|
type: String,
|
|
105
|
-
default:
|
|
104
|
+
default: () => uni.$u.props.search.value
|
|
106
105
|
},
|
|
107
106
|
// 输入框最大能输入的长度,-1为不限制长度(来自uniapp文档)
|
|
108
107
|
maxlength: {
|
|
109
108
|
type: [String, Number],
|
|
110
|
-
default:
|
|
109
|
+
default: () => uni.$u.props.search.maxlength
|
|
111
110
|
},
|
|
112
111
|
// 搜索框高度,单位px
|
|
113
112
|
height: {
|
|
114
113
|
type: [String, Number],
|
|
115
|
-
default:
|
|
114
|
+
default: () => uni.$u.props.search.height
|
|
116
115
|
},
|
|
117
116
|
// 搜索框左侧文本
|
|
118
117
|
label: {
|
|
119
118
|
type: [String, Number, null],
|
|
120
|
-
default:
|
|
119
|
+
default: () => uni.$u.props.search.label
|
|
121
120
|
}
|
|
122
121
|
}
|
|
123
122
|
}
|
|
@@ -1,60 +1,59 @@
|
|
|
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.skeleton.loading
|
|
8
7
|
},
|
|
9
8
|
// 是否开启动画效果
|
|
10
9
|
animate: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.skeleton.animate
|
|
13
12
|
},
|
|
14
13
|
// 段落占位图行数
|
|
15
14
|
rows: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.skeleton.rows
|
|
18
17
|
},
|
|
19
18
|
// 段落占位图的宽度
|
|
20
19
|
rowsWidth: {
|
|
21
20
|
type: [String, Number, Array],
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.skeleton.rowsWidth
|
|
23
22
|
},
|
|
24
23
|
// 段落占位图的高度
|
|
25
24
|
rowsHeight: {
|
|
26
25
|
type: [String, Number, Array],
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.skeleton.rowsHeight
|
|
28
27
|
},
|
|
29
28
|
// 是否展示标题占位图
|
|
30
29
|
title: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.skeleton.title
|
|
33
32
|
},
|
|
34
33
|
// 段落标题的宽度
|
|
35
34
|
titleWidth: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.skeleton.titleWidth
|
|
38
37
|
},
|
|
39
38
|
// 段落标题的高度
|
|
40
39
|
titleHeight: {
|
|
41
40
|
type: [String, Number],
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.skeleton.titleHeight
|
|
43
42
|
},
|
|
44
43
|
// 是否展示头像占位图
|
|
45
44
|
avatar: {
|
|
46
45
|
type: Boolean,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.skeleton.avatar
|
|
48
47
|
},
|
|
49
48
|
// 头像占位图大小
|
|
50
49
|
avatarSize: {
|
|
51
50
|
type: [String, Number],
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.skeleton.avatarSize
|
|
53
52
|
},
|
|
54
53
|
// 头像占位图的形状,circle-圆形,square-方形
|
|
55
54
|
avatarShape: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.skeleton.avatarShape
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|