vue2-client 1.17.23 → 1.17.24
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/package.json
CHANGED
|
@@ -6,7 +6,13 @@
|
|
|
6
6
|
:customRequest="uploadFiles"
|
|
7
7
|
:multiple="model.acceptCount && model.acceptCount>1"
|
|
8
8
|
:file-list="uploadedFileList"
|
|
9
|
-
|
|
9
|
+
@preview="handlePreview"
|
|
10
|
+
:remove="deleteFileItem"
|
|
11
|
+
:show-upload-list="{
|
|
12
|
+
showRemoveIcon: !readOnly,
|
|
13
|
+
showPreviewIcon: true,
|
|
14
|
+
showDownloadIcon: false
|
|
15
|
+
}">
|
|
10
16
|
<a-space>
|
|
11
17
|
<a-button style="margin-top: 2%">
|
|
12
18
|
<a-icon type="upload"/>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- 图片 -->
|
|
4
4
|
<span v-for="img in images" :key="img.id" class="picture-card" :style="{ width: cardSize, height: cardSize, padding: paddingSize }">
|
|
5
5
|
<img :src="img.url" :alt="img.name" />
|
|
6
|
-
<span class="picture-action" :style="{ width: actionSize, height: actionSize }">
|
|
6
|
+
<span class="picture-action" :style="{ width: actionSize, height: actionSize, top: paddingSize, left: paddingSize }">
|
|
7
7
|
<a-icon type="eye" class="picture-preview-icon" @click="handlePreview(img.url)" />
|
|
8
8
|
</span>
|
|
9
9
|
</span>
|
|
@@ -55,7 +55,7 @@ export default {
|
|
|
55
55
|
return this.width + 'px'
|
|
56
56
|
},
|
|
57
57
|
actionSize: function () {
|
|
58
|
-
return this.width -
|
|
58
|
+
return this.width - 2 * this.padding + 'px'
|
|
59
59
|
},
|
|
60
60
|
paddingSize: function () {
|
|
61
61
|
if (Number(this.padding) === 0) {
|
|
@@ -85,20 +85,20 @@ export default {
|
|
|
85
85
|
border: 1px solid #d9d9d9;
|
|
86
86
|
border-radius: 6px;
|
|
87
87
|
//padding: 10px;
|
|
88
|
-
margin:
|
|
89
|
-
overflow: hidden;
|
|
88
|
+
margin: 5px 5px 5px 5px;
|
|
89
|
+
//overflow: hidden;
|
|
90
90
|
img {
|
|
91
91
|
width: 100%;
|
|
92
92
|
height: 100%;
|
|
93
93
|
object-fit: cover;
|
|
94
|
+
border-radius: 6px;
|
|
94
95
|
}
|
|
95
96
|
.picture-action {
|
|
96
97
|
position: absolute;
|
|
97
|
-
top: 10px;
|
|
98
|
-
left: 10px;
|
|
99
98
|
display: flex;
|
|
100
99
|
justify-content: center;
|
|
101
100
|
align-items: center;
|
|
101
|
+
border-radius: 6px;
|
|
102
102
|
background: #000;
|
|
103
103
|
opacity: 0;
|
|
104
104
|
transition: opacity 0.3s;
|