docs(rich-text-editor): add demo and api docs (#404)

This commit is contained in:
Kagol 2023-08-17 16:57:39 +08:00 committed by GitHub
parent c0cd7cdb4e
commit 956293b4ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 47 additions and 10 deletions

View File

@ -1,10 +0,0 @@
[
{
"title": "组件式使用",
"content": "详细用法参考如下示例",
"link": "rich-text-editor/basic-usage",
"component": " 富文本编辑器",
"findIntroStr": "富文本编辑器",
"demoId": "basic-usage"
}
]

View File

@ -0,0 +1,7 @@
---
title: Rich Text Editor 富文本编辑器
---
# Rich Text Editor 富文本编辑器
<div>富文本编辑器可以让用户在编辑器中不仅可以编辑常规文本,同时还可以添加图像、视频、链接、表格、列表等元素,并对文本进行格式化,如加粗、斜体、下划线、字体、颜色等。</div>

View File

@ -0,0 +1,7 @@
---
title: Rich Text Editor
---
# Rich Text Editor
<div>Rich text editor allows users to not only edit regular text, but also add images, videos, links, tables, lists and other elements, and format the text, such as bold, italic, underline, font, color, and so on.</div>

View File

@ -0,0 +1,33 @@
export default {
column: '1',
owner: 'Caesar-ch',
demos: [
{
'demoId': 'basic-usage',
'name': { 'zh-CN': '基本用法', 'en-US': 'Basic Usage' },
'desc': { 'zh-CN': '详细用法参考如下示例', 'en-US': 'For details, see the following example.' },
'codeFiles': ['basic-usage.vue']
}
],
apis: [
{
'name': 'rich-text-editor',
'type': 'component',
'properties': [
{
'name': 'modelValue',
'type': 'String',
'defaultValue': '',
desc: {
'zh-CN': '默认富文本内容',
'en-US': 'default rich text content'
},
demoId: 'basic-usage'
}
],
'events': [],
'methods': [],
'slots': []
}
]
}