2 lines
3.5 KiB
JavaScript
2 lines
3.5 KiB
JavaScript
import{_ as B}from"./index.7a6cc892.js";import{P as A}from"./index.9492d03b.js";import{c as M,w as V}from"./element-plus.258bf9e7.js";import{d as $,s as N,a5 as y,o as i,c as u,a8 as g,u as p,W as v,O,P as R,V as t,M as n,a,U as b,T as D,b7 as L,b6 as W}from"./@vue.ab566ce7.js";import{u as j}from"./useMenuOa.a2948920.js";import{_ as q}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.f2d930be.js";import{_ as U}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.d508a153.js";import{_ as z}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.42e1f7e2.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const G=s=>(L("data-v-e635fdee"),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=D(" \u662F\u5426\u5220\u9664\u5F53\u524D\u5B50\u83DC\u5355\uFF1F "),Y=$({__name:"oa-attr",setup(s){const m=N(),{menuList:x,menuIndex:r,handleAddSubMenu:T,handleEditSubMenu:w,handleDelMenu:C,handleDelSubMenu:E}=j(m);return(Z,_)=>{const P=y("EditPen"),c=M,d=V,k=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"},[H,t(S,{onClose:_[0]||(_[0]=o=>p(C)(p(r)))},{default:n(()=>[a("div",J,[t(q,{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",K,[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",Q,b(o.name),1),t(U,{modular:"edit",subItem:o,onEdit:h=>p(w)(h,l)},{default:n(()=>[t(d,{link:""},{default:n(()=>[t(c,null,{default:n(()=>[t(P)]),_:1})]),_:1})]),_:2},1032,["subItem","onEdit"]),t(F,{onConfirm:h=>p(E)(p(r),l)},{trigger:n(()=>[t(d,{link:""},{default:n(()=>[t(c,{class:"ml-5"},{default:n(()=>[t(k)]),_:1})]),_:1})]),default:n(()=>[X]),_:2},1032,["onConfirm"])]))),128))]),t(U,{modular:"add",onAdd:p(T)},{default:n(()=>[t(d,{type:"primary",link:"",disabled:e.sub_button.length>=5},{default:n(()=>[D(" \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 Oe=z(Y,[["__scopeId","data-v-e635fdee"]]);export{Oe as default};
|