2024-10-12 19:40:17 +08:00
|
|
|
import{_ as B}from"./index.47f5f1d6.js";import{P as A}from"./index.5670c3d4.js";import{c as M,w as R}from"./element-plus.ab0703f2.js";import{d as V,s as $,ah as y,o as s,c as u,a9 as g,R as N,X as L,u as p,W as t,Q as n,a,F as v,V as b,U,bk as O,bj as j}from"./@vue.340249d8.js";import{u as Q}from"./useMenuOa.a39e89f3.js";import{_ as W}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.fdb720bb.js";import{_ as D}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.6bc3118c.js";import{d as X}from"./index.5ab034a5.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./wx_oa.91add5dc.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";const q=i=>(O("data-v-e635fdee"),i=i(),j(),i),z=q(()=>a("div",{class:"text-base oa-attr-title"},"\u83DC\u5355\u914D\u7F6E",-1)),G={class:"flex items-center w-full p-4 mt-4 rounded bg-fill-light"},H={class:"flex-1"},J={class:"mr-auto"},K=V({__name:"oa-attr",setup(i){const m=$(),{menuList:x,menuIndex:r,handleAddSubMenu:k,handleEditSubMenu:w,handleDelMenu:C,handleDelSubMenu:E}=Q(m);return(Y,_)=>{const F=y("EditPen"),c=M,d=R,T=y("Delete"),P=A,S=B;return s(!0),u(v,null,g(p(x),(e,f)=>N((s(),u("div",{key:f,class:"flex-1 oa-attr min-w-0"},[z,t(S,{onClose:_[0]||(_[0]=o=>p(C)(p(r)))},{default:n(()=>[a("div",G,[t(W,{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",H,[a("ul",null,[(s(!0),u(v,null,g(e.sub_button,(o,l)=>(s(),u("li",{class:"flex",key:l,style:{padding:"8px"}},[a("span",J,b(o.name),1),t(D,{modular:"edit",subItem:o,onEdit:h=>p(w)(h,l)},{default:n(()=>[t(d,{link:""},{default:n(()=>[t(c,null,{default:n(()=>[t(F)]),_:1})]),_:1})]),_:2},1032,["subItem","onEdit"]),t(P,{onConfirm:h=>p(E)(p(r),l)},{trigger:n(()=>[t(d,{link:""},{default:n(()=>[t(c,{class:"ml-5"},{default:n(()=>[t(T)]),_: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(k)},{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)),[[L,f===p(r)]])),128)}}});const $e=X(K,[["__scopeId","data-v-e635fdee"]]);export{$e as default};
|