vpuserlayout
Advanced tools
Comparing version 1.0.6 to 1.0.7
{ | ||
"name": "vpuserlayout", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "vpuserlayout.es.js", |
@@ -1,6 +0,6 @@ | ||
import { getCurrentInstance as b, onMounted as L, onUnmounted as B, ref as I, openBlock as t, createBlock as M, unref as s, createSlots as E, withCtx as v, createElementBlock as n, Fragment as u, renderList as p, createElementVNode as e, toDisplayString as _, createCommentVNode as f, normalizeClass as D, pushScopeId as N, popScopeId as O } from "vue"; | ||
import { getCurrentInstance as S, onMounted as L, onUnmounted as B, ref as I, openBlock as t, createBlock as M, unref as s, createSlots as E, withCtx as v, createElementBlock as n, Fragment as u, renderList as p, createElementVNode as e, toDisplayString as _, createCommentVNode as f, normalizeClass as D, pushScopeId as N, popScopeId as O } from "vue"; | ||
import U from "vitepress/theme"; | ||
import { useMediaQuery as w } from "@vueuse/core"; | ||
import { useData as V } from "vitepress"; | ||
import j from "@/umenuData.json"; | ||
import j from "@/assets/umenuData.json"; | ||
const z = (o, a) => { | ||
@@ -11,3 +11,3 @@ const r = o.__vccOpts || o; | ||
return r; | ||
}, x = (o) => (N("data-v-f6e88d55"), o = o(), O(), o), P = { class: "container" }, T = { | ||
}, x = (o) => (N("data-v-fcd6240b"), o = o(), O(), o), P = { class: "container" }, T = { | ||
key: 0, | ||
@@ -55,3 +55,3 @@ class: "dropdown" | ||
let a = j.arrayList; | ||
const r = b(); | ||
const r = S(); | ||
L(() => { | ||
@@ -79,3 +79,3 @@ window.addEventListener("resize", h); | ||
fn: v(() => [ | ||
(t(!0), n(u, null, p(s(a), (i, C) => (t(), n("div", P, [ | ||
(t(!0), n(u, null, p(s(a), (i, b) => (t(), n("div", P, [ | ||
s(d) === i.lang ? (t(), n("div", T, [ | ||
@@ -86,3 +86,3 @@ A, | ||
e("div", J, [ | ||
(t(!0), n(u, null, p(i.menus, (m, S) => (t(), n("div", Q, _(m), 1))), 256)) | ||
(t(!0), n(u, null, p(i.menus, (m, C) => (t(), n("div", Q, _(m), 1))), 256)) | ||
]) | ||
@@ -97,3 +97,3 @@ ]) | ||
fn: v(() => [ | ||
(t(!0), n(u, null, p(s(a), (i, C) => (t(), n("div", { class: "mobileDropdown" }, [ | ||
(t(!0), n(u, null, p(s(a), (i, b) => (t(), n("div", { class: "mobileDropdown" }, [ | ||
s(d) === i.lang ? (t(), n("div", { | ||
@@ -144,3 +144,3 @@ key: 0, | ||
e("div", { class: "items group" }, [ | ||
(t(!0), n(u, null, p(i.menus, (m, S) => (t(), n("div", { | ||
(t(!0), n(u, null, p(i.menus, (m, C) => (t(), n("div", { | ||
class: "item", | ||
@@ -157,3 +157,3 @@ onClick: y | ||
} | ||
}, $ = /* @__PURE__ */ z(W, [["__scopeId", "data-v-f6e88d55"]]), q = [$], H = function(o, a) { | ||
}, $ = /* @__PURE__ */ z(W, [["__scopeId", "data-v-fcd6240b"]]), q = [$], H = function(o, a) { | ||
q.forEach((r) => { | ||
@@ -160,0 +160,0 @@ o.component(r.name, r); |
@@ -1,1 +0,1 @@ | ||
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress"),require("@/umenuData.json")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress","@/umenuData.json"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress,t.menusJSON))})(this,function(t,e,E,i,f,k){"use strict";const V=(n,r)=>{const o=n.__vccOpts||n;for(const[s,l]of r)o[s]=l;return o},m=n=>(e.pushScopeId("data-v-f6e88d55"),n=n(),e.popScopeId(),n),N={class:"container"},_={key:0,class:"dropdown"},w=m(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),B=m(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),x={class:"dropdown-content"},y={class:"dropdown-menu"},u={class:"menuItem"},p=V({__name:"VPUserLayout",props:{defaultTheme:Object,items:Array},setup(n){let r=k.arrayList;const o=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",h)}),e.onUnmounted(()=>{window.removeEventListener("resize",h)});const{lang:s}=f.useData();var l=i.useMediaQuery("(min-width: 1280px)").value;const{Layout:S}=E;function h(){l=i.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function C(){c.value=!c.value,console.log(c.value)}function M(){alert("menu1")}return(b,q)=>(e.openBlock(),e.createBlock(e.unref(S),null,e.createSlots({_:2},[e.unref(l)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,j)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(s)===a.lang?(e.openBlock(),e.createElementBlock("div",_,[w,B,e.createElementVNode("div",x,[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,D)=>(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(d),1))),256))])])])):e.createCommentVNode("",!0)]))),256))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,j)=>(e.openBlock(),e.createElementBlock("div",{class:"mobileDropdown"},[e.unref(s)===a.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:c.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":c.value,onClick:C},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,D)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:M},e.toDisplayString(d),1))),256))])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024))}},[["__scopeId","data-v-f6e88d55"]]),g=[p],L={install:function(n,r){g.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=p,t.default=L,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vitepress/theme"),require("@vueuse/core"),require("vitepress"),require("@/assets/umenuData.json")):typeof define=="function"&&define.amd?define(["exports","vue","vitepress/theme","@vueuse/core","vitepress","@/assets/umenuData.json"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.VPUserLayout={},t.Vue,t.DefaultTheme,t.core,t.vitepress,t.menusJSON))})(this,function(t,e,E,i,f,k){"use strict";const V=(n,r)=>{const o=n.__vccOpts||n;for(const[s,l]of r)o[s]=l;return o},m=n=>(e.pushScopeId("data-v-fcd6240b"),n=n(),e.popScopeId(),n),N={class:"container"},_={key:0,class:"dropdown"},w=m(()=>e.createElementVNode("span",{class:"user-menu"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})])],-1)),B=m(()=>e.createElementVNode("span",{class:"vpi-chevron-down text-icon"},null,-1)),x={class:"dropdown-content"},y={class:"dropdown-menu"},u={class:"menuItem"},p=V({__name:"VPUserLayout",props:{defaultTheme:Object,items:Array},setup(n){let r=k.arrayList;const o=e.getCurrentInstance();e.onMounted(()=>{window.addEventListener("resize",h)}),e.onUnmounted(()=>{window.removeEventListener("resize",h)});const{lang:s}=f.useData();var l=i.useMediaQuery("(min-width: 1280px)").value;const{Layout:S}=E;function h(){l=i.useMediaQuery("(min-width: 1280px)").value,o.proxy.$forceUpdate()}const c=e.ref(!1);function C(){c.value=!c.value,console.log(c.value)}function M(){alert("menu1")}return(U,q)=>(e.openBlock(),e.createBlock(e.unref(S),null,e.createSlots({_:2},[e.unref(l)?{name:"nav-bar-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,b)=>(e.openBlock(),e.createElementBlock("div",N,[e.unref(s)===a.lang?(e.openBlock(),e.createElementBlock("div",_,[w,B,e.createElementVNode("div",x,[e.createElementVNode("div",y,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,j)=>(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(d),1))),256))])])])):e.createCommentVNode("",!0)]))),256))]),key:"0"}:{name:"nav-screen-content-after",fn:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(a,b)=>(e.openBlock(),e.createElementBlock("div",{class:"mobileDropdown"},[e.unref(s)===a.lang?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["BMNavScreenMenuGroup",{open:c.value}])},[e.createElementVNode("button",{class:"button","aria-expanded":c.value,onClick:C},[e.createElementVNode("span",null,[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[e.createElementVNode("path",{d:"M2 21a8 8 0 0 1 10.434-7.62"}),e.createElementVNode("circle",{cx:"10",cy:"8",r:"5"}),e.createElementVNode("circle",{cx:"18",cy:"18",r:"3"}),e.createElementVNode("path",{d:"m19.5 14.3-.4.9"}),e.createElementVNode("path",{d:"m16.9 20.8-.4.9"}),e.createElementVNode("path",{d:"m21.7 19.5-.9-.4"}),e.createElementVNode("path",{d:"m15.2 16.9-.9-.4"}),e.createElementVNode("path",{d:"m21.7 16.5-.9.4"}),e.createElementVNode("path",{d:"m15.2 19.1-.9.4"}),e.createElementVNode("path",{d:"m19.5 21.7-.4-.9"}),e.createElementVNode("path",{d:"m16.9 15.2-.4-.9"})]))]),e.createElementVNode("span",{class:"vpi-plus button-icon"})],8,["aria-expanded"]),e.createElementVNode("div",{class:"items group"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.menus,(d,j)=>(e.openBlock(),e.createElementBlock("div",{class:"item",onClick:M},e.toDisplayString(d),1))),256))])],2)):e.createCommentVNode("",!0)]))),256))]),key:"1"}]),1024))}},[["__scopeId","data-v-fcd6240b"]]),g=[p],L={install:function(n,r){g.forEach(o=>{n.component(o.name,o)})}};t.VPUserLayout=p,t.default=L,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14970