-
-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[新功能需求] Swiper - list数组中指定对象的目标属性名 #410
Labels
feature
新特性
Comments
可以,计划添加 |
@Moonofweisheng |
Moonofweisheng
pushed a commit
that referenced
this issue
Aug 1, 2024
Moonofweisheng
added a commit
that referenced
this issue
Aug 1, 2024
19 tasks
此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
这个功能解决了什么问题?
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>
The text was updated successfully, but these errors were encountered: