primevue-mirror/components/lib/utils/UniqueComponentId.js

8 lines
113 B
JavaScript
Executable File

var lastId = 0;
export default function (prefix = 'pv_id_') {
lastId++;
return `${prefix}${lastId}`;
}