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
2.3 KiB

{"ast":null,"code":"import { buildProps } from '../../../utils/vue/props/runtime.mjs';\nconst Effect = {\n LIGHT: \"light\",\n DARK: \"dark\"\n};\nconst roleTypes = [\"dialog\", \"grid\", \"group\", \"listbox\", \"menu\", \"navigation\", \"tooltip\", \"tree\"];\nconst popperProps = buildProps({\n role: {\n type: String,\n values: roleTypes,\n default: \"tooltip\"\n }\n});\nconst usePopperProps = popperProps;\nexport { Effect, popperProps, roleTypes, usePopperProps };","map":{"version":3,"names":["Effect","LIGHT","DARK","roleTypes","popperProps","buildProps","role","type","String","values","default","usePopperProps"],"sources":["../../../../../../packages/components/popper/src/popper.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\n\nimport { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type Popper from './popper.vue'\n\nconst effects = ['light', 'dark'] as const\nconst triggers = ['click', 'contextmenu', 'hover', 'focus'] as const\n\nexport const Effect = {\n LIGHT: 'light',\n DARK: 'dark',\n} as const\n\nexport const roleTypes = [\n 'dialog',\n 'grid',\n 'group',\n 'listbox',\n 'menu',\n 'navigation',\n 'tooltip',\n 'tree',\n] as const\n\nexport type PopperEffect =\n | typeof effects[number]\n | (string & NonNullable<unknown>)\nexport type PopperTrigger = typeof triggers[number]\n\nexport const popperProps = buildProps({\n role: {\n type: String,\n values: roleTypes,\n default: 'tooltip',\n },\n} as const)\n\nexport type PopperProps = ExtractPropTypes<typeof popperProps>\n\nexport type PopperInstance = InstanceType<typeof Popper>\n\n/** @deprecated use `popperProps` instead, and it will be deprecated in the next major version */\nexport const usePopperProps = popperProps\n\n/** @deprecated use `PopperProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperProps = PopperProps\n"],"mappings":";AAGY,MAACA,MAAM,GAAG;EACpBC,KAAK,EAAE,OAAO;EACdC,IAAI,EAAE;AACR;AACY,MAACC,SAAS,GAAG,CACvB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,SAAS,EACT,MAAM,EACN,YAAY,EACZ,SAAS,EACT,MAAM,CACR;AACY,MAACC,WAAW,GAAGC,UAAU,CAAC;EACpCC,IAAI,EAAE;IACJC,IAAI,EAAEC,MAAM;IACZC,MAAM,EAAEN,SAAS;IACjBO,OAAO,EAAE;EACb;AACA,CAAC;AACW,MAACC,cAAc,GAAGP,WAAA","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}