mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
1 line
1007 B
JavaScript
1 line
1007 B
JavaScript
(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["734d6f71"],{"734d6f71":function(e,a,n){"use strict";n.d(a,"__esModule",{value:!0}),n.d(a,"default",{enumerable:!0,get:function(){return d;}});var l=n("f19d2b93");n("b45b7a1f");var t=n("5b220c3d"),r=n("a9d1a279");let{Option:i}=r.Select,s=({type:e,onChange:a})=>"time"===e?(0,l.jsx)(r.TimePicker,{onChange:a}):"date"===e?(0,l.jsx)(r.DatePicker,{onChange:a}):(0,l.jsx)(r.DatePicker,{picker:e,onChange:a});var d=()=>{let[e,a]=(0,t.useState)("time");return(0,l.jsxs)(r.Space,{children:[(0,l.jsxs)(r.Select,{value:e,onChange:a,children:[(0,l.jsx)(i,{value:"time",children:"Time"}),(0,l.jsx)(i,{value:"date",children:"Date"}),(0,l.jsx)(i,{value:"week",children:"Week"}),(0,l.jsx)(i,{value:"month",children:"Month"}),(0,l.jsx)(i,{value:"quarter",children:"Quarter"}),(0,l.jsx)(i,{value:"year",children:"Year"})]}),(0,l.jsx)(s,{type:e,onChange:e=>console.log(e)})]});};}}]); |