From 43cf36c3edd53b088cfa37daae8e8b3a94e3a102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BD=A8=E8=BF=B9?= Date: Thu, 12 Oct 2023 10:50:17 +0000 Subject: [PATCH] =?UTF-8?q?update=20docs/components/swiper.md.=20=E6=8A=8A?= =?UTF-8?q?name=20=E4=BF=AE=E6=94=B9=E6=88=90=E4=BA=86keyName=20name=20?= =?UTF-8?q?=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 轨迹 --- docs/components/swiper.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/swiper.md b/docs/components/swiper.md index 580afa2..9230d76 100644 --- a/docs/components/swiper.md +++ b/docs/components/swiper.md @@ -25,7 +25,7 @@ **说明:** 某些情况下 1. 您从服务端获取的数据,里面的数组对于图片的属性名不一定为`image`,如果让您再历遍修改为`image`属性,显示是不人性的, -所以uView提供了一个`name`参数,比如您数组中的图片名称为`img`,您可以设置`u-swiper`组件的`name`参数为`img`值。 +所以uView提供了一个`keyName`参数,比如您数组中的图片名称为`img`,您可以设置`u-swiper`组件的`keyName`参数为`img`值。 2. 您也可以直接传递一个元素为图片路径的数组给`list`参数,如下(1.6.5支持): ```html @@ -140,7 +140,7 @@ let list = [ | title-style | 自定义标题样式 | Object | - | - | | effect3d-previous-margin | effect3d = true模式的情况下,激活项与前后项之间的距离,单位rpx | String \| Number | 50 | - | | img-mode | 图片的裁剪模式,详见[image组件裁剪模式](https://uniapp.dcloud.io/component/image) | String | aspectFill | - | -| name | 组件内部读取的`list`参数中的属性名,见上方说明 | string | name | - | +| keyName| 组件内部读取的`list`参数中的属性名,见上方说明 | string | name | - | | bg-color | 背景颜色 | string | #f3f4f6 | - | | current | 初始化时,默认显示第几项 | String \| Number | 0 | - | -- Gitee