From 567b82b2f5b1a407d732f90d6c1cb13643ac1575 Mon Sep 17 00:00:00 2001 From: kunkka Date: Tue, 20 Oct 2020 00:05:17 +0800 Subject: [PATCH] feat: player component i18n support --- src/components/ContextMenu.vue | 6 +++--- src/components/Player.vue | 16 ++++++++-------- src/locale/messages.js | 22 ++++++++++++++++++++++ 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/src/components/ContextMenu.vue b/src/components/ContextMenu.vue index 1c1b9e2..00e84bd 100644 --- a/src/components/ContextMenu.vue +++ b/src/components/ContextMenu.vue @@ -25,7 +25,7 @@ export default { }; }, methods: { - setMenu: function(top, left) { + setMenu(top, left) { let largestHeight = window.innerHeight - this.$refs.menu.offsetHeight - 25; let largestWidth = window.innerWidth - this.$refs.menu.offsetWidth - 25; @@ -35,11 +35,11 @@ export default { this.left = left + "px"; }, - closeMenu: function() { + closeMenu() { this.showMenu = false; }, - openMenu: function(e) { + openMenu(e) { this.showMenu = true; this.$nextTick( function() { diff --git a/src/components/Player.vue b/src/components/Player.vue index f697333..12a9bc5 100644 --- a/src/components/Player.vue +++ b/src/components/Player.vue @@ -37,7 +37,7 @@
- +
- -
@@ -82,11 +82,11 @@
- +