Skip to content

Commit 30d4d84

Browse files
author
昔梦
committed
fix:主页透出xflow菜单
1 parent ddfb0b6 commit 30d4d84

File tree

4 files changed

+64
-10
lines changed

4 files changed

+64
-10
lines changed

Diff for: .dumi/theme/slots/Header/Navigation.tsx

+14-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CodeOutlined, DownOutlined } from '@ant-design/icons';
1+
import { CodeOutlined, DownOutlined, NodeIndexOutlined } from '@ant-design/icons';
22
import { Menu } from 'antd';
33
import { Link } from 'dumi';
44
import React from 'react';
@@ -13,6 +13,10 @@ const Navigation: React.FC = () => {
1313
label: <Link to="/table-render">TableRender</Link>,
1414
key: 'table-render',
1515
},
16+
{
17+
label: <Link to="/xflow">XFlow</Link>,
18+
key: 'xflow',
19+
},
1620
// {
1721
// label: <Link to="/xflow">XFlow</Link>,
1822
// key: 'xflow',
@@ -29,10 +33,10 @@ const Navigation: React.FC = () => {
2933
label: <Link to="/playground">Playground</Link>,
3034
key: 'playground',
3135
},
32-
{
33-
label: <Link to="/schema-builder">SchemaBuilder</Link>,
34-
key: 'schema-builder',
35-
},
36+
// {
37+
// label: <Link to="/schema-builder">SchemaBuilder</Link>,
38+
// key: 'schema-builder',
39+
// },
3640
{
3741
label: (
3842
<div>
@@ -43,6 +47,11 @@ const Navigation: React.FC = () => {
4347
</div>
4448
),
4549
children: [
50+
{
51+
label: <Link to="/schema-builder">SchemaBuilder</Link>,
52+
key: 'schema-builder',
53+
icon: <NodeIndexOutlined />,
54+
},
4655
{
4756
label: (
4857
<a href="https://1.xrender.fun/chart-render" target="_black">

Diff for: docs/index.en-US.md

+25-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 首页
33
hero:
44
title: XRender 2.0
55
description: |
6-
中后台「表单/表格/图表」开箱即用解决方案
6+
中后台「表单/表格/图表/流程编排」开箱即用解决方案
77
<br />
88
<small style="opacity: 0.7;">v1 文档请访问 <a href="https://xrender.fun/" style="color: #1677ff;">https://xrender.fun</a></small>
99
actions:
@@ -21,6 +21,9 @@ features:
2121
- emoji: 💎
2222
title: FormGenerator
2323
description: 中后台表单可视化搭建生成利器
24+
- emoji: 🚁
25+
title: XFlow
26+
description: 画布流程编排解决方案
2427
footer: false
2528
---
2629

@@ -31,3 +34,24 @@ footer: false
3134
<a href="https://github.com/alibaba/x-render/graphs/contributors">
3235
<img style="width: 60%" src="https://contrib.rocks/image?repo=alibaba/form-render" />
3336
</a>
37+
38+
39+
<style>
40+
.dumi-default-features {
41+
display: flex;
42+
flex-wrap: nowrap;
43+
justify-content: space-evenly;
44+
max-width: 1200px !important;
45+
margin: 0 auto;
46+
}
47+
48+
.dumi-default-features-item {
49+
flex: 0 1 auto;
50+
width: 25%;
51+
text-align: center;
52+
}
53+
54+
.dumi-default-features[data-cols='2'] > .dumi-default-features-item:nth-child(odd) {
55+
margin-inline-end: 0;
56+
}
57+
</style>

Diff for: docs/index.zh-CN.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: 首页
33
hero:
44
title: XRender 2.0
55
description: |
6-
中后台「表单/表格/图表」开箱即用解决方案
6+
中后台「表单/表格/图表/流程编排」开箱即用解决方案
77
<br />
88
actions:
99
- text: 立即使用
@@ -20,6 +20,9 @@ features:
2020
- emoji: 💎
2121
title: FormGenerator
2222
description: 中后台表单可视化搭建生成利器
23+
- emoji: 🚁
24+
title: XFlow
25+
description: 画布流程编排解决方案
2326
footer: false
2427
---
2528
<!-- <TypeSchema></TypeSchema> -->
@@ -29,4 +32,24 @@ footer: false
2932

3033
<a href="https://github.com/alibaba/x-render/graphs/contributors">
3134
<img style="height: 500px; margin-bottom: 50px" src="https://contrib.rocks/image?repo=alibaba/form-render" />
32-
</a>
35+
</a>
36+
37+
<style>
38+
.dumi-default-features {
39+
display: flex;
40+
flex-wrap: nowrap;
41+
justify-content: space-evenly;
42+
max-width: 1200px !important;
43+
margin: 0 auto;
44+
}
45+
46+
.dumi-default-features-item {
47+
flex: 0 1 auto;
48+
width: 25%;
49+
text-align: center;
50+
}
51+
52+
.dumi-default-features[data-cols='2'] > .dumi-default-features-item:nth-child(odd) {
53+
margin-inline-end: 0;
54+
}
55+
</style>

Diff for: docs/xflow/quickStart.md

-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ group:
3232

3333
```bash
3434
npm install @xrenders/xflow
35-
# 或者
36-
yarn add @xrenders/xflow
3735
```
3836

3937
## 基础使用

0 commit comments

Comments
 (0)