@10yun/cv-mobile-ui 0.5.50 → 0.5.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/build/common_func.js +3 -1
- package/build/parse-create.js +17 -8
- package/build/parse-pages-pkg.js +10 -4
- package/empty-devtools.js +3 -0
- package/libs/aes.js +50 -0
- package/libs/bledefine/bledefine.js +51 -0
- package/libs/bledefine/ios-ble-statuscode.js +97 -0
- package/libs/nfc/hexiii-nfc.js +236 -0
- package/libs/nfc.js +179 -0
- package/libs/sdk/html2canvas.js +8 -0
- package/libs/sdk/sdk-h5.js +585 -0
- package/{plugins → libs}/storage2.js +0 -5
- package/{plugins → libs}/storage3.js +0 -4
- package/libs/validators/index.js +438 -0
- package/libs/weapp-qrcode.js +1108 -0
- package/package.json +2 -3
- package/ui-cv/components/cv-dialog-share/tui-share.vue +16 -16
- package/ui-cv/components/cv-mask-png/cv-mask-png.vue +27 -0
- package/ui-cv/components/cv-mask-svg/cv-mask-svg.vue +22 -0
- package/ui-cv/components/cv-mask-svg/mixins.js +131 -0
- package/ui-fireui/components/{fui-actionsheet/fui-actionsheet.vue → u-action-sheet/u-action-sheet.vue} +21 -21
- package/ui-fireui/components/{fui-alert/fui-alert.vue → u-alert/u-alert.vue} +13 -13
- package/ui-fireui/components/{fui-badge/fui-badge.vue → u-badge/u-badge.vue} +16 -16
- package/ui-fireui/components/{fui-bottom-navigation/fui-bottom-navigation.vue → u-bottom-navigation/u-bottom-navigation.vue} +47 -46
- package/ui-fireui/components/{fui-bottom-popup/fui-bottom-popup.vue → u-bottom-popup/u-bottom-popup.vue} +9 -8
- package/ui-fireui/components/{fui-bubble-popup/fui-bubble-popup.vue → u-bubble-popup/u-bubble-popup.vue} +19 -15
- package/ui-fireui/components/{fui-button/fui-button.vue → u-button/u-button.vue} +69 -69
- package/ui-fireui/components/u-button/u-button2.vue +553 -0
- package/ui-fireui/components/{fui-calendar/fui-calendar.vue → u-calendar/u-calendar.vue} +78 -78
- package/ui-fireui/components/u-calendar/u-calendar2.vue +801 -0
- package/ui-fireui/components/{fui-card/fui-card.vue → u-card/u-card.vue} +24 -24
- package/ui-fireui/components/{fui-cascade-selection/fui-cascade-selection.vue → u-cascade-selection/u-cascade-selection.vue} +32 -32
- package/ui-fireui/components/{fui-circular-progress/fui-circular-progress.vue → u-circular-progress/u-circular-progress.vue} +14 -6
- package/ui-fireui/components/{fui-collapse/fui-collapse.vue → u-collapse/u-collapse.vue} +19 -19
- package/ui-fireui/components/{fui-countdown/fui-countdown.vue → u-countdown/u-countdown.vue} +28 -28
- package/ui-fireui/components/{fui-datetime/fui-datetime.vue → u-datetime/u-datetime.vue} +51 -51
- package/ui-fireui/components/{fui-divider/fui-divider.vue → u-divider/u-divider.vue} +6 -6
- package/ui-fireui/components/{fui-drawer/fui-drawer.vue → u-drawer/u-drawer.vue} +11 -11
- package/ui-fireui/components/{fui-dropdown-list/fui-dropdown-list.vue → u-dropdown-list/u-dropdown-list.vue} +11 -6
- package/ui-fireui/components/{fui-fab/fui-fab.vue → u-fab/u-fab.vue} +30 -30
- package/ui-fireui/components/{fui-footer/fui-footer.vue → u-footer/u-footer.vue} +19 -15
- package/ui-fireui/components/{fui-grid/fui-grid.vue → u-grid/u-grid.vue} +13 -5
- package/ui-fireui/components/{fui-grid-item/fui-grid-item.vue → u-grid-item/u-grid-item.vue} +19 -19
- package/ui-fireui/components/{fui-icon/fui-icon.vue → u-icon/u-icon.vue} +191 -191
- package/ui-fireui/components/{fui-image-cropper/fui-image-cropper.vue → u-image-cropper/u-image-cropper.vue} +44 -44
- package/ui-fireui/components/{fui-image-group/fui-image-group.vue → u-image-group/u-image-group.vue} +7 -7
- package/ui-fireui/components/{fui-keyboard/fui-keyboard.vue → u-keyboard/u-keyboard.vue} +29 -32
- package/ui-fireui/components/{fui-keyboard-input/fui-keyboard-input.vue → u-keyboard-input/u-keyboard-input.vue} +9 -9
- package/ui-fireui/components/{fui-list-cell/fui-list-cell.vue → u-list-cell/u-list-cell.vue} +23 -23
- package/ui-fireui/components/{fui-list-view/fui-list-view.vue → u-list-view/u-list-view.vue} +11 -11
- package/ui-fireui/components/{fui-loading/fui-loading.vue → u-loading/u-loading.vue} +6 -6
- package/ui-fireui/components/{fui-loadmore/fui-loadmore.vue → u-loadmore/u-loadmore.vue} +15 -15
- package/ui-fireui/components/{fui-modal/fui-modal.vue → u-modal/u-modal.vue} +58 -58
- package/ui-fireui/components/{fui-navigation-bar/fui-navigation-bar.vue → u-navigation-bar/u-navigation-bar.vue} +11 -10
- package/ui-fireui/components/{fui-no-data/fui-no-data.vue → u-no-data/u-no-data.vue} +11 -11
- package/ui-fireui/components/{fui-nomore/fui-nomore.vue → u-nomore/u-nomore.vue} +10 -10
- package/ui-fireui/components/{fui-numberbox/fui-numberbox.vue → u-numberbox/u-numberbox.vue} +12 -12
- package/ui-fireui/components/{fui-numberbox-border/fui-numberbox-border.vue → u-numberbox-border/u-numberbox-border.vue} +10 -10
- package/ui-fireui/components/{fui-picture-cropper/fui-picture-cropper.vue → u-picture-cropper/u-picture-cropper.vue} +42 -42
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +582 -0
- package/ui-fireui/components/{fui-round-progress/fui-round-progress.vue → u-round-progress/u-round-progress.vue} +2 -2
- package/ui-fireui/components/{fui-scroll-top/fui-scroll-top.vue → u-scroll-top/u-scroll-top.vue} +21 -21
- package/ui-fireui/components/{fui-sharemodel/fui-sharemodel.vue → u-share-model/u-share-model.vue} +24 -24
- package/ui-fireui/components/{fui-skeleton/fui-skeleton.vue → u-skeleton/u-skeleton.vue} +22 -22
- package/ui-fireui/components/{fui-steps/fui-steps.vue → u-steps/u-steps.vue} +27 -27
- package/ui-fireui/components/{fui-sticky/fui-sticky.vue → u-sticky/u-sticky.vue} +4 -4
- package/ui-fireui/components/{fui-sticky-wxs/fui-sticky-wxs.vue → u-sticky-wxs/u-sticky-wxs.vue} +7 -7
- package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +46 -0
- package/ui-fireui/components/{fui-swipe-action/fui-swipe-action.vue → u-swipe-action/u-swipe-action.vue} +11 -11
- package/ui-fireui/components/{fui-tabbar/fui-tabbar.vue → u-tabbar/u-tabbar.vue} +26 -30
- package/ui-fireui/components/{fui-tabs/fui-tabs.vue → u-tabs/u-tabs.vue} +17 -17
- package/ui-fireui/components/{fui-tabs2/fui-tabs2.vue → u-tabs2/u-tabs2.vue} +17 -17
- package/ui-fireui/components/{fui-tag/fui-tag.vue → u-tag/u-tag.vue} +362 -374
- package/ui-fireui/components/{fui-time-axis/fui-time-axis.vue → u-time-axis/u-time-axis.vue} +3 -3
- package/ui-fireui/components/{fui-timeaxis-item/fui-timeaxis-item.vue → u-timeaxis-item/u-timeaxis-item.vue} +4 -4
- package/ui-fireui/components/{fui-tips/fui-tips.vue → u-tips/u-tips.vue} +20 -20
- package/ui-fireui/components/{fui-toast/fui-toast.vue → u-toast/u-toast.vue} +13 -13
- package/ui-fireui/components/{fui-top-dropdown/fui-top-dropdown.vue → u-top-dropdown/u-top-dropdown.vue} +8 -8
- package/ui-fireui/components/{fui-upload/fui-upload.vue → u-upload/u-upload.vue} +30 -30
- package/ui-fireui/components/u-upload2/u-upload.vue +464 -0
- package/ui-fireui/components/{fui-uploadsamll/fui-uploadsamll.vue → u-uploadsamll/u-uploadsamll.vue} +34 -34
- package/ui-fireui/css/thorui.css +589 -0
- package/ui-fireui/{fireui.css → index.css} +306 -268
- package/ui-fireui/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +241 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +8 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +666 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +11 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +298 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +142 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +23 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +21 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +1191 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +22 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +3 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/canvas.js +74 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/image.js +96 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/env/tool.js +24 -0
- package/ui-fireui/nvue/u-circular-progress/gcanvas/index.js +47 -0
- package/ui-fireui/nvue/u-circular-progress/u-circular-progress.nvue +203 -0
- package/ui-fireui/nvue/u-icon/icons.js +188 -0
- package/ui-fireui/nvue/u-icon/u-icon.vue +78 -0
- package/uview-plus/components/u-grid/u-grid.vue +23 -1
- package/ui-fireui/components/fui-picture-cropper/fui-picture-cropper.wxs +0 -560
- package/ui-fireui/components/fui-rate/fui-rate.vue +0 -167
- package/ui-fireui/components/fui-sticky-wxs/fui-sticky.wxs +0 -44
- /package/ui-fireui/components/{fui-calendar/fui-calendar.js → u-calendar/u-calendar.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view @touchmove.stop.prevent="stop">
|
|
3
|
-
<view class="
|
|
3
|
+
<view class="up-bottom-navigation" :class="{ 'up-navigation-fixed': isFixed, 'up-remove-splitLine': unlined }">
|
|
4
4
|
<view
|
|
5
|
-
class="
|
|
6
|
-
:class="{ '
|
|
5
|
+
class="up-navigation-item"
|
|
6
|
+
:class="{ 'up-item-after_height': splitLineScale, 'up-last-item': index == itemList.length - 1 }"
|
|
7
7
|
:style="{ backgroundColor: isDarkMode ? '#202020' : backgroundColor }"
|
|
8
8
|
v-for="(item, index) in itemList"
|
|
9
9
|
:key="index"
|
|
10
10
|
>
|
|
11
|
-
<view class="
|
|
11
|
+
<view class="up-item-inner" @tap="menuClick(index, item.parameter, item.type)">
|
|
12
12
|
<image
|
|
13
13
|
:src="current | getIcon(index, item)"
|
|
14
|
-
class="
|
|
14
|
+
class="up-navigation-img"
|
|
15
15
|
v-if="item.iconPath || (current == index && item.selectedIconPath && item.type == 1)"
|
|
16
16
|
></image>
|
|
17
17
|
<text
|
|
18
|
-
class="
|
|
18
|
+
class="up-navigation-text"
|
|
19
19
|
:style="{
|
|
20
20
|
color: isDarkMode ? '#fff' : current == index && item.type == 1 ? selectedColor : item.color || color,
|
|
21
21
|
fontWeight: current == index && bold && item.type == 1 ? 'bold' : 'normal',
|
|
@@ -26,32 +26,32 @@
|
|
|
26
26
|
</text>
|
|
27
27
|
</view>
|
|
28
28
|
<view
|
|
29
|
-
class="
|
|
30
|
-
:class="{ '
|
|
29
|
+
class="up-navigation-popup"
|
|
30
|
+
:class="{ 'up-navigation-popup_show': showMenuIndex == index }"
|
|
31
31
|
:style="{ backgroundColor: isDarkMode ? '#4c4c4c' : subMenuBgColor, left: item.popupLeft || '50%' }"
|
|
32
32
|
v-if="item.itemList"
|
|
33
33
|
>
|
|
34
34
|
<view
|
|
35
|
-
class="
|
|
36
|
-
:class="{ '
|
|
37
|
-
:hover-class="subMenuHover ? (isDarkMode ? '
|
|
35
|
+
class="up-popup-cell"
|
|
36
|
+
:class="{ 'up-first-cell': subIndex === 0, 'up-last-cell': subIndex === item.itemList.length - 1 }"
|
|
37
|
+
:hover-class="subMenuHover ? (isDarkMode ? 'up-item-dark_hover' : 'up-item-hover') : ''"
|
|
38
38
|
:hover-stay-time="150"
|
|
39
39
|
v-for="(subItem, subIndex) in item.itemList || []"
|
|
40
40
|
:key="subIndex"
|
|
41
41
|
@tap="subMenuClick(index, item.type, subIndex, subItem.parameter)"
|
|
42
42
|
>
|
|
43
43
|
<text
|
|
44
|
-
class="
|
|
44
|
+
class="up-ellipsis"
|
|
45
45
|
:style="{ color: isDarkMode ? '#fff' : subMenuColor, fontSize: subMenufontSize, lineHeight: subMenufontSize }"
|
|
46
46
|
>
|
|
47
47
|
{{ subItem.text }}
|
|
48
48
|
</text>
|
|
49
49
|
</view>
|
|
50
|
-
<view class="
|
|
50
|
+
<view class="up-popup-triangle" :style="{ borderTopColor: isDarkMode ? '#4c4c4c' : subMenuBgColor }"></view>
|
|
51
51
|
</view>
|
|
52
52
|
</view>
|
|
53
53
|
</view>
|
|
54
|
-
<view class="
|
|
54
|
+
<view class="up-navigation-mask" :class="{ 'up-navigation-mask_show': showMenuIndex != -1 }" @tap="handleClose"></view>
|
|
55
55
|
</view>
|
|
56
56
|
</template>
|
|
57
57
|
|
|
@@ -163,15 +163,7 @@ export default {
|
|
|
163
163
|
default: false
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
|
-
|
|
167
|
-
getIcon(current, index, item) {
|
|
168
|
-
let url = item.iconPath;
|
|
169
|
-
if (item.type == 1) {
|
|
170
|
-
url = current == index ? item.selectedIconPath || item.iconPath : item.iconPath;
|
|
171
|
-
}
|
|
172
|
-
return url;
|
|
173
|
-
}
|
|
174
|
-
},
|
|
166
|
+
|
|
175
167
|
data() {
|
|
176
168
|
return {
|
|
177
169
|
showMenuIndex: -1 //显示的菜单index
|
|
@@ -207,13 +199,20 @@ export default {
|
|
|
207
199
|
subIndex: subIndex,
|
|
208
200
|
parameter: parameter || ''
|
|
209
201
|
});
|
|
202
|
+
},
|
|
203
|
+
getIcon(current, index, item) {
|
|
204
|
+
let url = item.iconPath;
|
|
205
|
+
if (item.type == 1) {
|
|
206
|
+
url = current == index ? item.selectedIconPath || item.iconPath : item.iconPath;
|
|
207
|
+
}
|
|
208
|
+
return url;
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
};
|
|
213
212
|
</script>
|
|
214
213
|
|
|
215
214
|
<style scoped>
|
|
216
|
-
.
|
|
215
|
+
.up-bottom-navigation {
|
|
217
216
|
width: 100%;
|
|
218
217
|
height: 100rpx;
|
|
219
218
|
display: flex;
|
|
@@ -223,14 +222,14 @@ export default {
|
|
|
223
222
|
z-index: 999;
|
|
224
223
|
}
|
|
225
224
|
|
|
226
|
-
.
|
|
225
|
+
.up-navigation-fixed {
|
|
227
226
|
position: fixed !important;
|
|
228
227
|
left: 0;
|
|
229
228
|
bottom: 0;
|
|
230
229
|
padding-bottom: env(safe-area-inset-bottom);
|
|
231
230
|
}
|
|
232
231
|
|
|
233
|
-
.
|
|
232
|
+
.up-bottom-navigation::after {
|
|
234
233
|
content: '';
|
|
235
234
|
width: 100%;
|
|
236
235
|
border-top: 1rpx solid #bfbfbf;
|
|
@@ -239,20 +238,22 @@ export default {
|
|
|
239
238
|
left: 0;
|
|
240
239
|
transform: scaleY(0.5) translateZ(0);
|
|
241
240
|
transform-origin: 0 0;
|
|
241
|
+
transform-origin: 0 100%;
|
|
242
242
|
z-index: 1000;
|
|
243
243
|
}
|
|
244
|
-
.
|
|
244
|
+
.up-remove-splitLine::before {
|
|
245
245
|
border-top: 0 !important;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
.
|
|
248
|
+
.up-navigation-item {
|
|
249
249
|
flex: 1;
|
|
250
250
|
height: 100rpx;
|
|
251
251
|
position: relative;
|
|
252
252
|
box-sizing: border-box;
|
|
253
|
+
position: relative;
|
|
253
254
|
}
|
|
254
255
|
|
|
255
|
-
.
|
|
256
|
+
.up-item-inner {
|
|
256
257
|
width: 100%;
|
|
257
258
|
height: 100rpx;
|
|
258
259
|
display: flex;
|
|
@@ -261,7 +262,7 @@ export default {
|
|
|
261
262
|
justify-content: center;
|
|
262
263
|
}
|
|
263
264
|
|
|
264
|
-
.
|
|
265
|
+
.up-navigation-item::after {
|
|
265
266
|
height: 100%;
|
|
266
267
|
content: '';
|
|
267
268
|
position: absolute;
|
|
@@ -271,22 +272,22 @@ export default {
|
|
|
271
272
|
top: 0;
|
|
272
273
|
}
|
|
273
274
|
|
|
274
|
-
.
|
|
275
|
+
.up-item-after_height::after {
|
|
275
276
|
height: 40% !important;
|
|
276
277
|
top: 30% !important;
|
|
277
278
|
}
|
|
278
279
|
|
|
279
|
-
.
|
|
280
|
+
.up-last-item::after {
|
|
280
281
|
border-right: 0 !important;
|
|
281
282
|
}
|
|
282
283
|
|
|
283
|
-
.
|
|
284
|
+
.up-navigation-img {
|
|
284
285
|
width: 32rpx;
|
|
285
286
|
height: 32rpx;
|
|
286
287
|
margin-right: 8rpx;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
.
|
|
290
|
+
.up-navigation-popup {
|
|
290
291
|
max-width: 160%;
|
|
291
292
|
width: auto;
|
|
292
293
|
position: absolute;
|
|
@@ -300,13 +301,13 @@ export default {
|
|
|
300
301
|
z-index: -1;
|
|
301
302
|
}
|
|
302
303
|
|
|
303
|
-
.
|
|
304
|
+
.up-navigation-popup_show {
|
|
304
305
|
transform: translate3d(-50%, -124rpx, 0);
|
|
305
306
|
visibility: visible;
|
|
306
307
|
opacity: 1;
|
|
307
308
|
}
|
|
308
309
|
|
|
309
|
-
.
|
|
310
|
+
.up-popup-triangle {
|
|
310
311
|
position: absolute;
|
|
311
312
|
width: 0;
|
|
312
313
|
height: 0;
|
|
@@ -320,7 +321,7 @@ export default {
|
|
|
320
321
|
z-index: 997;
|
|
321
322
|
}
|
|
322
323
|
|
|
323
|
-
.
|
|
324
|
+
.up-popup-cell {
|
|
324
325
|
width: 100%;
|
|
325
326
|
padding: 32rpx 20rpx;
|
|
326
327
|
box-sizing: border-box;
|
|
@@ -331,13 +332,13 @@ export default {
|
|
|
331
332
|
position: relative;
|
|
332
333
|
}
|
|
333
334
|
|
|
334
|
-
.
|
|
335
|
+
.up-ellipsis {
|
|
335
336
|
white-space: nowrap;
|
|
336
337
|
overflow: hidden;
|
|
337
338
|
text-overflow: ellipsis;
|
|
338
339
|
}
|
|
339
340
|
|
|
340
|
-
.
|
|
341
|
+
.up-popup-cell::after {
|
|
341
342
|
content: '';
|
|
342
343
|
position: absolute;
|
|
343
344
|
border-bottom: 1rpx solid #eaeef1;
|
|
@@ -348,29 +349,29 @@ export default {
|
|
|
348
349
|
left: 24rpx;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
|
-
.
|
|
352
|
+
.up-item-hover {
|
|
352
353
|
background-color: #f1f1f1;
|
|
353
354
|
}
|
|
354
355
|
|
|
355
|
-
.
|
|
356
|
+
.up-item-dark_hover {
|
|
356
357
|
background-color: #555;
|
|
357
358
|
}
|
|
358
359
|
|
|
359
|
-
.
|
|
360
|
+
.up-first-cell {
|
|
360
361
|
border-top-left-radius: 8rpx;
|
|
361
362
|
border-top-right-radius: 8rpx;
|
|
362
363
|
}
|
|
363
364
|
|
|
364
|
-
.
|
|
365
|
+
.up-last-cell {
|
|
365
366
|
border-bottom-left-radius: 8rpx;
|
|
366
367
|
border-bottom-right-radius: 8rpx;
|
|
367
368
|
}
|
|
368
369
|
|
|
369
|
-
.
|
|
370
|
+
.up-last-cell::after {
|
|
370
371
|
border-bottom: 0 !important;
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
.
|
|
374
|
+
.up-navigation-mask {
|
|
374
375
|
position: fixed;
|
|
375
376
|
top: 0;
|
|
376
377
|
left: 0;
|
|
@@ -383,7 +384,7 @@ export default {
|
|
|
383
384
|
background-color: rgba(0, 0, 0, 0);
|
|
384
385
|
}
|
|
385
386
|
|
|
386
|
-
.
|
|
387
|
+
.up-navigation-mask_show {
|
|
387
388
|
opacity: 1;
|
|
388
389
|
visibility: visible;
|
|
389
390
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view @touchmove.stop.prevent>
|
|
3
3
|
<view
|
|
4
|
-
class="
|
|
5
|
-
:class="{ '
|
|
4
|
+
class="up-popup-class up-bottom-popup"
|
|
5
|
+
:class="{ 'up-popup-show': show, 'up-popup-radius': radius }"
|
|
6
|
+
:class2="{ 'up-hidden': !show, 'up-popup-show': show, 'up-popup-radius': radius }"
|
|
6
7
|
:style="{ backgroundColor: backgroundColor, height: height ? height + 'rpx' : 'auto' }"
|
|
7
8
|
>
|
|
8
9
|
<slot></slot>
|
|
9
10
|
</view>
|
|
10
|
-
<view class="
|
|
11
|
+
<view class="up-popup-mask" :class="[show ? 'up-mask-show' : '']" v-if="mask" @tap="handleClose"></view>
|
|
11
12
|
</view>
|
|
12
13
|
</template>
|
|
13
14
|
|
|
@@ -53,7 +54,7 @@ export default {
|
|
|
53
54
|
</script>
|
|
54
55
|
|
|
55
56
|
<style scoped>
|
|
56
|
-
.
|
|
57
|
+
.up-bottom-popup {
|
|
57
58
|
width: 100%;
|
|
58
59
|
position: fixed;
|
|
59
60
|
left: 0;
|
|
@@ -67,20 +68,20 @@ export default {
|
|
|
67
68
|
transition: all 0.3s ease-in-out;
|
|
68
69
|
min-height: 20rpx;
|
|
69
70
|
}
|
|
70
|
-
.
|
|
71
|
+
.up-popup-radius {
|
|
71
72
|
border-top-left-radius: 24rpx;
|
|
72
73
|
border-top-right-radius: 24rpx;
|
|
73
74
|
padding-bottom: env(safe-area-inset-bottom);
|
|
74
75
|
overflow: hidden;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
|
-
.
|
|
78
|
+
.up-popup-show {
|
|
78
79
|
transform: translate3d(0, 0, 0);
|
|
79
80
|
opacity: 1;
|
|
80
81
|
/* visibility: visible; */
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
.
|
|
84
|
+
.up-popup-mask {
|
|
84
85
|
position: fixed;
|
|
85
86
|
top: 0;
|
|
86
87
|
left: 0;
|
|
@@ -93,7 +94,7 @@ export default {
|
|
|
93
94
|
visibility: hidden;
|
|
94
95
|
}
|
|
95
96
|
|
|
96
|
-
.
|
|
97
|
+
.up-mask-show {
|
|
97
98
|
opacity: 1;
|
|
98
99
|
visibility: visible;
|
|
99
100
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view :class="{ '
|
|
2
|
+
<view :class="{ 'up-flex-end': flexEnd }">
|
|
3
3
|
<view
|
|
4
|
-
class="
|
|
5
|
-
:class="{ '
|
|
4
|
+
class="up-popup-list"
|
|
5
|
+
:class="{ 'up-popup-show': show, 'up-z_index': show && position != 'relative' }"
|
|
6
6
|
:style="{
|
|
7
7
|
width: width,
|
|
8
8
|
backgroundColor: backgroundColor,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}"
|
|
18
18
|
>
|
|
19
19
|
<view
|
|
20
|
-
class="
|
|
20
|
+
class="up-triangle"
|
|
21
21
|
:style="{
|
|
22
22
|
borderWidth: borderWidth,
|
|
23
23
|
borderColor: `transparent transparent ${backgroundColor} transparent`,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
v-if="direction == 'top'"
|
|
30
30
|
></view>
|
|
31
31
|
<view
|
|
32
|
-
class="
|
|
32
|
+
class="up-triangle"
|
|
33
33
|
:style="{
|
|
34
34
|
borderWidth: borderWidth,
|
|
35
35
|
borderColor: `${backgroundColor} transparent transparent transparent`,
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
v-if="direction == 'bottom'"
|
|
42
42
|
></view>
|
|
43
43
|
<view
|
|
44
|
-
class="
|
|
44
|
+
class="up-triangle"
|
|
45
45
|
:style="{
|
|
46
46
|
borderWidth: borderWidth,
|
|
47
47
|
borderColor: `transparent ${backgroundColor} transparent transparent`,
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
v-if="direction == 'left'"
|
|
54
54
|
></view>
|
|
55
55
|
<view
|
|
56
|
-
class="
|
|
56
|
+
class="up-triangle"
|
|
57
57
|
:style="{
|
|
58
58
|
borderWidth: borderWidth,
|
|
59
59
|
borderColor: `transparent transparent transparent ${backgroundColor}`,
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
</view>
|
|
69
69
|
<view
|
|
70
70
|
@touchmove.stop.prevent="stop"
|
|
71
|
-
class="
|
|
72
|
-
:class="{ '
|
|
71
|
+
class="up-popup-mask"
|
|
72
|
+
:class="{ 'up-popup-show': show }"
|
|
73
73
|
:style="{ backgroundColor: maskBgColor }"
|
|
74
74
|
v-if="mask"
|
|
75
75
|
@tap="handleClose"
|
|
@@ -118,6 +118,7 @@ export default {
|
|
|
118
118
|
//背景颜色
|
|
119
119
|
backgroundColor: {
|
|
120
120
|
type: String,
|
|
121
|
+
// 5c8dff
|
|
121
122
|
default: '#4c4c4c'
|
|
122
123
|
},
|
|
123
124
|
//字体颜色
|
|
@@ -192,28 +193,31 @@ export default {
|
|
|
192
193
|
</script>
|
|
193
194
|
|
|
194
195
|
<style scoped>
|
|
195
|
-
.
|
|
196
|
+
.up-popup-list {
|
|
196
197
|
z-index: 1;
|
|
197
198
|
transition: all 0.3s ease-in-out;
|
|
198
199
|
opacity: 0;
|
|
199
200
|
visibility: hidden;
|
|
200
201
|
}
|
|
201
202
|
|
|
202
|
-
.
|
|
203
|
+
.up-flex-end {
|
|
203
204
|
width: 100%;
|
|
204
205
|
display: flex;
|
|
205
206
|
justify-content: flex-end;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
|
-
.
|
|
209
|
+
.up-triangle {
|
|
209
210
|
position: absolute;
|
|
210
211
|
width: 0;
|
|
211
212
|
height: 0;
|
|
212
213
|
border-style: solid;
|
|
213
214
|
z-index: 997;
|
|
215
|
+
border: 16rpx solid;
|
|
216
|
+
|
|
217
|
+
|
|
214
218
|
}
|
|
215
219
|
|
|
216
|
-
.
|
|
220
|
+
.up-popup-mask {
|
|
217
221
|
position: fixed;
|
|
218
222
|
top: 0;
|
|
219
223
|
left: 0;
|
|
@@ -225,12 +229,12 @@ export default {
|
|
|
225
229
|
visibility: hidden;
|
|
226
230
|
}
|
|
227
231
|
|
|
228
|
-
.
|
|
232
|
+
.up-popup-show {
|
|
229
233
|
opacity: 1;
|
|
230
234
|
visibility: visible;
|
|
231
235
|
}
|
|
232
236
|
|
|
233
|
-
.
|
|
237
|
+
.up-z_index {
|
|
234
238
|
z-index: 996;
|
|
235
239
|
}
|
|
236
240
|
</style>
|