t-fighting-design
Version:
Fighting design can quickly build interactive interfaces in vue3 applications, which looks good.
71 lines (70 loc) • 1.1 kB
JavaScript
const t = {
src: {
type: String,
default: () => ""
},
alt: {
type: String,
default: () => ""
},
draggable: {
type: Boolean,
default: () => !0
},
lazy: {
type: Boolean,
default: () => !1
},
rootMargin: {
type: [String, Number],
default: () => "100px"
},
width: {
type: [String, Number],
default: () => ""
},
height: {
type: [String, Number],
default: () => ""
},
block: {
type: Boolean,
default: () => !1
},
fit: {
type: String,
default: () => "",
validator: (e) => ["fill", "contain", "cover", "none", "scale-down", ""].includes(e)
},
noSelect: {
type: Boolean,
default: () => !1
},
referrerPolicy: {
type: String,
default: () => ""
},
round: {
type: [String, Number],
default: () => 0
},
errSrc: {
type: String,
default: () => ""
},
title: {
type: String,
default: () => ""
},
load: {
type: Function,
default: () => null
},
error: {
type: Function,
default: () => null
}
};
export {
t as Props
};