index-b92b49bd.js 2.3 KB

123456789
  1. /**
  2. * 由 Fantastic-admin 提供技术支持
  3. * Powered by Fantastic-admin
  4. * Gitee https://gitee.com/hooray/fantastic-admin
  5. * Github https://github.com/hooray/fantastic-admin
  6. */
  7. import{_ as M}from"./index-7a6bdd94.js";import{_ as V}from"./index.vue_vue_type_script_setup_true_name_SvgIcon_lang-9ad2d3e0.js";import C from"./model_data-6eda9488.js";import q from"./sql_data-85672c95.js";import B from"./table_data-cf504062.js";import{j as N,J as E,r as _,a3 as l,k as n,l as L,E as e,y as o,u as a,C as s,m as j,x as m,B as d}from"./runtime-core.esm-bundler-5fc1c360.js";import{b as f}from"./route-block-83d24a4e.js";import{_ as I}from"./_plugin-vue_export-helper-c27b6911.js";import"./iconify-3d8b277a.js";import"./index-da9247ec.js";import"./dbApi-9cb5be90.js";import"./menu-2c9c5182.js";import"./settings-be8974ad.js";import"./pinia-7162f4ce.js";import"./_MapCache-1b613190.js";import"./vue-router-8a13d09b.js";import"./index-5cddd228.js";import"./runtime-dom.esm-bundler-e65f1c43.js";import"./index-c228ae8f.js";import"./iframe-10768394.js";import"./index-ce0821b6.js";const J={class:"absolute-container"},b=N({__name:"index",setup(Q){const t=E({layoutMode:"model"}),i=_(),c=_(),p=_(),y=()=>{switch(t.layoutMode){case"model":i.value.show();break;case"table":window.console.log(p);break;default:window.console.log(c);break}};return(S,u)=>{const r=l("el-radio-button"),k=l("el-radio-group"),x=V,g=l("el-icon"),v=l("el-button"),h=M;return n(),L("div",J,[e(h,{title:"数据仓库"},{center:o(()=>[e(k,{modelValue:a(t).layoutMode,"onUpdate:modelValue":u[0]||(u[0]=w=>a(t).layoutMode=w),onChange:y},{default:o(()=>[e(r,{label:"model"},{default:o(()=>[s(" 基于模型 ")]),_:1}),e(r,{label:"table"},{default:o(()=>[s(" 基于表 ")]),_:1}),e(r,{label:"sql"},{default:o(()=>[s(" 基于SQL ")]),_:1})]),_:1},8,["modelValue"])]),right:o(()=>[j("div",null,[e(v,{title:"编辑",text:""},{icon:o(()=>[e(g,null,{default:o(()=>[e(x,{name:"ep:printer"})]),_:1})]),_:1})])]),_:1}),a(t).layoutMode==="model"?(n(),m(C,{key:0,ref_key:"model",ref:i},null,512)):d("",!0),a(t).layoutMode==="sql"?(n(),m(q,{key:1,ref_key:"sql",ref:c},null,512)):d("",!0),a(t).layoutMode==="table"?(n(),m(B,{key:2,ref_key:"table",ref:p},null,512)):d("",!0)])}}});typeof f=="function"&&f(b);const le=I(b,[["__scopeId","data-v-03eb8d3d"]]);export{le as default};