From 6ce4b19efe7bc918a9088a5b2a67c24ce20f939f Mon Sep 17 00:00:00 2001 From: fanyushun <723107234@qq.com> Date: Wed, 31 Oct 2018 20:47:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E7=89=88=E6=97=8B?= =?UTF-8?q?=E8=BD=ACloading=E4=BC=9A=E5=90=91=E5=B7=A6=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E4=B8=80=E4=B8=8B=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 54e96fb..15791d3 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ layer致力于打造国内最盛行的弹层组件,为web开发提供强劲动 ## 二次开发 主要是对移动版的 `layer` 增加一些自己需要的功能,[点击体验](https://fxss5201.github.io/layer/): 1. loading 增加了多种新的样式,只需要在原有的 `layer.open` 基础上参数上设置 `loadingType` 参数就可以调用新的 loading 样式 - * `loadingType: 1`:全页面的新 loading + * `loadingType: 1`:全页面的新 loading,引用此请设置 `anim: false`,否则会导致 loading 向左移动一下 * `loadingType: 2`:全页面的 loading 成功样式 * `loadingType: 3`:全页面的 loading 失败样式 - * `loadingType: 4`:小区域的新 loading + * `loadingType: 4`:小区域的新 loading,引用此请设置 `anim: false`,否则会导致 loading 向左移动一下 * `loadingType: 5`:小区域的 loading 成功样式 * `loadingType: 6`:小区域的 loading 失败样式 \ No newline at end of file diff --git a/index.html b/index.html index 87df30e..822072b 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ layer.open({type: 2, content: '数据加载中...'}); }); $("#loading1").on("click", function(){ - layer.open({type: 2, loadingType: 1, content: '数据加载中...'}); + layer.open({type: 2, loadingType: 1, content: '数据加载中...', anim: false}); }); $("#loading2").on("click", function(){ layer.open({type: 2, loadingType: 2, content: '数据获取成功'}); @@ -65,7 +65,7 @@ layer.open({type: 2, loadingType: 3, content: '数据获取失败'}); }); $("#loading4").on("click", function(){ - layer.open({type: 2, loadingType: 4, content: '数据加载中...'}); + layer.open({type: 2, loadingType: 4, content: '数据加载中...', anim: false}); }); $("#loading5").on("click", function(){ layer.open({type: 2, loadingType: 5, content: '数据获取成功'});