claude-web/node_modules/@primevue/core/useid/index.mjs

12 lines
355 B
JavaScript
Raw Normal View History

2026-02-23 02:23:38 +00:00
import { useId as useId$1, ref, toValue } from 'vue';
function useId(initialValue) {
var _toValue;
var idx = useId$1();
var id = ref(initialValue);
return toValue(id) || "pv_id".concat((_toValue = toValue(idx)) === null || _toValue === void 0 ? void 0 : _toValue.replaceAll(/v-|-/g, '_'));
}
export { useId };
//# sourceMappingURL=index.mjs.map