suyuan/public/admin/assets/oa-attr.f041e3ef.js

2 lines
3.6 KiB
JavaScript
Raw Normal View History

2024-01-03 14:05:40 +08:00
import{_ as B}from"./index.48fcbc2c.js";import{P as A}from"./index.3156c470.js";import{c as M,w as R}from"./element-plus.5df6f736.js";import{d as $,s as L,a3 as y,o as s,c as u,a6 as g,u as p,U as v,L as N,M as V,T as t,K as n,a,S as b,R as D,b7 as O,b6 as K}from"./@vue.108c970a.js";import{u as j}from"./useMenuOa.25a36d24.js";import{_ as q}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.b3135a47.js";import{_ as U}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.7fb12129.js";import{d as z}from"./index.dab55926.js";import"./@vueuse.d3d080b7.js";import"./@element-plus.d6eabd08.js";import"./lodash-es.29c53eac.js";import"./dayjs.50c3b6f7.js";import"./axios.c2a2014a.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.9d85a320.js";import"./lodash.33f675f2.js";import"./vue-router.ed788fee.js";import"./pinia.eff1ffd5.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.5d5b8bda.js";import"./color.da05fa89.js";import"./clone.06747a68.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.1c707d7b.js";import"./ms.a9ae1d6d.js";import"./nprogress.fc605139.js";import"./vue-clipboard3.dc900a40.js";import"./clipboard.6beb87aa.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.241b9b5d.js";const G=i=>(O("data-v-e635fdee"),i=i(),K(),i),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"},Q={class:"flex-1"},W={class:"mr-auto"},X=D(" \u662F\u5426\u5220\u9664\u5F53\u524D\u5B50\u83DC\u5355\uFF1F "),Y=$({__name:"oa-attr",setup(i){const m=L(),{menuList:x,menuIndex:r,handleAddSubMenu:T,handleEditSubMenu:w,handleDelMenu:C,handleDelSubMenu:E}=j(m);return(Z,_)=>{const S=y("EditPen"),c=M,d=R,k=y("Delete"),F=A,P=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"},[H,t(P,{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",Q,[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",W,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(S)]),_: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)),[[V,f===p(r)]])),128)}}});const Ve=z(Y,[["__scopeId","data-v-e635fdee"]]);export{Ve as default};