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()