ant-design-vue/components/vc-upload/src/uid.js

7 lines
115 B
JavaScript
Raw Normal View History

2019-01-12 03:33:27 +00:00
const now = +new Date();
let index = 0;
2018-04-11 07:17:34 +00:00
2019-01-12 03:33:27 +00:00
export default function uid() {
return `vc-upload-${now}-${++index}`;
2018-04-11 07:17:34 +00:00
}