-
Notifications
You must be signed in to change notification settings - Fork 0
/
components__divider__index.zh.md.e31adc56.async.js
1 lines (1 loc) · 15 KB
/
components__divider__index.zh.md.e31adc56.async.js
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[38],{"0m3q":function(e,t,a){"use strict";a("q1tI")},"2Pr/":function(e,t,a){},"60ow":function(e,t,a){},"9kvl":function(e,t,a){"use strict";var n=a("FfOG");a.d(t,"a",(function(){return n["b"]}));a("bCY9")},Bjia:function(e,t,a){"use strict";var n=a("0Owb"),c=a("tJVT"),r=a("q1tI"),l=a.n(r),i=a("3Mpw"),o=a("dEAq");a("qHiR"),a("60ow");t["a"]=e=>{var t=e.code,a=e.lang,r=e.showCopy,s=void 0===r||r,d=Object(o["useCopy"])(),m=Object(c["a"])(d,2),u=m[0],v=m[1];return l.a.createElement("div",{className:"__dumi-default-code-block"},l.a.createElement(i["a"],Object(n["a"])({},i["b"],{code:t,language:a,theme:void 0}),(e=>{var a=e.className,n=e.style,c=e.tokens,r=e.getLineProps,i=e.getTokenProps;return l.a.createElement("pre",{className:a,style:n},s&&l.a.createElement("button",{className:"__dumi-default-icon __dumi-default-code-block-copy-btn","data-status":v,onClick:()=>u(t)}),c.map(((e,t)=>l.a.createElement("div",r({line:e,key:t}),e.map(((e,t)=>l.a.createElement("span",i({token:e,key:t}))))))))})))}},DgDr:function(e,t,a){"use strict";a("0Owb"),a("q1tI"),a("2Pr/")},N0lm:function(e,t,a){"use strict";var n=a("0Owb"),c=a("q1tI"),r=a.n(c);a("tCeM");t["a"]=e=>r.a.createElement("div",Object(n["a"])({className:"__dumi-default-alert"},e))},TAbJ:function(e,t,a){"use strict"},WpQk:function(e,t,a){},YWOM:function(e,t,a){},"dMo/":function(e,t,a){"use strict";var n=a("q1tI"),c=a.n(n),r=a("hKI/"),l=a.n(r);a("WpQk");function i(e,t){return u(e)||m(e,t)||s(e,t)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){if(e){if("string"===typeof e)return d(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function m(e,t){var a=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,c,r=[],l=!0,i=!1;try{for(a=a.call(e);!(l=(n=a.next()).done);l=!0)if(r.push(n.value),t&&r.length===t)break}catch(o){i=!0,c=o}finally{try{l||null==a["return"]||a["return"]()}finally{if(i)throw c}}return r}}function u(e){if(Array.isArray(e))return e}var v=function(e){var t=e.children,a=Object(n["useRef"])(),r=Object(n["useState"])(!1),o=i(r,2),s=o[0],d=o[1],m=Object(n["useState"])(!1),u=i(m,2),v=u[0],h=u[1];return Object(n["useEffect"])((function(){var e=a.current,t=l()((function(){d(e.scrollLeft>0),h(e.scrollLeft<e.scrollWidth-e.offsetWidth)}),100);return t(),e.addEventListener("scroll",t),window.addEventListener("resize",t),function(){e.removeEventListener("scroll",t),window.removeEventListener("resize",t)}}),[]),c.a.createElement("div",{className:"__dumi-default-table"},c.a.createElement("div",{className:"__dumi-default-table-content",ref:a,"data-left-folded":s||void 0,"data-right-folded":v||void 0},c.a.createElement("table",null,t)))};t["a"]=v},ekZX:function(e,t,a){"use strict";a.r(t),a.d(t,"ACTIVE_MSG_TYPE",(function(){return g}));var n=a("q1tI"),c=a.n(n),r=a("tJVT"),l=a("/7QA"),i=a("9kvl"),o=a("dEAq"),s=a("Bjia");a("YWOM");function d(e,t){var a,n=null===(a=e.match(/\.(\w+)$/))||void 0===a?void 0:a[1];return n||(n=t.tsx?"tsx":"jsx"),n}var m=e=>{var t=Object(n["useRef"])(null),a=Object(n["useContext"])(o["context"]),m=a.locale,u=Object(o["useLocaleProps"])(m,e),v=(null===i["a"]||void 0===i["a"]?void 0:i["a"].location.hash)==="#".concat(u.identifier),h=1===Object.keys(u.sources).length,E=Object(o["useMotions"])(u.motions||[],t.current),f=Object(r["a"])(E,2),b=f[0],p=f[1],g=Object(o["useCopy"])(),w=Object(r["a"])(g,2),_=w[0],O=w[1],k=Object(n["useState"])("_"),y=Object(r["a"])(k,2),j=y[0],N=y[1],x=Object(n["useState"])(d(j,u.sources[j])),A=Object(r["a"])(x,2),C=A[0],M=A[1],L=u.sources[j][C]||u.sources[j].content,V=Object(o["useTSPlaygroundUrl"])(m,L),Z=Object(o["usePrefersColor"])(),q=Object(r["a"])(Z,1);q[0];function I(e){N(e),M(d(e,u.sources[e]))}return c.a.createElement("div",{style:u.style,className:[u.className,"__dumi-default-previewer",v?"__dumi-default-previewer-target":""].filter(Boolean).join(" "),id:u.identifier,"data-debug":u.debug||void 0},c.a.createElement("div",{className:"__dumi-default-previewer-desc","data-title":u.title},u.title&&c.a.createElement(o["AnchorLink"],{to:"#".concat(u.identifier)},u.title),u.description&&c.a.createElement("div",{dangerouslySetInnerHTML:{__html:u.description}})),c.a.createElement("div",{className:"__dumi-default-previewer-actions"},u.debug&&c.a.createElement("span",{className:"debug-badge"},"Debug Only"),u.motions&&c.a.createElement("button",{title:"Execute motions",className:"__dumi-default-icon",role:"motions",disabled:p,onClick:()=>b()}),c.a.createElement("div",{className:"spacer"}),c.a.createElement("button",{title:"Copy source code",className:"__dumi-default-icon",role:"copy","data-status":O,onClick:()=>_(L)}),"tsx"===C&&c.a.createElement(o["Link"],{target:"_blank",to:V},c.a.createElement("button",{title:"Get JSX via TypeScript Playground",className:"__dumi-default-icon",role:"change-tsx",type:"button"}))),c.a.createElement("div",{className:"__dumi-default-previewer-source-wrapper"},!h&&c.a.createElement(l["Tabs"],{className:"__dumi-default-previewer-source-tab",stretch:!1,defaultActiveKey:j,onChange:I},Object.keys(u.sources).map((e=>c.a.createElement(l["Tabs"].Tab,{title:"_"===e?"index.".concat(d(e,u.sources[e])):e,key:e})))),c.a.createElement("div",{className:"__dumi-default-previewer-source"},c.a.createElement(s["a"],{code:L,lang:C,showCopy:!1}))))},u=m,v=(a("oeoJ"),a("D1Df")),h=a.n(v),E=(a("q9vG"),e=>{var t=e.url,a=Object(n["useState"])(Math.random()),i=Object(r["a"])(a,2),s=i[0],d=i[1],m=Object(o["usePrefersColor"])(),u=Object(r["a"])(m,1),v=u[0],E=Object(n["useContext"])(o["context"]),g=E.config.mode;return Object(n["useEffect"])((()=>{d(Math.random())}),[v]),c.a.createElement("div",{className:"adm-doc-device","data-device-type":"iOS","data-mode":g},c.a.createElement("iframe",{title:"dumi-previewer",src:t,key:s}),c.a.createElement("div",{className:"adm-doc-device-action"},c.a.createElement("a",{onClick:()=>d(Math.random())},f),c.a.createElement(l["Popover"],{content:c.a.createElement(h.a,{value:t,size:96}),trigger:"click"},c.a.createElement("a",null,b)),c.a.createElement("a",{href:t,target:"_blank",rel:"noreferrer"},p)))}),f=c.a.createElement("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M17.875 8.313V4.374l-1.284 1.284a7.87 7.87 0 0 0-6.567-3.535 7.876 7.876 0 1 0 7.299 10.839.675.675 0 0 0-1.25-.508A6.528 6.528 0 0 1 3.497 10a6.526 6.526 0 0 1 12.116-3.364l-1.677 1.676h3.938Z",fill:"currentColor",fillRule:"nonzero"})),b=c.a.createElement("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M11.875 15.556v1.319h2.986a.14.14 0 0 1 .139.139v.764a.139.139 0 0 1-.139.139h-3.889a.139.139 0 0 1-.139-.14v-2.221a.14.14 0 0 1 .14-.14h.763a.14.14 0 0 1 .139.14Zm5.89.099c.084 0 .152.068.152.15v1.96a.15.15 0 0 1-.151.152h-.83a.15.15 0 0 1-.15-.151v-1.96c0-.083.068-.151.15-.151h.83Zm-2.515-1.072c.092 0 .167.075.167.167v.917c0 .08-.057.147-.133.163l-.034.003h-.917a.167.167 0 0 1-.166-.166v-.917c0-.092.075-.167.166-.167h.917Zm.028-3.75c.076 0 .139.067.139.148v.815c0 .082-.063.148-.14.148h-3.402v1.112l-.903 1.11c-.076 0-.139-.066-.139-.147V10.98c0-.081.063-.148.14-.148h4.305Zm2.496 2.084c.078 0 .143.075.143.166V14c0 .08-.05.148-.114.163l-.03.004H15.56c-.07 0-.127-.057-.14-.133L15.417 14v-.917c0-.091.064-.166.143-.166h2.214Zm-3.774 0c.092 0 .167.075.167.166V14a.167.167 0 0 1-.167.167h-3a.167.167 0 0 1-.167-.167v-.917c0-.091.075-.166.167-.166h3Zm3.75-2.084c.092 0 .167.075.167.167v.917c0 .08-.057.147-.133.163l-.034.003h-.917a.167.167 0 0 1-.163-.133l-.003-.033V11c0-.092.075-.167.166-.167h.917Zm-2.485 0c.083 0 .152.075.152.167v.917c0 .092-.068.166-.152.166h-3.863c-.084 0-.152-.074-.152-.166V11c0-.092.068-.167.152-.167h3.863ZM9.167 3.575v4.1c0 .824-.668 1.492-1.492 1.492h-4.1a1.491 1.491 0 0 1-1.492-1.492v-4.1c0-.824.668-1.492 1.492-1.492h4.1c.824 0 1.492.668 1.492 1.492Zm8.75 0v4.1c0 .824-.668 1.492-1.492 1.492h-4.1a1.491 1.491 0 0 1-1.492-1.492v-4.1c0-.824.668-1.492 1.492-1.492h4.1c.824 0 1.492.668 1.492 1.492ZM7.564 3.333H3.686a.353.353 0 0 0-.35.312l-.003.04v3.88c0 .178.134.328.312.35l.04.002h3.88c.178 0 .328-.134.35-.312l.002-.04v-3.88a.353.353 0 0 0-.312-.35l-.04-.002Zm8.75 0h-3.878a.353.353 0 0 0-.35.312l-.003.04v3.88c0 .178.134.328.312.35l.04.002h3.88c.178 0 .328-.134.35-.312l.002-.04v-3.88a.353.353 0 0 0-.312-.35l-.04-.002ZM6.23 4.723c.208 0 .377.168.377.376V6.23a.377.377 0 0 1-.377.377H5.1a.377.377 0 0 1-.378-.377V5.1c0-.209.169-.378.377-.378H6.23Zm2.937 7.602v4.1c0 .824-.668 1.492-1.492 1.492h-4.1a1.491 1.491 0 0 1-1.492-1.492v-4.1c0-.824.668-1.492 1.492-1.492h4.1c.824 0 1.492.668 1.492 1.492Zm-1.603-.242H3.686a.353.353 0 0 0-.35.312l-.003.04v3.88c0 .178.134.328.312.35l.04.002h3.88c.178 0 .328-.134.35-.312l.002-.04v-3.88a.353.353 0 0 0-.312-.35l-.04-.002Zm-1.334 1.39c.208 0 .377.168.377.376v1.131a.377.377 0 0 1-.377.377H5.1a.377.377 0 0 1-.378-.377v-1.13c0-.209.169-.378.377-.378H6.23Zm8.75-8.75c.208 0 .377.168.377.376V6.23a.377.377 0 0 1-.377.377h-1.13a.377.377 0 0 1-.378-.377V5.1c0-.209.169-.378.377-.378h1.131Z",fill:"currentColor",fillRule:"nonzero"})),p=c.a.createElement("svg",{width:20,height:20,xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M10.417 1.833v.917a.167.167 0 0 1-.167.166H4.167c-.666 0-1.21.521-1.248 1.177l-.002.074v11.666c0 .666.52 1.21 1.176 1.248l.074.002h11.666c.666 0 1.21-.52 1.248-1.176l.002-.074V9.75c0-.092.075-.167.167-.167h.917a.167.167 0 0 0 .166-.166V7.25a.167.167 0 0 0-.166-.167h-.917a.167.167 0 0 1-.167-.166V3.714L11.069 9.73a.167.167 0 0 1-.236 0l-.648-.648a.167.167 0 0 1 0-.236l5.928-5.928h-3.03a.167.167 0 0 1-.166-.167v-.917c0-.092.074-.166.166-.166h4.625c.346 0 .625.28.625.625v13.541a2.5 2.5 0 0 1-2.5 2.5H4.167a2.5 2.5 0 0 1-2.5-2.5V4.167a2.5 2.5 0 0 1 2.5-2.5h6.083c.092 0 .167.074.167.166Z",fill:"currentColor",fillRule:"nonzero"})),g="dumi:scroll-into-demo";t["default"]=e=>{var t,a=Object(o["useDemoUrl"])(e.identifier);return c.a.createElement("div",{className:"adm-doc-previewer","data-debug":e.debug||void 0},c.a.createElement("div",{className:"adm-doc-previewer-source"},c.a.createElement(u,e)),c.a.createElement("div",{className:"adm-doc-previewer-device"},c.a.createElement(E,{url:null!==(t=e.demoUrl)&&void 0!==t?t:a})))}},eqKt:function(e,t,a){e.exports={card:"card___2rQs3",content:"content___2Zybx",title:"title___m0XDq",description:"description___Lth8e"}},gKi5:function(e,t,a){"use strict";var n=a("q1tI"),c=a.n(n),r=a("eqKt"),l=a.n(r),i=e=>c.a.createElement("a",{className:l.a.card,href:e.link,target:"_blank"},e.image&&c.a.createElement("img",{src:e.image,alt:e.title}),c.a.createElement("div",{className:l.a.content},c.a.createElement("div",{className:l.a.title},e.title),c.a.createElement("div",{className:l.a.description},e.description)));t["a"]=i},iQYM:function(e,t,a){"use strict";a.r(t);var n=a("q1tI"),c=a.n(n),r=a("dEAq"),l=(a("N0lm"),a("TAbJ"),a("DgDr"),a("mVOg"),a("ekZX")),i=(a("gKi5"),a("Bjia"),a("0m3q"),a("dMo/")),o=c.a.memo((e=>{var t=e.demos,a=t["divider-demo1"].component;return c.a.createElement(c.a.Fragment,null,c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"markdown"},c.a.createElement("h1",{id:"divider-\u5206\u5272\u7ebf"},c.a.createElement(r["AnchorLink"],{to:"#divider-\u5206\u5272\u7ebf","aria-hidden":"true",tabIndex:-1},c.a.createElement("span",{className:"icon icon-link"})),"Divider \u5206\u5272\u7ebf"),c.a.createElement("p",null,"\u533a\u9694\u5185\u5bb9\u7684\u5206\u5272\u7ebf\u3002"),c.a.createElement("h2",{id:"\u4f55\u65f6\u4f7f\u7528"},c.a.createElement(r["AnchorLink"],{to:"#\u4f55\u65f6\u4f7f\u7528","aria-hidden":"true",tabIndex:-1},c.a.createElement("span",{className:"icon icon-link"})),"\u4f55\u65f6\u4f7f\u7528"),c.a.createElement("ul",null,c.a.createElement("li",null,"\u5bf9\u4e0d\u540c\u7ae0\u8282\u7684\u6587\u672c\u6bb5\u843d\u8fdb\u884c\u5206\u5272\u3002"),c.a.createElement("li",null,"\u5bf9\u884c\u5185\u6587\u5b57/\u94fe\u63a5\u8fdb\u884c\u5206\u5272\uff0c\u4f8b\u5982\u8868\u683c\u7684\u64cd\u4f5c\u5217\u3002")),c.a.createElement("h2",{id:"\u793a\u4f8b"},c.a.createElement(r["AnchorLink"],{to:"#\u793a\u4f8b","aria-hidden":"true",tabIndex:-1},c.a.createElement("span",{className:"icon icon-link"})),"\u793a\u4f8b")),c.a.createElement(l["default"],t["divider-demo1"].previewerProps,c.a.createElement(a,null)),c.a.createElement("div",{className:"markdown"},c.a.createElement("h2",{id:"divider"},c.a.createElement(r["AnchorLink"],{to:"#divider","aria-hidden":"true",tabIndex:-1},c.a.createElement("span",{className:"icon icon-link"})),"Divider"),c.a.createElement("h3",{id:"\u5c5e\u6027"},c.a.createElement(r["AnchorLink"],{to:"#\u5c5e\u6027","aria-hidden":"true",tabIndex:-1},c.a.createElement("span",{className:"icon icon-link"})),"\u5c5e\u6027"),c.a.createElement(i["a"],null,c.a.createElement("thead",null,c.a.createElement("tr",null,c.a.createElement("th",null,"\u5c5e\u6027"),c.a.createElement("th",null,"\u8bf4\u660e"),c.a.createElement("th",null,"\u7c7b\u578b"),c.a.createElement("th",null,"\u9ed8\u8ba4\u503c"))),c.a.createElement("tbody",null,c.a.createElement("tr",null,c.a.createElement("td",null,"direction"),c.a.createElement("td",null,"\u6c34\u5e73\u8fd8\u662f\u5782\u76f4\u7c7b\u578b"),c.a.createElement("td",null,c.a.createElement("code",null,"'horizontal' | 'vertical'")),c.a.createElement("td",null,c.a.createElement("code",null,"'horizontal'"))))))))}));t["default"]=e=>{var t=c.a.useContext(r["context"]),a=t.demos;return c.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&r["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),c.a.createElement(o,{demos:a})}},mVOg:function(e,t,a){"use strict";var n=a("tJVT"),c=a("q1tI"),r=a.n(c),l=a("dEAq"),i=a("/7QA");t["a"]=()=>{var e=Object(c["useContext"])(l["context"]),t=e.locale,a=Object(c["useState"])(!1),o=Object(n["a"])(a,2),s=o[0],d=o[1];return r.a.createElement("a",{href:("zh"===t?"/zh":"")+"/guide/what-is-experimental",onMouseEnter:()=>{d(!0)},onMouseLeave:()=>{d(!1)},style:{verticalAlign:"-0.125em"}},r.a.createElement(i["Popover"],{content:"zh"===t?"\u8bd5\u9a8c\u6027":"Experimental",visible:s,mode:"dark"},r.a.createElement("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"experiment",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},r.a.createElement("path",{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}))))}},oeoJ:function(e,t,a){},q9vG:function(e,t,a){},tCeM:function(e,t,a){}}]);