@netang/quasar 0.2.2 → 0.2.3
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.
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
:spinner-size="toPx(currentSize / 2)"
|
|
120
120
|
:width="toPx(currentSize)"
|
|
121
121
|
:height="toPx(currentSize)"
|
|
122
|
-
@click="onFileItemClick(fileItem)"
|
|
122
|
+
@click="onFileItemClick(fileItem, fileItemIndex)"
|
|
123
123
|
fit="fill"
|
|
124
124
|
>
|
|
125
125
|
<!-- 如果是外链 -->
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
</div>
|
|
327
327
|
|
|
328
328
|
<!-- 信息 -->
|
|
329
|
-
<div class="n-uploader-query__item__info" @click="onFileItemClick(fileItem)">
|
|
329
|
+
<div class="n-uploader-query__item__info" @click="onFileItemClick(fileItem, fileItemIndex)">
|
|
330
330
|
<!-- 标题 -->
|
|
331
331
|
<div class="n-uploader-query__item__info__title ellipsis">{{getFileName(fileItem)}}</div>
|
|
332
332
|
<!-- 错误提示 -->
|
|
@@ -644,8 +644,11 @@ export default {
|
|
|
644
644
|
/**
|
|
645
645
|
* 文件点击
|
|
646
646
|
*/
|
|
647
|
-
function onFileItemClick(
|
|
648
|
-
emit('itemClick',
|
|
647
|
+
function onFileItemClick(file, index) {
|
|
648
|
+
emit('itemClick', {
|
|
649
|
+
file,
|
|
650
|
+
index,
|
|
651
|
+
})
|
|
649
652
|
}
|
|
650
653
|
|
|
651
654
|
// ==========【返回】=============================================================================================
|