【fix ESLint】src/views/demo、src/utils
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<a-card>
|
||||
<draggable @end="end" :options="{animation: 300}" v-model="dataSource" style="display: inline-block">
|
||||
<template v-for="(data,index) in dataSource">
|
||||
<div style="float: left;width:150px;height:150px;margin-right: 10px;margin: 0 8px 8px 0;" :key="index">
|
||||
<div style="float: left;width:150px;height:150px;margin: 0 8px 8px 0;" :key="index">
|
||||
<div style="width: 100%;height: 100%;position: relative;padding: 8px;border: 1px solid #d9d9d9;border-radius: 4px;">
|
||||
<img style="width: 100%;" :src="data.filePath" preview="index">
|
||||
<img style="width: 100%;" :src="data.filePath" preview="index" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -61,7 +61,7 @@ export default {
|
||||
console.log('拖动后的位置' + evt.newIndex)
|
||||
},
|
||||
sureChange () {
|
||||
for (var i = 0; i < this.dataSource.length; i++) {
|
||||
for (let i = 0; i < this.dataSource.length; i++) {
|
||||
this.dataSource[i].sort = i
|
||||
}
|
||||
this.newDateSource = this.dataSource
|
||||
|
||||
Reference in New Issue
Block a user