Skip to content

[新功能需求] Swiper - list数组中指定对象的目标属性名 #410

@PdxLook

Description

@PdxLook

这个功能解决了什么问题?

const swiperList = ref([
'https://unpkg.com/wot-design-uni-assets/redpanda.jpg',
'https://unpkg.com/wot-design-uni-assets/capybara.jpg',
])
当数组为下列格式的时候,指定目标属性名 - image;减少不必要的数据处理
[
{
"title": "广告",
"image": "https://unpkg.com/wot-design-uni-assets/redpanda.jpg",
"url": "#"
},
{
"title": "广告图2",
"image": "https://unpkg.com/wot-design-uni-assets/redpanda.jpg",
"url": "#"
}
]

你期望的 API 是什么样子的?

<wd-swiper :list="swiperList" keyName="image"></wd-swiper>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions