|
3 | 3 | <!-- Note that row-key is necessary to get a correct row order. -->
|
4 | 4 | <el-table ref="dragTable" v-loading="listLoading" :data="list" row-key="id" border fit highlight-current-row style="width: 100%">
|
5 | 5 | <el-table-column align="center" label="ID" width="65">
|
6 |
| - <template slot-scope="scope"> |
7 |
| - <span>{{ scope.row.id }}</span> |
| 6 | + <template slot-scope="{row}"> |
| 7 | + <span>{{ row.id }}</span> |
8 | 8 | </template>
|
9 | 9 | </el-table-column>
|
10 | 10 |
|
11 | 11 | <el-table-column width="180px" align="center" label="Date">
|
12 |
| - <template slot-scope="scope"> |
13 |
| - <span>{{ scope.row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span> |
| 12 | + <template slot-scope="{row}"> |
| 13 | + <span>{{ row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span> |
14 | 14 | </template>
|
15 | 15 | </el-table-column>
|
16 | 16 |
|
17 | 17 | <el-table-column min-width="300px" label="Title">
|
18 |
| - <template slot-scope="scope"> |
19 |
| - <span>{{ scope.row.title }}</span> |
| 18 | + <template slot-scope="{row}"> |
| 19 | + <span>{{ row.title }}</span> |
20 | 20 | </template>
|
21 | 21 | </el-table-column>
|
22 | 22 |
|
23 | 23 | <el-table-column width="110px" align="center" label="Author">
|
24 |
| - <template slot-scope="scope"> |
25 |
| - <span>{{ scope.row.author }}</span> |
| 24 | + <template slot-scope="{row}"> |
| 25 | + <span>{{ row.author }}</span> |
26 | 26 | </template>
|
27 | 27 | </el-table-column>
|
28 | 28 |
|
29 | 29 | <el-table-column width="100px" label="Importance">
|
30 |
| - <template slot-scope="scope"> |
31 |
| - <svg-icon v-for="n in +scope.row.importance" :key="n" icon-class="star" class="icon-star" /> |
| 30 | + <template slot-scope="{row}"> |
| 31 | + <svg-icon v-for="n in + row.importance" :key="n" icon-class="star" class="icon-star" /> |
32 | 32 | </template>
|
33 | 33 | </el-table-column>
|
34 | 34 |
|
35 | 35 | <el-table-column align="center" label="Readings" width="95">
|
36 |
| - <template slot-scope="scope"> |
37 |
| - <span>{{ scope.row.pageviews }}</span> |
| 36 | + <template slot-scope="{row}"> |
| 37 | + <span>{{ row.pageviews }}</span> |
38 | 38 | </template>
|
39 | 39 | </el-table-column>
|
40 | 40 |
|
|
0 commit comments