@10yun/cv-mobile-ui 0.5.51 → 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-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/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,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
3
|
-
<view :class="[isDot ? '
|
|
4
|
-
<view :style="{ backgroundColor: backgroundColor }" :class="[isDot ? '
|
|
2
|
+
<view class="up-nomore-class up-loadmore-none">
|
|
3
|
+
<view :class="[isDot ? 'up-nomore-dot' : 'up-nomore']">
|
|
4
|
+
<view :style="{ backgroundColor: backgroundColor }" :class="[isDot ? 'up-dot-text' : 'up-nomore-text']">
|
|
5
5
|
{{ isDot ? dotText : text }}
|
|
6
6
|
</view>
|
|
7
7
|
</view>
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
</script>
|
|
37
37
|
|
|
38
38
|
<style scoped>
|
|
39
|
-
.
|
|
39
|
+
.up-loadmore-none {
|
|
40
40
|
width: 50%;
|
|
41
41
|
margin: 1.5em auto;
|
|
42
42
|
line-height: 1.5em;
|
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
justify-content: center;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.
|
|
48
|
+
.up-nomore {
|
|
49
49
|
width: 100%;
|
|
50
50
|
height: 100%;
|
|
51
51
|
position: relative;
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
padding-bottom: 6rpx;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
.
|
|
58
|
+
.up-nomore::before {
|
|
59
59
|
content: ' ';
|
|
60
60
|
position: absolute;
|
|
61
61
|
border-bottom: 1rpx solid #333;
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
left: 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
.
|
|
69
|
+
.up-nomore-text {
|
|
70
70
|
color: #999;
|
|
71
71
|
font-size: 28rpx;
|
|
72
72
|
text-align: center;
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
z-index: 1;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.
|
|
80
|
+
.up-nomore-dot {
|
|
81
81
|
position: relative;
|
|
82
82
|
text-align: center;
|
|
83
83
|
-webkit-display: flex;
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
88
88
|
padding-bottom: 6rpx;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
.
|
|
91
|
+
.up-nomore-dot::before {
|
|
92
92
|
content: '';
|
|
93
93
|
position: absolute;
|
|
94
94
|
border-bottom: 1rpx solid #e5e5e5;
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
left: 50%;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
.
|
|
102
|
+
.up-dot-text {
|
|
103
103
|
position: relative;
|
|
104
104
|
color: #e5e5e5;
|
|
105
105
|
font-size: 10px;
|
package/ui-fireui/components/{fui-numberbox/fui-numberbox.vue → u-numberbox/u-numberbox.vue}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
2
|
+
<view class="up-numberbox">
|
|
3
3
|
<view
|
|
4
|
-
class="
|
|
5
|
-
:class="[disabled || min >= value ? '
|
|
4
|
+
class="up-numbox-icon up-icon-reduce"
|
|
5
|
+
:class="[disabled || min >= value ? 'up-disabled' : '']"
|
|
6
6
|
@tap="reduce"
|
|
7
7
|
:style="{ color: iconColor, fontSize: iconSize + 'rpx' }"
|
|
8
8
|
></view>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
v-model="inputValue"
|
|
12
12
|
:disabled="disabled"
|
|
13
13
|
@blur="blur"
|
|
14
|
-
class="
|
|
14
|
+
class="up-num-input"
|
|
15
15
|
:style="{
|
|
16
16
|
color: color,
|
|
17
17
|
fontSize: size + 'rpx',
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
}"
|
|
23
23
|
/>
|
|
24
24
|
<view
|
|
25
|
-
class="
|
|
26
|
-
:class="[disabled || value >= max ? '
|
|
25
|
+
class="up-numbox-icon up-icon-plus"
|
|
26
|
+
:class="[disabled || value >= max ? 'up-disabled' : '']"
|
|
27
27
|
@tap="plus"
|
|
28
28
|
:style="{ color: iconColor, fontSize: iconSize + 'rpx' }"
|
|
29
29
|
></view>
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
195
195
|
font-style: normal;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
.
|
|
198
|
+
.up-numbox-icon {
|
|
199
199
|
font-family: 'numberbox' !important;
|
|
200
200
|
font-style: normal;
|
|
201
201
|
-webkit-font-smoothing: antialiased;
|
|
@@ -206,28 +206,28 @@ export default {
|
|
|
206
206
|
margin: 0 5px;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
.
|
|
209
|
+
.up-icon-reduce:before {
|
|
210
210
|
content: '\e691';
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.
|
|
213
|
+
.up-icon-plus:before {
|
|
214
214
|
content: '\e605';
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
.
|
|
217
|
+
.up-numberbox {
|
|
218
218
|
display: -webkit-inline-flex;
|
|
219
219
|
display: inline-flex;
|
|
220
220
|
align-items: center;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
.
|
|
223
|
+
.up-num-input {
|
|
224
224
|
text-align: center;
|
|
225
225
|
background: #ffffff;
|
|
226
226
|
border-radius: 3px;
|
|
227
227
|
border: 1px solid #d4d4d4;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
.
|
|
230
|
+
.up-disabled {
|
|
231
231
|
color: #ededed !important;
|
|
232
232
|
border-color: #ededed !important;
|
|
233
233
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
2
|
+
<view class="up-numberbox">
|
|
3
3
|
<view
|
|
4
4
|
style="padding-left: 20upx"
|
|
5
|
-
:class="[disabled || value >= max ? '
|
|
5
|
+
:class="[disabled || value >= max ? 'up-disabled' : '']"
|
|
6
6
|
@tap="reduce"
|
|
7
7
|
:style="{ color: iconColor, fontSize: iconSize + 'rpx' }"
|
|
8
8
|
>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
v-model="inputValue"
|
|
14
14
|
:disabled="disabled"
|
|
15
15
|
@blur="blur"
|
|
16
|
-
class="
|
|
16
|
+
class="up-num-input"
|
|
17
17
|
:style="{
|
|
18
18
|
color: color,
|
|
19
19
|
fontSize: size + 'rpx',
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}"
|
|
25
25
|
/>
|
|
26
26
|
<view
|
|
27
|
-
:class="[disabled || min >= value ? '
|
|
27
|
+
:class="[disabled || min >= value ? 'up-disabled' : '']"
|
|
28
28
|
@tap="plus"
|
|
29
29
|
style="padding-right: 20upx"
|
|
30
30
|
:style="{ color: iconColor, fontSize: iconSize + 'rpx' }"
|
|
@@ -198,7 +198,7 @@ export default {
|
|
|
198
198
|
font-style: normal;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
.
|
|
201
|
+
.up-numbox-icon {
|
|
202
202
|
font-family: 'numberbox' !important;
|
|
203
203
|
font-style: normal;
|
|
204
204
|
-webkit-font-smoothing: antialiased;
|
|
@@ -206,15 +206,15 @@ export default {
|
|
|
206
206
|
padding: 5rpx;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
.
|
|
209
|
+
.up-icon-reduce:before {
|
|
210
210
|
content: '\e691';
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.
|
|
213
|
+
.up-icon-plus:before {
|
|
214
214
|
content: '\e605';
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
.
|
|
217
|
+
.up-numberbox {
|
|
218
218
|
display: -webkit-inline-flex;
|
|
219
219
|
display: inline-flex;
|
|
220
220
|
align-items: center;
|
|
@@ -222,11 +222,11 @@ export default {
|
|
|
222
222
|
border: 1px solid #dbdbdb;
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
.
|
|
225
|
+
.up-num-input {
|
|
226
226
|
text-align: center;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
.
|
|
229
|
+
.up-disabled {
|
|
230
230
|
color: #00afc7 !important;
|
|
231
231
|
}
|
|
232
232
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="
|
|
2
|
+
<view class="up-container" @touchmove.stop.prevent="stop">
|
|
3
3
|
<view
|
|
4
|
-
class="
|
|
4
|
+
class="up-image-cropper"
|
|
5
5
|
:change:prop="parse.propsChange"
|
|
6
6
|
:prop="props"
|
|
7
7
|
:data-lockRatio="lockRatio"
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
@touchstart.stop="parse.cutTouchStart"
|
|
26
26
|
@touchmove.stop="parse.cutTouchMove"
|
|
27
27
|
>
|
|
28
|
-
<view class="
|
|
29
|
-
<view class="
|
|
30
|
-
<view class="
|
|
31
|
-
<view class="
|
|
28
|
+
<view class="up-content">
|
|
29
|
+
<view class="up-content-top up-bg-transparent" :style="{ transitionProperty: cutAnimation ? '' : 'background' }"></view>
|
|
30
|
+
<view class="up-content-middle">
|
|
31
|
+
<view class="up-bg-transparent up-wxs-bg" :style="{ transitionProperty: cutAnimation ? '' : 'background' }"></view>
|
|
32
32
|
<view
|
|
33
|
-
class="
|
|
33
|
+
class="up-cropper-box"
|
|
34
34
|
:style="{ borderColor: borderColor, transitionProperty: cutAnimation ? '' : 'background' }"
|
|
35
35
|
>
|
|
36
36
|
<view
|
|
37
37
|
v-for="(item, index) in 4"
|
|
38
38
|
:key="index"
|
|
39
|
-
class="
|
|
40
|
-
:class="[`
|
|
39
|
+
class="up-edge"
|
|
40
|
+
:class="[`up-${index < 2 ? 'top' : 'bottom'}-${index === 0 || index === 2 ? 'left' : 'right'}`]"
|
|
41
41
|
:style="{
|
|
42
42
|
width: edgeWidth,
|
|
43
43
|
height: edgeWidth,
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
}"
|
|
51
51
|
></view>
|
|
52
52
|
</view>
|
|
53
|
-
<view class="
|
|
53
|
+
<view class="up-flex-auto up-bg-transparent" :style="{ transitionProperty: cutAnimation ? '' : 'background' }"></view>
|
|
54
54
|
</view>
|
|
55
|
-
<view class="
|
|
55
|
+
<view class="up-flex-auto up-bg-transparent" :style="{ transitionProperty: cutAnimation ? '' : 'background' }"></view>
|
|
56
56
|
</view>
|
|
57
57
|
<image
|
|
58
58
|
@load="imageLoad"
|
|
@@ -68,27 +68,27 @@
|
|
|
68
68
|
height: imgHeight ? imgHeight + 'px' : 'auto',
|
|
69
69
|
transitionDuration: (cutAnimation ? 0.3 : 0) + 's'
|
|
70
70
|
}"
|
|
71
|
-
class="
|
|
71
|
+
class="up-cropper-image"
|
|
72
72
|
:src="imageUrl"
|
|
73
73
|
v-if="imageUrl"
|
|
74
74
|
mode="widthFix"
|
|
75
75
|
></image>
|
|
76
76
|
</view>
|
|
77
77
|
<canvas
|
|
78
|
-
canvas-id="
|
|
79
|
-
id="
|
|
78
|
+
canvas-id="up-image-cropper"
|
|
79
|
+
id="up-image-cropper"
|
|
80
80
|
:disable-scroll="true"
|
|
81
81
|
:style="{ width: CROPPER_WIDTH * scaleRatio + 'px', height: CROPPER_HEIGHT * scaleRatio + 'px' }"
|
|
82
|
-
class="
|
|
82
|
+
class="up-cropper-canvas"
|
|
83
83
|
></canvas>
|
|
84
|
-
<view class="
|
|
85
|
-
<view class="
|
|
86
|
-
<image :src="rotateImg" class="
|
|
87
|
-
<view class="
|
|
84
|
+
<view class="up-cropper-tabbar" v-if="!custom">
|
|
85
|
+
<view class="up-op-btn" @tap.stop="back">取消</view>
|
|
86
|
+
<image :src="rotateImg" class="up-rotate-img" @tap="setAngle"></image>
|
|
87
|
+
<view class="up-op-btn" @tap.stop="getImage">完成</view>
|
|
88
88
|
</view>
|
|
89
89
|
</view>
|
|
90
90
|
</template>
|
|
91
|
-
<script src="./
|
|
91
|
+
<script src="./up-picture-cropper.wxs" module="parse" lang="wxs"></script>
|
|
92
92
|
<script>
|
|
93
93
|
/**
|
|
94
94
|
* 注意:组件中使用的图片地址,将文件复制到自己项目中
|
|
@@ -327,7 +327,7 @@ export default {
|
|
|
327
327
|
this.CROPPER_HEIGHT = this.height;
|
|
328
328
|
this.canvasHeight = this.height;
|
|
329
329
|
this.canvasWidth = this.width;
|
|
330
|
-
this.ctx = uni.createCanvasContext('
|
|
330
|
+
this.ctx = uni.createCanvasContext('up-image-cropper', this);
|
|
331
331
|
//初始化
|
|
332
332
|
setTimeout(() => {
|
|
333
333
|
this.props = '1,1';
|
|
@@ -399,7 +399,7 @@ export default {
|
|
|
399
399
|
// #endif
|
|
400
400
|
if (this.isBase64) {
|
|
401
401
|
uni.canvasGetImageData({
|
|
402
|
-
canvasId: '
|
|
402
|
+
canvasId: 'up-image-cropper',
|
|
403
403
|
x: 0,
|
|
404
404
|
y: 0,
|
|
405
405
|
width: this.canvasWidth * this.scaleRatio,
|
|
@@ -416,7 +416,7 @@ export default {
|
|
|
416
416
|
uni.canvasToTempFilePath(
|
|
417
417
|
{
|
|
418
418
|
...params,
|
|
419
|
-
canvasId: '
|
|
419
|
+
canvasId: 'up-image-cropper',
|
|
420
420
|
success: (res) => {
|
|
421
421
|
data.url = res.tempFilePath;
|
|
422
422
|
// #ifdef H5
|
|
@@ -540,7 +540,7 @@ export default {
|
|
|
540
540
|
</script>
|
|
541
541
|
|
|
542
542
|
<style scoped>
|
|
543
|
-
.
|
|
543
|
+
.up-container {
|
|
544
544
|
width: 100vw;
|
|
545
545
|
height: 100vh;
|
|
546
546
|
background-color: rgba(0, 0, 0, 0.6);
|
|
@@ -550,13 +550,13 @@ export default {
|
|
|
550
550
|
z-index: 1;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
.
|
|
553
|
+
.up-image-cropper {
|
|
554
554
|
width: 100vw;
|
|
555
555
|
height: 100vh;
|
|
556
556
|
position: absolute;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
-
.
|
|
559
|
+
.up-content {
|
|
560
560
|
width: 100vw;
|
|
561
561
|
height: 100vh;
|
|
562
562
|
position: absolute;
|
|
@@ -566,23 +566,23 @@ export default {
|
|
|
566
566
|
pointer-events: none;
|
|
567
567
|
}
|
|
568
568
|
|
|
569
|
-
.
|
|
569
|
+
.up-bg-transparent {
|
|
570
570
|
background-color: rgba(0, 0, 0, 0.6);
|
|
571
571
|
transition-duration: 0.3s;
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
.
|
|
574
|
+
.up-content-top {
|
|
575
575
|
pointer-events: none;
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
.
|
|
578
|
+
.up-content-middle {
|
|
579
579
|
width: 100%;
|
|
580
580
|
height: 200px;
|
|
581
581
|
display: flex;
|
|
582
582
|
box-sizing: border-box;
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
.
|
|
585
|
+
.up-cropper-box {
|
|
586
586
|
position: relative;
|
|
587
587
|
/* transition-duration: 0.2s; */
|
|
588
588
|
border-style: solid;
|
|
@@ -590,11 +590,11 @@ export default {
|
|
|
590
590
|
box-sizing: border-box;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
.
|
|
593
|
+
.up-flex-auto {
|
|
594
594
|
flex: auto;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
.
|
|
597
|
+
.up-cropper-image {
|
|
598
598
|
width: 100%;
|
|
599
599
|
border-style: none;
|
|
600
600
|
position: absolute;
|
|
@@ -606,7 +606,7 @@ export default {
|
|
|
606
606
|
transform-origin: center;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
.
|
|
609
|
+
.up-cropper-canvas {
|
|
610
610
|
position: fixed;
|
|
611
611
|
z-index: 10;
|
|
612
612
|
left: -2000px;
|
|
@@ -614,34 +614,34 @@ export default {
|
|
|
614
614
|
pointer-events: none;
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
-
.
|
|
617
|
+
.up-edge {
|
|
618
618
|
border-style: solid;
|
|
619
619
|
pointer-events: auto;
|
|
620
620
|
position: absolute;
|
|
621
621
|
box-sizing: border-box;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
-
.
|
|
624
|
+
.up-top-left {
|
|
625
625
|
border-bottom-width: 0 !important;
|
|
626
626
|
border-right-width: 0 !important;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
.
|
|
629
|
+
.up-top-right {
|
|
630
630
|
border-bottom-width: 0 !important;
|
|
631
631
|
border-left-width: 0 !important;
|
|
632
632
|
}
|
|
633
633
|
|
|
634
|
-
.
|
|
634
|
+
.up-bottom-left {
|
|
635
635
|
border-top-width: 0 !important;
|
|
636
636
|
border-right-width: 0 !important;
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
-
.
|
|
639
|
+
.up-bottom-right {
|
|
640
640
|
border-top-width: 0 !important;
|
|
641
641
|
border-left-width: 0 !important;
|
|
642
642
|
}
|
|
643
643
|
|
|
644
|
-
.
|
|
644
|
+
.up-cropper-tabbar {
|
|
645
645
|
width: 100%;
|
|
646
646
|
height: 120rpx;
|
|
647
647
|
padding: 0 40rpx;
|
|
@@ -657,7 +657,7 @@ export default {
|
|
|
657
657
|
font-size: 32rpx;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
.
|
|
660
|
+
.up-cropper-tabbar::after {
|
|
661
661
|
content: ' ';
|
|
662
662
|
position: absolute;
|
|
663
663
|
top: 0;
|
|
@@ -669,13 +669,13 @@ export default {
|
|
|
669
669
|
transform-origin: 0 100%;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
.
|
|
672
|
+
.up-op-btn {
|
|
673
673
|
height: 80rpx;
|
|
674
674
|
display: flex;
|
|
675
675
|
align-items: center;
|
|
676
676
|
}
|
|
677
677
|
|
|
678
|
-
.
|
|
678
|
+
.up-rotate-img {
|
|
679
679
|
width: 44rpx;
|
|
680
680
|
height: 44rpx;
|
|
681
681
|
}
|