diff --git a/src/layer/index.js b/src/layer/index.js index 9e41a82..665bd2e 100644 --- a/src/layer/index.js +++ b/src/layer/index.js @@ -349,7 +349,7 @@ class Layer extends Component { switch (this.type) { case 'alert': - this.$refs.box.$animate(true).then(_ => this.close()) + this.#intercept(null) break case 'confirm': diff --git a/src/scroll/index.js b/src/scroll/index.js index 8b486c1..5956b9f 100644 --- a/src/scroll/index.js +++ b/src/scroll/index.js @@ -40,6 +40,7 @@ class Scroll extends Component { } } .content { + min-width: 100%; width: fit-content; height: fit-content; }