mirror of
https://github.com/cuiocean/ZY-Player.git
synced 2026-07-01 09:06:12 +08:00
自适应列宽
This commit is contained in:
@@ -11,17 +11,14 @@
|
||||
<div class="listpage-body" id="sites-table">
|
||||
<el-table
|
||||
:data="sites"
|
||||
row-key="id"
|
||||
style="width: 100%">
|
||||
row-key="id">
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="资源名"
|
||||
min-width="200">
|
||||
label="资源名">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="isActive"
|
||||
label="自选源"
|
||||
width="100">
|
||||
label="自选源">
|
||||
<template slot-scope="scope">
|
||||
<el-switch
|
||||
v-model="scope.row.isActive"
|
||||
|
||||
@@ -9,17 +9,14 @@
|
||||
<el-table
|
||||
:data="history"
|
||||
row-key="id"
|
||||
@row-click="detailEvent"
|
||||
style="width: 100%">
|
||||
@row-click="detailEvent">
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="片名"
|
||||
min-width="200">
|
||||
label="片名">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="site"
|
||||
label="片源"
|
||||
width="120">
|
||||
label="片源">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ getSiteName(scope.row.site) }}</span>
|
||||
</template>
|
||||
|
||||
@@ -12,12 +12,10 @@
|
||||
<el-table
|
||||
:data="filteredTableData"
|
||||
row-key="id"
|
||||
@row-click="playEvent"
|
||||
style="width: 100%">
|
||||
@row-click="playEvent">
|
||||
<el-table-column
|
||||
prop="name"
|
||||
label="频道名"
|
||||
min-width="200">
|
||||
label="频道名">
|
||||
<template #header>
|
||||
<el-input
|
||||
placeholder="搜索"
|
||||
@@ -30,7 +28,6 @@
|
||||
<el-table-column
|
||||
prop="group"
|
||||
label="分组"
|
||||
width="100"
|
||||
:filters="getFilters"
|
||||
:filter-method="filterHandle"
|
||||
filter-placement="bottom-end">
|
||||
@@ -42,7 +39,7 @@
|
||||
label="操作"
|
||||
header-align="center"
|
||||
align="right"
|
||||
width="140">
|
||||
width="100">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.stop="moveToTopEvent(scope.row)" type="text">置顶</el-button>
|
||||
<el-button @click.stop="removeEvent(scope.row)" type="text">删除</el-button>
|
||||
|
||||
@@ -13,13 +13,11 @@
|
||||
height="100%"
|
||||
row-key="id"
|
||||
:cell-class-name="checkUpdate"
|
||||
@row-click="detailEvent"
|
||||
style="width: 100%">
|
||||
@row-click="detailEvent">
|
||||
<el-table-column
|
||||
sortable
|
||||
prop="name"
|
||||
label="片名"
|
||||
min-width="200">
|
||||
label="片名">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
sortable
|
||||
@@ -31,14 +29,12 @@
|
||||
sortable
|
||||
prop="year"
|
||||
label="上映"
|
||||
align="center"
|
||||
width="100">
|
||||
align="center">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
sortable
|
||||
prop="site"
|
||||
label="片源"
|
||||
width="100">
|
||||
label="片源">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ getSiteName(scope.row.key) }}</span>
|
||||
</template>
|
||||
@@ -46,14 +42,12 @@
|
||||
<el-table-column v-if="list.some(e => e.note)"
|
||||
sortable
|
||||
prop="note"
|
||||
label="备注"
|
||||
min-width="100">
|
||||
label="备注">
|
||||
</el-table-column>
|
||||
<el-table-column v-if="list.some(e => e.index >= 0)"
|
||||
sortable
|
||||
prop="index"
|
||||
label="观看至"
|
||||
width="100">
|
||||
label="观看至">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ getHistoryNote(scope.row.index) }}</span>
|
||||
</template>
|
||||
@@ -62,11 +56,10 @@
|
||||
label="操作"
|
||||
header-align="center"
|
||||
align="right"
|
||||
width="220">
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click.stop="playEvent(scope.row)" type="text">播放</el-button>
|
||||
<el-button @click.stop="shareEvent(scope.row)" type="text">分享</el-button>
|
||||
<el-button @click.stop="updateEvent(scope.row)" type="text">同步</el-button>
|
||||
<el-button @click.stop="downloadEvent(scope.row)" type="text">下载</el-button>
|
||||
<el-button @click.stop="deleteEvent(scope.row)" type="text">删除</el-button>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user