import{_ as k}from"./index.a5935337.js";import{c as A,w as M}from"./element-plus.fa1aa32c.js";import{P as V}from"./index.082aefea.js";import{d as $,s as N,a5 as h,o as i,c as u,a8 as y,O,P as R,u as p,V as t,M as n,a,W as v,U as g,T as U,b9 as L,b8 as W}from"./@vue.cab01781.js";import{u as j}from"./useMenuOa.bbb0df8f.js";import{_ as q}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.9f5acef0.js";import{_ as T}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.caf0c777.js";import{d as z}from"./index.0abf9e5c.js";import"./@vueuse.724ed0af.js";import"./@element-plus.92b4185f.js";import"./lodash-es.29c53eac.js";import"./dayjs.22a46fd8.js";import"./axios.8058589d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.5b68b7b6.js";import"./lodash.bbe6f09f.js";import"./vue-router.5046cc50.js";import"./pinia.e85e8286.js";import"./vue-demi.bfae2336.js";import"./css-color-function.5bd363c0.js";import"./color.232115c1.js";import"./clone.8f44c0eb.js";import"./color-convert.69e17089.js";import"./color-string.e356f5de.js";import"./color-name.e7a4e1d3.js";import"./nprogress.404eaa9c.js";import"./vue-clipboard3.19ab9072.js";import"./clipboard.6fb7c109.js";import"./echarts.6ad8c478.js";import"./zrender.f91f2f01.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.0ab41b7b.js";const G=s=>(L("data-v-635a2f6e"),s=s(),W(),s),H=G(()=>a("div",{class:"text-base oa-attr-title"},"\u83DC\u5355\u914D\u7F6E",-1)),J={class:"flex items-center w-full p-4 mt-4 rounded bg-fill-light"},K={class:"flex-1"},Q={class:"mr-auto"},X=U(" \u662F\u5426\u5220\u9664\u5F53\u524D\u5B50\u83DC\u5355\uFF1F "),Y=$({__name:"oa-attr",setup(s){const l=N(),{menuList:D,menuIndex:r,handleAddSubMenu:b,handleEditSubMenu:P,handleDelMenu:x,handleDelSubMenu:B}=j(l);return(Z,m)=>{const w=h("EditPen"),_=A,C=h("Delete"),E=V,F=M,S=k;return i(!0),u(v,null,y(p(D),(e,c)=>O((i(),u("div",{key:c,class:"flex-1 oa-attr"},[H,t(S,{class:"w-3/4",onClose:m[0]||(m[0]=o=>p(x)(p(r)))},{default:n(()=>[a("div",J,[t(q,{ref_for:!0,ref_key:"menuRef",ref:l,modular:"master",name:e.name,"onUpdate:name":o=>e.name=o,menuType:e.menuType,"onUpdate:menuType":o=>e.menuType=o,visitType:e.visitType,"onUpdate:visitType":o=>e.visitType=o,url:e.url,"onUpdate:url":o=>e.url=o,appId:e.appId,"onUpdate:appId":o=>e.appId=o,pagePath:e.pagePath,"onUpdate:pagePath":o=>e.pagePath=o},{default:n(()=>[a("div",K,[a("ul",null,[(i(!0),u(v,null,y(e.subButtons,(o,d)=>(i(),u("li",{class:"flex",key:d,style:{padding:"8px"}},[a("span",Q,g(o.name),1),t(T,{modular:"edit",subItem:o,onEdit:f=>p(P)(f,d)},{default:n(()=>[t(_,null,{default:n(()=>[t(w)]),_:1})]),_:2},1032,["subItem","onEdit"]),t(E,{onConfirm:f=>p(B)(p(r),d)},{trigger:n(()=>[t(_,{class:"ml-5"},{default:n(()=>[t(C)]),_:1})]),default:n(()=>[X]),_:2},1032,["onConfirm"])]))),128))]),t(T,{modular:"add",onAdd:p(b)},{default:n(()=>[t(F,{type:"primary",link:"",disabled:e.subButtons.length>=5},{default:n(()=>[U("\u6DFB\u52A0\u5B50\u83DC\u5355("+g(e.subButtons.length)+"/5)",1)]),_:2},1032,["disabled"])]),_:2},1032,["onAdd"])])]),_:2},1032,["name","onUpdate:name","menuType","onUpdate:menuType","visitType","onUpdate:visitType","url","onUpdate:url","appId","onUpdate:appId","pagePath","onUpdate:pagePath"])])]),_:2},1024)],512)),[[R,c===p(r)]])),128)}}});const Ve=z(Y,[["__scopeId","data-v-635a2f6e"]]);export{Ve as default};
