@netang/quasar 0.2.41 → 0.2.42
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.
|
@@ -99,6 +99,15 @@
|
|
|
99
99
|
@click="handleActions('clockwise')"
|
|
100
100
|
/>
|
|
101
101
|
|
|
102
|
+
<!-- 原图 -->
|
|
103
|
+
<q-icon
|
|
104
|
+
tag="a"
|
|
105
|
+
:href="currentImg.origin"
|
|
106
|
+
target="_blank"
|
|
107
|
+
class="cursor-pointer non-selectable no-outline n-text-decoration-none"
|
|
108
|
+
name="crop_original"
|
|
109
|
+
color="white"
|
|
110
|
+
/>
|
|
102
111
|
</div>
|
|
103
112
|
</div>
|
|
104
113
|
|
|
@@ -106,14 +115,14 @@
|
|
|
106
115
|
<!-- 图片列表(有点击事件) -->
|
|
107
116
|
<template v-if="isClickImg">
|
|
108
117
|
<div
|
|
109
|
-
v-for="(
|
|
110
|
-
:key="`${src}-${i}`"
|
|
118
|
+
v-for="(item, i) in currentImages"
|
|
119
|
+
:key="`${item.src}-${i}`"
|
|
111
120
|
class="non-selectable no-outline"
|
|
112
121
|
@click="onClickImg({ src })"
|
|
113
122
|
>
|
|
114
123
|
<img
|
|
115
124
|
:ref="(el) => (imgRefs[i] = el)"
|
|
116
|
-
:src="src"
|
|
125
|
+
:src="item.src"
|
|
117
126
|
:style="imgStyle"
|
|
118
127
|
@load="handleImgLoad"
|
|
119
128
|
@error="handleImgError"
|
|
@@ -124,15 +133,15 @@
|
|
|
124
133
|
<!-- 图片列表(点击跳转原图) -->
|
|
125
134
|
<template v-else>
|
|
126
135
|
<a
|
|
127
|
-
v-for="(
|
|
128
|
-
:key="`${src}-${i}`"
|
|
129
|
-
:href="src"
|
|
136
|
+
v-for="(item, i) in currentImages"
|
|
137
|
+
:key="`${item.src}-${i}`"
|
|
138
|
+
:href="item.src"
|
|
130
139
|
target="_blank"
|
|
131
140
|
class="non-selectable no-outline"
|
|
132
141
|
>
|
|
133
142
|
<img
|
|
134
143
|
:ref="(el) => (imgRefs[i] = el)"
|
|
135
|
-
:src="src"
|
|
144
|
+
:src="item.src"
|
|
136
145
|
:style="imgStyle"
|
|
137
146
|
@load="handleImgLoad"
|
|
138
147
|
@error="handleImgError"
|
|
@@ -311,11 +320,11 @@ export default {
|
|
|
311
320
|
$n_forEach(props.images, function (url) {
|
|
312
321
|
const origin = $n_getImage(url, { compress: false })
|
|
313
322
|
if (origin) {
|
|
314
|
-
lists.push($n_getImage(url, { w: 1000 }))
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
323
|
+
// lists.push($n_getImage(url, { w: 1000 }))
|
|
324
|
+
lists.push({
|
|
325
|
+
src: $n_getImage(url, { w: 1000 }),
|
|
326
|
+
origin,
|
|
327
|
+
})
|
|
319
328
|
}
|
|
320
329
|
})
|
|
321
330
|
|
package/package.json
CHANGED