{"version":3,"file":"header.mjs","sources":["../../../../../../packages/components/header/src/header.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\nimport { buttonsProps } from '@el-plus/components/buttons'\nimport type { AttachmentProps } from '@el-plus/components/attachment'\nimport type { PageMode } from '@el-plus/hooks/use-navigation'\nexport type defaultButtonsProps =\n  | 'edit'\n  | 'save'\n  | 'cancel'\n  | 'refresh'\n  | 'auditLog'\n\nexport const headerProps = {\n  // 页面模式\n  mode: {\n    type: String as PropType<PageMode>,\n  },\n  allowBack: {\n    type: Boolean,\n    default: true,\n  },\n  buttons: {\n    ...buttonsProps.list,\n  },\n  name: String, // 权限前缀\n  // 要展示的默认按钮\n  defaultButtons: {\n    type: Array as PropType<defaultButtonsProps[]>,\n  },\n  // 工作流id\n  workflowId: String,\n  // 是否显示附件按钮\n  isShowAttachmentButton: {\n    type: Boolean,\n    default: false,\n  },\n  // 附件列表\n  fileList: {\n    type: Array as PropType<Record<string, any>[]>,\n    default: () => [],\n  },\n  attachmentProps: {\n    type: Object as PropType<AttachmentProps>,\n    default: () => {},\n  },\n} as const\nexport type HeaderProps = ExtractPropTypes<typeof headerProps>\n\nexport const headerEmits = {}\nexport type HeaderEmits = typeof headerEmits\n"],"names":[],"mappings":";;AAWO,MAAM,WAAA,GAAc;AAAA;AAAA,EAEzB,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM;AAAA,GACR;AAAA,EACA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA,EACA,OAAA,EAAS;AAAA,IACP,GAAG,YAAA,CAAa;AAAA,GAClB;AAAA,EACA,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA,EAEN,cAAA,EAAgB;AAAA,IACd,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,UAAA,EAAY,MAAA;AAAA;AAAA,EAEZ,sBAAA,EAAwB;AAAA,IACtB,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,KAAA;AAAA,IACN,OAAA,EAAS,MAAM;AAAC,GAClB;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM,MAAA;AAAA,IACN,SAAS,MAAM;AAAA,IAAC;AAAA;AAEpB;AAGO,MAAM,cAAc;;;;"}