From 35213238f496ad2e3cacbd57e0b85f72ad523d49 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Mon, 21 Dec 2020 21:01:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8el=E5=86=85=E7=BD=AEclickouts?= =?UTF-8?q?ide=E6=9B=BF=E4=BB=A3vue-clickaway=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E8=8F=9C=E5=8D=95=E6=8C=89=E9=92=AE=E6=97=B6?= =?UTF-8?q?=E8=A2=AB=E6=8D=95=E6=8D=89=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/components/Play.vue | 17 ++++++++--------- src/components/Share.vue | 6 +++--- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 4837d30..83ec29f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,6 @@ "sortablejs": "^1.12.0", "v-fit-columns": "^0.2.0", "vue": "^2.6.12", - "vue-clickaway": "^2.2.2", "vue-infinite-loading": "^2.4.5", "vue-waterfall-plugin": "^1.1.0", "vuedraggable": "^2.24.3", diff --git a/src/components/Play.vue b/src/components/Play.vue index 95a1e46..435e8d2 100644 --- a/src/components/Play.vue +++ b/src/components/Play.vue @@ -175,24 +175,24 @@
-
-
+
频道列表 @@ -240,7 +240,7 @@ import zy from '../lib/site/tools' import Player from 'xgplayer' import HlsJsPlayer from 'xgplayer-hls.js' import mt from 'mousetrap' -import { directive as onClickaway } from 'vue-clickaway' +import Clickoutside from 'element-ui/src/utils/clickoutside' import { exec, execFile } from 'child_process' const { remote, clipboard } = require('electron') @@ -369,7 +369,7 @@ export default { } }, directives: { - onClickaway: onClickaway + Clickoutside }, computed: { view: { @@ -1040,7 +1040,6 @@ export default { this.getOtherSites() this.right.currentTime = this.xg.currentTime } else { - this.state.showChannelList = false this.right.type = 'sources' } this.right.show = true diff --git a/src/components/Share.vue b/src/components/Share.vue index d976128..42efdeb 100644 --- a/src/components/Share.vue +++ b/src/components/Share.vue @@ -1,5 +1,5 @@