hongluan-ui
Version:
Hongluan Component Library for Vue 3
83 lines (80 loc) • 1.47 kB
JavaScript
import '../../../utils/index.mjs';
import { isValidComponentSize, isValidComponentType } from '../../../utils/vue/validator.mjs';
import { isNumber } from '../../../utils/types.mjs';
const thumbProps = {
appendToBody: {
type: Boolean,
default: false
},
hideOnClickModal: Boolean,
src: {
type: String,
default: ""
},
fit: {
type: String,
default: ""
},
lazy: Boolean,
loading: {
type: String
},
scrollContainer: [String, Object],
previewSrcList: {
type: Array,
default: () => []
},
previewTeleported: Boolean,
zIndex: {
type: Number
},
size: {
type: String,
validator: isValidComponentSize
},
type: {
type: String,
validator: isValidComponentType
},
round: Boolean,
radius: Boolean,
bordered: Boolean,
effect: String,
full: Boolean,
initialIndex: {
type: Number,
default: 0
},
infinite: {
type: Boolean,
default: true
},
closeOnPressEscape: {
type: Boolean,
default: true
},
zoomRate: {
type: Number,
default: 1.2
},
minScale: {
type: Number,
default: 0.2
},
maxScale: {
type: Number,
default: 7
},
crossorigin: {
type: String
}
};
const thumbEmits = {
load: (evt) => evt instanceof Event,
error: (evt) => evt instanceof Event,
switch: (val) => isNumber(val),
close: () => true,
show: () => true
};
export { thumbEmits, thumbProps };
//# sourceMappingURL=thumb.mjs.map