UNPKG

@tplc/wot

Version:

85 lines (84 loc) 1.76 kB
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: { type: import('vue').PropType<string> default: string } /** * 是否显示为圆形 */ 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 } /** * 开启长按图片显示识别小程序码菜单,仅在微信小程序平台有效 */ showMenuByLongpress: { type: BooleanConstructor default: boolean } lazyPlaceWidth: (NumberConstructor | StringConstructor)[] customStyle: { type: import('vue').PropType<string> default: string } customClass: { type: import('vue').PropType<string> default: string } }