{"version":3,"file":"preview-file2.mjs","sources":["../../../../../../packages/components/preview-file/src/preview-file.ts"],"sourcesContent":["import { buildProps, definePropType, mutable } from '@element-plus/utils'\nimport type { UploadUserFile } from 'element-plus'\n\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport interface FileMeta {\n  name: string\n  fileName: string\n  fileNameSuffix: string\n  size: string\n  type: string\n  icon: Component\n  iconColor: string\n  iconSize: number\n}\n\nexport interface FileItem {\n  data: UploadUserFile\n  meta: FileMeta\n}\n\nexport const previewFileProps = buildProps({\n  fileList: {\n    type: definePropType<UploadUserFile[]>(Array),\n    default: () => mutable([] as const),\n  },\n} as const)\nexport type PreviewFileProps = ExtractPropTypes<typeof previewFileProps>\n\nexport const previewFileEmits = {\n  click: (item: FileItem) => !!item,\n}\nexport type PreviewFileEmits = typeof previewFileEmits\n"],"names":[],"mappings":";;AAqBO,MAAM,mBAAmB,UAAW,CAAA;AAAA,EACzC,QAAU,EAAA;AAAA,IACR,IAAA,EAAM,eAAiC,KAAK,CAAA;AAAA,IAC5C,OAAS,EAAA,MAAM,OAAQ,CAAA,EAAW,CAAA;AAAA,GACpC;AACF,CAAU,EAAA;AAGH,MAAM,gBAAmB,GAAA;AAAA,EAC9B,KAAO,EAAA,CAAC,IAAmB,KAAA,CAAC,CAAC,IAAA;AAC/B;;;;"}