diff --git a/packages/@steedos-widgets/amis-lib/src/index.ts b/packages/@steedos-widgets/amis-lib/src/index.ts index 7c0f30f1f..4f353cd52 100644 --- a/packages/@steedos-widgets/amis-lib/src/index.ts +++ b/packages/@steedos-widgets/amis-lib/src/index.ts @@ -1,8 +1,8 @@ /* * @Author: baozhoutao@steedos.com * @Date: 2022-09-01 09:09:12 - * @LastEditors: 殷亮辉 yinlianghui@hotoa.com - * @LastEditTime: 2023-11-16 10:10:42 + * @LastEditors: baozhoutao@steedos.com + * @LastEditTime: 2024-05-20 13:46:04 * @Description: */ export * from './lib/amis' @@ -42,4 +42,6 @@ export * from './workflow'; export * from './lib/router' -export * from './i18n' \ No newline at end of file +export * from './i18n' + +export * from './utils/uuid'; \ No newline at end of file diff --git a/packages/@steedos-widgets/amis-lib/src/utils/uuid b/packages/@steedos-widgets/amis-lib/src/utils/uuid.ts similarity index 79% rename from packages/@steedos-widgets/amis-lib/src/utils/uuid rename to packages/@steedos-widgets/amis-lib/src/utils/uuid.ts index 00e19153f..e65a27336 100644 --- a/packages/@steedos-widgets/amis-lib/src/utils/uuid +++ b/packages/@steedos-widgets/amis-lib/src/utils/uuid.ts @@ -1,15 +1,15 @@ /* * @Author: 殷亮辉 yinlianghui@hotoa.com * @Date: 2024-01-18 15:12:41 - * @LastEditors: 殷亮辉 yinlianghui@hotoa.com - * @LastEditTime: 2024-01-18 15:12:49 + * @LastEditors: baozhoutao@steedos.com + * @LastEditTime: 2024-05-20 13:46:41 */ /** * 生成符合标准uuid格式的36位满足唯一性的随机串 * @returns uuid */ export function uuidv4() { - return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c => + return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, (c: any) => (c ^ window.crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) ); } \ No newline at end of file