From f0e83b3ec0a5c394f1d548ff6233279f579504c3 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 6 Apr 2023 11:18:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BB=9A=E5=8A=A8=E6=9D=A1=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9C=80=E5=B0=8F=E5=AE=BD=E5=BA=A6=E4=B8=BA?= =?UTF-8?q?100%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layer/index.js | 2 +- src/scroll/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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; }