1
This commit is contained in:
52
admin/node_modules/element-plus/es/components/tooltip-v2/src/content.mjs
generated
vendored
Normal file
52
admin/node_modules/element-plus/es/components/tooltip-v2/src/content.mjs
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
||||
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
||||
|
||||
const tooltipV2Strategies = ["absolute", "fixed"];
|
||||
const tooltipV2Placements = [
|
||||
"top-start",
|
||||
"top-end",
|
||||
"top",
|
||||
"bottom-start",
|
||||
"bottom-end",
|
||||
"bottom",
|
||||
"left-start",
|
||||
"left-end",
|
||||
"left",
|
||||
"right-start",
|
||||
"right-end",
|
||||
"right"
|
||||
];
|
||||
const tooltipV2ContentProps = buildProps({
|
||||
arrowPadding: {
|
||||
type: definePropType(Number),
|
||||
default: 5
|
||||
},
|
||||
effect: {
|
||||
type: definePropType(String),
|
||||
default: "light"
|
||||
},
|
||||
contentClass: String,
|
||||
placement: {
|
||||
type: definePropType(String),
|
||||
values: tooltipV2Placements,
|
||||
default: "bottom"
|
||||
},
|
||||
reference: {
|
||||
type: definePropType(Object),
|
||||
default: null
|
||||
},
|
||||
offset: {
|
||||
type: Number,
|
||||
default: 8
|
||||
},
|
||||
strategy: {
|
||||
type: definePropType(String),
|
||||
values: tooltipV2Strategies,
|
||||
default: "absolute"
|
||||
},
|
||||
showArrow: Boolean,
|
||||
...useAriaProps(["ariaLabel"])
|
||||
});
|
||||
|
||||
export { tooltipV2ContentProps };
|
||||
//# sourceMappingURL=content.mjs.map
|
||||
Reference in New Issue
Block a user