diff --git a/src/layer/index.js b/src/layer/index.js index c4014f7..6afb69a 100644 --- a/src/layer/index.js +++ b/src/layer/index.js @@ -111,7 +111,6 @@ class Layer extends Component { ::slotted(&__input) { flex: 1; - height: 36px; } ::slotted(&__toast) { @@ -255,11 +254,11 @@ class Layer extends Component { #dragIns = null mounted() { - this.$refs.box.$anim.start() + this.$refs.box.$animate() } updated() { - this.$refs.box.$anim.start() + this.$refs.box.$animate() } /** @@ -306,15 +305,13 @@ class Layer extends Component { if (ev.target.tagName === 'BUTTON') { let idx = +ev.target.dataset.idx - this.$refs.box.$anim.start(true) - - this.close() + this.$refs.box.$animate(true).then(_ => this.close()) } } render() { return html` -
+
$1') + .replace(INLINE.code, (m, str) => { + str = str.replace(/([_*~])/g, '\\$1') + return `${str}` + }) .replace(INLINE.strong[0], '$1') .replace(INLINE.strong[1], '$1') .replace(INLINE.em[0], '$1')