Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | 1x 1x 1x | import React from "react"; import { Layout } from "@tencent/tea-component/lib/layout"; import { Card } from "@tencent/tea-component/lib/card"; import { ExternalLink } from "@tencent/tea-component/lib/link"; import { RegionSelect, RegionPanel, RegionOption, } from "@tencent/tea-component/lib/regionselect"; const { Body, Content } = Layout; function LayoutContentExample() { return ( <Layout> <Body> <Content> <Content.Header showBackButton onBackButtonClick={console.log} title="内容标题" operation={<ExternalLink weak>内容帮助</ExternalLink>} > <RegionSelect> <RegionPanel> <RegionPanel.Head> <RegionOption value="all">全部地域 (1108)</RegionOption> </RegionPanel.Head> <RegionPanel.Column> <RegionPanel.Group name="中国"> <RegionOption value="gz">广州 (20)</RegionOption> <RegionOption value="sh" dot> 上海 (20) </RegionOption> <RegionOption value="hk">香港 (20)</RegionOption> </RegionPanel.Group> </RegionPanel.Column> </RegionPanel> </RegionSelect> </Content.Header> <Content.Body> {/* 内容区域一般使用 Card 组件显示内容 */} <Card> <Card.Body>内容卡片</Card.Body> </Card> </Content.Body> <Content.Footer> <div className="layout-footer-demo"> (可选项)自定义页脚 <br /> 京公网安备 11010802017518 粤B2-20090059-1 </div> </Content.Footer> </Content> </Body> </Layout> ); } export default function Demo() { return ( <section style={{ height: 360, border: "1px solid #ddd", }} > <LayoutContentExample /> </section> ); } |