@tplc/wot
Version:
75 lines (74 loc) • 1.53 kB
TypeScript
export type ImageMode =
| 'scaleToFill'
| 'aspectFit'
| 'aspectFill'
| 'widthFix'
| 'heightFix'
| 'top'
| 'bottom'
| 'center'
| 'left'
| 'right'
| 'top left'
| 'top right'
| 'bottom left'
| 'bottom right'
export declare const imgProps: {
customImage: {
type: import('vue').PropType<string>
default: string
}
/**
* 图片链接
*/
src: StringConstructor
/**
* 是否显示为圆形
*/
round: {
type: BooleanConstructor
default: boolean
}
/**
* 填充模式:'top left' / 'top right' / 'bottom left' / 'bottom right' / 'right' / 'left' / 'center' / 'bottom' / 'top' / 'heightFix' / 'widthFix' / 'aspectFill' / 'aspectFit' / 'scaleToFill'
*/
mode: {
type: import('vue').PropType<ImageMode>
default: ImageMode
}
/**
* 是否懒加载
*/
lazyLoad: {
type: BooleanConstructor
default: boolean
}
/**
* 宽度,默认单位为px
*/
width: (NumberConstructor | StringConstructor)[]
/**
* 高度,默认单位为px
*/
height: (NumberConstructor | StringConstructor)[]
/**
* 圆角大小,默认单位为px
*/
radius: (NumberConstructor | StringConstructor)[]
/**
* 是否允许预览
*/
enablePreview: {
type: BooleanConstructor
default: boolean
}
lazyPlaceWidth: (NumberConstructor | StringConstructor)[]
customStyle: {
type: import('vue').PropType<string>
default: string
}
customClass: {
type: import('vue').PropType<string>
default: string
}
}