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 line
2.9 KiB
1 line
2.9 KiB
{"ast":null,"code":"import '../../../utils/index.mjs';\nimport { uploadListTypes } from './upload.mjs';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { mutable } from '../../../utils/typescript.mjs';\nimport { NOOP } from '@vue/shared';\nconst uploadListProps = buildProps({\n files: {\n type: definePropType(Array),\n default: () => mutable([])\n },\n disabled: {\n type: Boolean,\n default: false\n },\n handlePreview: {\n type: definePropType(Function),\n default: NOOP\n },\n listType: {\n type: String,\n values: uploadListTypes,\n default: \"text\"\n },\n crossorigin: {\n type: definePropType(String)\n }\n});\nconst uploadListEmits = {\n remove: file => !!file\n};\nexport { uploadListEmits, uploadListProps };","map":{"version":3,"names":["uploadListProps","buildProps","files","type","definePropType","Array","default","mutable","disabled","Boolean","handlePreview","Function","NOOP","listType","String","values","uploadListTypes","crossorigin","uploadListEmits","remove","file"],"sources":["../../../../../../packages/components/upload/src/upload-list.ts"],"sourcesContent":["import { NOOP, buildProps, definePropType, mutable } from '@element-plus/utils'\nimport { uploadListTypes } from './upload'\nimport type { ExtractPropTypes } from 'vue'\nimport type { UploadFile, UploadFiles, UploadHooks } from './upload'\nimport type UploadList from './upload-list.vue'\n\nexport const uploadListProps = buildProps({\n files: {\n type: definePropType<UploadFiles>(Array),\n default: () => mutable([]),\n },\n disabled: {\n type: Boolean,\n default: false,\n },\n handlePreview: {\n type: definePropType<UploadHooks['onPreview']>(Function),\n default: NOOP,\n },\n listType: {\n type: String,\n values: uploadListTypes,\n default: 'text',\n },\n /**\n * @description set HTML attribute: crossorigin.\n */\n crossorigin: {\n type: definePropType<'anonymous' | 'use-credentials' | ''>(String),\n },\n} as const)\n\nexport type UploadListProps = ExtractPropTypes<typeof uploadListProps>\nexport const uploadListEmits = {\n remove: (file: UploadFile) => !!file,\n}\nexport type UploadListEmits = typeof uploadListEmits\nexport type UploadListInstance = InstanceType<typeof UploadList>\n"],"mappings":";;;;;AAEY,MAACA,eAAe,GAAGC,UAAU,CAAC;EACxCC,KAAK,EAAE;IACLC,IAAI,EAAEC,cAAc,CAACC,KAAK,CAAC;IAC3BC,OAAO,EAAEA,CAAA,KAAMC,OAAO,CAAC,EAAE;EAC7B,CAAG;EACDC,QAAQ,EAAE;IACRL,IAAI,EAAEM,OAAO;IACbH,OAAO,EAAE;EACb,CAAG;EACDI,aAAa,EAAE;IACbP,IAAI,EAAEC,cAAc,CAACO,QAAQ,CAAC;IAC9BL,OAAO,EAAEM;EACb,CAAG;EACDC,QAAQ,EAAE;IACRV,IAAI,EAAEW,MAAM;IACZC,MAAM,EAAEC,eAAe;IACvBV,OAAO,EAAE;EACb,CAAG;EACDW,WAAW,EAAE;IACXd,IAAI,EAAEC,cAAc,CAACU,MAAM;EAC/B;AACA,CAAC;AACW,MAACI,eAAe,GAAG;EAC7BC,MAAM,EAAGC,IAAI,IAAK,CAAC,CAACA;AACtB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |