import{ap as L,a1 as M}from"./index.CL7yl-Wb.js";import{G as R}from"./api.vPRsVg5o.js";import{_ as j}from"./addTabs.vue_vue_type_script_setup_true_lang.DGzRv3Fh.js";import{_ as v}from"./addContent.vue_vue_type_script_setup_true_lang.TcYzTUIi.js";import q from"./formContent.B-PHuMPV.js";import{a as g,r as p,q as E,aj as o,J as i,o as r,K as l,b as d,S as a,P as f,u,y as _,M as c,c as w,R as F,a9 as J,G as K}from"./vue.D1BjjNmv.js";import"./associationTable.vue_vue_type_script_setup_true_lang.MQIQWKP2.js";import"./dictionary.BGob_AR7.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const P={class:"yxt-flex-between"},S={key:0,slot:"label"},$=g({name:"config"}),te=g({...$,setup(A){let n=p(!1),s=p(!1),m=p("base"),b=p([]);const C=()=>{R({limit:100,parent__isnull:!0}).then(y=>{let e=y.data;e.push({title:"无",icon:"el-icon-plus",key:"null"}),b.value=e})};return E(()=>{C()}),(y,e)=>{const x=o("el-tag"),V=o("el-button"),z=o("el-button-group"),T=o("el-header"),k=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(),i(D,null,{default:l(()=>[d("div",null,[a(T,null,{default:l(()=>[d("div",P,[d("div",null,[a(x,null,{default:l(()=>e[5]||(e[5]=[f("系统配置:您可以对您的网站进行自定义配置")])),_:1})]),d("div",null,[a(z,null,{default:l(()=>[a(V,{type:"primary",size:"small",icon:u(L),onClick:e[0]||(e[0]=t=>_(n)?n.value=!0:n=!0)},{default:l(()=>e[6]||(e[6]=[f(" 添加分组 ")])),_:1},8,["icon"]),a(V,{size:"small",type:"warning",icon:u(M),onClick:e[1]||(e[1]=t=>_(s)?s.value=!0:s=!0)},{default:l(()=>e[7]||(e[7]=[f(" 添加内容 ")])),_:1},8,["icon"])]),_:1})])])]),_:1})]),d("div",null,[u(n)?(r(),i(k,{key:0,title:"添加分组",modelValue:u(n),"onUpdate:modelValue":e[2]||(e[2]=t=>_(n)?n.value=t:n=t),direction:"rtl",size:"30%"},{default:l(()=>[a(j)]),_:1},8,["modelValue"])):c("",!0)]),d("div",null,[u(s)?(r(),i(k,{key:0,title:"添加内容",modelValue:u(s),"onUpdate:modelValue":e[3]||(e[3]=t=>_(s)?s.value=t:s=t),direction:"rtl",size:"30%"},{default:l(()=>[a(v)]),_:1},8,["modelValue"])):c("",!0)]),a(U,{type:"border-card",modelValue:u(m),"onUpdate:modelValue":e[4]||(e[4]=t=>_(m)?m.value=t:m=t)},{default:l(()=>[(r(!0),w(F,null,J(u(b),(t,I)=>(r(),i(G,{key:I,label:t.title,name:t.key},{default:l(()=>[t.icon?(r(),w("span",S,[d("i",{class:K(t.icon),style:{"font-weight":"1000","font-size":"16px"}},null,2)])):c("",!0),t.icon?(r(),i(N,{key:1},{default:l(()=>[a(B,{offset:4,span:8},{default:l(()=>[a(v)]),_:1})]),_:1})):(r(),i(q,{key:2,options:t,editableTabsItem:t},null,8,["options","editableTabsItem"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})}}});export{te as default};
