import{x as F,e as I}from"./elementPlus.346c766a.js";import{G as L}from"./api.93829c9d.js";import{_ as M}from"./addTabs.vue_vue_type_script_setup_true_lang.4b088188.js";import{_ as k}from"./addContent.vue_vue_type_script_setup_true_lang.eacec89e.js";import{_ as $}from"./formContent.vue_vue_type_script_setup_true_lang.21a9b021.js";import{d as w,r as p,j,a9 as o,o as r,E as d,G as l,a as _,M as a,K as c,u,t as i,J as f,c as g,a0 as J,z as K,F as R}from"./vue.6daa721c.js";import"./index.ae7ce77b.js";import"./echarts.72dc8373.js";import"./associationTable.vue_vue_type_script_setup_true_lang.6bb0f389.js";import"./dictionary.4409c00a.js";import"./dictionary.270d3d72.js";const q={class:"yxt-flex-between"},A={key:0,slot:"label"},H=w({name:"config"}),oe=w({...H,setup(O){let n=p(!1),s=p(!1),m=p("base"),b=p([]);const x=()=>{L({limit:999,parent__isnull:!0}).then(y=>{let t=y.data;t.push({title:"无",icon:"el-icon-plus",key:"null"}),b.value=t})};return j(()=>{x()}),(y,t)=>{const z=o("el-tag"),v=o("el-button"),C=o("el-button-group"),T=o("el-header"),V=o("el-drawer"),B=o("el-col"),N=o("el-row"),G=o("el-tab-pane"),U=o("el-tabs"),D=o("el-card");return r(),d(D,null,{default:l(()=>[_("div",null,[a(T,null,{default:l(()=>[_("div",q,[_("div",null,[a(z,null,{default:l(()=>[c("系统配置:您可以对您的网站进行自定义配置")]),_:1})]),_("div",null,[a(C,null,{default:l(()=>[a(v,{type:"primary",size:"small",icon:u(F),onClick:t[0]||(t[0]=e=>i(n)?n.value=!0:n=!0)},{default:l(()=>[c(" 添加分组 ")]),_:1},8,["icon"]),a(v,{size:"small",type:"warning",icon:u(I),onClick:t[1]||(t[1]=e=>i(s)?s.value=!0:s=!0)},{default:l(()=>[c(" 添加内容 ")]),_:1},8,["icon"])]),_:1})])])]),_:1})]),_("div",null,[u(n)?(r(),d(V,{key:0,title:"添加分组",modelValue:u(n),"onUpdate:modelValue":t[2]||(t[2]=e=>i(n)?n.value=e:n=e),direction:"rtl",size:"30%"},{default:l(()=>[a(M)]),_:1},8,["modelValue"])):f("",!0)]),_("div",null,[u(s)?(r(),d(V,{key:0,title:"添加内容",modelValue:u(s),"onUpdate:modelValue":t[3]||(t[3]=e=>i(s)?s.value=e:s=e),direction:"rtl",size:"30%"},{default:l(()=>[a(k)]),_:1},8,["modelValue"])):f("",!0)]),a(U,{type:"border-card",modelValue:u(m),"onUpdate:modelValue":t[4]||(t[4]=e=>i(m)?m.value=e:m=e)},{default:l(()=>[(r(!0),g(R,null,J(u(b),(e,E)=>(r(),d(G,{key:E,label:e.title,name:e.key},{default:l(()=>[e.icon?(r(),g("span",A,[_("i",{class:K(e.icon),style:{"font-weight":"1000","font-size":"16px"}},null,2)])):f("",!0),e.icon?(r(),d(N,{key:1},{default:l(()=>[a(B,{offset:4,span:8},{default:l(()=>[a(k)]),_:1})]),_:1})):(r(),d($,{key:2,options:e,editableTabsItem:e},null,8,["options","editableTabsItem"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})}}});export{oe as default};
