2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{a as h}from"./app-nav-bar-mp-CBXnuDRf.js";import{_ as g}from"./index.vue_vue_type_script_setup_true_lang-Cao-r3RL.js";import{m as f,aa as p,ad as o,b2 as r,ae as b,ac as _,I as x,bb as v,aT as i,ab as w,bp as k,u as C}from"../jse/index-index-CMeVxoEG.js";import"./bootstrap-CRjSNGHY.js";const S={class:"flex h-full w-full items-center"},B={key:0},M=["src"],N=["src"],V=f({name:"NavigationBar",__name:"index",props:{property:{}},setup(s){const t=s,c=p(()=>({background:t.property.bgType==="img"&&t.property.bgImg?`url(${t.property.bgImg}) no-repeat top center / 100% 100%`:t.property.bgColor})),u=p(()=>{var e;return(e=t.property._local)!=null&&e.previewMp?t.property.mpCells:t.property.otherCells}),l=p(()=>{var e;return(e=t.property._local)!=null&&e.previewMp?209/6:285/8});function m(e){return{width:`${e.width*l.value+(e.width-1)*10}px`,left:`${e.left*l.value+(e.left+1)*10}px`,position:"absolute"}}const d=p(()=>e=>({height:30,showScan:!1,placeholder:e.placeholder,borderRadius:e.borderRadius}));return(e,$)=>{var n;return r(),o("div",{class:"flex h-[50px] items-center justify-between bg-white px-[6px]",style:i(c.value)},[b("div",S,[(r(!0),o(x,null,v(u.value,(a,y)=>(r(),o("div",{key:y,style:i(m(a))},[a.type==="text"?(r(),o("span",B,k(a.text),1)):a.type==="image"?(r(),o("img",{key:1,src:a.imgUrl,alt:"",class:"h-full w-full"},null,8,M)):(r(),w(g,{key:2,property:d.value(a)},null,8,["property"]))],4))),128))]),(n=s.property._local)!=null&&n.previewMp?(r(),o("img",{key:0,src:C(h),alt:"",style:{width:"86px",height:"30px"}},null,8,N)):_("",!0)],4)}}});export{V as default};
|