From 780b98504109c2da7afaf085b965d0ec00f33969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 5 Nov 2019 21:15:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96layer=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.wc | 4 ++-- src/neditor/index.wc | 7 +------ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/layer/index.wc b/src/layer/index.wc index 8f3f3c7..14fc841 100644 --- a/src/layer/index.wc +++ b/src/layer/index.wc @@ -488,8 +488,8 @@ class Layer { /* ------------------------ */ if (this.props.mask) { this._handlMask = clickOutside(this.root.children[1], ev => { - // 只作用于wc-layer - if (ev.target.tagName !== 'WC-LAYER') { + // 只作用于当前wc-layer + if (ev.target !== this) { return } if (this.props['mask-close']) { diff --git a/src/neditor/index.wc b/src/neditor/index.wc index 2ac6d7c..bce21d8 100644 --- a/src/neditor/index.wc +++ b/src/neditor/index.wc @@ -256,8 +256,7 @@ const DEFAULT_TOOLS = [ 'center', 'right', 'link', - 'image', - 'topic' + 'image' ] function renderToolbar(list) { @@ -428,10 +427,6 @@ export default class Neditor { // 这里不作任何处理 break - case 'topic': - this.exec('insertHtml', '#话题#') - break - default: this.__EDITOR__.focus() this.restoreSelection()