import{F as D,e as E}from"./elementPlus.0e5067e4.js";import{G as I}from"./api.dc5369df.js";import{_ as L}from"./addTabs.vue_vue_type_script_setup_true_lang.29050b3c.js";import{_ as k}from"./addContent.vue_vue_type_script_setup_true_lang.2e4e6e1d.js";import{_ as M}from"./formContent.vue_vue_type_script_setup_true_lang.4af6b76e.js";import{d as $,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 w,a0 as J,z as K,F as R}from"./vue.3f733908.js";import"./index.0d411246.js";import"./echarts.72dc8373.js";import"./associationTable.vue_vue_type_script_setup_true_lang.8ef5e32d.js";import"./dictionary.efdc8f1d.js";import"./dictionary.50f200b9.js";import"./index.d306967c.js";import"./_plugin-vue_export-helper.c27b6911.js";const q={class:"yxt-flex-between"},A={key:0,slot:"label"},ae=$({__name:"index",setup(H){let n=p(!1),s=p(!1),m=p("base"),b=p([]);const x=()=>{I({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 g=o("el-tag"),v=o("el-button"),z=o("el-button-group"),C=o("el-header"),V=o("el-drawer"),T=o("el-col"),B=o("el-row"),N=o("el-tab-pane"),F=o("el-tabs"),G=o("el-card");return r(),d(G,null,{default:l(()=>[_("div",null,[a(C,null,{default:l(()=>[_("div",q,[_("div",null,[a(g,null,{default:l(()=>[c("系统配置:您可以对您的网站进行自定义配置")]),_:1})]),_("div",null,[a(z,null,{default:l(()=>[a(v,{type:"primary",size:"small",icon:u(D),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(E),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(L)]),_: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(F,{type:"border-card",modelValue:u(m),"onUpdate:modelValue":t[4]||(t[4]=e=>i(m)?m.value=e:m=e)},{default:l(()=>[(r(!0),w(R,null,J(u(b),(e,U)=>(r(),d(N,{key:U,label:e.title,name:e.key},{default:l(()=>[e.icon?(r(),w("span",A,[_("i",{class:K(e.icon),style:{"font-weight":"1000","font-size":"16px"}},null,2)])):f("",!0),e.icon?(r(),d(B,{key:1},{default:l(()=>[a(T,{offset:4,span:8},{default:l(()=>[a(k)]),_:1})]),_:1})):(r(),d(M,{key:2,options:e,editableTabsItem:e},null,8,["options","editableTabsItem"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})}}});export{ae as default};
