From 7b1a4fc0a704d695894415a67ba2857a5f80f7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=8F=9C=20Cai?= <1064425721@qq.com> Date: Mon, 8 Jan 2024 20:08:16 +0800 Subject: [PATCH] docs(Lazyload): fix preLoad type error and spelling mistakes (#12554) --- packages/vant/src/lazyload/README.md | 2 +- packages/vant/src/lazyload/README.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vant/src/lazyload/README.md b/packages/vant/src/lazyload/README.md index f427e2410..4586c29cb 100644 --- a/packages/vant/src/lazyload/README.md +++ b/packages/vant/src/lazyload/README.md @@ -73,7 +73,7 @@ app.use(Lazyload, { | --- | --- | --- | --- | | loading | Src of the image while loading | _string_ | - | | error | Src of the image upon load fail | _string_ | - | -| preload | Proportion of pre-loading height | _string_ | - | +| preLoad | Proportion of pre-loading height | _number_ | - | | attempt | Attempts count | _number_ | `3` | | listenEvents | Events that you want vue listen for | _string[]_ | `scroll`... | | adapter | Dynamically modify the attribute of element | _object_ | - | diff --git a/packages/vant/src/lazyload/README.zh-CN.md b/packages/vant/src/lazyload/README.zh-CN.md index bbcd75fbc..a8de47208 100644 --- a/packages/vant/src/lazyload/README.zh-CN.md +++ b/packages/vant/src/lazyload/README.zh-CN.md @@ -79,7 +79,7 @@ app.use(Lazyload, { | ------------- | ---------------- | ---------- | ---------- | | loading | 加载时的图片 | _string_ | - | | error | 错误时的图片 | _string_ | - | -| preload | 预加载高度的比例 | _string_ | - | +| preLoad | 预加载高度的比例 | _number_ | - | | attempt | 尝试次数 | _number_ | `3` | | listenEvents | 监听的事件 | _string[]_ | `scroll`等 | | adapter | 适配器 | _object_ | - |