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 lines
3.6 KiB

{"ast":null,"code":"import { useDelayedToggleProps } from '../../../hooks/use-delayed-toggle/index.mjs';\nimport { popperContentProps } from '../../popper/src/content.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { useAriaProps } from '../../../hooks/use-aria/index.mjs';\nconst useTooltipContentProps = buildProps({\n ...useDelayedToggleProps,\n ...popperContentProps,\n appendTo: {\n type: definePropType([String, Object])\n },\n content: {\n type: String,\n default: \"\"\n },\n rawContent: Boolean,\n persistent: Boolean,\n visible: {\n type: definePropType(Boolean),\n default: null\n },\n transition: String,\n teleported: {\n type: Boolean,\n default: true\n },\n disabled: Boolean,\n ...useAriaProps([\"ariaLabel\"])\n});\nexport { useTooltipContentProps };","map":{"version":3,"names":["useTooltipContentProps","buildProps","useDelayedToggleProps","popperContentProps","appendTo","type","definePropType","String","Object","content","default","rawContent","Boolean","persistent","visible","transition","teleported","disabled","useAriaProps"],"sources":["../../../../../../packages/components/tooltip/src/content.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { popperContentProps } from '@element-plus/components/popper'\nimport { useAriaProps, useDelayedToggleProps } from '@element-plus/hooks'\n\nimport type TooltipContent from './content.vue'\nimport type { ExtractPropTypes } from 'vue'\n\nexport const useTooltipContentProps = buildProps({\n ...useDelayedToggleProps,\n ...popperContentProps,\n /**\n * @description which element the tooltip CONTENT appends to\n */\n appendTo: {\n type: definePropType<string | HTMLElement>([String, Object]),\n },\n /**\n * @description display content, can be overridden by `slot#content`\n */\n content: {\n type: String,\n default: '',\n },\n /**\n * @description whether `content` is treated as HTML string\n */\n rawContent: Boolean,\n /**\n * @description when tooltip inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: Boolean,\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 /**\n * @description visibility of Tooltip\n */\n visible: {\n type: definePropType<boolean | null>(Boolean),\n default: null,\n },\n /**\n * @description animation name\n */\n transition: String,\n /**\n * @description whether tooltip content is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: {\n type: Boolean,\n default: true,\n },\n /**\n * @description whether Tooltip is disabled\n */\n disabled: Boolean,\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport type ElTooltipContentProps = ExtractPropTypes<\n typeof useTooltipContentProps\n>\n\nexport type TooltipContentInstance = InstanceType<typeof TooltipContent>\n"],"mappings":";;;;AAGY,MAACA,sBAAsB,GAAGC,UAAU,CAAC;EAC/C,GAAGC,qBAAqB;EACxB,GAAGC,kBAAkB;EACrBC,QAAQ,EAAE;IACRC,IAAI,EAAEC,cAAc,CAAC,CAACC,MAAM,EAAEC,MAAM,CAAC;EACzC,CAAG;EACDC,OAAO,EAAE;IACPJ,IAAI,EAAEE,MAAM;IACZG,OAAO,EAAE;EACb,CAAG;EACDC,UAAU,EAAEC,OAAO;EACnBC,UAAU,EAAED,OAAO;EACnBE,OAAO,EAAE;IACPT,IAAI,EAAEC,cAAc,CAACM,OAAO,CAAC;IAC7BF,OAAO,EAAE;EACb,CAAG;EACDK,UAAU,EAAER,MAAM;EAClBS,UAAU,EAAE;IACVX,IAAI,EAAEO,OAAO;IACbF,OAAO,EAAE;EACb,CAAG;EACDO,QAAQ,EAAEL,OAAO;EACjB,GAAGM,YAAY,CAAC,CAAC,WAAW,CAAC;AAC/B,CAAC","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}