@minto-ai/mt-ui
Version:
UI组件库
51 lines (50 loc) • 1.27 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
declare const imageProps: {
/**
* 图片地址
*/
readonly src: {
readonly type: StringConstructor;
readonly default: "";
};
/**
* 图片的宽度
*/
readonly width: {
readonly type: PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
/**
* 图片的高度
*/
readonly height: {
readonly type: PropType<number | string>;
readonly validator: (value: number | string) => boolean;
readonly default: "100%";
};
/**
* 图片缩放模式
*/
readonly fit: {
readonly type: PropType<"fill" | "contain" | "cover" | "none" | "scale-down">;
readonly validator: (value: string) => boolean;
readonly default: "cover";
};
/**
* 图片是否可拖动
*/
readonly draggable: {
readonly type: BooleanConstructor;
readonly default: false;
};
/**
* 懒加载
*/
readonly lazy: {
readonly type: BooleanConstructor;
readonly default: false;
};
};
export type ImageProps = ExtractPropTypes<typeof imageProps>;
export { imageProps };