From 9eb7338dff7773deb64aeeb1a3314a96ed737c15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Sat, 8 May 2021 13:42:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96markd=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/markd/index.wc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/markd/index.wc b/src/markd/index.wc index 155c7ba..8aa105d 100644 --- a/src/markd/index.wc +++ b/src/markd/index.wc @@ -209,6 +209,7 @@ export default class Markd { } else { this.__BOX__.innerHTML = '' } + this.removeAttribute('md') } clear() { @@ -241,5 +242,15 @@ export default class Markd { this.__observer.disconnect() this.clear() } + + watch() { + switch (name) { + case 'md': + if (val !== null) { + this.md = val + } + break + } + } }