UNPKG

element-plus

Version:

A Component Library for Vue 3

68 lines (67 loc) 1.35 kB
import { buildProps, definePropType } from "../../../utils/vue/props/runtime.mjs"; //#region ../../packages/components/tour/src/content.ts 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" ]; /** * @deprecated Removed after 3.0.0, Use `TourContentProps` instead. */ 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 }; //#endregion export { tourContentEmits, tourContentProps, tourPlacements, tourStrategies }; //# sourceMappingURL=content.mjs.map