diff --git a/packages/editor/src/utils/common.ts b/packages/editor/src/utils/common.ts index 5b652ec..244a503 100644 --- a/packages/editor/src/utils/common.ts +++ b/packages/editor/src/utils/common.ts @@ -2,8 +2,8 @@ import { ComponentType } from '../types' let uid = 1 -export function useId(prefix = 'drager') { - return `${prefix}${uid++}` +export function useId(prefix = 'es-drager') { + return `${prefix}-${Date.now()}-${uid++}` } export function deepCopy(obj: any) {