{"version":3,"file":"contextmenu.mjs","sources":["../../../../../../packages/components/contextmenu/src/contextmenu.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport type { ExtractPropTypes } from 'vue'\nimport type {\n  DropdownOption,\n  DropdownValue,\n} from '@element-plus/components/dropdown-v2/src/types'\n\nexport const contextmenuProps = buildProps({\n  data: {\n    type: null,\n  },\n  options: {\n    type: definePropType<DropdownOption[]>(Array),\n    default: () => [] as DropdownOption[],\n  },\n} as const)\nexport type ContextmenuProps = ExtractPropTypes<typeof contextmenuProps>\n\nexport const contextmenuEmits = {\n  change: (value: DropdownValue, valuePath: DropdownValue[]) =>\n    !!value && !!valuePath,\n}\nexport type ContextmenuEmits = typeof contextmenuEmits\n"],"names":[],"mappings":";;AAOO,MAAM,mBAAmB,UAAW,CAAA;AAAA,EACzC,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,IAAA;AAAA,GACR;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAiC,KAAK,CAAA;AAAA,IAC5C,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AACF,CAAU,EAAA;AAGH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,MAAA,EAAQ,CAAC,KAAsB,EAAA,SAAA,KAC7B,CAAC,CAAC,KAAA,IAAS,CAAC,CAAC,SAAA;AACjB;;;;"}