import{a2 as L,a3 as $}from"./index.lP_uh0LI.js";import{G as j}from"./api.BV8EW7D6.js";import{_ as E}from"./addTabs.vue_vue_type_script_setup_true_lang.CsjmqsTX.js";import{_ as w}from"./addContent.vue_vue_type_script_setup_true_lang.Bc3_eexZ.js";import M from"./formContent.W9QccXtK.js";import{d as C,a as p,o as R,b as o,h as _,f as n,w as l,s as d,g as a,l as c,$ as m,u as s,j as f,e as b,F as g,k as q,t as A}from"./vue.BxlDVA1H.js";import"./dictionary.D0i47SYU.js";import"./crudTable.vue_vue_type_script_setup_true_lang._n87tFNj.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const H={class:"yxt-flex-between"},J={key:0,slot:"label"},K=C({name:"config"}),te=C({...K,setup(O){let r=p(!1),u=p(!1),i=p("base"),k=p([]);const x=()=>{j({limit:999,parent__isnull:!0}).then(y=>{let t=y.data.results;k.value=t})};return R(()=>{x()}),(y,t)=>{const z=o("el-tag"),V=o("el-button"),T=o("el-button-group"),B=o("el-header"),v=o("el-drawer"),N=o("el-col"),U=o("el-row"),D=o("el-tab-pane"),F=o("el-tabs"),G=o("el-card");return n(),_(G,null,{default:l(()=>[d("div",null,[a(B,null,{default:l(()=>[d("div",H,[d("div",null,[a(z,null,{default:l(()=>t[5]||(t[5]=[c("系统配置:您可以对您的网站进行自定义配置")])),_:1,__:[5]})]),d("div",null,[a(T,null,{default:l(()=>[a(V,{type:"primary",size:"small",icon:s(L),onClick:t[0]||(t[0]=e=>m(r)?r.value=!0:r=!0)},{default:l(()=>t[6]||(t[6]=[c(" 添加分组 ")])),_:1,__:[6]},8,["icon"]),a(V,{size:"small",type:"warning",icon:s($),onClick:t[1]||(t[1]=e=>m(u)?u.value=!0:u=!0)},{default:l(()=>t[7]||(t[7]=[c(" 添加内容 ")])),_:1,__:[7]},8,["icon"])]),_:1})])])]),_:1})]),d("div",null,[s(r)?(n(),_(v,{key:0,title:"添加分组",modelValue:s(r),"onUpdate:modelValue":t[2]||(t[2]=e=>m(r)?r.value=e:r=e),direction:"rtl",size:"30%"},{default:l(()=>[a(E)]),_:1},8,["modelValue"])):f("",!0)]),d("div",null,[s(u)?(n(),_(v,{key:0,title:"添加内容",modelValue:s(u),"onUpdate:modelValue":t[3]||(t[3]=e=>m(u)?u.value=e:u=e),direction:"rtl",size:"30%"},{default:l(()=>[a(w)]),_:1},8,["modelValue"])):f("",!0)]),a(F,{type:"border-card",modelValue:s(i),"onUpdate:modelValue":t[4]||(t[4]=e=>m(i)?i.value=e:i=e)},{default:l(()=>[(n(!0),b(g,null,q(s(k),(e,I)=>(n(),_(D,{key:I,label:e.title,name:e.key},{default:l(()=>[e.icon?(n(),b("span",J,[d("i",{class:A(e.icon),style:{"font-weight":"1000","font-size":"16px"}},null,2)])):f("",!0),e.icon?(n(),_(U,{key:1},{default:l(()=>[a(N,{offset:4,span:8},{default:l(()=>[a(w)]),_:1})]),_:1})):(n(),b(g,{key:2},[s(i)===e.key?(n(),_(M,{key:0,options:e,editableTabsItem:e},null,8,["options","editableTabsItem"])):f("",!0)],64))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})}}});export{te as default};
