|
36 | 36 | @sort-change="sortChange"
|
37 | 37 | >
|
38 | 38 | <el-table-column label="ID" prop="id" sortable="custom" align="center" width="80" :class-name="getSortClass('id')">
|
39 |
| - <template slot-scope="scope"> |
40 |
| - <span>{{ scope.row.id }}</span> |
| 39 | + <template slot-scope="{row}"> |
| 40 | + <span>{{ row.id }}</span> |
41 | 41 | </template>
|
42 | 42 | </el-table-column>
|
43 | 43 | <el-table-column label="Date" width="150px" align="center">
|
44 |
| - <template slot-scope="scope"> |
45 |
| - <span>{{ scope.row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span> |
| 44 | + <template slot-scope="{row}"> |
| 45 | + <span>{{ row.timestamp | parseTime('{y}-{m}-{d} {h}:{i}') }}</span> |
46 | 46 | </template>
|
47 | 47 | </el-table-column>
|
48 | 48 | <el-table-column label="Title" min-width="150px">
|
|
52 | 52 | </template>
|
53 | 53 | </el-table-column>
|
54 | 54 | <el-table-column label="Author" width="110px" align="center">
|
55 |
| - <template slot-scope="scope"> |
56 |
| - <span>{{ scope.row.author }}</span> |
| 55 | + <template slot-scope="{row}"> |
| 56 | + <span>{{ row.author }}</span> |
57 | 57 | </template>
|
58 | 58 | </el-table-column>
|
59 | 59 | <el-table-column v-if="showReviewer" label="Reviewer" width="110px" align="center">
|
60 |
| - <template slot-scope="scope"> |
61 |
| - <span style="color:red;">{{ scope.row.reviewer }}</span> |
| 60 | + <template slot-scope="{row}"> |
| 61 | + <span style="color:red;">{{ row.reviewer }}</span> |
62 | 62 | </template>
|
63 | 63 | </el-table-column>
|
64 | 64 | <el-table-column label="Imp" width="80px">
|
65 |
| - <template slot-scope="scope"> |
66 |
| - <svg-icon v-for="n in +scope.row.importance" :key="n" icon-class="star" class="meta-item__icon" /> |
| 65 | + <template slot-scope="{row}"> |
| 66 | + <svg-icon v-for="n in + row.importance" :key="n" icon-class="star" class="meta-item__icon" /> |
67 | 67 | </template>
|
68 | 68 | </el-table-column>
|
69 | 69 | <el-table-column label="Readings" align="center" width="95">
|
|
0 commit comments