mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(ImagePreview): remove lazy-load since lazy-render is enabled
This commit is contained in:
parent
7ac85868dc
commit
e078480420
@ -33,7 +33,6 @@ export default createComponent({
|
||||
|
||||
props: {
|
||||
className: null,
|
||||
lazyLoad: Boolean,
|
||||
asyncClose: Boolean,
|
||||
showIndicators: Boolean,
|
||||
images: {
|
||||
@ -334,7 +333,6 @@ export default createComponent({
|
||||
src={image}
|
||||
fit="contain"
|
||||
class={bem('image')}
|
||||
lazyLoad={this.lazyLoad}
|
||||
scopedSlots={imageSlots}
|
||||
style={index === this.active ? this.imageStyle : null}
|
||||
nativeOnTouchstart={this.onImageTouchStart}
|
||||
|
@ -112,7 +112,6 @@ export default {
|
||||
| closeOnPopstate | Whether to close when popstate | *boolean* | `false` |
|
||||
| asyncClose | Whether to enable async close | *boolean* | `false` |
|
||||
| className | Custom className | *any* | - |
|
||||
| lazyLoad | Whether to enable thumb lazy load,should register [Lazyload](#/en-US/lazyload) component | *boolean* | `false` |
|
||||
| maxZoom | Max zoom | *number \| string* | `3` |
|
||||
| minZoom | Min zoom | *number \| string* | `1/3` |
|
||||
| closeable | Whether to show close icon | *boolean* | `false` |
|
||||
@ -132,7 +131,6 @@ export default {
|
||||
| async-close | Whether to enable async close | *boolean* | `false` |
|
||||
| close-on-popstate | Whether to close when popstate | *boolean* | `false` |
|
||||
| class-name | Custom className | *any* | - |
|
||||
| lazy-load | Whether to enable thumb lazy load,should register [Lazyload](#/en-US/lazyload) component | *boolean* | `false` |
|
||||
| max-zoom | Max zoom | *number \| string* | `3` |
|
||||
| min-zoom | Min zoom | *number \| string* | `1/3` |
|
||||
| closeable `v2.5.0` | Whether to show close icon | *boolean* | `false` |
|
||||
|
@ -124,7 +124,6 @@ export default {
|
||||
| asyncClose | 是否开启异步关闭 | *boolean* | `false` |
|
||||
| closeOnPopstate | 是否在页面回退时自动关闭 | *boolean* | `false` |
|
||||
| className | 自定义类名 | *any* | - |
|
||||
| lazyLoad | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | *boolean* | `false` |
|
||||
| maxZoom | 手势缩放时,最大缩放比例 | *number \| string* | `3` |
|
||||
| minZoom | 手势缩放时,最小缩放比例 | *number \| string* | `1/3` |
|
||||
| closeable | 是否显示关闭图标 | *boolean* | `false` |
|
||||
@ -146,7 +145,6 @@ export default {
|
||||
| async-close | 是否开启异步关闭 | *boolean* | `false` |
|
||||
| close-on-popstate | 是否在页面回退时自动关闭 | *boolean* | `false` |
|
||||
| class-name | 自定义类名 | *any* | - |
|
||||
| lazy-load | 是否开启图片懒加载,须配合 [Lazyload](#/zh-CN/lazyload) 组件使用 | *boolean* | `false` |
|
||||
| max-zoom | 手势缩放时,最大缩放比例 | *number \| string* | `3` |
|
||||
| min-zoom | 手势缩放时,最小缩放比例 | *number \| string* | `1/3` |
|
||||
| closeable `v2.5.0` | 是否显示关闭图标 | *boolean* | `false` |
|
||||
|
@ -85,7 +85,6 @@ export default {
|
||||
showImagePreview(position, timer, closeable) {
|
||||
const instance = ImagePreview({
|
||||
images,
|
||||
lazyLoad: true,
|
||||
swipeDuration: 300,
|
||||
asyncClose: !!timer,
|
||||
closeable,
|
||||
|
@ -13,7 +13,6 @@ const defaultConfig = {
|
||||
className: '',
|
||||
onClose: null,
|
||||
onChange: null,
|
||||
lazyLoad: false,
|
||||
showIndex: true,
|
||||
closeable: false,
|
||||
closeIcon: 'clear',
|
||||
|
1
types/image-preview.d.ts
vendored
1
types/image-preview.d.ts
vendored
@ -8,7 +8,6 @@ export type ImagePreviewOptions =
|
||||
maxZoom?: number;
|
||||
minZoom?: number;
|
||||
className?: any;
|
||||
lazyLoad?: boolean;
|
||||
showIndex?: boolean;
|
||||
closeable?: boolean;
|
||||
closeIcon?: string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user