ant-design-vue/components/vc-upload/uid.ts
tangjinzhou 04baae5a57
Refactor upload (#5290)
* refactor: vc-upload

* refactor: vc-upload

* refactor: upload

* refactor: upload

* refactor: upload
2022-02-24 09:58:58 +08:00

8 lines
157 B
TypeScript

const now = +new Date();
let index = 0;
export default function uid() {
// eslint-disable-next-line no-plusplus
return `vc-upload-${now}-${++index}`;
}