diff --git a/docs/components/swiper.md b/docs/components/swiper.md index 580afa26327714062f4cee85a1050f6b8c6a8449..9230d761d99f2da630242e378ed39bcff8498ce7 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 | - |