diff --git a/src/App.vue b/src/App.vue
index 34d74c7..e6ddf71 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -27,7 +27,7 @@
-
+
diff --git a/src/assets/theme/light.scss b/src/assets/theme/light.scss
index 9d37998..b2a93f3 100644
--- a/src/assets/theme/light.scss
+++ b/src/assets/theme/light.scss
@@ -9,6 +9,12 @@
.el-pagination .btn-next, .el-pagination .btn-prev{
color: var(--l-c);
}
+ .el-drawer{
+ overflow: auto;
+ &::-webkit-scrollbar{
+ width: 0px;
+ }
+ }
.Header, .Aside{
i{
color: var(--l-icon);
@@ -28,7 +34,7 @@
}
}
.Main{
- .film, .search, .star{
+ .film, .search, .star, .player{
.table-box{
&::-webkit-scrollbar-track {
box-shadow: inset 0 0 6px var(--l-bdc);
diff --git a/src/components/detail.vue b/src/components/detail.vue
index 3401acd..b8a0fc4 100644
--- a/src/components/detail.vue
+++ b/src/components/detail.vue
@@ -2,16 +2,17 @@
-
- {{i | ftLink}}
-
+
+ {{i | ftLink}}
+
diff --git a/src/page/search.vue b/src/page/search.vue
index b7d30f0..aca79bf 100644
--- a/src/page/search.vue
+++ b/src/page/search.vue
@@ -1,6 +1,6 @@
-
+
@@ -8,7 +8,7 @@
-
+
@@ -22,7 +22,7 @@
-
+
{
this.filmData = res.list
this.filmTotal = res.total
@@ -102,8 +104,11 @@ export default Vue.extend({
},
tableBtnClick (type: string, e: any) {
if (type === 'detail') {
- this.SET_DETAIL(true)
- this.video = e
+ let d = {
+ show: true,
+ video: e
+ }
+ this.SET_DETAIL(d)
}
if (type === 'star') {
video.find({ detail: e.detail }).then(res => {
@@ -135,13 +140,38 @@ export default Vue.extend({
left: 0;
width: 100%;
height: 40px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ animation: slideDown 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+ @keyframes slideDown {
+ from {
+ height: 40px;
+ }
+ to{
+ height: 90%;
+ }
+ }
+ &.hasTable{
+ animation: slideUp 0.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
+ }
+ @keyframes slideUp {
+ from {
+ height: 90%;
+ opacity: 0;
+ }
+ to{
+ height: 40px;
+ opacity: 1;
+ }
+ }
}
.search-table-box{
position: absolute;
top: 40px;
width: 100%;
height: calc(100% - 100px);
- overflow-y: scroll;
+ overflow: auto;
&::-webkit-scrollbar{
width: 6px;
}
diff --git a/src/page/star.vue b/src/page/star.vue
index 4413a8b..31985f7 100644
--- a/src/page/star.vue
+++ b/src/page/star.vue
@@ -73,8 +73,11 @@ export default Vue.extend({
},
tableBtnClick (type: string, e: any) {
if (type === 'detail') {
- this.SET_DETAIL(true)
- this.video = e
+ let d = {
+ show: true,
+ video: e
+ }
+ this.SET_DETAIL(d)
}
if (type === 'delete') {
video.remove(e.id).then(res => {
@@ -106,7 +109,7 @@ export default Vue.extend({
top: 0px;
width: 100%;
height: calc(100% - 40px);
- overflow-y: scroll;
+ overflow: auto;
&::-webkit-scrollbar{
width: 6px;
}
diff --git a/src/store/index.ts b/src/store/index.ts
index 5fd6fbe..a5e37fe 100644
--- a/src/store/index.ts
+++ b/src/store/index.ts
@@ -7,7 +7,11 @@ export default new Vuex.Store({
state: {
Main: 'Player',
site: 0,
- detail: false,
+ detail: {
+ show: false,
+ video: ''
+ },
+ dUrl: '',
video: {}
},
getters: {