Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
2772dbe2
Commit
2772dbe2
authored
Jan 11, 2023
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 富文本编辑器文档完善
parent
52e251b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
3 deletions
+25
-3
RichText.md
packages/base-components/RichText/src/RichText.md
+25
-3
No files found.
packages/base-components/RichText/src/RichText.md
View file @
2772dbe2
...
...
@@ -15,10 +15,32 @@ group:
<code
src=
"./demos/demo.jsx"
>
###
合计
###
参数
<!-- <code src="./demos/Summary.tsx">
-->
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| projectId | 项目 ID(通过项目 ID 获取项目人员,可在输入@符号时显示 ) | Number,String | null |
| personList | personList 传任务相关人员列表(如 创建、负责、跟进人),同时传入 projectId,personList,下拉列表默认显示为任务相关人员,加项目人员(做了去重,任务相关人员在最上面) | Array |
[
] |
| config | 框架 wangEditor 的配置参数 | Object | {} |
| content | 初始内容(内容如果不是初始有的,可调用 setHtml 设置内容) | String | '' |
| fileList | 附件列表
[
{name:'xxx.jpg',type:'image/jpg',size:8192,path:'xxxx'}
]
, name 和 path 是必传的,type 为图片可以预览,其它类型文件直接下载 | Array |
[
] |
## API
## 事件
| 名称 | 描述 |
| ------------ | -------------------------------------------------- |
| onChange | 内容改变回调 |
| onChangeFile | 文件改变回调(没有,则工具栏上不显示上传附件按钮) |
## ref事件
| 名称 | 描述 |
| ------------ | -------------------------------------------------- |
| setHtml | 设置内容 |
| onClear | 清除内容 |
| getHtml | 获取html字符串 |
| getText | 获取纯内容(不包含标签) |
## API
api 参考 Antd Table 组件 https://www.wangeditor.com/v4/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment