ant-design/734d6f71-async.0ebb71f4.js
2024-11-20 18:30:54 +00:00

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)})]});};}}]);