UNPKG

@uiw/doc

Version:

UIW documentation website.

2 lines 3.17 kB
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[8577],{4934:e=>{function r(e){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}r.keys=()=>[],r.resolve=r,r.id=4934,e.exports=r},5301:(e,r,t)=>{"use strict";t.d(r,{Z:()=>x});var n=t(8573),s=t(6320),i=t(8563),o=t(7622),a=t(7937);const l={docinfo:"index_docinfo__3Vx8S",markdown:"index_markdown__hcQCp",markdownWrap:"index_markdownWrap__t60jR"};var c=t(4760);function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{path:r}=e,t=/^http/.test(r||"")?r:"https://github.com/uiwjs/uiw/blob/master/".concat(r);return(0,c.jsxs)("div",{className:l.docinfo,children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,c.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,c.jsx)("br",{}),(0,c.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,c.jsx)(a.Divider,{type:"vertical"}),(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,c.jsx)(a.Divider,{type:"vertical"}),(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,c.jsx)(a.Divider,{type:"vertical"}),(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,c.jsx)(a.Divider,{type:"vertical"}),(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,c.jsx)(a.Divider,{type:"vertical"}),(0,c.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}const u=s.ZP.Preview,h=s.ZP.Code,p=s.ZP.Toolbar,j=e=>{var r,t;let{node:o,components:a,data:l,...d}=e;const j=(0,n.useRef)(null),{headings:x,headingsList:f,...k}=d;(0,n.useEffect)((()=>{if(j.current){const e=j.current.parentElement;e&&e.parentElement&&e.parentElement.replaceChild(j.current,e)}}),[j]);const b=null===o||void 0===o||null===(r=o.position)||void 0===r?void 0:r.start.line,m=null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.meta,v=(0,i.Mx)(m)||String(b),g=a["".concat(v)];if(v&&"function"===typeof g){const e=l[v].value||"",r=(0,i.aE)(m||"");return(0,c.jsxs)(s.ZP,{ref:j,children:[(0,c.jsx)(u,{style:{background:r.bg||"transparent"},children:(0,c.jsx)(g,{})}),(0,c.jsx)(p,{text:e,children:r.title||"Example"}),(0,c.jsx)(h,{children:(0,c.jsx)("pre",{...k})})]})}return(0,c.jsx)("code",{...k})};function x(e){return(0,c.jsxs)(n.Fragment,{children:[(0,c.jsx)(o.Z,{className:l.markdownWrap,source:e.source||"",disableCopy:!0,wrapperElement:{"data-color-mode":"light"},components:{code:r=>(0,c.jsx)(j,{...e,...r})}}),(0,c.jsx)(d,{path:e.path})]})}},8080:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var n=t(1684),s=t(5301),i=t(4760);function o(){return(0,i.jsx)(s.Z,{...n.Z,path:"https://github.com/uiwjs/react-split/edit/master/README.md"})}}}]); //# sourceMappingURL=8577.04a78393.chunk.js.map