@opensig/opendesign
Version:
11 lines (10 loc) • 394 B
TypeScript
import { ObjectDirective } from 'vue';
import { uniqueId } from '../_utils/helper';
declare const getUId: typeof uniqueId;
/**
* 为元素生成id,如果元素已设置id,则使用已有id(解决ssr时会导致Hydration attribute mismatch)
* 1. 默认会直接生成随机id
* 2. 支持传递函数,自定义处理
*/
declare const vUid: ObjectDirective;
export { vUid, getUId };