2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
|
import{_ as B}from"./index.c279106f.js";import{P as A}from"./index.ed3dbb0f.js";import{c as M,w as R}from"./element-plus.9816852d.js";import{d as V,s as $,a4 as y,o as s,c as u,a7 as g,M as L,V as N,u as n,U as t,L as p,a,T as v,S as b,R as U,bf as O,be as j}from"./@vue.51d7f2d8.js";import{u as q}from"./useMenuOa.f02fe94c.js";import{_ as z}from"./oa-menu-form.vue_vue_type_script_setup_true_lang.baab90e3.js";import{_ as D}from"./oa-menu-form-edit.vue_vue_type_script_setup_true_lang.699e4603.js";import{d as G}from"./index.fdc772f5.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.576af3ba.js";import"./@amap.8a62addd.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.d59dd80d.js";import"./lodash.675f209e.js";import"./axios.54f807ba.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.0a5c0f85.js";import"./color.e5eb3bba.js";import"./clone.546d9b81.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.aee266dc.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.40d5feba.js";const H=i=>(O("data-v-e635fdee"),i=i(),j(),i),J=H(()=>a("div",{class:"text-base oa-attr-title"},"\u83DC\u5355\u914D\u7F6E",-1)),K={class:"flex items-center w-full p-4 mt-4 rounded bg-fill-light"},Q={class:"flex-1"},W={class:"mr-auto"},X=V({__name:"oa-attr",setup(i){const m=$(),{menuList:x,menuIndex:r,handleAddSubMenu:T,handleEditSubMenu:w,handleDelMenu:C,handleDelSubMenu:E}=q(m);return(Y,_)=>{const S=y("EditPen"),c=M,d=R,k=y("Delete"),F=A,P=B;return s(!0),u(v,null,g(n(x),(e,f)=>L((s(),u("div",{key:f,class:"flex-1 oa-attr min-w-0"},[J,t(P,{onClose:_[0]||(_[0]=o=>n(C)(n(r)))},{default:p(()=>[a("div",K,[t(z,{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:p(()=>[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(D,{modular:"edit",subItem:o,onEdit:h=>n(w)(h,l)},{default:p(()=>[t(d,{link:""},{default:p(()=>[t(c,null,{default:p(()=>[t(S)]),_:1})]),_:1})]),_:2},1032,["subItem","onEdit"]),t(F,{onConfirm:h=>n(E)(n(r),l)},{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(T)},{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)),[[N,f===n(r)]])),128)}}});const Oe=G(X,[["__scopeId","data-v-e635fdee"]]);export{Oe as default};
|