1.0.4 • Published 14 days ago
xverse-components-write-message v1.0.4
API
参数名 | 类型 | 说明 | 默认值 | 是否必填 | 备注 |
---|---|---|---|---|---|
className | string | 顶层 ClassName | - | true | - |
defaultTitle | string | 默认标题 | '请输入标题' | false | - |
defaultContent | string | 默认正文 | '请输入正文' | false | - |
contentBg | string | 正文贴花背景图 | - | true | - |
bannerBg | string | 标题贴花背景图 | - | true | - |
callback | (contentData: { content: string; donor: string }) => void | 修改完留言墙后的回调函数暴露输入内容 | - | true | - |
worldOwnerId | string | 世界所有者 Id | - | true | - |
isShowMessageWritePlace | boolean | 是否展示输入面板 UI | - | true | - |
onCloseMessageWritePlace | () => void | 关闭输入面板 UI | - | true | - |
titleCanvasOptions | ICanvasOptionsParams | 标题 canvas 配置项 | - | false | - |
contentCanvasOptions | ICanvasOptionsParams | 正文 canvas 配置项 | - | true | - |
fontColor | string | 字体颜色 | - | false | - |
bannerBomId | string | 标题贴花模型选择 | - | false | - |
contentBomId | string | 正文贴花模型选择 | - | true | - |
contentInputOptions | IFloatInputProps | 留言板正文输入 Slot | - | false | - |
titleInputOptions | IFloatInputProps | 留言板标题输入 Slot | - | false | - |
messageWritePlaceOptions | IContainerProps | 留言板输入面板 Container | - | false | - |
closeButtonOptions | IButtonProps | 关闭按钮 Slot | - | false | - |
messageWritePlaceContainerOptions | IContainerProps | 标题 正文留言板容器 | - | false | - |
messageWritePlaceTitleOptions | IContainerProps | 输入面板 Title 的 container | - | false | - |
messageWritePlaceContentOptions | IContainerProps | 输入面板 Content 的 container | - | false | - |
saveButtonOptions | IButtonProps | 保存按钮 Button | - | false | - |
editIcon | string | 编辑小图标 | - | true | - |