mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["9dd52b99"],{"4833e5f1":function(e,t,i){"use strict";i.d(t,"__esModule",{value:!0}),i.d(t,"default",{enumerable:!0,get:function(){return x;}});var a=i("777fffbe"),r=i("852bbaa9"),n=i("f19d2b93"),s=r._(i("5b220c3d"));i("892aecc9");var l=a._(i("1164364c")),d=a._(i("23546486")),o=i("a9d1a279"),c=i("e22febe0");let u={cn:{extra:"\u8BBE\u7F6E\u989D\u5916\u5185\u5BB9",actions:"\u8BBE\u7F6E\u5217\u8868\u64CD\u4F5C\u7EC4"},en:{extra:"set `extra` of List.Item",actions:"set `actions` of List.Item"}},h=({icon:e,text:t})=>(0,n.jsxs)(o.Space,{children:[s.default.createElement(e),t]}),g=Array.from({length:1}).map((e,t)=>({href:"https://ant.design",title:`ant design part ${t}`,avatar:`https://api.dicebear.com/7.x/miniavs/svg?seed=${t}`,description:"Ant Design, a design language for background applications, is refined by Ant UED Team.",content:"We supply a series of design principles, practical patterns and high quality design resources (Sketch and Axure), to help people create their product prototypes beautifully and efficiently."})),m=e=>{let t=s.default.useRef(null);return(0,n.jsx)("div",{ref:t,style:{position:"absolute",inset:0,height:300},children:(0,n.jsx)(o.List,{itemLayout:"vertical",size:"large",dataSource:g,renderItem:t=>(0,s.createElement)(o.List.Item,{...e,key:t.title,actions:[(0,n.jsx)(h,{icon:c.StarOutlined,text:"156"},"list-vertical-star-o"),(0,n.jsx)(h,{icon:c.LikeOutlined,text:"156"},"list-vertical-like-o"),(0,n.jsx)(h,{icon:c.MessageOutlined,text:"2"},"list-vertical-message")],extra:(0,n.jsx)("img",{width:272,alt:"logo",src:"https://gw.alipayobjects.com/zos/rmsportal/mqaQswcyDLcXyDKnZfES.png"}),children:[(0,n.jsx)(o.List.Item.Meta,{avatar:(0,n.jsx)(o.Avatar,{src:t.avatar}),title:(0,n.jsx)("a",{href:t.href,children:t.title}),description:t.description}),t.content]})})});};var x=()=>{let[e]=(0,d.default)(u);return(0,n.jsx)(l.default,{height:300,semantics:[{name:"extra",desc:e.extra,version:"5.18.0"},{name:"actions",desc:e.actions,version:"5.18.0"}],children:(0,n.jsx)(m,{})});};},"4bbce25c":function(e,t,i){"use strict";i.d(t,"__esModule",{value:!0}),i.d(t,"default",{enumerable:!0,get:function(){return l;}});var a=i("f19d2b93");i("5f8855a4");var r=i("a9d1a279");let n=[{title:"Title 1"},{title:"Title 2"},{title:"Title 3"},{title:"Title 4"},{title:"Title 5"},{title:"Title 6"}],s=()=>(0,a.jsx)(r.List.Item,{children:(0,a.jsx)(r.Card,{title:"title",children:"Card content"})});var l=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.List,{grid:{gutter:16,column:4},dataSource:n,renderItem:e=>(0,a.jsx)(r.List.Item,{children:(0,a.jsx)(r.Card,{title:e.title,children:"Card content"})})}),(0,a.jsx)(r.List,{grid:{gutter:16,column:4},dataSource:n,renderItem:()=>(0,a.jsx)(s,{})}),(0,a.jsx)(r.List,{grid:{gutter:16,column:4},dataSource:n,renderItem:()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s,{}),(0,a.jsx)("div",{})]})})]});},"60ef0901":function(e,t,i){"use strict";i.d(t,"__esModule",{value:!0}),i.d(t,"default",{enumerable:!0,get:function(){return s;}});var a=i("f19d2b93");i("a4d7d998");var r=i("a9d1a279");let n=["Racing car sprays burning fuel into crowd.","Japanese princess to wed commoner.","Australian walks 100km after outback crash.","Man charged over missing wedding girl.","Los Angeles battles huge wildfires."];var s=()=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Divider,{orientation:"left",children:"Default Size"}),(0,a.jsx)(r.List,{header:(0,a.jsx)("div",{children:"Header"}),footer:(0,a.jsx)("div",{children:"Footer"}),bordered:!0,dataSource:n,renderItem:e=>(0,a.jsxs)(r.List.Item,{children:[(0,a.jsx)(r.Typography.Text,{mark:!0,children:"[ITEM]"})," ",e]})}),(0,a.jsx)(r.Divider,{orientation:"left",children:"Small Size"}),(0,a.jsx)(r.List,{size:"small",header:(0,a.jsx)("div",{children:"Header"}),footer:(0,a.jsx)("div",{children:"Footer"}),bordered:!0,dataSource:n,renderItem:e=>(0,a.jsx)(r.List.Item,{children:e})}),(0,a.jsx)(r.Divider,{orientation:"left",children:"Large Size"}),(0,a.jsx)(r.List
|