File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" app-container" >
3
3
<el-table v-loading =" listLoading" :data =" list" border fit highlight-current-row style =" width : 100% " >
4
4
<el-table-column align =" center" label =" ID" width =" 80" >
5
- <template slot-scope="scope ">
6
- <span >{{ scope. row.id }}</span >
5
+ <template slot-scope="{row} ">
6
+ <span >{{ row.id }}</span >
7
7
</template >
8
8
</el-table-column >
9
9
10
10
<el-table-column width =" 180px" align =" center" label =" Date" >
11
- <template slot-scope="scope ">
12
- <span >{{ scope. row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span >
11
+ <template slot-scope="{row} ">
12
+ <span >{{ row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span >
13
13
</template >
14
14
</el-table-column >
15
15
16
16
<el-table-column width =" 120px" align =" center" label =" Author" >
17
- <template slot-scope="scope ">
18
- <span >{{ scope. row.author }}</span >
17
+ <template slot-scope="{row} ">
18
+ <span >{{ row.author }}</span >
19
19
</template >
20
20
</el-table-column >
21
21
22
22
<el-table-column width =" 100px" label =" Importance" >
23
- <template slot-scope="scope ">
24
- <svg-icon v-for =" n in +scope. row.importance" :key =" n" icon-class =" star" class =" meta-item__icon" />
23
+ <template slot-scope="{row} ">
24
+ <svg-icon v-for =" n in + row.importance" :key =" n" icon-class =" star" class =" meta-item__icon" />
25
25
</template >
26
26
</el-table-column >
27
27
You can’t perform that action at this time.
0 commit comments