3 lines
9.8 KiB
JavaScript
3 lines
9.8 KiB
JavaScript
import{c as t,d as s,b as e,D as n,o as $,e as o,f as a,E as r,p as c,g as m,h as f,i,j as l,k as p,F as g,l as u,m as d,A as v,y as h,G as y,V as N,a as I}from"./chunk.82446879.js";import{H as j,I as x,J as w,g as b}from"./chunk.f5a3f321.js";import"./chunk.e8a2e241.js";import{a as L}from"./chunk.4b4ee497.js";import"./chunk.b01e898f.js";import{a as k}from"./chunk.fb378401.js";import{a as H}from"./chunk.94a6e723.js";function E(t){let s;return{c(){s=a("管理工具")},l(t){s=i(t,"管理工具")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function P(t){let s;return{c(){s=a("开发资源")},l(t){s=i(t,"开发资源")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function B(t){let s,e;const o=new w({props:{$$slots:{default:[E]},$$scope:{ctx:t}}}),a=new w({props:{$$slots:{default:[P]},$$scope:{ctx:t}}});return{c(){n(o.$$.fragment),s=$(),n(a.$$.fragment)},l(t){r(o.$$.fragment,t),s=c(t),r(a.$$.fragment,t)},m(t,n){g(o,t,n),u(t,s,n),g(a,t,n),e=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),o.$set(e);const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),a.$set(n)},i(t){e||(v(o.$$.fragment,t),v(a.$$.fragment,t),e=!0)},o(t){h(o.$$.fragment,t),h(a.$$.fragment,t),e=!1},d(t){y(o,t),t&&l(s),y(a,t)}}}function R(t){let s;return{c(){s=a("登录")},l(t){s=i(t,"登录")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function A(t){let s;const e=new b({props:{type:"is-link",$$slots:{default:[R]},$$scope:{ctx:t}}});return{c(){n(e.$$.fragment)},l(t){r(e.$$.fragment,t)},m(t,n){g(e,t,n),s=!0},p(t,s){const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),e.$set(n)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){y(e,t)}}}function D(t){let s;const e=new w({props:{$$slots:{default:[A]},$$scope:{ctx:t}}});return{c(){n(e.$$.fragment)},l(t){r(e.$$.fragment,t)},m(t,n){g(e,t,n),s=!0},p(t,s){const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),e.$set(n)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){y(e,t)}}}function V(t){let s,e;const o=new x({props:{navPosition:"center",$$slots:{default:[B]},$$scope:{ctx:t}}}),a=new x({props:{navPosition:"end",$$slots:{default:[D]},$$scope:{ctx:t}}});return{c(){n(o.$$.fragment),s=$(),n(a.$$.fragment)},l(t){r(o.$$.fragment,t),s=c(t),r(a.$$.fragment,t)},m(t,n){g(o,t,n),u(t,s,n),g(a,t,n),e=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),o.$set(e);const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),a.$set(n)},i(t){e||(v(o.$$.fragment,t),v(a.$$.fragment,t),e=!0)},o(t){h(o.$$.fragment,t),h(a.$$.fragment,t),e=!1},d(t){y(o,t),t&&l(s),y(a,t)}}}function S(t){let s,e;const $=new j({props:{logoImg:"/logo-192.png",$$slots:{default:[V]},$$scope:{ctx:t}}});return{c(){s=o("div"),n($.$$.fragment),this.h()},l(t){s=m(t,"DIV",{slot:!0,style:!0});var e=f(s);r($.$$.fragment,e),e.forEach(l),this.h()},h(){p(s,"slot","preview"),N(s,"position","relative")},m(t,n){u(t,s,n),g($,s,null),e=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),$.$set(e)},i(t){e||(v($.$$.fragment,t),e=!0)},o(t){h($.$$.fragment,t),e=!1},d(t){t&&l(s),y($)}}}function F(t){let s;return{c(){s=a("开发资源")},l(t){s=i(t,"开发资源")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function G(t){let s;return{c(){s=a("开发资源")},l(t){s=i(t,"开发资源")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function J(t){let s;return{c(){s=a("开发资源")},l(t){s=i(t,"开发资源")},m(t,e){u(t,s,e)},d(t){t&&l(s)}}}function q(t){let s,e,a,i;const N=new w({props:{$$slots:{default:[F]},$$scope:{ctx:t}}}),I=new w({props:{$$slots:{default:[G]},$$scope:{ctx:t}}}),j=new w({props:{$$slots:{default:[J]},$$scope:{ctx:t}}});return{c(){s=o("div"),n(N.$$.fragment),e=$(),n(I.$$.fragment),a=$(),n(j.$$.fragment),this.h()},l(t){s=m(t,"DIV",{slot:!0});var n=f(s);r(N.$$.fragment,n),e=c(n),r(I.$$.fragment,n),a=c(n),r(j.$$.fragment,n),n.forEach(l),this.h()},h(){p(s,"slot","hover")},m(t,n){u(t,s,n),g(N,s,null),d(s,e),g(I,s,null),d(s,a),g(j,s,null),i=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),N.$set(e);const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),I.$set(n);const $={};8&s&&($.$$scope={dirty:s,ctx:t}),j.$set($)},i(t){i||(v(N.$$.fragment,t),v(I.$$.fragment,t),v(j.$$.fragment,t),i=!0)},o(t){h(N.$$.fragment,t),h(I.$$.fragment,t),h(j.$$.fragment,t),i=!1},d(t){t&&l(s),y(N),y(I),y(j)}}}function z(t){let s,e,n;return{c(){s=o("span"),e=a("管理工具"),n=$(),this.h()},l(t){s=m(t,"SPAN",{style:!0});var $=f(s);e=i($,"管理工具"),$.forEach(l),n=c(t),this.h()},h(){N(s,"color","#fff")},m(t,$){u(t,s,$),d(s,e),u(t,n,$)},p:I,i:I,o:I,d(t){t&&l(s),t&&l(n)}}}function C(t){let s,e;return{c(){s=o("span"),e=a("开发资源"),this.h()},l(t){s=m(t,"SPAN",{style:!0});var n=f(s);e=i(n,"开发资源"),n.forEach(l),this.h()},h(){N(s,"color","#fff")},m(t,n){u(t,s,n),d(s,e)},d(t){t&&l(s)}}}function K(t){let s,e;const o=new w({props:{isHover:!0,$$slots:{default:[z],hover:[q]},$$scope:{ctx:t}}}),a=new w({props:{$$slots:{default:[C]},$$scope:{ctx:t}}});return{c(){n(o.$$.fragment),s=$(),n(a.$$.fragment)},l(t){r(o.$$.fragment,t),s=c(t),r(a.$$.fragment,t)},m(t,n){g(o,t,n),u(t,s,n),g(a,t,n),e=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),o.$set(e);const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),a.$set(n)},i(t){e||(v(o.$$.fragment,t),v(a.$$.fragment,t),e=!0)},o(t){h(o.$$.fragment,t),h(a.$$.fragment,t),e=!1},d(t){y(o,t),t&&l(s),y(a,t)}}}function M(t){let s,e;const $=new j({props:{logoImg:"/logo-192.png",background:"rgba(0,0,0)",$$slots:{default:[K]},$$scope:{ctx:t}}});return{c(){s=o("div"),n($.$$.fragment),this.h()},l(t){s=m(t,"DIV",{slot:!0,style:!0});var e=f(s);r($.$$.fragment,e),e.forEach(l),this.h()},h(){p(s,"slot","preview"),N(s,"position","relative")},m(t,n){u(t,s,n),g($,s,null),e=!0},p(t,s){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),$.$set(e)},i(t){e||(v($.$$.fragment,t),e=!0)},o(t){h($.$$.fragment,t),e=!1},d(t){t&&l(s),y($)}}}function O(t){let s,e,N,I,j,x,w,b,E,P,B,R,A,D,V,F,G,J,q,z,C,K,O,Q,T,U,W,X,Y,Z,_,tt,st;const et=new L({props:{title:"Nav",subtitle:"导航"}}),nt=new k({props:{code:'<script>\n import { Nav, NavItem, NavLayout } from \'svelma-pro\'\n<\/script>\n\n <Nav logoImg="/logo-192.png">\n <NavLayout navPosition="center">\n <NavItem>管理工具</NavItem>\n <NavItem>开发资源</NavItem>\n </NavLayout>\n <NavLayout navPosition="end">\n <NavItem>\n <Button type="is-link">登录</Button>\n </NavItem>\n </NavLayout>\n </Nav>\n',$$slots:{preview:[S]},$$scope:{ctx:t}}}),$t=new k({props:{code:'<script>\n import { Nav, NavItem, NavLayout } from \'svelma-pro\'\n<\/script>\n\n <Nav logoImg="/logo-192.png" background="rgba(0,0,0)">\n <NavItem isHover={true}>\n <span style="color:#fff">管理工具</span>\n <div slot="hover">\n <NavItem>开发资源</NavItem>\n <NavItem>开发资源</NavItem>\n <NavItem>开发资源</NavItem>\n </div>\n </NavItem>\n <NavItem><span style="color:#fff">开发资源</span></NavItem>\n </Nav>\n',$$slots:{preview:[M]},$$scope:{ctx:t}}}),ot=new H({props:{jsdoc:t[0],showHeader:!1}}),at=new H({props:{jsdoc:t[1],showHeader:!1}}),rt=new H({props:{jsdoc:t[2],showHeader:!1}});return{c(){n(et.$$.fragment),s=$(),n(nt.$$.fragment),e=$(),N=o("hr"),I=$(),j=o("p"),x=a("下拉列表"),w=$(),n($t.$$.fragment),b=$(),E=o("hr"),P=$(),B=o("h2"),R=a("API"),A=$(),D=o("h3"),V=a("Nav"),F=$(),n(ot.$$.fragment),G=$(),J=o("br"),q=$(),z=o("br"),C=$(),K=o("h3"),O=a("NavItem"),Q=$(),n(at.$$.fragment),T=$(),U=o("br"),W=$(),X=o("br"),Y=$(),Z=o("h3"),_=a("NavLayout"),tt=$(),n(rt.$$.fragment),this.h()},l(t){r(et.$$.fragment,t),s=c(t),r(nt.$$.fragment,t),e=c(t),N=m(t,"HR",{class:!0}),I=c(t),j=m(t,"P",{class:!0});var n=f(j);x=i(n,"下拉列表"),n.forEach(l),w=c(t),r($t.$$.fragment,t),b=c(t),E=m(t,"HR",{class:!0}),P=c(t),B=m(t,"H2",{class:!0});var $=f(B);R=i($,"API"),$.forEach(l),A=c(t),D=m(t,"H3",{class:!0});var o=f(D);V=i(o,"Nav"),o.forEach(l),F=c(t),r(ot.$$.fragment,t),G=c(t),J=m(t,"BR",{}),q=c(t),z=m(t,"BR",{}),C=c(t),K=m(t,"H3",{class:!0});var a=f(K);O=i(a,"NavItem"),a.forEach(l),Q=c(t),r(at.$$.fragment,t),T=c(t),U=m(t,"BR",{}),W=c(t),X=m(t,"BR",{}),Y=c(t),Z=m(t,"H3",{class:!0});var p=f(Z);_=i(p,"NavLayout"),p.forEach(l),tt=c(t),r(rt.$$.fragment,t),this.h()},h(){p(N,"class","is-medium"),p(j,"class","title is-4"),p(E,"class","is-medium"),p(B,"class","title is-4 is-spaced"),p(D,"class","subtitle"),p(K,"class","subtitle is-spaced"),p(Z,"class","subtitle is-spaced")},m(t,n){g(et,t,n),u(t,s,n),g(nt,t,n),u(t,e,n),u(t,N,n),u(t,I,n),u(t,j,n),d(j,x),u(t,w,n),g($t,t,n),u(t,b,n),u(t,E,n),u(t,P,n),u(t,B,n),d(B,R),u(t,A,n),u(t,D,n),d(D,V),u(t,F,n),g(ot,t,n),u(t,G,n),u(t,J,n),u(t,q,n),u(t,z,n),u(t,C,n),u(t,K,n),d(K,O),u(t,Q,n),g(at,t,n),u(t,T,n),u(t,U,n),u(t,W,n),u(t,X,n),u(t,Y,n),u(t,Z,n),d(Z,_),u(t,tt,n),g(rt,t,n),st=!0},p(t,[s]){const e={};8&s&&(e.$$scope={dirty:s,ctx:t}),nt.$set(e);const n={};8&s&&(n.$$scope={dirty:s,ctx:t}),$t.$set(n);const $={};1&s&&($.jsdoc=t[0]),ot.$set($);const o={};2&s&&(o.jsdoc=t[1]),at.$set(o);const a={};4&s&&(a.jsdoc=t[2]),rt.$set(a)},i(t){st||(v(et.$$.fragment,t),v(nt.$$.fragment,t),v($t.$$.fragment,t),v(ot.$$.fragment,t),v(at.$$.fragment,t),v(rt.$$.fragment,t),st=!0)},o(t){h(et.$$.fragment,t),h(nt.$$.fragment,t),h($t.$$.fragment,t),h(ot.$$.fragment,t),h(at.$$.fragment,t),h(rt.$$.fragment,t),st=!1},d(t){y(et,t),t&&l(s),y(nt,t),t&&l(e),t&&l(N),t&&l(I),t&&l(j),t&&l(w),y($t,t),t&&l(b),t&&l(E),t&&l(P),t&&l(B),t&&l(A),t&&l(D),t&&l(F),y(ot,t),t&&l(G),t&&l(J),t&&l(q),t&&l(z),t&&l(C),t&&l(K),t&&l(Q),y(at,t),t&&l(T),t&&l(U),t&&l(W),t&&l(X),t&&l(Y),t&&l(Z),t&&l(tt),y(rt,t)}}}async function Q(t,s){const e=await this.fetch("components/nav.json"),n=await this.fetch("components/navItem.json"),$=await this.fetch("components/navLayout.json");return{jsdoc:await e.json(),jsdocItem:await n.json(),jsdocLayout:await $.json()}}function T(t,s,e){let{jsdoc:n}=s,{jsdocItem:$}=s,{jsdocLayout:o}=s;return t.$set=(t=>{"jsdoc"in t&&e(0,n=t.jsdoc),"jsdocItem"in t&&e(1,$=t.jsdocItem),"jsdocLayout"in t&&e(2,o=t.jsdocLayout)}),[n,$,o]}export default class extends t{constructor(t){super(),s(this,t,T,O,e,{jsdoc:0,jsdocItem:1,jsdocLayout:2})}}export{Q as preload};
|
|
//# sourceMappingURL=nav.5b9f24d5.js.map
|