ant-design/19b59ae5-async.5c7e5564.js
2024-11-20 18:30:54 +00:00

1 line
1.4 KiB
JavaScript

(("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd=("undefined"!=typeof globalThis?globalThis:self).makoChunk_antd||[]).push([["19b59ae5"],{"19b59ae5":function(e,d,s){"use strict";s.d(d,"__esModule",{value:!0}),s.d(d,"default",{enumerable:!0,get:function(){return m;}});var a=s("777fffbe"),l=s("f19d2b93");s("6d874398");var i=s("a9d1a279"),t=a._(s("072ab8a9")),u=a._(s("738f1298"));t.default.extend(u.default);let{RangePicker:n}=i.DatePicker,b=(e,d)=>{let s=[];for(let a=e;a<d;a++)s.push(a);return s;},f=e=>e&&e<(0,t.default)().endOf("day"),o=()=>({disabledHours:()=>b(0,24).splice(4,20),disabledMinutes:()=>b(30,60),disabledSeconds:()=>[55,56]}),r=(e,d)=>"start"===d?{disabledHours:()=>b(0,60).splice(4,20),disabledMinutes:()=>b(30,60),disabledSeconds:()=>[55,56]}:{disabledHours:()=>b(0,60).splice(20,4),disabledMinutes:()=>b(0,31),disabledSeconds:()=>[55,56]};var m=()=>(0,l.jsxs)(i.Space,{direction:"vertical",size:12,children:[(0,l.jsx)(i.DatePicker,{format:"YYYY-MM-DD HH:mm:ss",disabledDate:f,disabledTime:o,showTime:{defaultValue:(0,t.default)("00:00:00","HH:mm:ss")}}),(0,l.jsx)(i.DatePicker,{picker:"month",disabledDate:f}),(0,l.jsx)(n,{disabledDate:f}),(0,l.jsx)(n,{disabledDate:f,disabledTime:r,showTime:{hideDisabledOptions:!0,defaultValue:[(0,t.default)("00:00:00","HH:mm:ss"),(0,t.default)("11:59:59","HH:mm:ss")]},format:"YYYY-MM-DD HH:mm:ss"})]});}}]);