2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{_ as B}from"./index.4584e2bf.js";import{P as A}from"./index.000fc3bb.js";import{c as M,w as R}from"./element-plus.ff90c99c.js";import{d as V,s as $,ag as g,o as s,c as r,a9 as y,R as N,X as L,u as n,W as t,Q as p,a,F as v,V as b,U,bg as O,bf as Q}from"./@vue.f8dfc830.js";import{u as W}from"./useMenuOa.22a20456.js";import{_ as X}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.8a5eccf2.js";import{_ as D}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.27919515.js";import{d as j}from"./index.872975fb.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./wx_oa.88e3a8b0.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.79024f1a.js";const q=i=>(O("data-v-e635fdee"),i=i(),Q(),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 l=$(),{menuList:x,menuIndex:u,handleAddSubMenu:w,handleEditSubMenu:C,handleDelMenu:E,handleDelSubMenu:F}=W(l);return(Y,_)=>{const T=g("EditPen"),c=M,d=R,k=g("Delete"),P=A,S=B;return s(!0),r(v,null,y(n(x),(e,f)=>N((s(),r("div",{key:f,class:"flex-1 oa-attr min-w-0"},[z,t(S,{onClose:_[0]||(_[0]=o=>n(E)(n(u)))},{default:p(()=>[a("div",G,[t(X,{ref_for:!0,ref_key:"menuRef",ref:l,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:p(()=>[a("div",H,[a("ul",null,[(s(!0),r(v,null,y(e.sub_button,(o,m)=>(s(),r("li",{class:"flex",key:m,style:{padding:"8px"}},[a("span",J,b(o.name),1),t(D,{modular:"edit",subItem:o,onEdit:h=>n(C)(h,m)},{default:p(()=>[t(d,{link:""},{default:p(()=>[t(c,null,{default:p(()=>[t(T)]),_:1})]),_:1})]),_:2},1032,["subItem","onEdit"]),t(P,{onConfirm:h=>n(F)(n(u),m)},{trigger:p(()=>[t(d,{link:""},{default:p(()=>[t(c,{class:"ml-5"},{default:p(()=>[t(k)]),_:1})]),_:1})]),default:p(()=>[U(" \u662F\u5426\u5220\u9664\u5F53\u524D\u5B50\u83DC\u5355\uFF1F ")]),_:2},1032,["onConfirm"])]))),128))]),t(D,{modular:"add",onAdd:n(w)},{default:p(()=>[t(d,{type:"primary",link:"",disabled:e.sub_button.length>=5},{default:p(()=>[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===n(u)]])),128)}}});const We=j(K,[["__scopeId","data-v-e635fdee"]]);export{We as default};
|