@univerjs/preset-docs-thread-comment
本 API 页面目前提供英文正文。代码签名与标识符不随界面语言变化。
TypeScript
import { UniverDocsThreadCommentPreset } from '@univerjs/preset-docs-thread-comment'createUniver({ presets: [ UniverDocsThreadCommentPreset(), ],})The preset registers UniverThreadCommentUIPlugin first and UniverDocsThreadCommentUIPlugin second. Their declared dependencies provide the shared comment model and the Docs text-range model, so the result supports document comments, decorations, menus, and the shared comment panel.
The preset currently has no configuration options. Collaboration persistence is configured separately with @univerjs-pro/thread-comment-datasource.
你觉得这篇文档如何?