You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
920 B
46 lines
920 B
|
2 years ago
|
import '../../../utils/index.mjs';
|
||
|
|
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
||
|
|
import { mutable } from '../../../utils/typescript.mjs';
|
||
|
|
import { isNumber } from '../../../utils/types.mjs';
|
||
|
|
|
||
|
|
const imageViewerProps = buildProps({
|
||
|
|
urlList: {
|
||
|
|
type: definePropType(Array),
|
||
|
|
default: () => mutable([])
|
||
|
|
},
|
||
|
|
zIndex: {
|
||
|
|
type: Number
|
||
|
|
},
|
||
|
|
initialIndex: {
|
||
|
|
type: Number,
|
||
|
|
default: 0
|
||
|
|
},
|
||
|
|
infinite: {
|
||
|
|
type: Boolean,
|
||
|
|
default: true
|
||
|
|
},
|
||
|
|
hideOnClickModal: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
teleported: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
closeOnPressEscape: {
|
||
|
|
type: Boolean,
|
||
|
|
default: true
|
||
|
|
},
|
||
|
|
zoomRate: {
|
||
|
|
type: Number,
|
||
|
|
default: 1.2
|
||
|
|
}
|
||
|
|
});
|
||
|
|
const imageViewerEmits = {
|
||
|
|
close: () => true,
|
||
|
|
switch: (index) => isNumber(index)
|
||
|
|
};
|
||
|
|
|
||
|
|
export { imageViewerEmits, imageViewerProps };
|
||
|
|
//# sourceMappingURL=image-viewer.mjs.map
|