This repository has been archived on 2023-08-30. You can view files and clone it, but cannot push or open issues/pull-requests.
bytedo
/
wcui
Archived
1
0
Fork 0

优化markd组件

old
宇天 2021-05-08 13:42:49 +08:00
parent e20db59dcc
commit 9eb7338dff
1 changed files with 11 additions and 0 deletions

View File

@ -209,6 +209,7 @@ export default class Markd {
} else { } else {
this.__BOX__.innerHTML = '' this.__BOX__.innerHTML = ''
} }
this.removeAttribute('md')
} }
clear() { clear() {
@ -241,5 +242,15 @@ export default class Markd {
this.__observer.disconnect() this.__observer.disconnect()
this.clear() this.clear()
} }
watch() {
switch (name) {
case 'md':
if (val !== null) {
this.md = val
}
break
}
}
} }
</script> </script>