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