{"version":3,"file":"menu-item.mjs","sources":["../../../../../../packages/components/menu/src/menu-item.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils/props'\nimport { isString } from '@element-plus/utils/util'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { RouteLocationRaw } from 'vue-router'\nimport type { MenuItemRegistered } from './types'\n\nexport const menuItemProps = buildProps({\n  index: {\n    type: definePropType<string | null>([String, null]),\n    default: null,\n  },\n  route: {\n    type: definePropType<RouteLocationRaw>([String, Object]),\n  },\n  disabled: Boolean,\n} as const)\nexport type MenuItemProps = ExtractPropTypes<typeof menuItemProps>\n\nexport const menuItemEmits = {\n  click: (item: MenuItemRegistered) =>\n    isString(item.index) && Array.isArray(item.indexPath),\n}\nexport type MenuItemEmits = typeof menuItemEmits\n"],"names":[],"mappings":";;;;MAOa,gBAAgB,WAAW;AAAA,EACtC,OAAO;AAAA,IACL,MAAM,eAA8B,CAAC,QAAQ;AAAA,IAC7C,SAAS;AAAA;AAAA,EAEX,OAAO;AAAA,IACL,MAAM,eAAiC,CAAC,QAAQ;AAAA;AAAA,EAElD,UAAU;AAAA;MAIC,gBAAgB;AAAA,EAC3B,OAAO,CAAC,SACN,SAAS,KAAK,UAAU,MAAM,QAAQ,KAAK;AAAA;;;;"}