Skip to content

Commit 1407515

Browse files
committed
feat(site): add Compose and VirtualScroll tag
close #183
1 parent 2a5e6a5 commit 1407515

17 files changed

Lines changed: 53 additions & 5 deletions

File tree

packages/site/src/app/components/route/component/ComponentRouteArticle.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
align-items: center;
3232
justify-content: center;
3333
padding: 0 8px;
34+
font: inherit;
3435
font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
3536
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
3637
font-weight: 500;

packages/site/src/app/components/route/component/ComponentRouteArticle.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect } from 'react';
22
import { useTranslation } from 'react-i18next';
3+
import { Link } from 'react-router-dom';
34

45
import { AppRouteArticle } from '../RouteArticle';
56
import marked, { toString } from '../utils';
@@ -10,13 +11,15 @@ export interface AppComponentRouteArticleProps {
1011
subtitle: string;
1112
description: number[];
1213
aria: string;
14+
compose: string;
15+
'virtual-scroll': string;
1316
api: number[];
1417
demos: React.ReactNode;
1518
links: { href: string; title: string }[];
1619
}
1720

1821
export function AppComponentRouteArticle(props: AppComponentRouteArticleProps) {
19-
const { title, subtitle, aria, demos, links } = props;
22+
const { title, subtitle, aria, compose, 'virtual-scroll': virtualScroll, demos, links } = props;
2023

2124
const description = marked(toString(props.description));
2225
const api = marked(toString(props.api));
@@ -70,6 +73,22 @@ export function AppComponentRouteArticle(props: AppComponentRouteArticleProps) {
7073
</a>
7174
</li>
7275
)}
76+
{compose && (
77+
<li>
78+
<Link className="app-component-route-article__tag-link" to="/components/Compose">
79+
<img src="/assets/imgs/compose.png" alt="Compose" height={24} width={20} />
80+
<span>Compose</span>
81+
</Link>
82+
</li>
83+
)}
84+
{virtualScroll && (
85+
<li>
86+
<Link className="app-component-route-article__tag-link" to="/components/VirtualScroll">
87+
<img src="/assets/imgs/virtual-scroll.png" alt="Compose" height={16} width={16} />
88+
<span>VirtualScroll</span>
89+
</Link>
90+
</li>
91+
)}
7392
</ul>
7493
<h2 id="component-route-examples" className="app-component-route-article__examples">
7594
{t('Examples')}
2.08 KB
Loading
16.6 KB
Loading

packages/ui/components/auto-complete/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
group: Data Entry
33
title: AutoComplete
44
aria: combobox
5+
compose: true
6+
virtual-scroll: true
57
---
68

79
## API

packages/ui/components/button/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
group: General
33
title: Button
44
aria: button
5+
compose: true
56
---
67

78
## API

packages/ui/components/cascader/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
group: Data Entry
33
title: Cascader
44
aria: combobox
5+
compose: true
6+
virtual-scroll: true
57
---
68

79
## API
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
group: Data Entry
33
title: DatePicker
4+
compose: true
45
---
56

67
## API

packages/ui/components/form/demos/13.SupportComponents.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ title:
66

77
# en-US
88

9-
All supported components are shown here.
9+
All components under Data Entry are supported.
1010

1111
# zh-Hant
1212

13-
这里展示了所有受支持的组件
13+
支持数据录入下所有的组件
1414

1515
```tsx
1616
import { useState } from 'react';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
group: Data Entry
33
title: Input
4+
compose: true
45
---
56

67
## API

0 commit comments

Comments
 (0)