uview-plus 3.1.50 → 3.1.52
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 +18 -1
- 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-back-top/u-back-top.vue +1 -1
- package/components/u-badge/props.js +14 -15
- package/components/u-badge/u-badge.vue +1 -1
- package/components/u-button/props.js +28 -29
- package/components/u-button/u-button.vue +6 -6
- package/components/u-button/vue.scss +8 -7
- 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-car-keyboard/u-car-keyboard.vue +1 -1
- package/components/u-cell/props.js +17 -18
- package/components/u-cell/u-cell.vue +14 -4
- package/components/u-cell-group/props.js +2 -3
- package/components/u-cell-group/u-cell-group.vue +1 -1
- package/components/u-checkbox/props.js +13 -14
- package/components/u-checkbox/u-checkbox.vue +1 -1
- 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-copy/u-copy.vue +70 -0
- package/components/u-count-down/props.js +4 -5
- package/components/u-count-down/u-count-down.vue +6 -1
- package/components/u-count-to/props.js +11 -12
- package/components/u-datetime-picker/props.js +37 -25
- package/components/u-datetime-picker/u-datetime-picker.vue +58 -3
- 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-gap/u-gap.vue +5 -4
- 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-image/u-image.vue +1 -1
- package/components/u-index-anchor/props.js +5 -6
- package/components/u-index-anchor/u-index-anchor.vue +1 -1
- package/components/u-index-item/props.js +0 -1
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/props.js +5 -6
- package/components/u-index-list/u-index-list.vue +3 -2
- package/components/u-input/props.js +35 -36
- package/components/u-input/u-input.vue +10 -4
- 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-box/u-number-box.vue +21 -1
- 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-qrcode/qrcode.js +1206 -0
- package/components/u-qrcode/u-qrcode.vue +199 -0
- 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-status-bar/u-status-bar.vue +1 -1
- package/components/u-steps/props.js +7 -8
- package/components/u-steps/u-steps.vue +1 -1
- package/components/u-steps-item/props.js +4 -5
- package/components/u-steps-item/u-steps-item.vue +1 -1
- 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-subsection/u-subsection.vue +2 -2
- 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-tooltip/u-tooltip.vue +0 -28
- 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-transition/u-transition.vue +1 -1
- package/components/u-upload/props.js +22 -23
- package/components/u-upload/u-upload.vue +1 -1
- package/index.js +6 -6
- 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 +103 -101
- package/libs/function/colorGradient.js +8 -8
- package/libs/function/debounce.js +2 -2
- package/libs/function/digit.js +5 -5
- package/libs/function/index.js +29 -29
- package/libs/function/test.js +28 -28
- package/libs/function/throttle.js +2 -2
- package/package.json +4 -3
|
@@ -1,18 +1,17 @@
|
|
|
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],
|
|
8
|
-
default:
|
|
7
|
+
default: () => uni.$u.props.input.value
|
|
9
8
|
},
|
|
10
9
|
// #endif
|
|
11
10
|
// #ifdef VUE2
|
|
12
11
|
// 绑定的值
|
|
13
12
|
value: {
|
|
14
13
|
type: [String, Number],
|
|
15
|
-
default:
|
|
14
|
+
default: () => uni.$u.props.input.value
|
|
16
15
|
},
|
|
17
16
|
// #endif
|
|
18
17
|
// number-数字输入键盘,app-vue下可以输入浮点数,app-nvue和小程序平台下只能输入整数
|
|
@@ -21,171 +20,171 @@ export default {
|
|
|
21
20
|
// text-文本输入键盘
|
|
22
21
|
type: {
|
|
23
22
|
type: String,
|
|
24
|
-
default:
|
|
23
|
+
default: () => uni.$u.props.input.type
|
|
25
24
|
},
|
|
26
25
|
// 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,
|
|
27
26
|
// 兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序
|
|
28
27
|
fixed: {
|
|
29
28
|
type: Boolean,
|
|
30
|
-
default:
|
|
29
|
+
default: () => uni.$u.props.input.fixed
|
|
31
30
|
},
|
|
32
31
|
// 是否禁用输入框
|
|
33
32
|
disabled: {
|
|
34
33
|
type: Boolean,
|
|
35
|
-
default:
|
|
34
|
+
default: () => uni.$u.props.input.disabled
|
|
36
35
|
},
|
|
37
36
|
// 禁用状态时的背景色
|
|
38
37
|
disabledColor: {
|
|
39
38
|
type: String,
|
|
40
|
-
default:
|
|
39
|
+
default: () => uni.$u.props.input.disabledColor
|
|
41
40
|
},
|
|
42
41
|
// 是否显示清除控件
|
|
43
42
|
clearable: {
|
|
44
43
|
type: Boolean,
|
|
45
|
-
default:
|
|
44
|
+
default: () => uni.$u.props.input.clearable
|
|
46
45
|
},
|
|
47
46
|
// 是否密码类型
|
|
48
47
|
password: {
|
|
49
48
|
type: Boolean,
|
|
50
|
-
default:
|
|
49
|
+
default: () => uni.$u.props.input.password
|
|
51
50
|
},
|
|
52
51
|
// 最大输入长度,设置为 -1 的时候不限制最大长度
|
|
53
52
|
maxlength: {
|
|
54
53
|
type: [String, Number],
|
|
55
|
-
default:
|
|
54
|
+
default: () => uni.$u.props.input.maxlength
|
|
56
55
|
},
|
|
57
56
|
// 输入框为空时的占位符
|
|
58
57
|
placeholder: {
|
|
59
58
|
type: String,
|
|
60
|
-
default:
|
|
59
|
+
default: () => uni.$u.props.input.placeholder
|
|
61
60
|
},
|
|
62
61
|
// 指定placeholder的样式类,注意页面或组件的style中写了scoped时,需要在类名前写/deep/
|
|
63
62
|
placeholderClass: {
|
|
64
63
|
type: String,
|
|
65
|
-
default:
|
|
64
|
+
default: () => uni.$u.props.input.placeholderClass
|
|
66
65
|
},
|
|
67
66
|
// 指定placeholder的样式
|
|
68
67
|
placeholderStyle: {
|
|
69
68
|
type: [String, Object],
|
|
70
|
-
default:
|
|
69
|
+
default: () => uni.$u.props.input.placeholderStyle
|
|
71
70
|
},
|
|
72
71
|
// 是否显示输入字数统计,只在 type ="text"或type ="textarea"时有效
|
|
73
72
|
showWordLimit: {
|
|
74
73
|
type: Boolean,
|
|
75
|
-
default:
|
|
74
|
+
default: () => uni.$u.props.input.showWordLimit
|
|
76
75
|
},
|
|
77
76
|
// 设置右下角按钮的文字,有效值:send|search|next|go|done,兼容性详见uni-app文档
|
|
78
77
|
// https://uniapp.dcloud.io/component/input
|
|
79
78
|
// https://uniapp.dcloud.io/component/textarea
|
|
80
79
|
confirmType: {
|
|
81
80
|
type: String,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.input.confirmType
|
|
83
82
|
},
|
|
84
83
|
// 点击键盘右下角按钮时是否保持键盘不收起,H5无效
|
|
85
84
|
confirmHold: {
|
|
86
85
|
type: Boolean,
|
|
87
|
-
default:
|
|
86
|
+
default: () => uni.$u.props.input.confirmHold
|
|
88
87
|
},
|
|
89
88
|
// focus时,点击页面的时候不收起键盘,微信小程序有效
|
|
90
89
|
holdKeyboard: {
|
|
91
90
|
type: Boolean,
|
|
92
|
-
default:
|
|
91
|
+
default: () => uni.$u.props.input.holdKeyboard
|
|
93
92
|
},
|
|
94
93
|
// 自动获取焦点
|
|
95
94
|
// 在 H5 平台能否聚焦以及软键盘是否跟随弹出,取决于当前浏览器本身的实现。nvue 页面不支持,需使用组件的 focus()、blur() 方法控制焦点
|
|
96
95
|
focus: {
|
|
97
96
|
type: Boolean,
|
|
98
|
-
default:
|
|
97
|
+
default: () => uni.$u.props.input.focus
|
|
99
98
|
},
|
|
100
99
|
// 键盘收起时,是否自动失去焦点,目前仅App3.0.0+有效
|
|
101
100
|
autoBlur: {
|
|
102
101
|
type: Boolean,
|
|
103
|
-
default:
|
|
102
|
+
default: () => uni.$u.props.input.autoBlur
|
|
104
103
|
},
|
|
105
104
|
// 是否去掉 iOS 下的默认内边距,仅微信小程序,且type=textarea时有效
|
|
106
105
|
disableDefaultPadding: {
|
|
107
106
|
type: Boolean,
|
|
108
|
-
default:
|
|
107
|
+
default: () => uni.$u.props.input.disableDefaultPadding
|
|
109
108
|
},
|
|
110
109
|
// 指定focus时光标的位置
|
|
111
110
|
cursor: {
|
|
112
111
|
type: [String, Number],
|
|
113
|
-
default:
|
|
112
|
+
default: () => uni.$u.props.input.cursor
|
|
114
113
|
},
|
|
115
114
|
// 输入框聚焦时底部与键盘的距离
|
|
116
115
|
cursorSpacing: {
|
|
117
116
|
type: [String, Number],
|
|
118
|
-
default:
|
|
117
|
+
default: () => uni.$u.props.input.cursorSpacing
|
|
119
118
|
},
|
|
120
119
|
// 光标起始位置,自动聚集时有效,需与selection-end搭配使用
|
|
121
120
|
selectionStart: {
|
|
122
121
|
type: [String, Number],
|
|
123
|
-
default:
|
|
122
|
+
default: () => uni.$u.props.input.selectionStart
|
|
124
123
|
},
|
|
125
124
|
// 光标结束位置,自动聚集时有效,需与selection-start搭配使用
|
|
126
125
|
selectionEnd: {
|
|
127
126
|
type: [String, Number],
|
|
128
|
-
default:
|
|
127
|
+
default: () => uni.$u.props.input.selectionEnd
|
|
129
128
|
},
|
|
130
129
|
// 键盘弹起时,是否自动上推页面
|
|
131
130
|
adjustPosition: {
|
|
132
131
|
type: Boolean,
|
|
133
|
-
default:
|
|
132
|
+
default: () => uni.$u.props.input.adjustPosition
|
|
134
133
|
},
|
|
135
134
|
// 输入框内容对齐方式,可选值为:left|center|right
|
|
136
135
|
inputAlign: {
|
|
137
136
|
type: String,
|
|
138
|
-
default:
|
|
137
|
+
default: () => uni.$u.props.input.inputAlign
|
|
139
138
|
},
|
|
140
139
|
// 输入框字体的大小
|
|
141
140
|
fontSize: {
|
|
142
141
|
type: [String, Number],
|
|
143
|
-
default:
|
|
142
|
+
default: () => uni.$u.props.input.fontSize
|
|
144
143
|
},
|
|
145
144
|
// 输入框字体颜色
|
|
146
145
|
color: {
|
|
147
146
|
type: String,
|
|
148
|
-
default:
|
|
147
|
+
default: () => uni.$u.props.input.color
|
|
149
148
|
},
|
|
150
149
|
// 输入框前置图标
|
|
151
150
|
prefixIcon: {
|
|
152
151
|
type: String,
|
|
153
|
-
default:
|
|
152
|
+
default: () => uni.$u.props.input.prefixIcon
|
|
154
153
|
},
|
|
155
154
|
// 前置图标样式,对象或字符串
|
|
156
155
|
prefixIconStyle: {
|
|
157
156
|
type: [String, Object],
|
|
158
|
-
default:
|
|
157
|
+
default: () => uni.$u.props.input.prefixIconStyle
|
|
159
158
|
},
|
|
160
159
|
// 输入框后置图标
|
|
161
160
|
suffixIcon: {
|
|
162
161
|
type: String,
|
|
163
|
-
default:
|
|
162
|
+
default: () => uni.$u.props.input.suffixIcon
|
|
164
163
|
},
|
|
165
164
|
// 后置图标样式,对象或字符串
|
|
166
165
|
suffixIconStyle: {
|
|
167
166
|
type: [String, Object],
|
|
168
|
-
default:
|
|
167
|
+
default: () => uni.$u.props.input.suffixIconStyle
|
|
169
168
|
},
|
|
170
169
|
// 边框类型,surround-四周边框,bottom-底部边框,none-无边框
|
|
171
170
|
border: {
|
|
172
171
|
type: String,
|
|
173
|
-
default:
|
|
172
|
+
default: () => uni.$u.props.input.border
|
|
174
173
|
},
|
|
175
174
|
// 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会
|
|
176
175
|
readonly: {
|
|
177
176
|
type: Boolean,
|
|
178
|
-
default:
|
|
177
|
+
default: () => uni.$u.props.input.readonly
|
|
179
178
|
},
|
|
180
179
|
// 输入框形状,circle-圆形,square-方形
|
|
181
180
|
shape: {
|
|
182
181
|
type: String,
|
|
183
|
-
default:
|
|
182
|
+
default: () => uni.$u.props.input.shape
|
|
184
183
|
},
|
|
185
184
|
// 用于处理或者过滤输入框内容的方法
|
|
186
185
|
formatter: {
|
|
187
186
|
type: [Function, null],
|
|
188
|
-
default:
|
|
187
|
+
default: () => uni.$u.props.input.formatter
|
|
189
188
|
},
|
|
190
189
|
// 是否忽略组件内对文本合成系统事件的处理
|
|
191
190
|
ignoreCompositionEvent: {
|
|
@@ -82,7 +82,7 @@ import mixin from '../../libs/mixin/mixin.js';
|
|
|
82
82
|
/**
|
|
83
83
|
* Input 输入框
|
|
84
84
|
* @description 此组件为一个输入框,默认没有边框和样式,是专门为配合表单组件u-form而设计的,利用它可以快速实现表单验证,输入内容,下拉选择等功能。
|
|
85
|
-
* @tutorial https://
|
|
85
|
+
* @tutorial https://uview-plus.jiangruyi.com/components/input.html
|
|
86
86
|
* @property {String | Number} value 输入的值
|
|
87
87
|
* @property {String} type 输入框类型,见上方说明 ( 默认 'text' )
|
|
88
88
|
* @property {Boolean} fixed 如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true,兼容性:微信小程序、百度小程序、字节跳动小程序、QQ小程序 ( 默认 false )
|
|
@@ -148,10 +148,13 @@ export default {
|
|
|
148
148
|
// 在H5中,外部value变化后,修改input中的值,不会触发@input事件,此时手动调用值变化方法
|
|
149
149
|
if (
|
|
150
150
|
this.firstChange === false &&
|
|
151
|
-
this.changeFromInner === false
|
|
151
|
+
this.changeFromInner === false
|
|
152
152
|
) {
|
|
153
153
|
this.valueChange();
|
|
154
|
-
} else {
|
|
154
|
+
} else {
|
|
155
|
+
// 尝试调用u-form的验证方法
|
|
156
|
+
uni.$u.formValidate(this, "change");
|
|
157
|
+
}
|
|
155
158
|
/* #endif */
|
|
156
159
|
this.firstChange = false;
|
|
157
160
|
// 重置changeFromInner的值为false,标识下一次引起默认为外部引起的
|
|
@@ -171,7 +174,10 @@ export default {
|
|
|
171
174
|
this.changeFromInner === false
|
|
172
175
|
) {
|
|
173
176
|
this.valueChange();
|
|
174
|
-
} else {
|
|
177
|
+
} else {
|
|
178
|
+
// 尝试调用u-form的验证方法
|
|
179
|
+
uni.$u.formValidate(this, "change");
|
|
180
|
+
}
|
|
175
181
|
/* #endif */
|
|
176
182
|
this.firstChange = false;
|
|
177
183
|
// 重置changeFromInner的值为false,标识下一次引起默认为外部引起的
|
|
@@ -1,85 +1,84 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 键盘的类型,number-数字键盘,card-身份证键盘,car-车牌号键盘
|
|
5
4
|
mode: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.keyboard.mode
|
|
8
7
|
},
|
|
9
8
|
// 是否显示键盘的"."符号
|
|
10
9
|
dotDisabled: {
|
|
11
10
|
type: Boolean,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.keyboard.dotDisabled
|
|
13
12
|
},
|
|
14
13
|
// 是否显示顶部工具条
|
|
15
14
|
tooltip: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.keyboard.tooltip
|
|
18
17
|
},
|
|
19
18
|
// 是否显示工具条中间的提示
|
|
20
19
|
showTips: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.keyboard.showTips
|
|
23
22
|
},
|
|
24
23
|
// 工具条中间的提示文字
|
|
25
24
|
tips: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.keyboard.tips
|
|
28
27
|
},
|
|
29
28
|
// 是否显示工具条左边的"取消"按钮
|
|
30
29
|
showCancel: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.keyboard.showCancel
|
|
33
32
|
},
|
|
34
33
|
// 是否显示工具条右边的"完成"按钮
|
|
35
34
|
showConfirm: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.keyboard.showConfirm
|
|
38
37
|
},
|
|
39
38
|
// 是否打乱键盘按键的顺序
|
|
40
39
|
random: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.keyboard.random
|
|
43
42
|
},
|
|
44
43
|
// 是否开启底部安全区适配,开启的话,会在iPhoneX机型底部添加一定的内边距
|
|
45
44
|
safeAreaInsetBottom: {
|
|
46
45
|
type: Boolean,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.keyboard.safeAreaInsetBottom
|
|
48
47
|
},
|
|
49
48
|
// 是否允许通过点击遮罩关闭键盘
|
|
50
49
|
closeOnClickOverlay: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.keyboard.closeOnClickOverlay
|
|
53
52
|
},
|
|
54
53
|
// 控制键盘的弹出与收起
|
|
55
54
|
show: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.keyboard.show
|
|
58
57
|
},
|
|
59
58
|
// 是否显示遮罩,某些时候数字键盘时,用户希望看到自己的数值,所以可能不想要遮罩
|
|
60
59
|
overlay: {
|
|
61
60
|
type: Boolean,
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.keyboard.overlay
|
|
63
62
|
},
|
|
64
63
|
// z-index值
|
|
65
64
|
zIndex: {
|
|
66
65
|
type: [String, Number],
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.keyboard.zIndex
|
|
68
67
|
},
|
|
69
68
|
// 取消按钮的文字
|
|
70
69
|
cancelText: {
|
|
71
70
|
type: String,
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.keyboard.cancelText
|
|
73
72
|
},
|
|
74
73
|
// 确认按钮的文字
|
|
75
74
|
confirmText: {
|
|
76
75
|
type: String,
|
|
77
|
-
default:
|
|
76
|
+
default: () => uni.$u.props.keyboard.confirmText
|
|
78
77
|
},
|
|
79
78
|
// 输入一个中文后,是否自动切换到英文
|
|
80
79
|
autoChange: {
|
|
81
80
|
type: Boolean,
|
|
82
|
-
default:
|
|
81
|
+
default: () => uni.$u.props.keyboard.autoChange
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
84
|
}
|
|
@@ -1,34 +1,33 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
color: {
|
|
5
4
|
type: String,
|
|
6
|
-
default:
|
|
5
|
+
default: () => uni.$u.props.line.color
|
|
7
6
|
},
|
|
8
7
|
// 长度,竖向时表现为高度,横向时表现为长度,可以为百分比,带px单位的值等
|
|
9
8
|
length: {
|
|
10
9
|
type: [String, Number],
|
|
11
|
-
default:
|
|
10
|
+
default: () => uni.$u.props.line.length
|
|
12
11
|
},
|
|
13
12
|
// 线条方向,col-竖向,row-横向
|
|
14
13
|
direction: {
|
|
15
14
|
type: String,
|
|
16
|
-
default:
|
|
15
|
+
default: () => uni.$u.props.line.direction
|
|
17
16
|
},
|
|
18
17
|
// 是否显示细边框
|
|
19
18
|
hairline: {
|
|
20
19
|
type: Boolean,
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.line.hairline
|
|
22
21
|
},
|
|
23
22
|
// 线条与上下左右元素的间距,字符串形式,如"30px"、"20px 30px"
|
|
24
23
|
margin: {
|
|
25
24
|
type: [String, Number],
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.line.margin
|
|
27
26
|
},
|
|
28
27
|
// 是否虚线,true-虚线,false-实线
|
|
29
28
|
dashed: {
|
|
30
29
|
type: Boolean,
|
|
31
|
-
default:
|
|
30
|
+
default: () => uni.$u.props.line.dashed
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 激活部分的颜色
|
|
5
4
|
activeColor: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.lineProgress.activeColor
|
|
8
7
|
},
|
|
9
8
|
inactiveColor: {
|
|
10
9
|
type: String,
|
|
11
|
-
default:
|
|
10
|
+
default: () => uni.$u.props.lineProgress.color
|
|
12
11
|
},
|
|
13
12
|
// 进度百分比,数值
|
|
14
13
|
percentage: {
|
|
15
14
|
type: [String, Number],
|
|
16
|
-
default:
|
|
15
|
+
default: () => uni.$u.props.lineProgress.inactiveColor
|
|
17
16
|
},
|
|
18
17
|
// 是否在进度条内部显示百分比的值
|
|
19
18
|
showText: {
|
|
20
19
|
type: Boolean,
|
|
21
|
-
default:
|
|
20
|
+
default: () => uni.$u.props.lineProgress.showText
|
|
22
21
|
},
|
|
23
22
|
// 进度条的高度,单位px
|
|
24
23
|
height: {
|
|
25
24
|
type: [String, Number],
|
|
26
|
-
default:
|
|
25
|
+
default: () => uni.$u.props.lineProgress.height
|
|
27
26
|
}
|
|
28
27
|
}
|
|
29
28
|
}
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 文字颜色
|
|
5
4
|
color: {
|
|
6
5
|
type: String,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.link.color
|
|
8
7
|
},
|
|
9
8
|
// 字体大小,单位px
|
|
10
9
|
fontSize: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.link.fontSize
|
|
13
12
|
},
|
|
14
13
|
// 是否显示下划线
|
|
15
14
|
underLine: {
|
|
16
15
|
type: Boolean,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.link.underLine
|
|
18
17
|
},
|
|
19
18
|
// 要跳转的链接
|
|
20
19
|
href: {
|
|
21
20
|
type: String,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.link.href
|
|
23
22
|
},
|
|
24
23
|
// 小程序中复制到粘贴板的提示语
|
|
25
24
|
mpTips: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.link.mpTips
|
|
28
27
|
},
|
|
29
28
|
// 下划线颜色
|
|
30
29
|
lineColor: {
|
|
31
30
|
type: String,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.link.lineColor
|
|
33
32
|
},
|
|
34
33
|
// 超链接的问题,不使用slot形式传入,是因为nvue下无法修改颜色
|
|
35
34
|
text: {
|
|
36
35
|
type: String,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.link.text
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
}
|
|
@@ -1,75 +1,74 @@
|
|
|
1
|
-
import defprops from '../../libs/config/props';
|
|
2
1
|
export default {
|
|
3
2
|
props: {
|
|
4
3
|
// 控制是否出现滚动条,仅nvue有效
|
|
5
4
|
showScrollbar: {
|
|
6
5
|
type: Boolean,
|
|
7
|
-
default:
|
|
6
|
+
default: () => uni.$u.props.list.showScrollbar
|
|
8
7
|
},
|
|
9
8
|
// 距底部多少时触发scrolltolower事件
|
|
10
9
|
lowerThreshold: {
|
|
11
10
|
type: [String, Number],
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.list.lowerThreshold
|
|
13
12
|
},
|
|
14
13
|
// 距顶部多少时触发scrolltoupper事件,非nvue有效
|
|
15
14
|
upperThreshold: {
|
|
16
15
|
type: [String, Number],
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.list.upperThreshold
|
|
18
17
|
},
|
|
19
18
|
// 设置竖向滚动条位置
|
|
20
19
|
scrollTop: {
|
|
21
20
|
type: [String, Number],
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.list.scrollTop
|
|
23
22
|
},
|
|
24
23
|
// 控制 onscroll 事件触发的频率,仅nvue有效
|
|
25
24
|
offsetAccuracy: {
|
|
26
25
|
type: [String, Number],
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.list.offsetAccuracy
|
|
28
27
|
},
|
|
29
28
|
// 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
|
|
30
29
|
enableFlex: {
|
|
31
30
|
type: Boolean,
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.list.enableFlex
|
|
33
32
|
},
|
|
34
33
|
// 是否按分页模式显示List,默认值false
|
|
35
34
|
pagingEnabled: {
|
|
36
35
|
type: Boolean,
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.list.pagingEnabled
|
|
38
37
|
},
|
|
39
38
|
// 是否允许List滚动
|
|
40
39
|
scrollable: {
|
|
41
40
|
type: Boolean,
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.list.scrollable
|
|
43
42
|
},
|
|
44
43
|
// 值应为某子元素id(id不能以数字开头)
|
|
45
44
|
scrollIntoView: {
|
|
46
45
|
type: String,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.list.scrollIntoView
|
|
48
47
|
},
|
|
49
48
|
// 在设置滚动条位置时使用动画过渡
|
|
50
49
|
scrollWithAnimation: {
|
|
51
50
|
type: Boolean,
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.list.scrollWithAnimation
|
|
53
52
|
},
|
|
54
53
|
// iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
|
|
55
54
|
enableBackToTop: {
|
|
56
55
|
type: Boolean,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.list.enableBackToTop
|
|
58
57
|
},
|
|
59
58
|
// 列表的高度
|
|
60
59
|
height: {
|
|
61
60
|
type: [String, Number],
|
|
62
|
-
default:
|
|
61
|
+
default: () => uni.$u.props.list.height
|
|
63
62
|
},
|
|
64
63
|
// 列表宽度
|
|
65
64
|
width: {
|
|
66
65
|
type: [String, Number],
|
|
67
|
-
default:
|
|
66
|
+
default: () => uni.$u.props.list.width
|
|
68
67
|
},
|
|
69
68
|
// 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
|
|
70
69
|
preLoadScreen: {
|
|
71
70
|
type: [String, Number],
|
|
72
|
-
default:
|
|
71
|
+
default: () => uni.$u.props.list.preLoadScreen
|
|
73
72
|
}
|
|
74
73
|
// vue下,是否开启虚拟列表
|
|
75
74
|
|
|
@@ -1,60 +1,59 @@
|
|
|
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.loadingIcon.show
|
|
8
7
|
},
|
|
9
8
|
// 颜色
|
|
10
9
|
color: {
|
|
11
10
|
type: String,
|
|
12
|
-
default:
|
|
11
|
+
default: () => uni.$u.props.loadingIcon.color
|
|
13
12
|
},
|
|
14
13
|
// 提示文字颜色
|
|
15
14
|
textColor: {
|
|
16
15
|
type: String,
|
|
17
|
-
default:
|
|
16
|
+
default: () => uni.$u.props.loadingIcon.textColor
|
|
18
17
|
},
|
|
19
18
|
// 文字和图标是否垂直排列
|
|
20
19
|
vertical: {
|
|
21
20
|
type: Boolean,
|
|
22
|
-
default:
|
|
21
|
+
default: () => uni.$u.props.loadingIcon.vertical
|
|
23
22
|
},
|
|
24
23
|
// 模式选择,circle-圆形,spinner-花朵形,semicircle-半圆形
|
|
25
24
|
mode: {
|
|
26
25
|
type: String,
|
|
27
|
-
default:
|
|
26
|
+
default: () => uni.$u.props.loadingIcon.mode
|
|
28
27
|
},
|
|
29
28
|
// 图标大小,单位默认px
|
|
30
29
|
size: {
|
|
31
30
|
type: [String, Number],
|
|
32
|
-
default:
|
|
31
|
+
default: () => uni.$u.props.loadingIcon.size
|
|
33
32
|
},
|
|
34
33
|
// 文字大小
|
|
35
34
|
textSize: {
|
|
36
35
|
type: [String, Number],
|
|
37
|
-
default:
|
|
36
|
+
default: () => uni.$u.props.loadingIcon.textSize
|
|
38
37
|
},
|
|
39
38
|
// 文字内容
|
|
40
39
|
text: {
|
|
41
40
|
type: [String, Number],
|
|
42
|
-
default:
|
|
41
|
+
default: () => uni.$u.props.loadingIcon.text
|
|
43
42
|
},
|
|
44
43
|
// 动画模式
|
|
45
44
|
timingFunction: {
|
|
46
45
|
type: String,
|
|
47
|
-
default:
|
|
46
|
+
default: () => uni.$u.props.loadingIcon.timingFunction
|
|
48
47
|
},
|
|
49
48
|
// 动画执行周期时间
|
|
50
49
|
duration: {
|
|
51
50
|
type: [String, Number],
|
|
52
|
-
default:
|
|
51
|
+
default: () => uni.$u.props.loadingIcon.duration
|
|
53
52
|
},
|
|
54
53
|
// mode=circle时的暗边颜色
|
|
55
54
|
inactiveColor: {
|
|
56
55
|
type: String,
|
|
57
|
-
default:
|
|
56
|
+
default: () => uni.$u.props.loadingIcon.inactiveColor
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|