@tencentcloud/call-uikit-vue
Version:
An Open-source Voice & Video Calling UI Component Based on Tencent Cloud Service.
35 lines (33 loc) • 569 B
text/typescript
export const Fit = ['fill', 'contain', 'cover'] as const;
export const MiniProgramImageFitMap = {
fill: 'scaleToFill',
contain: 'aspectFit',
cover: 'aspectFill',
} as const;
export const ImageProps = {
width: {
type: String,
default: '320px',
},
height: {
type: String,
default: '240px',
},
src: {
type: String,
},
fit: {
type: String,
values: Fit,
default: 'fill',
},
customStyle: {
type: Object,
},
defaultSrc: {
type: String,
},
} as const;
export const imageEmits = {
error: (evt) => evt,
};