Home > LIB_PanelLibrary > copy
LIB_PanelLibrary.copy() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
复制面板库
Signature
typescript
copy(panelLibraryUuid: string, libraryUuid: string, targetLibraryUuid: string, targetClassification?: ILIB_ClassificationIndex, newPanelLibraryName?: string): Promise<string | undefined>;
1
Parameters
Parameter | Type | Description |
---|---|---|
panelLibraryUuid | string | 面板库 UUID |
libraryUuid | string | 库 UUID,可以使用 LIB_LibrariesList 内的接口获取 |
targetLibraryUuid | string | 目标库 UUID |
targetClassification | (Optional) 目标库内的分类 | |
newPanelLibraryName | string | (Optional) 新面板库名称,如若目标库内存在重名面板库将导致复制失败 |
Returns
Promise<string | undefined>
目标库内新面板库的 UUID