API 參考

@univerjs-pro/resources

此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。

Product-independent static resource registry for Web SDK. Resource identities are the combination of a registry id and resource id.

TypeScript
import { UniverResourcesPlugin } from '@univerjs-pro/resources'univer.registerPlugin(UniverResourcesPlugin)

Resource references

The root entry exports helpers for parsing, formatting, and validating resource references: parseResourceRef, formatResourceRef, getResourceRefUnitKey, isResourceRefRangePart, isResourceRefTablePart, normalizeResourceRefInput, RESOURCE_REF_FILE_KIND, ResourceRefError, and ResourceRefErrorCode.

It also exports the reference types IResourceRef, IResourceRefRangePart, IResourceRefTablePart, ResourceRefFile, ResourceRefInput, ResourceRefPart, and ResourceRefUnitType.

Import these APIs from @univerjs-pro/resources.

你覺得這篇文檔如何?

© 2026 DreamNum Co., Ltd.