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
package/libs/css/flex.scss
CHANGED
|
@@ -85,40 +85,40 @@
|
|
|
85
85
|
|
|
86
86
|
// 自动伸缩
|
|
87
87
|
.u-flex-fill {
|
|
88
|
-
flex: 1 1 auto
|
|
88
|
+
flex: 1 1 auto;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
// 边界自动伸缩
|
|
92
92
|
.u-margin-top-auto,
|
|
93
93
|
.u-m-t-auto {
|
|
94
|
-
margin-top: auto !important
|
|
94
|
+
margin-top: auto !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.u-margin-right-auto,
|
|
98
98
|
.u-m-r-auto {
|
|
99
|
-
margin-right: auto !important
|
|
99
|
+
margin-right: auto !important;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.u-margin-bottom-auto,
|
|
103
103
|
.u-m-b-auto {
|
|
104
|
-
margin-bottom: auto !important
|
|
104
|
+
margin-bottom: auto !important;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.u-margin-left-auto,
|
|
108
108
|
.u-m-l-auto {
|
|
109
|
-
margin-left: auto !important
|
|
109
|
+
margin-left: auto !important;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.u-margin-center-auto,
|
|
113
113
|
.u-m-c-auto {
|
|
114
114
|
margin-left: auto !important;
|
|
115
|
-
margin-right: auto !important
|
|
115
|
+
margin-right: auto !important;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.u-margin-middle-auto,
|
|
119
119
|
.u-m-m-auto {
|
|
120
120
|
margin-top: auto !important;
|
|
121
|
-
margin-bottom: auto !important
|
|
121
|
+
margin-bottom: auto !important;
|
|
122
122
|
}
|
|
123
123
|
/* #endif */
|
|
124
124
|
|
|
@@ -134,52 +134,54 @@
|
|
|
134
134
|
|
|
135
135
|
// 主轴起点对齐
|
|
136
136
|
.u-flex-start {
|
|
137
|
-
justify-content: flex-start
|
|
137
|
+
justify-content: flex-start;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// 主轴中间对齐
|
|
141
141
|
.u-flex-center {
|
|
142
|
-
justify-content: center
|
|
142
|
+
justify-content: center;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
// 主轴终点对齐
|
|
146
146
|
.u-flex-end {
|
|
147
|
-
justify-content: flex-end
|
|
147
|
+
justify-content: flex-end;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// 主轴等比间距
|
|
151
151
|
.u-flex-between {
|
|
152
|
-
justify-content: space-between
|
|
152
|
+
justify-content: space-between;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// 主轴均分间距
|
|
156
156
|
.u-flex-around {
|
|
157
|
-
justify-content: space-around
|
|
157
|
+
justify-content: space-around;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
// 交叉轴起点对齐
|
|
161
161
|
.u-flex-items-start {
|
|
162
|
-
align-items: flex-start
|
|
162
|
+
align-items: flex-start;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
// 交叉轴中间对齐
|
|
166
166
|
.u-flex-items-center {
|
|
167
|
-
align-items: center
|
|
167
|
+
align-items: center;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
// 交叉轴终点对齐
|
|
171
171
|
.u-flex-items-end {
|
|
172
|
-
align-items: flex-end
|
|
172
|
+
align-items: flex-end;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
// 交叉轴第一行文字基线对齐
|
|
176
176
|
.u-flex-items-baseline {
|
|
177
|
-
|
|
177
|
+
/* #ifndef APP-NVUE */
|
|
178
|
+
align-items: baseline;
|
|
179
|
+
/* #endif */
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
// 交叉轴方向拉伸对齐
|
|
181
183
|
.u-flex-items-stretch {
|
|
182
|
-
align-items: stretch
|
|
184
|
+
align-items: stretch;
|
|
183
185
|
}
|
|
184
186
|
|
|
185
187
|
|
|
@@ -187,54 +189,54 @@
|
|
|
187
189
|
|
|
188
190
|
// 子元素交叉轴起点对齐
|
|
189
191
|
.u-flex-self-start {
|
|
190
|
-
align-self: flex-start
|
|
192
|
+
align-self: flex-start;
|
|
191
193
|
}
|
|
192
194
|
|
|
193
195
|
// 子元素交叉轴居中对齐
|
|
194
196
|
.u-flex-self-center {
|
|
195
|
-
align-self: center
|
|
197
|
+
align-self: center;
|
|
196
198
|
}
|
|
197
199
|
|
|
198
200
|
// 子元素交叉轴终点对齐
|
|
199
201
|
.u-flex-self-end {
|
|
200
|
-
align-self: flex-end
|
|
202
|
+
align-self: flex-end;
|
|
201
203
|
}
|
|
202
204
|
|
|
203
205
|
// 子元素交叉轴第一行文字基线对齐
|
|
204
206
|
.u-flex-self-baseline {
|
|
205
|
-
align-self: baseline
|
|
207
|
+
align-self: baseline;
|
|
206
208
|
}
|
|
207
209
|
|
|
208
210
|
// 子元素交叉轴方向拉伸对齐
|
|
209
211
|
.u-flex-self-stretch {
|
|
210
|
-
align-self: stretch
|
|
212
|
+
align-self: stretch;
|
|
211
213
|
}
|
|
212
214
|
|
|
213
215
|
// 多轴交叉时的对齐方式
|
|
214
216
|
|
|
215
217
|
// 起点对齐
|
|
216
218
|
.u-flex-content-start {
|
|
217
|
-
align-content: flex-start
|
|
219
|
+
align-content: flex-start;
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
// 居中对齐
|
|
221
223
|
.u-flex-content-center {
|
|
222
|
-
align-content: center
|
|
224
|
+
align-content: center;
|
|
223
225
|
}
|
|
224
226
|
|
|
225
227
|
// 终点对齐
|
|
226
228
|
.u-flex-content-end {
|
|
227
|
-
align-content: flex-end
|
|
229
|
+
align-content: flex-end;
|
|
228
230
|
}
|
|
229
231
|
|
|
230
232
|
// 两端对齐
|
|
231
233
|
.u-flex-content-between {
|
|
232
|
-
align-content: space-between
|
|
234
|
+
align-content: space-between;
|
|
233
235
|
}
|
|
234
236
|
|
|
235
237
|
// 均分间距
|
|
236
238
|
.u-flex-content-around {
|
|
237
|
-
align-content: space-around
|
|
239
|
+
align-content: space-around;
|
|
238
240
|
}
|
|
239
241
|
|
|
240
242
|
// 全部居中对齐
|
|
@@ -242,55 +244,55 @@
|
|
|
242
244
|
justify-content: center;
|
|
243
245
|
align-items: center;
|
|
244
246
|
align-self: center;
|
|
245
|
-
align-content: center
|
|
247
|
+
align-content: center;
|
|
246
248
|
}
|
|
247
249
|
|
|
248
250
|
// 是否可以放大
|
|
249
251
|
.u-flex-grow {
|
|
250
|
-
flex-grow: 1
|
|
252
|
+
flex-grow: 1;
|
|
251
253
|
}
|
|
252
254
|
|
|
253
255
|
// 是否可以缩小
|
|
254
256
|
.u-flex-shrink {
|
|
255
|
-
flex-shrink: 1
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// 定义内外边距,历遍1-80
|
|
259
|
-
@for $i from 0 through 80 {
|
|
260
|
-
// 只要双数和能被5除尽的数
|
|
261
|
-
@if $i % 2 == 0 or $i % 5 == 0 {
|
|
262
|
-
// 得出:u-margin-30或者u-m-30
|
|
263
|
-
.u-margin-#{$i}, .u-m-#{$i} {
|
|
264
|
-
margin: $i + rpx!important;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
// 得出:u-padding-30或者u-p-30
|
|
268
|
-
.u-padding-#{$i}, .u-p-#{$i} {
|
|
269
|
-
padding: $i + rpx!important;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
@each $short, $long in l left, t top, r right, b bottom {
|
|
273
|
-
// 缩写版,结果如: u-m-l-30
|
|
274
|
-
// 定义外边距
|
|
275
|
-
.u-m-#{$short}-#{$i} {
|
|
276
|
-
margin-#{$long}: $i + rpx!important;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// 定义内边距
|
|
280
|
-
.u-p-#{$short}-#{$i} {
|
|
281
|
-
padding-#{$long}: $i + rpx!important;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// 完整版,结果如:u-margin-left-30
|
|
285
|
-
// 定义外边距
|
|
286
|
-
.u-margin-#{$long}-#{$i} {
|
|
287
|
-
margin-#{$long}: $i + rpx!important;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// 定义内边距
|
|
291
|
-
.u-padding-#{$long}-#{$i} {
|
|
292
|
-
padding-#{$long}: $i + rpx!important;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
}
|
|
257
|
+
flex-shrink: 1;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// 定义内外边距,历遍1-80
|
|
261
|
+
@for $i from 0 through 80 {
|
|
262
|
+
// 只要双数和能被5除尽的数
|
|
263
|
+
@if $i % 2 == 0 or $i % 5 == 0 {
|
|
264
|
+
// 得出:u-margin-30或者u-m-30
|
|
265
|
+
.u-margin-#{$i}, .u-m-#{$i} {
|
|
266
|
+
margin: $i + rpx!important;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// 得出:u-padding-30或者u-p-30
|
|
270
|
+
.u-padding-#{$i}, .u-p-#{$i} {
|
|
271
|
+
padding: $i + rpx!important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
@each $short, $long in l left, t top, r right, b bottom {
|
|
275
|
+
// 缩写版,结果如: u-m-l-30
|
|
276
|
+
// 定义外边距
|
|
277
|
+
.u-m-#{$short}-#{$i} {
|
|
278
|
+
margin-#{$long}: $i + rpx!important;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// 定义内边距
|
|
282
|
+
.u-p-#{$short}-#{$i} {
|
|
283
|
+
padding-#{$long}: $i + rpx!important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// 完整版,结果如:u-margin-left-30
|
|
287
|
+
// 定义外边距
|
|
288
|
+
.u-margin-#{$long}-#{$i} {
|
|
289
|
+
margin-#{$long}: $i + rpx!important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// 定义内边距
|
|
293
|
+
.u-padding-#{$long}-#{$i} {
|
|
294
|
+
padding-#{$long}: $i + rpx!important;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|