import{_ as B}from"./index.ae7d0ef2.js";import{P as A}from"./index.3446e7c2.js";import{c as M,w as V}from"./element-plus.61695454.js";import{d as $,s as N,af as y,o as i,c as u,a7 as g,P as O,X as R,u as p,W as t,O as n,a,V as v,U as b,T as U,bk as L,bj as j}from"./@vue.c3e77981.js";import{u as W}from"./useMenuOa.d30b8aa6.js";import{_ as X}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.4d3e3cc0.js";import{_ as D}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.6d530634.js";import{d as q}from"./index.1dd80bf2.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.bc4d0e76.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";const z=s=>(L("data-v-e635fdee"),s=s(),j(),s),G=z(()=>a("div",{class:"text-base oa-attr-title"},"\u83DC\u5355\u914D\u7F6E",-1)),H={class:"flex items-center w-full p-4 mt-4 rounded bg-fill-light"},J={class:"flex-1"},K={class:"mr-auto"},Q=$({__name:"oa-attr",setup(s){const m=N(),{menuList:x,menuIndex:r,handleAddSubMenu:T,handleEditSubMenu:k,handleDelMenu:w,handleDelSubMenu:C}=W(m);return(Y,_)=>{const E=y("EditPen"),c=M,d=V,P=y("Delete"),F=A,S=B;return i(!0),u(v,null,g(p(x),(e,f)=>O((i(),u("div",{key:f,class:"flex-1 oa-attr min-w-0"},[G,t(S,{onClose:_[0]||(_[0]=o=>p(w)(p(r)))},{default:n(()=>[a("div",H,[t(X,{ref_for:!0,ref_key:"menuRef",ref:m,modular:"master",name:e.name,"onUpdate:name":o=>e.name=o,menuType:e.has_menu,"onUpdate:menuType":o=>e.has_menu=o,visitType:e.type,"onUpdate:visitType":o=>e.type=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",J,[a("ul",null,[(i(!0),u(v,null,g(e.sub_button,(o,l)=>(i(),u("li",{class:"flex",key:l,style:{padding:"8px"}},[a("span",K,b(o.name),1),t(D,{modular:"edit",subItem:o,onEdit:h=>p(k)(h,l)},{default:n(()=>[t(d,{link:""},{default:n(()=>[t(c,null,{default:n(()=>[t(E)]),_:1})]),_:1})]),_:2},1032,["subItem","onEdit"]),t(F,{onConfirm:h=>p(C)(p(r),l)},{trigger:n(()=>[t(d,{link:""},{default:n(()=>[t(c,{class:"ml-5"},{default:n(()=>[t(P)]),_:1})]),_:1})]),default:n(()=>[U(" \u662F\u5426\u5220\u9664\u5F53\u524D\u5B50\u83DC\u5355\uFF1F ")]),_:2},1032,["onConfirm"])]))),128))]),t(D,{modular:"add",onAdd:p(T)},{default:n(()=>[t(d,{type:"primary",link:"",disabled:e.sub_button.length>=5},{default:n(()=>[U(" \u6DFB\u52A0\u5B50\u83DC\u5355("+b(e.sub_button.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,f===p(r)]])),128)}}});const $e=q(Q,[["__scopeId","data-v-e635fdee"]]);export{$e as default};