-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 📝 chore: 去掉轻量级 * 📝 docs: add showcase 案例文档 * 📝 chore: add utils md
- Loading branch information
Showing
6 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: C2D2C 辅助函数 | ||
group: | ||
title: 工具类库 | ||
order: 99 | ||
--- | ||
|
||
# generateJSXCode | ||
|
||
该方法用于将组件属性配置拼接生成 jsx 代码。 | ||
|
||
```jsx | pure | ||
import { generateJSXCode } from '@ant-design/pro-editor'; | ||
|
||
const config = { | ||
children: '默认按钮', | ||
target: '_blank', | ||
type: 'default', | ||
htmlType: 'button', | ||
danger: false, | ||
icon: '', | ||
size: 'middle', | ||
loading: true, | ||
disabled: false, | ||
ghost: false, | ||
block: false, | ||
}; | ||
|
||
const code = generateJSXCode('Button', config); | ||
``` | ||
|
||
结果为: | ||
|
||
```jsx | pure | ||
<Button | ||
target="_blank" | ||
type="default" | ||
htmlType="button" | ||
danger={false} | ||
size="middle" | ||
loading | ||
disabled={false} | ||
ghost={false} | ||
block={false} | ||
> | ||
默认按钮 | ||
</Button> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Flow Editor 节点编辑器 | ||
--- | ||
|
||
# 简介 | ||
|
||
Flow Editor 是一套节点式运行大模型的编辑工具。 | ||
|
||
![](https://mdn.alipayobjects.com/huamei_rusp7w/afts/img/A*8TzqSK8jnhAAAAAAAAAAAAAADmB6AQ/original) | ||
|
||
## 访问地址 | ||
|
||
https://github.com/ant-design/pro-flow-editor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: 欢迎 PR | ||
nav: | ||
title: 使用案例 | ||
order: 999 | ||
--- | ||
|
||
# 使用案例 | ||
|
||
如您的项目使用到了 ProEditor,可以提交 PR 添加到我们的案例库中来。 | ||
|
||
![](https://mdn.alipayobjects.com/huamei_re70wt/afts/img/A*688cTLS47_QAAAAAAAAAAAAADmuEAQ/original) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: kitchen Color Studio 颜色系统编辑器 | ||
--- | ||
|
||
# 简介 | ||
|
||
kitchen Color Studio 是一套开源的颜色系统编辑器。 | ||
|
||
![](https://raw.githubusercontent.com/ant-design/kitchen-color-studio/master/public/preview1.webp) | ||
|
||
## 访问地址 | ||
|
||
https://github.com/ant-design/antd-color-editor |