190
190
<div class =" box-anthology-header" >
191
191
<div class =" left" >
192
192
<h4 class =" box-anthology-title" >{{ $t('pages.player.film.anthology') }}</h4 >
193
+ <div class =" box-anthology-line" >
194
+ <t-dropdown placement =" bottom" :max-height =" 250" >
195
+ <t-button size =" small" theme =" default" variant =" text" auto-width >
196
+ <span class =" title" >{{ $t('pages.player.film.line') }}</span >
197
+ <template #suffix >
198
+ <chevron-down-icon size =" 16" />
199
+ </template >
200
+ </t-button >
201
+ <t-dropdown-menu >
202
+ <t-dropdown-item v-for =" (_, key, index) in season" :key =" index" :value =" key"
203
+ @click =" (options) => switchLineEvent(options.value as string)" >
204
+ <span :class =" [key as any === active.flimSource ? 'active' : '']" >{{ key }}</span >
205
+ </t-dropdown-item >
206
+ </t-dropdown-menu >
207
+ </t-dropdown >
208
+ </div >
193
209
<div class =" box-anthology-analyze" v-show =" isVisible.official" >
194
210
<t-dropdown placement =" bottom" :max-height =" 250" >
195
211
<t-button size =" small" theme =" default" variant =" text" auto-width >
196
- <span >{{ $t('pages.player.film.analyze') }}</span >
212
+ <span class = " title " >{{ $t('pages.player.film.analyze') }}</span >
197
213
<template #suffix >
198
214
<chevron-down-icon size =" 16" />
199
215
</template >
215
231
</div >
216
232
</div >
217
233
<div class =" listbox" >
218
- <t-tabs v-model =" active.flimSource" class =" film-tabs" >
234
+ <div class =" tag-container" >
235
+ <div v-for =" (item, index) in season?.[active.flimSource]" :key =" item"
236
+ :class =' ["mainVideo-num", item === active.filmIndex ? "mainVideo-selected" : ""]'
237
+ @click =" changeEvent(item)" >
238
+ <t-tooltip :content =" formatName(item)" >
239
+ <div class =" mainVideo_inner" >
240
+ {{ formatReverseOrder(isVisible.reverseOrder ? 'positive' : 'negative', index,
241
+ season?.[active.flimSource]?.length)
242
+ }}
243
+ <div class =" playing" ></div >
244
+ </div >
245
+ </t-tooltip >
246
+ </div >
247
+ </div >
248
+ <!-- <t-tabs v-model="active.flimSource" class="film-tabs">
219
249
<t-tab-panel v-for="(value, key, index) in season" :key="index" :value="key" :label="key">
220
250
<div class="tag-container">
221
- <div v-for =" (item, index) in value " :key =" item"
251
+ <div v-for="(item, index) in season?.[active.flimSource] " :key="item"
222
252
:class='["mainVideo-num", item === active.filmIndex ? "mainVideo-selected" : ""]'
223
253
@click="changeEvent(item)">
254
+ {{ index }} {{ item }}
224
255
<t-tooltip :content="formatName(item)">
225
256
<div class="mainVideo_inner">
226
257
{{ formatReverseOrder(isVisible.reverseOrder ? 'positive' : 'negative', index, value.length)
231
262
</div>
232
263
</div>
233
264
</t-tab-panel>
234
- </t-tabs >
265
+ </t-tabs> -->
235
266
</div >
236
267
<div class =" recommend" v-show =" recommend.length != 0" >
237
268
<div class =" component-title" >{{ $t('pages.player.film.recommend') }}</div >
@@ -621,6 +652,10 @@ const fetchAnalyze = async (): Promise<void> => {
621
652
if (response .default ?.id ) active .analyzeId = response .default ?.id ;
622
653
};
623
654
655
+ const switchLineEvent = async (id : string ) => {
656
+ active .flimSource = id ;
657
+ };
658
+
624
659
// 切换解析接口
625
660
const switchAnalyzeEvent = async (id : string ) => {
626
661
active .analyzeId = id ;
@@ -1640,7 +1675,8 @@ window.electron.ipcRenderer.on('destroy-playerWindow', () => {
1640
1675
font-weight : 600 ;
1641
1676
}
1642
1677
1643
- .box-anthology-analyze {
1678
+ .box-anthology-analyze ,
1679
+ .box-anthology-line {
1644
1680
:deep(.t-button ) {
1645
1681
padding : 0 ;
1646
1682
}
@@ -1650,6 +1686,8 @@ window.electron.ipcRenderer.on('destroy-playerWindow', () => {
1650
1686
}
1651
1687
1652
1688
:deep(.t-button--variant-text ) {
1689
+ color : var (--td-text-color-secondary );
1690
+
1653
1691
.t-button__suffix {
1654
1692
margin-left : var (--td-comp-margin-xxs );
1655
1693
}
@@ -1757,7 +1795,7 @@ window.electron.ipcRenderer.on('destroy-playerWindow', () => {
1757
1795
.component-title {
1758
1796
font-size : 16px ;
1759
1797
line-height : 16px ;
1760
- margin-top : 24 px ;
1798
+ margin-top : 10 px ;
1761
1799
margin-bottom : 12px ;
1762
1800
font-weight : 500 ;
1763
1801
color : var (--td-text-color-primary );
0 commit comments