Skip to content
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 轮播组件是否可支持外部传入是图片类型还是视频,目前如果url没有后缀会识别错误 #712

Closed
lianghang1 opened this issue Nov 14, 2024 · 1 comment · Fixed by #720
Labels
feature 新特性

Comments

@lianghang1
Copy link

lianghang1 commented Nov 14, 2024

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

目前 Swiper 组件是根据 isImageUrl 判断url后缀的,部分url可能是后台接口地址,没有 .jpg 之类的后缀,造成图片识别为视频。
image
image

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

v-if="isImageUrl(isObj(item) ? item[类型属性] : item)"

@lianghang1 lianghang1 added the feature: need confirm 待确认的新特性 label Nov 14, 2024
@lianghang1 lianghang1 changed the title [新功能需求] Swiper 轮播组件是否可支持外部传入是图片类型还是视频 [新功能需求] Swiper 轮播组件是否可支持外部传入是图片类型还是视频,目前如果url没有后缀会识别错误 Nov 14, 2024
@Moonofweisheng
Copy link
Owner

Moonofweisheng commented Nov 14, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 新特性
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants