mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 19:06:41 +07:00
commit 623fa7b7fd
Author: Fedor Katurov <gotham48@gmail.com> Date: Thu Nov 10 16:21:06 2022 +0600 made contacts page
This commit is contained in:
parent
1834f634c9
commit
63ad1573e1
228 changed files with 379 additions and 261 deletions
1
nuxt/ContentSlot.bedaa6fe.js
Normal file
1
nuxt/ContentSlot.bedaa6fe.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{a as g,l as h,y,m as p,K as c,L as w}from"./entry.14837aa7.js";const C=g({name:"ContentSlot",functional:!0,props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},setup(e){const{parent:u}=w(),{between:o,default:l}=h(),i=y(()=>typeof e.unwrap=="string"?e.unwrap.split(" "):["*"]);return{fallbackSlot:l,tags:i,between:o,parent:u}},render({use:e,unwrap:u,fallbackSlot:o,between:l,tags:i,parent:n}){var f;try{let r=e;if(typeof e=="string"&&(r=(n==null?void 0:n.slots[e])||((f=n==null?void 0:n.parent)==null?void 0:f.slots[e]),console.warn(`Please set :use="$slots.${e}" in <ContentSlot> component to enable reactivity`)),!r)return o?o():p("div");if(!u)return[r()];const{flatUnwrap:d}=c(),a=d(r(),i);return l?a.flatMap((t,s)=>s===0?[t]:[l(),t]):a.reduce((t,s)=>(typeof s.children=="string"?typeof t[t.length-1]=="string"?t[t.length-1]+=s.children:t.push(s.children):t.push(s),t),[])}catch{return p("div")}}});export{C as default};
|
Loading…
Add table
Add a link
Reference in a new issue