【fix ESLint】src/components/JVxeCells
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<template v-if="hasFile" v-for="(file, fileKey) of [innerFile || {}]">
|
<template v-if="hasFile">
|
||||||
|
|
||||||
|
<template v-for="(file, fileKey) of [innerFile || {}]">
|
||||||
<div :key="fileKey" style="position: relative;">
|
<div :key="fileKey" style="position: relative;">
|
||||||
<a-tooltip v-if="file.status==='uploading'" :title="`上传中(${Math.floor(file.percent)}%)`">
|
<a-tooltip v-if="file.status==='uploading'" :title="`上传中(${Math.floor(file.percent)}%)`">
|
||||||
<a-icon type="loading"/>
|
<a-icon type="loading"/>
|
||||||
@@ -42,6 +44,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
<a-upload
|
<a-upload
|
||||||
v-show="!hasFile"
|
v-show="!hasFile"
|
||||||
name="file"
|
name="file"
|
||||||
@@ -166,7 +170,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleChangeUpload (info) {
|
handleChangeUpload (info) {
|
||||||
const { originColumn: col } = this
|
// const { originColumn: col } = this
|
||||||
const { file } = info
|
const { file } = info
|
||||||
const value = {
|
const value = {
|
||||||
name: file.name,
|
name: file.name,
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<template v-if="hasFile" v-for="(file, fileKey) of [innerFile || {}]">
|
<template v-if="hasFile">
|
||||||
|
<template v-for="(file, fileKey) of [innerFile || {}]">
|
||||||
<div :key="fileKey" style="position: relative;">
|
<div :key="fileKey" style="position: relative;">
|
||||||
<template v-if="!file || !(file['url'] || file['path'] || file['message'])">
|
<template v-if="!file || !(file['url'] || file['path'] || file['message'])">
|
||||||
<a-tooltip :title="'请稍后: ' + JSON.stringify (file) + ((file['url'] || file['path'] || file['message']))">
|
<a-tooltip :title="'请稍后: ' + JSON.stringify (file) + ((file['url'] || file['path'] || file['message']))">
|
||||||
@@ -39,6 +40,8 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<a-upload
|
<a-upload
|
||||||
v-show="!hasFile"
|
v-show="!hasFile"
|
||||||
name="file"
|
name="file"
|
||||||
@@ -172,7 +175,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleChangeUpload (info) {
|
handleChangeUpload (info) {
|
||||||
const { originColumn: col } = this
|
// const { originColumn: col } = this
|
||||||
const { file } = info
|
const { file } = info
|
||||||
const value = {
|
const value = {
|
||||||
name: file.name,
|
name: file.name,
|
||||||
|
|||||||
Reference in New Issue
Block a user