From 3a630edaa5fbc8237d5dbe29003f79ec6fd66505 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 29 Sep 2020 14:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA=E6=9F=A5?= =?UTF-8?q?=E6=89=BE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/components/material/Input.vue | 19 ++----------------- src/renderer/plugins/Tips/index.js | 12 +++++------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/src/renderer/components/material/Input.vue b/src/renderer/components/material/Input.vue index 6928667a..958bbecf 100644 --- a/src/renderer/components/material/Input.vue +++ b/src/renderer/components/material/Input.vue @@ -1,6 +1,6 @@ @@ -24,21 +24,6 @@ export default { default: 'text', }, }, - data() { - return { - text: '', - } - }, - watch: { - value(n) { - this.text = n - }, - }, - methods: { - handleInput() { - - }, - }, } diff --git a/src/renderer/plugins/Tips/index.js b/src/renderer/plugins/Tips/index.js index f5c2f6b2..4e2aee98 100644 --- a/src/renderer/plugins/Tips/index.js +++ b/src/renderer/plugins/Tips/index.js @@ -4,13 +4,11 @@ import { debounce } from '../../utils' let instance let prevTips -const getTips = el => el == null - ? null - : el.getAttribute('tips') - ? el.getAttribute('tips') - : el.parentNode === document.body - ? null - : getTips(el.parentNode) +const getTips = el => el.getAttribute('tips') + ? el.getAttribute('tips') + : el.parentNode === document.documentElement + ? null + : getTips(el.parentNode) const showTips = debounce(event => { let msg = getTips(event.target)