@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
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 };