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.
1 line
3.3 KiB
1 line
3.3 KiB
11 months ago
|
{"version":3,"file":"tooltip2.mjs","sources":["../../../../../../packages/components/tooltip/src/tooltip.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils/props'\nimport {\n usePopperTriggerProps,\n usePopperContentProps,\n} from '@element-plus/components/popper'\nimport { useDelayedToggleProps } from '@element-plus/hooks'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nconst triggers = ['hover', 'focus', 'click', 'contextmenu'] as const\n\nexport type Trigger = typeof triggers[number]\n\nexport const useTooltipContentProps = {\n ...useDelayedToggleProps,\n ...usePopperContentProps,\n ...buildProps({\n content: {\n type: String,\n default: '',\n },\n rawContent: {\n type: Boolean,\n default: false,\n },\n persistent: Boolean,\n ariaLabel: String,\n // because model toggle prop is generated dynamically\n // so the typing cannot be evaluated by typescript as type:\n // [name]: { type: Boolean, default: null }\n // so we need to declare that again for type checking.\n visible: {\n type: definePropType<boolean | null>(Boolean),\n default: null,\n },\n transition: {\n type: String,\n default: 'el-fade-in-linear',\n },\n teleported: {\n type: Boolean,\n default: true,\n },\n }),\n}\n\nexport const useTooltipTriggerProps = {\n ...usePopperTriggerProps,\n disabled: Boolean,\n trigger: {\n type: [String, Array] as PropType<Trigger | Trigger[]>,\n default: 'hover',\n },\n}\n\nexport const useTooltipProps = buildProps({\n openDelay: {\n type: Number,\n },\n visibleArrow: {\n type: Boolean,\n default: undefined,\n },\n hideAfter: {\n type: Number,\n default: 200,\n },\n showArrow: {\n type: Boolean,\n default: true,\n },\n})\n\nexport type ElTooltipContentProps = ExtractPropTypes<\n typeof useTooltipContentProps\n>\n\nexport type ElTooltipTriggerProps = ExtractPropTypes<\n typeof useTooltipTriggerProps\n>\n\nexport type ElTooltipProps = ExtractPropTypes<typeof useTooltipProps> &\n ElTooltipContentProps &\n ElTooltipTriggerProps\n"],"names":[],"mappings":";;;;;;AAMA,MAAM,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