mirror of
https://gitee.com/vant-contrib/vant.git
synced 2026-07-05 22:31:07 +08:00
Compare commits
4 Commits
d19bc044cf
...
c3cdff303b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c3cdff303b | ||
|
|
3de20a74fa | ||
|
|
1f29e79c46 | ||
|
|
3e47f5b289 |
@ -16,6 +16,15 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
|
||||
|
||||
## Details
|
||||
|
||||
### [v2.12.50](https://github.com/vant-ui/vant/compare/v2.12.49...v2.12.50)
|
||||
|
||||
`2022-09-17`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Uploader: optimize image preview [#11044](https://github.com/vant-ui/vant/issues/11044)
|
||||
- ImagePreview: fix missing onScale type [#11057](https://github.com/vant-ui/vant/issues/11057)
|
||||
|
||||
### [v2.12.49](https://github.com/vant-ui/vant/compare/v2.12.48...v2.12.49)
|
||||
|
||||
`2022-09-05`
|
||||
|
||||
@ -25,6 +25,15 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
|
||||
|
||||
## 更新内容
|
||||
|
||||
### [v2.12.50](https://github.com/vant-ui/vant/compare/v2.12.49...v2.12.50)
|
||||
|
||||
`2022-09-17`
|
||||
|
||||
**Bug Fixes**
|
||||
|
||||
- Uploader: 修复点击预览大图时会展示上传失败的图片的问题 [#11044](https://github.com/vant-ui/vant/issues/11044)
|
||||
- ImagePreview: 修复缺少 onScale 类型定义的问题 [#11057](https://github.com/vant-ui/vant/issues/11057)
|
||||
|
||||
### [v2.12.49](https://github.com/vant-ui/vant/compare/v2.12.48...v2.12.49)
|
||||
|
||||
`2022-09-05`
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vant",
|
||||
"version": "2.12.49",
|
||||
"version": "2.12.50",
|
||||
"description": "Mobile UI Components built on Vue",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
|
||||
@ -268,7 +268,7 @@ export default createComponent({
|
||||
|
||||
const imageFiles = this.fileList.filter((item) => isImageFile(item));
|
||||
const imageContents = imageFiles.map((item) => {
|
||||
if (item.file && !item.url) {
|
||||
if (item.file && !item.url && item.status !== 'failed') {
|
||||
item.url = URL.createObjectURL(item.file);
|
||||
this.urls.push(item.url);
|
||||
}
|
||||
|
||||
1
types/image-preview.d.ts
vendored
1
types/image-preview.d.ts
vendored
@ -23,6 +23,7 @@ export type ImagePreviewOptions =
|
||||
closeIconPosition?: string;
|
||||
getContainer?: string | (() => Element);
|
||||
onClose?(): void;
|
||||
onScale?(data: { index: number; scale: number }): void;
|
||||
onChange?(index: number): void;
|
||||
swipeTo?(index: number, options?: SwipeToOptions): void;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user