element-plus
Version:
A Component Library for Vue 3
67 lines (64 loc) • 1.29 kB
JavaScript
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
const tourStrategies = ["absolute", "fixed"];
const tourPlacements = [
"top-start",
"top-end",
"top",
"bottom-start",
"bottom-end",
"bottom",
"left-start",
"left-end",
"left",
"right-start",
"right-end",
"right"
];
const tourContentProps = buildProps({
/**
* @description position of the guide card relative to the target element
*/
placement: {
type: definePropType(String),
values: tourPlacements,
default: "bottom"
},
/**
* @description the reference dom
*/
reference: {
type: definePropType(Object),
default: null
},
/**
* @description position strategy of the content
*/
strategy: {
type: definePropType(String),
values: tourStrategies,
default: "absolute"
},
/**
* @description offset of the arrow
*/
offset: {
type: Number,
default: 10
},
/**
* @description whether to show the arrow
*/
showArrow: Boolean,
/**
* @description content's zIndex
*/
zIndex: {
type: Number,
default: 2001
}
});
const tourContentEmits = {
close: () => true
};
export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies };
//# sourceMappingURL=content.mjs.map