index.8d5d318a.js 2.6 KB

1
  1. import{d as f,r as g,c as p,o as e,h as r,j as l,f as i,u as s,bK as c,e as d,F as m,bG as y,c7 as C,cr as F,cD as S,b as $,bS as M,bO as w,y as B,J as x,bF as D,L as E,m as k,z as T,H as b,co as R,_ as L}from"./offline.ee04b43a.js";import{L as P}from"./left-pano.dbbe321d.js";/* empty css */import{R as V}from"./right-fill-pano.c9a0dc6c.js";import{_ as G}from"./index.vue_vue_type_style_index_0_lang.bbe5fad8.js";import{T as N}from"./sign.553a4fb8.js";import{M as z}from"./sign.fcb9b444.js";import{G as U}from"./sign.36e145c3.js";import"./index.vue_vue_type_script_setup_true_lang.9d8e32c7.js";import"./init.47ec3ecd.js";const j=f({__name:"show",setup(h){const _=g(null);return(t,o)=>{const u=p("ui-icon"),a=p("ui-group");return e(),r(a,{title:"\u6807\u6CE8\u5217\u8868",class:"show-taggings"},{icon:l(()=>[i(u,{ctrl:"",type:s(c).showTaggings?"eye-s":"eye-n",onClick:o[0]||(o[0]=n=>s(c).showTaggings=!s(c).showTaggings)},null,8,["type"])]),default:l(()=>[(e(!0),d(m,null,y(s(C),n=>(e(),r(N,{key:n.id,tagging:n,selected:_.value===n,edit:!1,onSelect:v=>_.value=v?n:null,class:"show-tagging"},null,8,["tagging","selected","onSelect"]))),128))]),_:1})}}});const H=f({__name:"show",setup(h){return(_,t)=>{const o=p("ui-icon"),u=p("ui-group");return e(),r(u,{title:"\u6D4B\u91CF\u5217\u8868",class:"show-measures"},{icon:l(()=>[i(o,{ctrl:"",type:s(c).showMeasures?"eye-s":"eye-n",onClick:t[0]||(t[0]=a=>s(c).showMeasures=!s(c).showMeasures)},null,8,["type"])]),default:l(()=>[(e(!0),d(m,null,y(s(F),a=>(e(),r(z,{key:a.id,measure:a,edit:!1},null,8,["measure"]))),128))]),_:1})}}});const I=f({__name:"show",setup(h){return(_,t)=>{const o=p("ui-group");return e(),r(o,{title:"\u8DEF\u5F84\u5217\u8868",class:"show-guides"},{default:l(()=>[(e(!0),d(m,null,y(s(S),u=>(e(),r(U,{key:u.id,guide:u,edit:!1},null,8,["guide"]))),128))]),_:1})}}});const J={class:"tabs"},K=["onClick"],O=f({__name:"index",setup(h){const _=[{key:0,text:"\u6807\u6CE8"},{key:1,text:"\u6D4B\u91CF"},{key:2,text:"\u8DEF\u5F84"}],t=g(_[0].key),o=g(!0);return $(u=>{const a=w.value===T;a||u(b.push(g(!1))),o.value=a}),M(()=>R.push(o)),(u,a)=>(e(),d(m,null,[i(s(P),null,{default:l(()=>[i(G,{current:s(w),"onUpdate:current":s(B)},null,8,["current","onUpdate:current"])]),_:1}),i(s(V),null,{header:l(()=>[x("div",J,[(e(),d(m,null,y(_,n=>x("span",{key:n.key,class:D({active:n.key===t.value}),onClick:v=>t.value=n.key},E(n.text),11,K)),64))])]),default:l(()=>[t.value===0?(e(),r(j,{key:0})):k("",!0),t.value===2?(e(),r(I,{key:1})):k("",!0),t.value===1?(e(),r(H,{key:2})):k("",!0)]),_:1})],64))}});const ne=L(O,[["__scopeId","data-v-c2a39819"]]);export{ne as default};