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
9.0 KiB

"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[1914],{216443:function(Z,_,n){n.r(_);var v=n(502143),r=n(968521),m=n(720719),c=n(28840),u=n(759907),i=n(828089),h=n(825673),g=n(902068),E=n(574399),p=n(863942),f=n(316073),P=n(24628),D=n(719260),M=n(956140),O=n(127179),T=n(905388),x=n(40428),b=n(606965),I=n(268696),C=n(587302),t=n(424128),y=n(249706),L=n(795127),A=n(116846),R=n(212039),k=n(73024),W=n(553913),a=n(606641),d=n(667294),e=n(370917);function o(){var s=(0,a.eL)(),l=s.texts;return(0,e.tZ)(a.dY,null,(0,e.tZ)(d.Fragment,null,(0,e.tZ)("div",{className:"markdown"},(0,e.tZ)("p",null,l[0].value,(0,e.tZ)("strong",null,(0,e.tZ)(t.Z,{href:"https://github.com/li-jia-nan",sourceType:"a"},l[1].value)),l[2].value,(0,e.tZ)("strong",null,(0,e.tZ)(t.Z,{to:"/components/float-button",sourceType:"Link"},l[3].value)),l[4].value,(0,e.tZ)("strong",null,(0,e.tZ)(t.Z,{to:"/components/qrcode",sourceType:"Link"},l[5].value)),l[6].value),(0,e.tZ)("h2",{id:"introduction"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#introduction",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"introduction"),(0,e.tZ)("p",null,l[7].value,(0,e.tZ)("code",null,l[8].value),l[9].value,(0,e.tZ)("strong",null,(0,e.tZ)(t.Z,{href:"https://enzymejs.github.io/enzyme",sourceType:"a"},l[10].value)),l[11].value,(0,e.tZ)("strong",null,(0,e.tZ)(t.Z,{href:"https://testing-library.com/docs/react-testing-library/intro",sourceType:"a"},l[12].value)),l[13].value),(0,e.tZ)("p",null,l[14].value),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,l[15].value,(0,e.tZ)(t.Z,{href:"https://github.com/zombieJ",sourceType:"a"},l[16].value),l[17].value,(0,e.tZ)(t.Z,{href:"https://github.com/MadCcc",sourceType:"a"},l[18].value),l[19].value,(0,e.tZ)(t.Z,{href:"https://github.com/miracles1919",sourceType:"a"},l[20].value),l[21].value)),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/207530591-1faaf171-638b-40af-8d61-3f07cb60abe2.png",alt:"image"})),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/207530491-4988ecc4-2da0-4a0c-ba5d-b9797edecd1a.png",alt:"image"})),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/207530507-412f0244-3d88-4500-9eb4-054f3e112731.png",alt:"image"})),(0,e.tZ)("h2",{id:"start"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#start",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"start"),(0,e.tZ)("p",null,l[22].value,(0,e.tZ)("code",null,l[23].value),l[24].value),(0,e.tZ)("p",null,l[25].value,(0,e.tZ)("code",null,l[26].value),l[27].value),(0,e.tZ)("p",null,l[28].value,(0,e.tZ)("code",null,l[29].value),l[30].value),(0,e.tZ)("h2",{id:"migrate"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#migrate",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"migrate"),(0,e.tZ)("h3",{id:"1-render"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#1-render",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"1. render"),(0,e.tZ)("p",null,(0,e.tZ)("code",null,l[31].value),l[32].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)("p",null,l[33].value)),(0,e.tZ)("li",null,(0,e.tZ)("p",null,l[34].value)),(0,e.tZ)("li",null,(0,e.tZ)("p",null,l[35].value))),(0,e.tZ)("p",null,l[36].value,(0,e.tZ)("code",null,l[37].value),l[38].value,(0,e.tZ)("code",null,l[39].value),l[40].value,(0,e.tZ)("code",null,l[41].value),l[42].value,(0,e.tZ)("code",null,l[43].value),l[44].value),(0,e.tZ)(u.Z,{lang:"diff"},l[45].value),(0,e.tZ)("h3",{id:"2-interact--event"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#2-interact--event",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"2. interact & event"),(0,e.tZ)("p",null,(0,e.tZ)("code",null,l[46].value),l[47].value,(0,e.tZ)("code",null,l[48].value),l[49].value,(0,e.tZ)("code",null,l[50].value),l[51].value,(0,e.tZ)("code",null,l[52].value),l[53].value,(0,e.tZ)("code",null,l[54].value),l[55].value),(0,e.tZ)(u.Z,{lang:"diff"},l[56].value),(0,e.tZ)("h3",{id:"3-dom-element"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#3-dom-element",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"3. DOM element"),(0,e.tZ)("p",null,l[57].value,(0,e.tZ)("code",null,l[58].value),l[59].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,l[60].value),(0,e.tZ)("li",null,l[61].value),(0,e.tZ)("li",null,l[62].value),(0,e.tZ)("li",null,l[63].value),(0,e.tZ)("li",null,l[64].value),(0,e.tZ)("li",null,l[65].value),(0,e.tZ)("li",null,l[66].value),(0,e.tZ)("li",null,l[67].value),(0,e.tZ)("li",null,l[68].value),(0,e.tZ)("li",null,l[69].value)),(0,e.tZ)("p",null,l[70].value,(0,e.tZ)("code",null,l[71].value),l[72].value,(0,e.tZ)("code",null,l[73].value),l[74].value),(0,e.tZ)(u.Z,{lang:"diff"},l[75].value),(0,e.tZ)("h3",{id:"4-compatibility-test"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#4-compatibility-test",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"4. compatibility test"),(0,e.tZ)("p",null,l[76].value),(0,e.tZ)(u.Z,{lang:"diff"},l[77].value),(0,e.tZ)("h2",{id:"diff-mystery"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#diff-mystery",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"Diff Mystery"),(0,e.tZ)("p",null,l[78].value),(0,e.tZ)("p",null,l[79].value,(0,e.tZ)("code",null,l[80].value),l[81].value,(0,e.tZ)("code",null,l[82].value),l[83].value,(0,e.tZ)("code",null,l[84].value),l[85].value,(0,e.tZ)("code",null,l[86].value),l[87].value),(0,e.tZ)(u.Z,{lang:"js"},l[88].value),(0,e.tZ)("p",null,l[89].value,(0,e.tZ)("code",null,l[90].value),l[91].value,(0,e.tZ)("code",null,l[92].value),l[93].value),(0,e.tZ)(u.Z,{lang:"diff"},l[94].value),(0,e.tZ)("p",null,l[95].value),(0,e.tZ)(u.Z,{lang:"diff"},l[96].value),(0,e.tZ)("p",null,l[97].value,(0,e.tZ)("code",null,l[98].value),l[99].value,(0,e.tZ)("code",null,l[100].value),l[101].value),(0,e.tZ)(u.Z,{lang:"ts"},l[102].value),(0,e.tZ)("p",null,l[103].value,(0,e.tZ)("code",null,l[104].value),l[105].value),(0,e.tZ)("h2",{id:"pretty-format"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#pretty-format",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"pretty-format"),(0,e.tZ)("p",null,(0,e.tZ)("code",null,l[106].value),l[107].value),(0,e.tZ)("p",null,l[108].value,(0,e.tZ)("code",null,l[109].value),l[110].value,(0,e.tZ)("code",null,l[111].value),l[112].value,(0,e.tZ)("code",null,l[113].value),l[114].value,(0,e.tZ)("code",null,l[115].value),l[116].value,(0,e.tZ)("code",null,l[117].value),l[118].value,(0,e.tZ)("code",null,l[119].value),l[120].value),(0,e.tZ)(u.Z,{lang:"html"},l[121].value),(0,e.tZ)("p",null,l[122].value,(0,e.tZ)("code",null,l[123].value),l[124].value,(0,e.tZ)("code",null,l[125].value),l[126].value,(0,e.tZ)("code",null,l[127].value),l[128].value),(0,e.tZ)(u.Z,{lang:"json"},l[129].value),(0,e.tZ)("p",null,l[130].value,(0,e.tZ)("code",null,l[131].value),l[132].value,(0,e.tZ)("code",null,l[133].value),l[134].value,(0,e.tZ)("code",null,l[135].value),l[136].value),(0,e.tZ)(u.Z,{lang:"ts"},l[137].value),(0,e.tZ)("p",null,l[138].value),(0,e.tZ)(u.Z,{lang:"snap"},l[139].value),(0,e.tZ)("p",null,l[140].value,(0,e.tZ)("code",null,l[141].value),l[142].value,(0,e.tZ)("code",null,l[143].value),l[144].value),(0,e.tZ)(u.Z,{lang:"tsx"},l[145].value),(0,e.tZ)("p",null,l[146].value),(0,e.tZ)(i.Z,null,(0,e.tZ)("thead",null,(0,e.tZ)("tr",null,(0,e.tZ)("th",null,l[147].value),(0,e.tZ)("th",null,l[148].value))),(0,e.tZ)("tbody",null,(0,e.tZ)("tr",null,(0,e.tZ)("td",null,l[149].value),(0,e.tZ)("td",null,l[150].value)))),(0,e.tZ)("p",null,l[151].value,(0,e.tZ)("code",null,l[152].value),l[153].value,(0,e.tZ)("code",null,l[154].value),l[155].value,(0,e.tZ)("code",null,l[156].value),l[157].value,(0,e.tZ)("code",null,l[158].value),l[159].value),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,l[160].value)),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/207533725-fb8f9e4d-7f09-4a13-a04a-cbb2d3eb2aea.png",alt:"image"})),(0,e.tZ)("blockquote",null,(0,e.tZ)("p",null,l[161].value)),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/207533740-328d10ea-d9bc-4469-bc00-f08e33857e6f.png",alt:"image"})),(0,e.tZ)("p",null,l[162].value),(0,e.tZ)("ul",null,(0,e.tZ)("li",null,(0,e.tZ)(t.Z,{href:"https://github.com/facebook/react/pull/22807",sourceType:"a"},l[163].value))),(0,e.tZ)("p",null,(0,e.tZ)("img",{src:"https://user-images.githubusercontent.com/49217418/226159376-497fd490-153e-4e88-92e2-29dda50b3426.png",alt:"WX20230319-145539@2x"})),(0,e.tZ)("h2",{id:"a-solution"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#a-solution",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"a solution"),(0,e.tZ)("p",null,l[164].value,(0,e.tZ)("code",null,l[165].value),l[166].value),(0,e.tZ)(u.Z,{lang:"ts"},l[167].value),(0,e.tZ)("p",null,l[168].value,(0,e.tZ)("code",null,l[169].value),l[170].value),(0,e.tZ)(u.Z,{lang:"ts"},l[171].value),(0,e.tZ)("h2",{id:"knock-off"},(0,e.tZ)(t.Z,{"aria-hidden":"true",tabIndex:"-1",href:"#knock-off",sourceType:"a"},(0,e.tZ)("span",{className:"icon icon-link"})),"knock off"),(0,e.tZ)("p",null,l[172].value))))}_.default=o}}]);