import { Avatar, Badge, Button, Card, Grid, Icon, IconButton, Input, ItemBadge, Space, Tag, } from '../../src' import { Demo } from '../components/Demo' import { Section } from '../components/Section' import { DEMO_APPS, DEMO_COVER, DEMO_POSTERS } from '../data/demo' import styles from './Composition.module.css' /** * 组合示例:把基础组件拼成真实页面里的几块结构。 * * 这一节不放新组件,只演示「怎么拼」—— * 后期做新页面时,从这里复制结构再改数据即可。 */ export function Composition() { return (
置顶 常用站点 } />
{apps.map((app) => ( {app.name} {app.desc} ))} `} >
置顶 常用站点
} />
{DEMO_APPS.slice(0, 4).map((app) => ( event.preventDefault()} > {app.name} {app.desc} ))}
全部 42 `} > 全部 42 {posters.map((poster) => ( {poster.title} {poster.tag} ))} `} > {DEMO_POSTERS.map((poster) => ( {poster.title} {poster.tag} ))}
) }