You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
5.9 KiB

"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[5674],{988325:function(o,l,_){_.r(l);var r=_(502143),m=_(968521),Z=_(720719),v=_(28840),a=_(759907),h=_(828089),c=_(825673),E=_(902068),x=_(574399),g=_(863942),p=_(316073),P=_(24628),D=_(719260),T=_(956140),M=_(127179),O=_(905388),I=_(40428),f=_(606965),C=_(268696),k=_(587302),t=_(424128),A=_(249706),L=_(795127),R=_(116846),U=_(212039),b=_(73024),W=_(553913),u=_(606641),i=_(667294),e=_(370917);function s(){var d=(0,u.eL)(),n=d.texts;return(0,e.tZ)(u.dY,null,(0,e.tZ)(i.Fragment,null,(0,e.tZ)("div",{className:"markdown"},(0,e.tZ)("p",null,n[0].value,(0,e.tZ)(t.Z,{href:"https://day.js.org",sourceType:"a"},n[1].value),n[2].value),(0,e.tZ)("p",null,n[3].value,(0,e.tZ)("strong",null,n[4].value,(0,e.tZ)(t.Z,{href:"http://momentjs.com/",sourceType:"a"},n[5].value),n[6].value,(0,e.tZ)(t.Z,{href:"https://date-fns.org",sourceType:"a"},n[7].value),n[8].value,(0,e.tZ)(t.Z,{href:"https://moment.github.io/luxon/",sourceType:"a"},n[9].value)),n[10].value),(0,e.tZ)("h2",{id:"custom-component"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#custom-component",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Custom component"),(0,e.tZ)("p",null,n[11].value,(0,e.tZ)("code",null,n[12].value),n[13].value,(0,e.tZ)("code",null,n[14].value),n[15].value),(0,e.tZ)("p",null,n[16].value,(0,e.tZ)("code",null,n[17].value),n[18].value,(0,e.tZ)(t.Z,{to:"/docs/react/use-in-typescript",sourceType:"Link"},n[19].value),n[20].value,(0,e.tZ)(t.Z,{href:"https://github.com/xiaohuoni/antd4-generate-picker/commit/47fec964e36d48bd15760f8f5abcb9655c259aa6",sourceType:"a"},n[21].value)),(0,e.tZ)("h3",{id:"datepickertsx"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#datepickertsx",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"DatePicker.tsx"),(0,e.tZ)("p",null,n[22].value,(0,e.tZ)("code",null,n[23].value),n[24].value),(0,e.tZ)("p",null,n[25].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[26].value),(0,e.tZ)("h3",{id:"timepickertsx"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#timepickertsx",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"TimePicker.tsx"),(0,e.tZ)("p",null,n[27].value,(0,e.tZ)("code",null,n[28].value),n[29].value),(0,e.tZ)("p",null,n[30].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[31].value),(0,e.tZ)("h3",{id:"calendartsx"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#calendartsx",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Calendar.tsx"),(0,e.tZ)("p",null,n[32].value,(0,e.tZ)("code",null,n[33].value),n[34].value),(0,e.tZ)("p",null,n[35].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[36].value),(0,e.tZ)("h3",{id:"export-custom-component"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#export-custom-component",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Export Custom component"),(0,e.tZ)("p",null,n[37].value,(0,e.tZ)("code",null,n[38].value),n[39].value),(0,e.tZ)("p",null,n[40].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[41].value),(0,e.tZ)("h3",{id:"use-custom-component"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#use-custom-component",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Use Custom component"),(0,e.tZ)("p",null,n[42].value,(0,e.tZ)("code",null,n[43].value),n[44].value,(0,e.tZ)("code",null,n[45].value),n[46].value),(0,e.tZ)(a.Z,{lang:"diff"},n[47].value),(0,e.tZ)("h2",{id:"antd-moment-webpack-plugin"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#antd-moment-webpack-plugin",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"antd-moment-webpack-plugin"),(0,e.tZ)("p",null,n[48].value,(0,e.tZ)("code",null,n[49].value),n[50].value,(0,e.tZ)("code",null,n[51].value),n[52].value,(0,e.tZ)("code",null,n[53].value),n[54].value,(0,e.tZ)(t.Z,{href:"https://github.com/ant-design/antd-moment-webpack-plugin",sourceType:"a"},n[55].value),n[56].value),(0,e.tZ)(a.Z,{lang:"js"},n[57].value),(0,e.tZ)("h2",{id:"use-date-fns"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#use-date-fns",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Use date-fns"),(0,e.tZ)("p",null,(0,e.tZ)(t.Z,{href:"https://date-fns.org/",sourceType:"a"},n[58].value),n[59].value,(0,e.tZ)("code",null,n[60].value),n[61].value),(0,e.tZ)("p",null,n[62].value),(0,e.tZ)("h3",{id:"datepickertsx-1"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#datepickertsx-1",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"DatePicker.tsx"),(0,e.tZ)("p",null,n[63].value,(0,e.tZ)("code",null,n[64].value),n[65].value),(0,e.tZ)("p",null,n[66].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[67].value),(0,e.tZ)("h2",{id:"use-luxon"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#use-luxon",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Use luxon"),(0,e.tZ)("p",null,n[68].value,(0,e.tZ)("code",null,n[69].value),n[70].value,(0,e.tZ)(t.Z,{href:"https://moment.github.io/luxon/",sourceType:"a"},n[71].value),n[72].value,(0,e.tZ)("code",null,n[73].value),n[74].value),(0,e.tZ)("h3",{id:"implementation"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#implementation",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Implementation"),(0,e.tZ)("p",null,n[75].value,(0,e.tZ)("code",null,n[76].value),n[77].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[78].value),(0,e.tZ)("h3",{id:"notable-differences-with-dayjs"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#notable-differences-with-dayjs",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Notable differences with dayjs"),(0,e.tZ)("p",null,n[79].value,(0,e.tZ)(t.Z,{href:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl",sourceType:"a"},n[80].value),n[81].value),(0,e.tZ)("p",null,n[82].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,n[83].value),(0,e.tZ)("li",null,n[84].value),(0,e.tZ)("li",null,n[85].value),(0,e.tZ)("li",null,n[86].value)),(0,e.tZ)("p",null,n[87].value),(0,e.tZ)(a.Z,{lang:"tsx"},n[88].value),(0,e.tZ)("p",null,n[89].value))))}l.default=s}}]);