UNPKG

@aplus-frontend/ui

Version:

2 lines (1 loc) 412 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function a(l,e,n){l?.status==="uploading"&&l?.ossDestroy?.();const o=e?.findIndex(t=>t.uid===l?.uid);o!==void 0&&o>-1&&(e?.splice(o,1),n?.maxCount&&e&&e?.length>=n.maxCount&&e?.splice(n.maxCount))}function u(l){l?.forEach(e=>{e.status==="uploading"&&e.ossDestroy?.()}),l?.splice(0)}exports.clearAllFile=u;exports.clearSingleFile=a;