ant-design-vue/components/vc-upload/uid.ts

8 lines
157 B
TypeScript
Raw Normal View History

2019-01-12 11:33:27 +08:00
const now = +new Date();
let index = 0;
2018-04-11 15:17:34 +08:00
2019-01-12 11:33:27 +08:00
export default function uid() {
// eslint-disable-next-line no-plusplus
2019-01-12 11:33:27 +08:00
return `vc-upload-${now}-${++index}`;
2018-04-11 15:17:34 +08:00
}