Skip to content

Commit 073e111

Browse files
committed
嵌入播放时添加关闭按钮
1 parent fea0763 commit 073e111

File tree

5 files changed

+67
-0
lines changed

5 files changed

+67
-0
lines changed

src/assets/scss/theme/dark.scss

+15
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,21 @@
167167
}
168168
}
169169
.box{
170+
.title{
171+
.right{
172+
color: var(--d-fc-2);
173+
svg{
174+
stroke: var(--d-c-5);
175+
stroke-width: 1;
176+
fill: none;
177+
&:hover{
178+
stroke: var(--d-c-8);
179+
stroke-width: 1.5;
180+
fill: var(--d-c-2);
181+
}
182+
}
183+
}
184+
}
170185
.more{
171186
span{
172187
svg{

src/assets/scss/theme/green.scss

+15
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@
161161
}
162162
}
163163
.box{
164+
.title{
165+
.right{
166+
color: var(--g-fc-2);
167+
svg{
168+
stroke: var(--g-c-5);
169+
stroke-width: 1;
170+
fill: none;
171+
&:hover{
172+
stroke: var(--g-c-8);
173+
stroke-width: 1.5;
174+
fill: var(--g-c-2);
175+
}
176+
}
177+
}
178+
}
164179
.more{
165180
span{
166181
svg{

src/assets/scss/theme/light.scss

+15
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@
161161
}
162162
}
163163
.box{
164+
.title{
165+
.right{
166+
color: var(--l-fc-2);
167+
svg{
168+
stroke: var(--l-c-5);
169+
stroke-width: 1;
170+
fill: none;
171+
&:hover{
172+
stroke: var(--l-c-8);
173+
stroke-width: 1.5;
174+
fill: var(--l-c-2);
175+
}
176+
}
177+
}
178+
}
164179
.more{
165180
span{
166181
svg{

src/assets/scss/theme/pink.scss

+15
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,21 @@
161161
}
162162
}
163163
.box{
164+
.title{
165+
.right{
166+
color: var(--p-fc-2);
167+
svg{
168+
stroke: var(--p-c-5);
169+
stroke-width: 1;
170+
fill: none;
171+
&:hover{
172+
stroke: var(--p-c-8);
173+
stroke-width: 1.5;
174+
fill: var(--p-c-2);
175+
}
176+
}
177+
}
178+
}
164179
.more{
165180
span{
166181
svg{

src/components/Play.vue

+7
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
<div class="box">
44
<div class="title">
55
<span v-if="this.right.list.length > 1">『第 {{(video.info.index + 1)}} 集』</span>{{name}}
6+
<span class="right" v-if="onlineUrl" @click="() => { onlineUrl = ''; state.showChannelList = true}">
7+
<svg role="img" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" aria-labelledby="closeIconTitle">
8+
<title id="closeIconTitle">关闭</title>
9+
<path d="M6.34314575 6.34314575L17.6568542 17.6568542M6.34314575 17.6568542L17.6568542 6.34314575"></path>
10+
</svg>
11+
</span>
612
</div>
713
<div class="player" v-show="!onlineUrl">
814
<div id="xgplayer"></div>
@@ -1731,6 +1737,7 @@ export default {
17311737
.right {
17321738
float: right;
17331739
svg {
1740+
display: inline-block;
17341741
margin-top: 8px;
17351742
cursor: pointer;
17361743
}

0 commit comments

Comments
 (0)