ss-component-new 1.1.112 → 1.1.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-DDbulFhm.cjs → array-BYRvPg11.cjs} +2 -2
- package/dist/{array-r-3zzaCz.js → array-DyxKeexo.js} +98 -95
- package/dist/{cloneDeep-B5NdV18l.js → cloneDeep-BfzU0pBe.js} +1 -1
- package/dist/{cloneDeep-_g-S2Mck.cjs → cloneDeep-WwDap0fL.cjs} +1 -1
- package/dist/{index-DD2e9du_.cjs → index-5dGTUAu_.cjs} +1 -1
- package/dist/{index-BK1KwYhe.js → index-B3iQoZwc.js} +469 -461
- package/dist/{index-DkTmhYif.cjs → index-B4WYIlOz.cjs} +1 -1
- package/dist/{index-4wnUfQut.js → index-BH3F6_ql.js} +5 -5
- package/dist/index-BIRKKGuW.cjs +1 -0
- package/dist/{index-C7z6Nknz.cjs → index-BTt24r3U.cjs} +1 -1
- package/dist/{index-PCZs_buK.cjs → index-BUxzwz5l.cjs} +1 -1
- package/dist/{index-ZfmF7NRS.js → index-BpJeYb4X.js} +1 -1
- package/dist/{index-Hl4jHcdx.cjs → index-CBHJLZo4.cjs} +1 -1
- package/dist/{index-CxYp0SX-.js → index-COPrDtid.js} +1 -1
- package/dist/index-CVBCwf2F.cjs +6 -0
- package/dist/{index-S4VNvRUf.cjs → index-CbphQpiC.cjs} +1 -1
- package/dist/{index-D-vLfoki.js → index-CdEEK8I0.js} +1 -1
- package/dist/{index-KwU7aUzZ.cjs → index-ChXKNVG8.cjs} +1 -1
- package/dist/{index-1aLaqVXO.cjs → index-CqJa9o1o.cjs} +1 -1
- package/dist/{index-DsvTsDUx.cjs → index-CumtOgAw.cjs} +1 -1
- package/dist/{index-DzPlnzff.js → index-CyQkKXnK.js} +2 -2
- package/dist/{index-D0oXay6F.js → index-DLartnmY.js} +1 -1
- package/dist/{index-CqEcYupP.cjs → index-DVEWSdUo.cjs} +1 -1
- package/dist/{index-BGKrZFr8.js → index-DWiZqfBA.js} +3 -3
- package/dist/{index-Dlr47z1k.js → index-DmoecEm1.js} +5 -5
- package/dist/{index-Bu25M4KE.js → index-DxyREQkR.js} +5 -5
- package/dist/{index-n2QU5Ht8.js → index-EIbm0jBZ.js} +7 -7
- package/dist/{index-umHSQ-iv.cjs → index-EQOXj03f.cjs} +1 -1
- package/dist/{index-B7QDZnsI.js → index-QWm4yJ7u.js} +2 -2
- package/dist/{index-DFsdlgzo.js → index-b_11tfuG.js} +4 -4
- package/dist/{index-DtKpPw6N.js → index-smYHb1Ta.js} +180 -180
- package/dist/{index-6XTKeDE8.cjs → index-uMboxmjq.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-Dbr2PMMl.cjs → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-lBl-SmuD.js → index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js} +2 -2
- package/dist/{main-9EPFfW86.js → main-DAPxADXM.js} +4 -4
- package/dist/{main-DjYsizhD.cjs → main-DS-YP1Wn.cjs} +1 -1
- package/dist/{request-CgWld6Ls.js → request-BK6KCyS9.js} +1 -1
- package/dist/{request-BGJRjm5F.cjs → request-BrHEv9dn.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +1 -1
- package/package.json +1 -1
- package/dist/index-CsP9AIPx.cjs +0 -1
- package/dist/index-oJOjtktc.cjs +0 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs"),e=require("vue"),c=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function l(n,i,a,p,_,M){const t=e.resolveComponent("DynamicIcon"),s=e.resolveComponent("ssMenu");return e.openBlock(),e.createBlock(s,{menuList:n.renderMenuList,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu,onChangeMenuStyle:n.changeMenuStyle,class:"menuList-wrap"},{title:e.withCtx(({menu:o})=>[e.createVNode(t,{name:o.icon??""},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(o.title??""),1)]),_:1},8,["menuList","onClickMenu","onOpenMenu","onCloseMenu","onChangeMenuStyle"])}const r=c._export_sfc(u._sfc_main,[["render",l],["__scopeId","data-v-bbb8ace9"]]);exports.default=r;
|
|
@@ -6015,12 +6015,12 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6015
6015
|
{
|
|
6016
6016
|
path: "/login",
|
|
6017
6017
|
name: "Login",
|
|
6018
|
-
component: async () => import("./index-
|
|
6018
|
+
component: async () => import("./index-CyQkKXnK.js")
|
|
6019
6019
|
},
|
|
6020
6020
|
{
|
|
6021
6021
|
path: "/",
|
|
6022
6022
|
name: "Model",
|
|
6023
|
-
component: async () => import("./index-
|
|
6023
|
+
component: async () => import("./index-DxyREQkR.js"),
|
|
6024
6024
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
6025
6025
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
6026
6026
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -6028,17 +6028,17 @@ const I9 = N4(P, "$notify"), D9 = [
|
|
|
6028
6028
|
{
|
|
6029
6029
|
path: "user",
|
|
6030
6030
|
name: "User",
|
|
6031
|
-
component: async () => import("./index-
|
|
6031
|
+
component: async () => import("./index-DmoecEm1.js")
|
|
6032
6032
|
},
|
|
6033
6033
|
{
|
|
6034
6034
|
path: "role",
|
|
6035
6035
|
name: "Role",
|
|
6036
|
-
component: async () => import("./index-
|
|
6036
|
+
component: async () => import("./index-EIbm0jBZ.js")
|
|
6037
6037
|
},
|
|
6038
6038
|
{
|
|
6039
6039
|
path: "dept",
|
|
6040
6040
|
name: "Dept",
|
|
6041
|
-
component: async () => import("./index-
|
|
6041
|
+
component: async () => import("./index-QWm4yJ7u.js")
|
|
6042
6042
|
},
|
|
6043
6043
|
{
|
|
6044
6044
|
path: "priority",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const u=require("vue"),q=require("./menu-B_Az9K_F.cjs"),Y=require("./index-CVBCwf2F.cjs"),D=require("./cloneDeep-WwDap0fL.cjs"),We=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Be=(o,d)=>{const e=o.storage||sessionStorage,l=o.key||d.$id;if(o.paths){const a=o.paths.reduce((s,A)=>(s[A]=d.$state[A],s),{});e.setItem(l,JSON.stringify(a))}else e.setItem(l,JSON.stringify(d.$state))};var Ge=({options:o,store:d})=>{var e,l,a,s;if((e=o.persist)!=null&&e.enabled){const A=[{key:d.$id,storage:sessionStorage}],T=(a=(l=o.persist)==null?void 0:l.strategies)!=null&&a.length?(s=o.persist)==null?void 0:s.strategies:A;T.forEach(E=>{const k=E.storage||sessionStorage,j=E.key||d.$id,B=k.getItem(j);B&&(d.$patch(JSON.parse(B)),Be(E,d))}),d.$subscribe(()=>{T.forEach(E=>{Be(E,d)})})}};const z=q.getActivePinia()||q.createPinia();z.use(Ge);const je=q.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(o){this.selectArray=o},setSelectString(o){this.selectString=o}}}),Se=q.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(o){this.selectIndex=o},setSelectMenu(o){this.selectMenu=o},setSelectTitle(o){this.selectTitle=o}}}),Ie=(o,d)=>{const e=d==null?void 0:d.split("-");return Fe(o,e)},Fe=(o,d)=>{var a;let e=o,l=d;return Array.isArray(e)?e=e==null?void 0:e[parseInt(D.cloneDeep(l==null?void 0:l[0]))]:Array.isArray(e==null?void 0:e.children)&&(e=(a=e==null?void 0:e.children)==null?void 0:a[parseInt(D.cloneDeep(l==null?void 0:l[0]))]),l==null||l.shift(),(l==null?void 0:l.length)>0&&(e=Fe(e,l)),e},$e=(o,d)=>{let e=o,l=d;return Array.isArray(e)&&(e=e==null?void 0:e.map((a,s)=>{if(Array.isArray(a)){let A={};return a=a==null?void 0:a.forEach((T,E)=>{var k;(k=l==null?void 0:l[E])!=null&&k.prop?A[l[E].prop]=T:Array.isArray(T)&&(A.children=$e(T,l))}),Object.assign(A,{id:s})}else return a})),e},He=(o,d,e)=>{let l=o,a=d;return l=l==null?void 0:l.map((s,A)=>{var T,E;return!Array.isArray(s)||!((T=a==null?void 0:a[A])!=null&&T.label)&&!e||(s.unshift(((E=a==null?void 0:a[A])==null?void 0:E.label)??""),s.some(k=>Array.isArray(k))&&(s=s==null?void 0:s.map(k=>{var j;return Array.isArray(k)&&(k=He(k,(j=a==null?void 0:a[A])==null?void 0:j.children,e)),k}))),s}),l},Qe=(o,d,e)=>{if(d==="")return o==null?void 0:o.filter(l=>(l==null?void 0:l.id)!==e);{const l=d.split("-");return Xe(o,l,e)}},Xe=(o,d,e)=>{let l=o,a=d;return(a==null?void 0:a.length)===0?l=l==null?void 0:l.filter(s=>s.id!==e):l=l==null?void 0:l.map(s=>(s.id.toString()===(a==null?void 0:a[0])&&(a==null||a.shift(),s=qe(s,a,e)),s)),l},qe=(o,d,e)=>{var s,A;let l=o,a=d;return(a==null?void 0:a.length)===0?l.children=(s=l.children)==null?void 0:s.filter(T=>T.id!==e):l.children=(A=l.children)==null?void 0:A.map(T=>(T.id.toString()===(a==null?void 0:a[0])&&(a==null||a.shift(),T=qe(T,a,e)),T)),l},Ye=(o,d,e)=>{if(d==="")return e;{const l=d.split("-");return Ze(o,l,e)}},Ze=(o,d,e)=>{let l=o,a=d;return(a==null?void 0:a.length)===0?l=e:l=l==null?void 0:l.map(s=>(s.id.toString()===(a==null?void 0:a[0])&&(a==null||a.shift(),s=Re(s,a,e)),s)),l},Re=(o,d,e)=>{var s;let l=o,a=d;return(a==null?void 0:a.length)===0?l.children=e:l.children=(s=l.children)==null?void 0:s.map(A=>(A.id.toString()===(a==null?void 0:a[0])&&(a==null||a.shift(),A=Re(A,a,e)),A)),l},H=u.ref(0),K=o=>(H.value++,o==null?void 0:o.map(e=>Array.isArray(e)?K(e):{label:(e==null?void 0:e.label)??"",prop:(e==null?void 0:e.label)==="操作"?"operate":(e==null?void 0:e.prop)??"a"+H.value,width:e!=null&&e.width?parseInt(e.width):"",fixed:(e==null?void 0:e.fixed)??void 0,sortable:(e==null?void 0:e.sortable)??!1,align:(e==null?void 0:e.align)??"center",showOverflowTooltip:(e==null?void 0:e.showOverflowTooltip)??!0,isNotDrag:(e==null?void 0:e.isNotDrag)??!1,isEditCol:(e==null?void 0:e.isEditCol)??!1,isOperate:(e==null?void 0:e.isOperate)??!1,id:(e==null?void 0:e.id)??H.value,type:(e==null?void 0:e.label)==="操作"?"operate":void 0,formType:(e==null?void 0:e.formType)??"",isHidden:e==null?void 0:e.isHidden,options:(e==null?void 0:e.options)??[],children:K(e.children)??void 0})),Me=o=>{const d=[];function e(l){if(Array.isArray(l))for(const a of l)!a.children||a.children.length===0?d.push(a):e(a.children)}return e(o),d},Ce=o=>D.cloneDeep(o).map(e=>(Array.isArray(e)&&(e=e.map(l=>(Array.isArray(l)?l=K(l):(l={label:(l==null?void 0:l.label)??"",prop:(l==null?void 0:l.label)==="操作"?"operate":(l==null?void 0:l.prop)??"a"+H.value,width:l!=null&&l.width?parseInt(l.width):"",fixed:(l==null?void 0:l.fixed)??void 0,sortable:(l==null?void 0:l.sortable)??!1,align:(l==null?void 0:l.align)??"center",showOverflowTooltip:(l==null?void 0:l.showOverflowTooltip)??!0,isNotDrag:(l==null?void 0:l.isNotDrag)??!1,isEditCol:(l==null?void 0:l.isEditCol)??!1,isOperate:(l==null?void 0:l.isOperate)??!1,id:(l==null?void 0:l.id)??H.value,type:(l==null?void 0:l.label)==="操作"?"operate":void 0,formType:(l==null?void 0:l.formType)??"",isHidden:l==null?void 0:l.isHidden,options:(l==null?void 0:l.options)??[],children:K(l.children)},H.value++),l))),e)),Z=(o,d)=>{var a;if(d.length===0)return o;let e=o;const l=parseInt(d[0]);if(isNaN(l)||l<0||l>=e.length)return null;if(e=e[l],d.length-1===0){if(e&&Array.isArray(e[e.length-1]))return e[e.length-1];if(Array.isArray(e))return e}return e&&Array.isArray(e[e.length-1])&&(d.shift(),Array.isArray((a=e[e.length-1])==null?void 0:a[0])?e=Z(e[e.length-1],d):e=Z([e[e.length-1]],d)),e},we={class:"table-content"},Le=["onClick"],el={key:0,class:"dialog-footer"},ll={__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},index:Number,changedContent:{type:Object,default:()=>{}}},emits:["change","contentChange","onButtonClick"],setup(o,{emit:d}){const e=o,l=d,a=u.ref([]),s=u.ref([]),A=u.ref(""),T=u.ref(),E=u.ref(!0),k=u.ref(0),j=u.ref(!1),B=u.ref(""),S=u.ref(!1),J=u.ref([]),W=u.ref(!1),G=u.ref([]),I=u.ref([]),M=u.ref(),U=u.ref(),Pe=je(z),R=u.ref(),V=Se(z),{selectIndex:w,selectMenu:x,selectTitle:Q}=q.storeToRefs(V),{selectString:F}=q.storeToRefs(Pe),Je=u.ref(720),Ue=()=>{S.value=!1},Ve=r=>{var f,y,i,h,g,v;if(ee(r),r!=null&&r.children&&Array.isArray(r==null?void 0:r.children)){const t=!Array.isArray(Q.value)&&((f=Q.value)==null?void 0:f.key)!=="main"?[]:Q.value;t.push({key:x.value===""?(y=r==null?void 0:r.id)==null?void 0:y.toString():x.value+"-"+((i=r==null?void 0:r.id)==null?void 0:i.toString()),value:r[(h=Object.keys(r))==null?void 0:h.filter(b=>b!=="index"&&b!=="id")[0]]}),V.setSelectMenu(x.value===""?(g=r==null?void 0:r.id)==null?void 0:g.toString():x.value+"-"+((v=r==null?void 0:r.id)==null?void 0:v.toString())),V.setSelectTitle(t),V.setSelectIndex(e!=null&&e.index||(e==null?void 0:e.index)===0?e==null?void 0:e.index.toString():"")}},L=r=>{var y;const f=(y=D.cloneDeep(e.itemData))==null?void 0:y.map(i=>((i==null?void 0:i.key)==="tableContents"&&(i.contents=r),i));l("contentChange",{contents:f,index:e.index})};u.watch(()=>e.changedContent,r=>{var i,h;if(!e.changedContent)return;let f=(i=s.value)==null?void 0:i.map(g=>{var v;return g.id===((v=e.changedContent)==null?void 0:v.id)&&(g={...e.changedContent,id:e.changedContent.newId},delete g.newId),g});const y=(h=e.itemData)==null?void 0:h.map(g=>((g==null?void 0:g.key)==="tableContents"&&(g.contents=f),g));s.value=f,l("contentChange",{contents:y,index:e.index}),l("change",{content:f,index:e==null?void 0:e.index,buttonName:""})},{deep:!0,immediate:!0});const ee=r=>{var f;if(r!=null&&r.children&&Array.isArray(r==null?void 0:r.children)){let y=[];const i=D.cloneDeep(M.value);(f=r==null?void 0:r.children)==null||f.forEach((h,g)=>{if(!Array.isArray(h))y.push(h);else{let v={};h==null||h.forEach((t,b)=>{var P;(P=i==null?void 0:i[b])!=null&&P.prop?v[i[b].prop]=t:Array.isArray(t)&&(v.children=t)}),y.push(Object.assign(v,{id:g}))}}),s.value=y}},le=(r,f)=>{var y;if(A.value="",W.value=!0,E.value=!0,l("onButtonClick",r,f),r==="删除"){console.log("删除1",s.value,f),s.value=(y=D.cloneDeep(s.value))==null?void 0:y.filter(h=>(h==null?void 0:h.id)!==(f==null?void 0:f.id)),console.log("删除2",s.value,f);const i=Qe(R.value,x.value,f==null?void 0:f.id);console.log("删除3",i,f),console.log("删除31",R.value,x.value,f==null?void 0:f.id),L(i),l("change",{content:i,singleContent:f,index:e==null?void 0:e.index,buttonName:r})}else r==="新增"?(B.value="新增",X(""),S.value=!0):r==="编辑"?(B.value="编辑",X(f),S.value=!0):r==="详情"&&(B.value="详情",X(f),W.value=!1,E.value=!1,S.value=!0)},X=r=>{var y;const f=[];(y=D.cloneDeep(a.value))==null||y.forEach((i,h)=>{i.label!==""&&(i==null?void 0:i.label)!=="操作"&&f.push({label:(i==null?void 0:i.label)??"",name:(i==null?void 0:i.prop)??"t"+h,type:!(i!=null&&i.formType)||(i==null?void 0:i.formType)===""?"Input":i==null?void 0:i.formType,value:(r==null?void 0:r[i==null?void 0:i.prop])??"",id:(i==null?void 0:i.id)??h,contents:(i==null?void 0:i.options)??[],width:1,isHidden:i==null?void 0:i.isHidden})}),r===""||!r||(A.value=r==null?void 0:r.id),I.value=f,console.log(111,I.value)};u.onMounted(()=>{});const ze=()=>{let r,f=D.cloneDeep(s.value);A.value===""?(k.value++,f.push(Object.assign(U.value,{id:k.value})),r=Object.assign(U.value,{id:k.value})):f=f==null?void 0:f.map(i=>((i==null?void 0:i.id)===A.value&&(i=Object.assign(i,U.value),r=i),i)),s.value=f;const y=Ye(R.value,x.value,f);L(y),S.value=!1,l("change",{content:y,singleContent:r,index:e==null?void 0:e.index,buttonName:B.value})},Ke=r=>{U.value=r};return u.watch(()=>[e.itemData,F.value,w.value,x.value],()=>{var P,ae,ie,re,ne,se,oe,ce,fe,de,ue,pe,he,te,ye,ge,Ae,De,be,ve,Te,ke,Oe,Ee,me;console.log(666,e.itemData);const r=(P=D.cloneDeep(e.itemData))==null?void 0:P.filter(c=>(c==null?void 0:c.key)==="header"),f=(ae=D.cloneDeep(e.itemData))==null?void 0:ae.filter(c=>(c==null?void 0:c.key)==="tableIndexColumn")[0],y=(ie=D.cloneDeep(e.itemData))==null?void 0:ie.find(c=>(c==null?void 0:c.key)==="page"),i=(re=D.cloneDeep(e.itemData))==null?void 0:re.find(c=>(c==null?void 0:c.key)==="rowButton"),h=(ne=D.cloneDeep(e.itemData))==null?void 0:ne.find(c=>(c==null?void 0:c.key)==="extraButton"),g=(se=D.cloneDeep(e.itemData))==null?void 0:se.filter(c=>(c==null?void 0:c.key)==="tableContents"),v=(oe=D.cloneDeep(e.itemData))==null?void 0:oe.filter(c=>(c==null?void 0:c.key)==="tableIndex");j.value=(y==null?void 0:y.contents)??!0;let t=[];F.value===""?t=r==null?void 0:r[0]:t=(r==null?void 0:r.find(c=>(c==null?void 0:c.selectLabel)==="("+F.value+")"))??(r==null?void 0:r.find(c=>!(c!=null&&c.selectLabel)));let b=[];if(F.value===""?b=v==null?void 0:v[0]:b=(v==null?void 0:v.find(c=>(c==null?void 0:c.selectLabel)==="("+F.value+")"))??(v==null?void 0:v.find(c=>!(c!=null&&c.selectLabel))),((ce=t==null?void 0:t.contents)==null?void 0:ce.length)>0){let c=[];if(b!=null&&b.contents&&((fe=b==null?void 0:b.contents)==null?void 0:fe.length)!==0&&c.push({label:(f==null?void 0:f.contents)??"",prop:"index",sortable:!1}),t!=null&&t.contents.some(p=>Array.isArray(p)&&(p==null?void 0:p.find(n=>n.children)))){if(x.value==="")c=(de=Ce(D.cloneDeep(t==null?void 0:t.contents))[0])==null?void 0:de.filter(p=>!Array.isArray(p));else{const p=x.value.split("-");c=(ue=Z(Ce(D.cloneDeep(t==null?void 0:t.contents)),p))==null?void 0:ue.filter(n=>!Array.isArray(n))}c.unshift({label:(f==null?void 0:f.contents)??"",prop:"index",sortable:!1})}else{const p=t!=null&&t.contents.some(n=>Array.isArray(n))?(pe=t==null?void 0:t.contents)==null?void 0:pe[0]:t==null?void 0:t.contents;p==null||p.forEach((n,C)=>{(n==null?void 0:n.label)!==""&&c.push({label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+C,width:n!=null&&n.width?parseInt(n.width):"",fixed:(n==null?void 0:n.fixed)??void 0,sortable:(n==null?void 0:n.sortable)??!1,align:(n==null?void 0:n.align)??"center",showOverflowTooltip:(n==null?void 0:n.showOverflowTooltip)??!0,isNotDrag:(n==null?void 0:n.isNotDrag)??!1,isEditCol:(n==null?void 0:n.isEditCol)??!1,isOperate:(n==null?void 0:n.isOperate)??!1,id:(n==null?void 0:n.id)??C,type:(n==null?void 0:n.label)==="操作"?"operate":void 0,formType:(n==null?void 0:n.formType)??"",isHidden:n==null?void 0:n.isHidden,options:(n==null?void 0:n.options)??[]})})}a.value=c;let $=(te=(he=Me(D.cloneDeep(a.value)))==null?void 0:he.filter(p=>(p==null?void 0:p.type)!=="operate"))==null?void 0:te.map((p,n)=>({prop:(p==null?void 0:p.prop)??"a"+n}));M.value=$;let O=[];if(F.value===""?O=g==null?void 0:g[0]:O=(g==null?void 0:g.find(p=>(p==null?void 0:p.selectLabel)==="("+F.value+")"))??(g==null?void 0:g.find(p=>!(p!=null&&p.selectLabel))),((ye=O==null?void 0:O.contents)==null?void 0:ye.length)!==0){let p=Array.isArray((ge=O==null?void 0:O.contents)==null?void 0:ge[0])&&((Ae=O==null?void 0:O.contents)!=null&&Ae[0].every(m=>Array.isArray(m)))?(De=D.cloneDeep(O==null?void 0:O.contents))==null?void 0:De[0]:D.cloneDeep(O==null?void 0:O.contents);b!=null&&b.contents&&((be=b==null?void 0:b.contents)==null?void 0:be.length)!==0&&(p=(ve=D.cloneDeep(p))==null?void 0:ve.map((m,xe)=>{if(!Array.isArray(m)){let N={};for(let _ in m)_!=="id"&&_!=="index"&&(N[_]=m[_]);m=Object.values(N)}return m}));const n=!!((Te=a.value)!=null&&Te.find(m=>m.prop==="index"));p=He(D.cloneDeep(p),b==null?void 0:b.contents,n);const C=[];p==null||p.forEach((m,xe)=>{let N={};Array.isArray(m)?m==null||m.forEach((_,Ne)=>{var _e;(_e=$==null?void 0:$[Ne])!=null&&_e.prop&&!Array.isArray(_)?N[$[Ne].prop]=_:Array.isArray(_)&&(N.children=$e(_,$))}):N=m,N.id?C.push(N):C.push(Object.assign(N,{id:xe}))}),s.value=C}else{let p=(ke=D.cloneDeep($))==null?void 0:ke.reduce((n,C)=>(n[C.prop]="测试数据",n),{});T.value=p,s.value=[Object.assign({},T.value,{id:k.value})]}}else a.value=[],s.value=[];if(((Oe=i==null?void 0:i.contents)==null?void 0:Oe.length)>0?J.value=i==null?void 0:i.contents:J.value=[],((Ee=h==null?void 0:h.contents)==null?void 0:Ee.length)>0?G.value=h==null?void 0:h.contents:G.value=[],k.value=((me=s==null?void 0:s.value)==null?void 0:me.length)??0,w.value!==""){const c=Ie(D.cloneDeep(s.value),x.value);R.value=s.value,ee(c)}else R.value=s.value},{deep:!0,immediate:!0}),(r,f)=>{var y;return u.openBlock(),u.createElementBlock("div",we,[(u.openBlock(),u.createBlock(Y.ssTable,{columns:a.value,key:a.value,tableData:s.value,isShowPagination:j.value,isShowEdit:!1,isShowDelete:!1,onDbClickRow:Ve,extraButton:G.value,onButtonClick:f[0]||(f[0]=i=>le(i,""))},u.createSlots({_:2},[((y=J.value)==null?void 0:y.length)>0?{name:"actions",fn:u.withCtx(({item:i})=>[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(J.value,(h,g)=>(u.openBlock(),u.createElementBlock("div",{key:g},[u.createElementVNode("div",{style:u.normalizeStyle({color:h==null?void 0:h.textColor}),class:"extra-button-label",onClick:v=>le(h==null?void 0:h.label,i)},u.toDisplayString(h==null?void 0:h.label),13,Le)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),u.createVNode(Y.ssDialog,{title:B.value,visible:S.value,width:Je.value,onBeforeDestroy:Ue},{default:u.withCtx(()=>[u.createVNode(Y.ssForm,{rowContents:I.value,isEnableWrap:!1,onChange:Ke,isEdit:E.value},null,8,["rowContents","isEdit"])]),footer:u.withCtx(()=>[W.value?(u.openBlock(),u.createElementBlock("div",el,[u.createElementVNode("div",{onClick:f[1]||(f[1]=i=>S.value=!1),class:"cancel-button"},u.toDisplayString("取消")),u.createElementVNode("div",{class:"ok-button",onClick:ze},u.toDisplayString("确认"))])):u.createCommentVNode("",!0)]),_:1},8,["title","visible","width"])])}}},al=We._export_sfc(ll,[["__scopeId","data-v-408ff7f8"]]);exports.pinia=z;exports.ssTable=al;exports.useFormToTableComp=je;exports.useUnit=Se;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue");require("./array-BYRvPg11.cjs");require("./index-BIRKKGuW.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");require("./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs");require("./index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs");const u={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},setup(n){const e=n;return(i,l)=>{const o=t.resolveComponent("router-view");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(o,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,showButton:e==null?void 0:e.showButton},null,8,["mode","content","jsonContents","showButton"])])}}},c=r._export_sfc(u,[["__scopeId","data-v-885fe329"]]);exports.default=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),k=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),k=require("./index-CVBCwf2F.cjs"),x=require("./index-BIRKKGuW.cjs"),i=require("./index-CqJa9o1o.cjs"),c=require("./menu-B_Az9K_F.cjs"),D=require("./index-5dGTUAu_.cjs"),_=require("./modelComp-DY1RniW6.cjs"),I=require("vue-router"),S=require("./cloneDeep-WwDap0fL.cjs"),E=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),q=c.useMenuState(),{activeMenuPath:m}=c.storeToRefs(q),A=o.ref([{label:"用户名称",value:"",name:"a0"}]),b=o.ref(!1),B=e=>{console.log("handleQueryChange",e)},M=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除",textColor:"red"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"用户名称"},{label:"工号"},{label:"所属部门"},{label:"角色集合",formType:"multiSelect",options:[{label:"超级管理员",value:"超级管理员"},{label:"普通管理员",value:"普通管理员"}]},{label:"操作"}]},{key:"tableContents",contents:[["superAdmin","195467","集团","超级管理员"]]}]),T=e=>{var a;console.log("handleItemDataChange",e);const t=(a=e.content)==null?void 0:a.map(s=>Object.keys(s).filter(l=>l.startsWith("a")).map(l=>s[l]));h(t,e.buttonName)},w=e=>{console.log("onDoubleClick",e)},O=(e,t)=>{console.log("onButtonClick",e,t)},f=o.ref(),u=async(e,t)=>{var s;const a=await e(t);if(((s=a==null?void 0:a.data)==null?void 0:s.code)===200)return a.data.result},P=async()=>{var t;const e=await u(i.getInsofDataApi,{key:{compKey:m.value}});return{isExist:(e==null?void 0:e.length)>0,data:(t=e==null?void 0:e[0])==null?void 0:t.value.compData}},R=async()=>{const e=await u(i.getInsofDataApi,{key:{compKey:m.value,layer:"superAdmin"}});console.log("getSuperAdminInfo",e)},h=(e,t)=>{b.value?u(i.updateInsofDataApi,{instanceId:1,unitDefinitionId:1,key:{compKey:m.value},value:{compData:e}}).then(a=>{console.log(345,a),D.ElMessage.success(t+"成功"),setTimeout(()=>{f.value=null},2e3)}):u(i.createInsofDataApi,{instanceId:1,unitDefinitionId:1,key:{compKey:m.value,layer:"superAdmin"},value:{compData:e}}).then(()=>{D.ElMessage.success(t+"成功"),setTimeout(()=>{f.value=null},2e3)})},j=Object.freeze(Object.defineProperty({__proto__:null,changedRow:f,compData:M,getSuperAdminInfo:R,handleItemDataChange:T,handleQueryChange:B,handleSubmitAsync:u,isPageDataExist:b,onButtonClick:O,onDoubleClick:w,queryFormData:A,submitTableAsyncByVerify:h,verifySubmitDataExist:P},Symbol.toStringTag,{value:"Module"})),K={class:"role-wrapper"},V=o.defineComponent({__name:"index",setup(e){const t=c.useMenuState(),{menus:a,activeMenuPath:s}=c.storeToRefs(t),l=_.useModelComp(),{itemData:C}=c.storeToRefs(l),v=I.useRoute(),n=o.reactive({...j});return o.onMounted(()=>{const p=S.cloneDeep(C.value),d={comp:"Group",name:v.path,compData:n.compData};console.log(123,[...p,d]),l.setItemData([...p,d]),console.log("state",n),n.getSuperAdminInfo(),n.verifySubmitDataExist().then(r=>{var g;n.isPageDataExist=r.isExist,r.isExist&&(console.log("isExist",r,n.compData),n.compData=(g=n.compData)==null?void 0:g.map(y=>y.key==="tableContents"?{...y,contents:r.data}:y))})}),(p,d)=>(o.openBlock(),o.createElementBlock("div",K,[o.createVNode(k.ssForm,{class:"role-header",rowContents:n.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:n.handleQueryChange},null,8,["rowContents","onChange"]),o.createVNode(x.ssTable,{class:"role-body",itemData:n.compData,onChange:n.handleItemDataChange,onOnButtonClick:n.onButtonClick},null,8,["itemData","onChange","onOnButtonClick"])]))}}),$=E._export_sfc(V,[["__scopeId","data-v-919610a6"]]);exports.default=$;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-
|
|
1
|
+
import { _ as c } from "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js";
|
|
2
2
|
import { resolveComponent as o, createBlock as a, openBlock as u, withCtx as r, createVNode as l, createElementVNode as i, toDisplayString as p } from "vue";
|
|
3
3
|
import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
function M(e, _, d, f, C, y) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),J=require("./index-S4VNvRUf.cjs"),G=require("./index-DkTmhYif.cjs"),$=require("./index-CsP9AIPx.cjs"),F=require("./modelComp-DY1RniW6.cjs"),I=require("./menu-B_Az9K_F.cjs"),T=require("./array-DDbulFhm.cjs");require("./index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs");const P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=require("./cloneDeep-_g-S2Mck.cjs"),L={class:"bread-content"},H=["onClick"],W={key:0},z={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(g,{emit:D}){const t=g,_=e.ref([]),y=D;e.onMounted(()=>{_.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{_.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const p=B=>{y("click",B)};return(B,C)=>(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(f,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:E=>p(f)},e.toDisplayString(f.value),9,H),h!==_.value.length-1&&Array.isArray(_.value)?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},K=P._export_sfc(z,[["__scopeId","data-v-ebb4c8e5"]]);function Q(g){var _,y,p,B;const D=(y=(_=g==null?void 0:g[0])==null?void 0:_.compData)==null?void 0:y.filter(C=>C.key!=="formContent"),t=(B=(p=g==null?void 0:g[0])==null?void 0:p.compData)==null?void 0:B.filter(C=>C.key==="formContent");console.log("handleFormModel:",D,t,g)}const X={class:"system-wrap"},Y={key:0,class:"show-content"},Z={key:0,class:"item-menu-content"},ee={key:0,class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(g,{emit:D}){const t=g,_=D,y=F.useModelComp($.pinia);$.useFormToTableComp($.pinia);const p=e.ref(!0),B=I.useMenuState(),C=e.ref(!0),{itemData:f}=I.storeToRefs(y),h=$.useUnit($.pinia),{activeMenuPath:E,activeMenuOpenPaths:O,menuTriggerType:U,menus:b}=I.storeToRefs(B),{selectIndex:x,selectTitle:m}=I.storeToRefs(h),w=e.ref([]),S=e.ref([]),V=n=>{var r,l,a;const o=(r=f.value)==null?void 0:r.find(u=>u.name===E.value);S.value=(a=(l=o==null?void 0:o.compData)==null?void 0:l[0])==null?void 0:a.contents,C.value=!0,C.value&&(C.value=!1),_("change",{wholeValue:w.value,editValue:n})},j=n=>{var c,s,v;const o=M.cloneDeep(w.value),r=o==null?void 0:o.map((i,d)=>(d===(n==null?void 0:n.index)&&(i.compData=n==null?void 0:n.contents),i));let l="";(s=(c=M.cloneDeep(r))==null?void 0:c.filter(i=>(i==null?void 0:i.comp)==="Form"))==null||s.forEach(i=>{var d;(d=i==null?void 0:i.compData)==null||d.forEach(k=>{var A;(k==null?void 0:k.key)==="formContent"&&((A=k==null?void 0:k.contents)==null||A.forEach(N=>{N.value!==""&&(l=l===""?N==null?void 0:N.value:l+"-"+(N==null?void 0:N.value))}))})});let a=m==null?void 0:m.value;(a==null?void 0:a.length)>0?a[0]={key:"main",value:l}:(Array.isArray(a)||(a=[]),a.push({key:"main",value:l})),h.setSelectTitle(a),p.value=!1,w.value=r;const u=(v=f.value)==null?void 0:v.map((i,d)=>{var k;return i.name===E.value&&(i.compData=(k=i.compData)==null?void 0:k.map(A=>((A==null?void 0:A.key)==="groupContents"&&(A.contents=w.value),A))),i});y.setItemData(u),C.value&&(C.value=!1),_("contentChange",{wholeContent:f.value})},q=n=>{var o,r;if((n==null?void 0:n.key)==="main"||m.value.length===1)h.setSelectIndex(""),h.setSelectMenu(""),h.setSelectTitle((o=m.value)==null?void 0:o[0]);else{const l=[];let a=-1;(r=m.value)==null||r.forEach((u,c)=>{(u==null?void 0:u.key)===(n==null?void 0:n.key)&&(a=c),(a===-1||a>=c)&&l.push(u)}),h.setSelectTitle(l),h.setSelectMenu(n==null?void 0:n.key)}};e.watch(()=>f.value,()=>{var o,r,l,a,u,c,s,v;if(!f.value||((o=f.value)==null?void 0:o.length)===0||!p.value)return;let n=null;if(!E.value&&Array.isArray(f.value))n=(l=(r=M.cloneDeep(f.value))==null?void 0:r.filter(i=>(i==null?void 0:i.comp)==="Group"))==null?void 0:l[0],B.setActiveMenuPath(n==null?void 0:n.name);else if(Array.isArray(f.value)){const i=(a=M.cloneDeep(f.value))==null?void 0:a.filter(d=>(d==null?void 0:d.comp)==="Group");n=i==null?void 0:i.find(d=>d.name===E.value)}S.value=(c=(u=n==null?void 0:n.compData)==null?void 0:u[0])==null?void 0:c.contents,w.value=(v=(s=n==null?void 0:n.compData)==null?void 0:s[0])==null?void 0:v.contents},{deep:!0,immediate:!0}),e.watch(()=>E.value,n=>{var o,r,l,a,u,c;if(n){const s=(o=M.cloneDeep(f.value))==null?void 0:o.find(v=>v.name===n);if(n&&s){S.value=(l=(r=s==null?void 0:s.compData)==null?void 0:r[0])==null?void 0:l.contents,w.value=(u=(a=s==null?void 0:s.compData)==null?void 0:a[0])==null?void 0:u.contents;const v=(c=S.value)==null?void 0:c.filter(i=>i.comp==="Form");Q(v)}else S.value=[],w.value=[];h.setSelectTitle([]),h.setSelectIndex(""),h.setSelectMenu("")}},{immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var l,a,u,c;if(((l=t==null?void 0:t.jsonContents)==null?void 0:l.length)>0){y.setOriginalData(t==null?void 0:t.jsonContents),y.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||((a=t==null?void 0:t.content)==null?void 0:a.length)===0)return;p.value=!0;let n=[],o=[];h.setSelectTitle([]),h.setSelectIndex(""),h.setSelectMenu(""),(c=(u=t==null?void 0:t.content)==null?void 0:u.filter(s=>s!==""))==null||c.forEach(s=>{T.isExpandStringToJson(s)?o.push(T.expandStringToJson(s)):T.expandNewStringToJson(s)?o.push(T.expandNewStringToJson(s)):o.push(T.expandContentStringToJson(s))}),n=o==null?void 0:o[0];const r=Array.isArray(n)&&(n==null?void 0:n.find(s=>{var v;return((v=s.comp)==null?void 0:v.toUpperCase())==="MENU"}));B.setRawMenu(r??{}),y.setOriginalData(n),y.setItemData(n)},{deep:!0,immediate:!0});const R=n=>T.getComponent(n);return(n,o)=>{const r=e.resolveComponent("el-aside"),l=e.resolveComponent("router-view"),a=e.resolveComponent("el-main"),u=e.resolveComponent("el-container");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(r,{width:"250px"},{default:e.withCtx(()=>[e.createVNode(G.default)]),_:1}),e.createVNode(a,null,{default:e.withCtx(()=>{var c,s,v,i;return[n.$route.path==="/"&&((c=S.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",Y,[Array.isArray(e.unref(m))&&((s=e.unref(m))==null?void 0:s.length)>1||Array.isArray(e.unref(m))&&!((v=e.unref(m))!=null&&v.find(d=>(d==null?void 0:d.key)==="main"))&&((i=e.unref(m))==null?void 0:i.length)===1||!Array.isArray(e.unref(m))&&e.unref(m).key!=="main"?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(K,{key:e.unref(m),breadArray:e.unref(m),onClick:q},null,8,["breadArray"]))])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.unref(x)===""||k.toString()===e.unref(x)?(e.openBlock(),e.createElementBlock("div",ee,e.toDisplayString(d.name),1)):e.createCommentVNode("",!0),e.unref(x)===""||k.toString()===e.unref(x)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:k,onChange:V,index:k,onContentChange:j},null,40,["itemData","childItemData","index"])):e.createCommentVNode("",!0)]))),128))])])):(e.openBlock(),e.createBlock(l,{key:1}))]}),_:1})]),_:1})])}}},ne=P._export_sfc(te,[["__scopeId","data-v-7661c32b"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view"},de={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change","contentChange"],setup(g,{emit:D}){const t=g,_=D,y=e.ref([]),p=e.ref([]),B=e.ref([]),C=e.ref(0),f=F.useModelComp($.pinia),h=I.useMenuState($.pinia),{itemData:E,originalData:O}=I.storeToRefs(f),{activeMenuPath:U}=I.storeToRefs(h),b=e.ref(null),x=e.ref(0),m=e.ref([]),w=e.ref(""),S=e.ref(0),V=o=>{_("contentChange",o)},j=o=>{var l;const r=(l=M.cloneDeep(o==null?void 0:o.wholeValue))==null?void 0:l.map(a=>{var u;return(a==null?void 0:a.comp)==="Form"&&(a.compData=(u=a.compData)==null?void 0:u.map(c=>((c==null?void 0:c.key)==="formContent"&&(c.contents=T.arrayToNumberArray(c==null?void 0:c.contents)),c))),a});_("change",{originalContents:O.value,currentContents:o==null?void 0:o.wholeValue,editContent:o==null?void 0:o.editValue,arrayToContents:r})};e.watch(()=>p.value,()=>{S.value===p.value.length&&p.value.length!==0&&(y.value=p.value)},{deep:!0,immediate:!0});const q=()=>{b.value.click()},R=async o=>{const r=o.target.files;if(!r)return;new FileReader,y.value=[],p.value=[],S.value=r.length;const l=Array.from(r).map(async a=>await new Promise(u=>{const c=new FileReader;c.onload=s=>{try{p.value.push(s.target.result),m.value=n(s.target.result),x.value++}catch(v){console.error("解析失败:",v);return}},c.onerror=()=>u(`读取 ${a.name} 失败`),c.readAsText(a)}));await Promise.all(l)};e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{y.value=t.content,B.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>x.value,()=>{var o;((o=m.value)==null?void 0:o.length)!==0&&(f.setOriginalData(m.value),f.setItemData(m.value))},{deep:!0,immediate:!0});const n=o=>{let r=o.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");r=r.replace(/(\w+)\s*:/g,"$1:"),r=r.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),r=r.replace(/,\s*([}\]])/g,"$1"),r=r.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(r)}catch(l){try{const u=new Function(`return ${r}`)();if(Array.isArray(u)||typeof u=="object")return u;throw new Error(`解析结果不是有效的数组或对象: ${l}`)}catch(a){throw new Error(`无法解析JSON: ${a.message}`)}}};return(o,r)=>{var l;return e.openBlock(),e.createElementBlock("div",oe,[((l=t==null?void 0:t.jsonContents)==null?void 0:l.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:b,accept:".txt, .inm",onChange:R,style:{display:"none"},multiple:""},null,544),e.createElementVNode("button",{onClick:q,class:"import-button-content"},"导入文件"),w.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(w.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(J.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:C.value},[e.createVNode(J.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(J.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:y.value,onChange:j,jsonContents:B.value,onContentChange:V,key:C.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=P._export_sfc(de,[["__scopeId","data-v-77dec451"]]);exports.default=me;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),J=require("./index-CbphQpiC.cjs"),G=require("./index-B4WYIlOz.cjs"),$=require("./index-BIRKKGuW.cjs"),F=require("./modelComp-DY1RniW6.cjs"),I=require("./menu-B_Az9K_F.cjs"),T=require("./array-BYRvPg11.cjs");require("./index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs");const P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),M=require("./cloneDeep-WwDap0fL.cjs"),L={class:"bread-content"},H=["onClick"],W={key:0},z={__name:"index",props:{breadArray:{type:Array,default:()=>[]}},emits:["click"],setup(g,{emit:D}){const t=g,_=e.ref([]),y=D;e.onMounted(()=>{_.value=t==null?void 0:t.breadArray}),e.watch(()=>t==null?void 0:t.breadArray,()=>{_.value=t==null?void 0:t.breadArray},{deep:!0,immediate:!0});const p=B=>{y("click",B)};return(B,C)=>(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(f,h)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"bread-item"},[e.createElementVNode("div",{class:"bread-title",onClick:E=>p(f)},e.toDisplayString(f.value),9,H),h!==_.value.length-1&&Array.isArray(_.value)?(e.openBlock(),e.createElementBlock("div",W,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},K=P._export_sfc(z,[["__scopeId","data-v-ebb4c8e5"]]);function Q(g){var _,y,p,B;const D=(y=(_=g==null?void 0:g[0])==null?void 0:_.compData)==null?void 0:y.filter(C=>C.key!=="formContent"),t=(B=(p=g==null?void 0:g[0])==null?void 0:p.compData)==null?void 0:B.filter(C=>C.key==="formContent");console.log("handleFormModel:",D,t,g)}const X={class:"system-wrap"},Y={key:0,class:"show-content"},Z={key:0,class:"item-menu-content"},ee={key:0,class:"item-view-group"},te={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(g,{emit:D}){const t=g,_=D,y=F.useModelComp($.pinia);$.useFormToTableComp($.pinia);const p=e.ref(!0),B=I.useMenuState(),C=e.ref(!0),{itemData:f}=I.storeToRefs(y),h=$.useUnit($.pinia),{activeMenuPath:E,activeMenuOpenPaths:O,menuTriggerType:U,menus:b}=I.storeToRefs(B),{selectIndex:x,selectTitle:m}=I.storeToRefs(h),w=e.ref([]),S=e.ref([]),V=n=>{var r,l,a;const o=(r=f.value)==null?void 0:r.find(u=>u.name===E.value);S.value=(a=(l=o==null?void 0:o.compData)==null?void 0:l[0])==null?void 0:a.contents,C.value=!0,C.value&&(C.value=!1),_("change",{wholeValue:w.value,editValue:n})},j=n=>{var c,s,v;const o=M.cloneDeep(w.value),r=o==null?void 0:o.map((i,d)=>(d===(n==null?void 0:n.index)&&(i.compData=n==null?void 0:n.contents),i));let l="";(s=(c=M.cloneDeep(r))==null?void 0:c.filter(i=>(i==null?void 0:i.comp)==="Form"))==null||s.forEach(i=>{var d;(d=i==null?void 0:i.compData)==null||d.forEach(k=>{var A;(k==null?void 0:k.key)==="formContent"&&((A=k==null?void 0:k.contents)==null||A.forEach(N=>{N.value!==""&&(l=l===""?N==null?void 0:N.value:l+"-"+(N==null?void 0:N.value))}))})});let a=m==null?void 0:m.value;(a==null?void 0:a.length)>0?a[0]={key:"main",value:l}:(Array.isArray(a)||(a=[]),a.push({key:"main",value:l})),h.setSelectTitle(a),p.value=!1,w.value=r;const u=(v=f.value)==null?void 0:v.map((i,d)=>{var k;return i.name===E.value&&(i.compData=(k=i.compData)==null?void 0:k.map(A=>((A==null?void 0:A.key)==="groupContents"&&(A.contents=w.value),A))),i});y.setItemData(u),C.value&&(C.value=!1),_("contentChange",{wholeContent:f.value})},q=n=>{var o,r;if((n==null?void 0:n.key)==="main"||m.value.length===1)h.setSelectIndex(""),h.setSelectMenu(""),h.setSelectTitle((o=m.value)==null?void 0:o[0]);else{const l=[];let a=-1;(r=m.value)==null||r.forEach((u,c)=>{(u==null?void 0:u.key)===(n==null?void 0:n.key)&&(a=c),(a===-1||a>=c)&&l.push(u)}),h.setSelectTitle(l),h.setSelectMenu(n==null?void 0:n.key)}};e.watch(()=>f.value,()=>{var o,r,l,a,u,c,s,v;if(!f.value||((o=f.value)==null?void 0:o.length)===0||!p.value)return;let n=null;if(!E.value&&Array.isArray(f.value))n=(l=(r=M.cloneDeep(f.value))==null?void 0:r.filter(i=>(i==null?void 0:i.comp)==="Group"))==null?void 0:l[0],B.setActiveMenuPath(n==null?void 0:n.name);else if(Array.isArray(f.value)){const i=(a=M.cloneDeep(f.value))==null?void 0:a.filter(d=>(d==null?void 0:d.comp)==="Group");n=i==null?void 0:i.find(d=>d.name===E.value)}S.value=(c=(u=n==null?void 0:n.compData)==null?void 0:u[0])==null?void 0:c.contents,w.value=(v=(s=n==null?void 0:n.compData)==null?void 0:s[0])==null?void 0:v.contents},{deep:!0,immediate:!0}),e.watch(()=>E.value,n=>{var o,r,l,a,u,c;if(n){const s=(o=M.cloneDeep(f.value))==null?void 0:o.find(v=>v.name===n);if(n&&s){S.value=(l=(r=s==null?void 0:s.compData)==null?void 0:r[0])==null?void 0:l.contents,w.value=(u=(a=s==null?void 0:s.compData)==null?void 0:a[0])==null?void 0:u.contents;const v=(c=S.value)==null?void 0:c.filter(i=>i.comp==="Form");Q(v)}else S.value=[],w.value=[];h.setSelectTitle([]),h.setSelectIndex(""),h.setSelectMenu("")}},{immediate:!0}),e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{var l,a,u,c;if(((l=t==null?void 0:t.jsonContents)==null?void 0:l.length)>0){y.setOriginalData(t==null?void 0:t.jsonContents),y.setItemData(t==null?void 0:t.jsonContents);return}if(!(t!=null&&t.content)||((a=t==null?void 0:t.content)==null?void 0:a.length)===0)return;p.value=!0;let n=[],o=[];h.setSelectTitle([]),h.setSelectIndex(""),h.setSelectMenu(""),(c=(u=t==null?void 0:t.content)==null?void 0:u.filter(s=>s!==""))==null||c.forEach(s=>{T.isExpandStringToJson(s)?o.push(T.expandStringToJson(s)):T.expandNewStringToJson(s)?o.push(T.expandNewStringToJson(s)):o.push(T.expandContentStringToJson(s))}),n=o==null?void 0:o[0];const r=Array.isArray(n)&&(n==null?void 0:n.find(s=>{var v;return((v=s.comp)==null?void 0:v.toUpperCase())==="MENU"}));B.setRawMenu(r??{}),y.setOriginalData(n),y.setItemData(n)},{deep:!0,immediate:!0});const R=n=>T.getComponent(n);return(n,o)=>{const r=e.resolveComponent("el-aside"),l=e.resolveComponent("router-view"),a=e.resolveComponent("el-main"),u=e.resolveComponent("el-container");return e.openBlock(),e.createElementBlock("div",X,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(r,{width:"250px"},{default:e.withCtx(()=>[e.createVNode(G.default)]),_:1}),e.createVNode(a,null,{default:e.withCtx(()=>{var c,s,v,i;return[n.$route.path==="/"&&((c=S.value)==null?void 0:c.length)>0?(e.openBlock(),e.createElementBlock("div",Y,[Array.isArray(e.unref(m))&&((s=e.unref(m))==null?void 0:s.length)>1||Array.isArray(e.unref(m))&&!((v=e.unref(m))!=null&&v.find(d=>(d==null?void 0:d.key)==="main"))&&((i=e.unref(m))==null?void 0:i.length)===1||!Array.isArray(e.unref(m))&&e.unref(m).key!=="main"?(e.openBlock(),e.createElementBlock("div",Z,[(e.openBlock(),e.createBlock(K,{key:e.unref(m),breadArray:e.unref(m),onClick:q},null,8,["breadArray"]))])):e.createCommentVNode("",!0),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(S.value,(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.unref(x)===""||k.toString()===e.unref(x)?(e.openBlock(),e.createElementBlock("div",ee,e.toDisplayString(d.name),1)):e.createCommentVNode("",!0),e.unref(x)===""||k.toString()===e.unref(x)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(R(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:k,onChange:V,index:k,onContentChange:j},null,40,["itemData","childItemData","index"])):e.createCommentVNode("",!0)]))),128))])])):(e.openBlock(),e.createBlock(l,{key:1}))]}),_:1})]),_:1})])}}},ne=P._export_sfc(te,[["__scopeId","data-v-7661c32b"]]),oe={class:"add-model-content"},ae={key:0,class:"model-import-data"},re={class:"import-button"},le={key:0},ce={key:1,class:"model-operate"},se={class:"model-select"},ue={class:"model-fill"},ie={key:2,class:"model-view"},de={__name:"index",props:{mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!0}},emits:["change","contentChange"],setup(g,{emit:D}){const t=g,_=D,y=e.ref([]),p=e.ref([]),B=e.ref([]),C=e.ref(0),f=F.useModelComp($.pinia),h=I.useMenuState($.pinia),{itemData:E,originalData:O}=I.storeToRefs(f),{activeMenuPath:U}=I.storeToRefs(h),b=e.ref(null),x=e.ref(0),m=e.ref([]),w=e.ref(""),S=e.ref(0),V=o=>{_("contentChange",o)},j=o=>{var l;const r=(l=M.cloneDeep(o==null?void 0:o.wholeValue))==null?void 0:l.map(a=>{var u;return(a==null?void 0:a.comp)==="Form"&&(a.compData=(u=a.compData)==null?void 0:u.map(c=>((c==null?void 0:c.key)==="formContent"&&(c.contents=T.arrayToNumberArray(c==null?void 0:c.contents)),c))),a});_("change",{originalContents:O.value,currentContents:o==null?void 0:o.wholeValue,editContent:o==null?void 0:o.editValue,arrayToContents:r})};e.watch(()=>p.value,()=>{S.value===p.value.length&&p.value.length!==0&&(y.value=p.value)},{deep:!0,immediate:!0});const q=()=>{b.value.click()},R=async o=>{const r=o.target.files;if(!r)return;new FileReader,y.value=[],p.value=[],S.value=r.length;const l=Array.from(r).map(async a=>await new Promise(u=>{const c=new FileReader;c.onload=s=>{try{p.value.push(s.target.result),m.value=n(s.target.result),x.value++}catch(v){console.error("解析失败:",v);return}},c.onerror=()=>u(`读取 ${a.name} 失败`),c.readAsText(a)}));await Promise.all(l)};e.watch(()=>[t==null?void 0:t.content,t==null?void 0:t.jsonContents],()=>{y.value=t.content,B.value=t==null?void 0:t.jsonContents},{deep:!0,immediate:!0}),e.watch(()=>x.value,()=>{var o;((o=m.value)==null?void 0:o.length)!==0&&(f.setOriginalData(m.value),f.setItemData(m.value))},{deep:!0,immediate:!0});const n=o=>{let r=o.replace(/,/g,",").replace(/;/g,";").replace(/:/g,":");r=r.replace(/(\w+)\s*:/g,"$1:"),r=r.replace(/\r\n/g,"").replace(/\n/g,"").replace(/\t/g,"").replace(/\s+/g," ").trim(),r=r.replace(/,\s*([}\]])/g,"$1"),r=r.replace(/:(\s*)([^"{}\[\],\s]+)(\s*)([,}])/g,": $2$4");try{return JSON.parse(r)}catch(l){try{const u=new Function(`return ${r}`)();if(Array.isArray(u)||typeof u=="object")return u;throw new Error(`解析结果不是有效的数组或对象: ${l}`)}catch(a){throw new Error(`无法解析JSON: ${a.message}`)}}};return(o,r)=>{var l;return e.openBlock(),e.createElementBlock("div",oe,[((l=t==null?void 0:t.jsonContents)==null?void 0:l.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createElementBlock("div",ae,[e.createElementVNode("div",re,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:b,accept:".txt, .inm",onChange:R,style:{display:"none"},multiple:""},null,544),e.createElementVNode("button",{onClick:q,class:"import-button-content"},"导入文件"),w.value?(e.openBlock(),e.createElementBlock("span",le,e.toDisplayString(w.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ce,[e.createElementVNode("div",se,[e.createVNode(J.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:C.value},[e.createVNode(J.modelShow)])),e.createElementVNode("div",ue,[e.createVNode(J.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",ie,[(e.openBlock(),e.createBlock(ne,{content:y.value,onChange:j,jsonContents:B.value,onContentChange:V,key:C.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},me=P._export_sfc(de,[["__scopeId","data-v-77dec451"]]);exports.default=me;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const n=require("vue"),bt=require("./index-uMboxmjq.cjs"),Se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),it=require("./cloneDeep-WwDap0fL.cjs"),Ft=require("./index-5dGTUAu_.cjs"),rn=require("./index-DzJuDGl8.cjs");function an(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je={exports:{}},ln=Je.exports,$t;function sn(){return $t||($t=1,function(o,e){(function(t,r){o.exports=r()})(ln,function(){var t=1e3,r=6e4,a=36e5,l="millisecond",i="second",s="minute",u="hour",c="day",f="week",d="month",g="quarter",v="year",h="date",E="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(D){var _=["th","st","nd","rd"],b=D%100;return"["+D+(_[(b-20)%10]||_[b]||_[0])+"]"}},C=function(D,_,b){var S=String(D);return!S||S.length>=_?D:""+Array(_+1-S.length).join(b)+D},F={s:C,z:function(D){var _=-D.utcOffset(),b=Math.abs(_),S=Math.floor(b/60),w=b%60;return(_<=0?"+":"-")+C(S,2,"0")+":"+C(w,2,"0")},m:function D(_,b){if(_.date()<b.date())return-D(b,_);var S=12*(b.year()-_.year())+(b.month()-_.month()),w=_.clone().add(S,d),N=b-w<0,V=_.clone().add(S+(N?-1:1),d);return+(-(S+(b-w)/(N?w-V:V-w))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:d,y:v,w:f,d:c,D:h,h:u,m:s,s:i,ms:l,Q:g}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},Y="en",k={};k[Y]=R;var j="$isDayjsObject",B=function(D){return D instanceof J||!(!D||!D[j])},P=function D(_,b,S){var w;if(!_)return Y;if(typeof _=="string"){var N=_.toLowerCase();k[N]&&(w=N),b&&(k[N]=b,w=N);var V=_.split("-");if(!w&&V.length>1)return D(V[0])}else{var L=_.name;k[L]=_,w=L}return!S&&w&&(Y=w),w||!S&&Y},I=function(D,_){if(B(D))return D.clone();var b=typeof _=="object"?_:{};return b.date=D,b.args=arguments,new J(b)},T=F;T.l=P,T.i=B,T.w=function(D,_){return I(D,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var J=function(){function D(b){this.$L=P(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[j]=!0}var _=D.prototype;return _.parse=function(b){this.$d=function(S){var w=S.date,N=S.utc;if(w===null)return new Date(NaN);if(T.u(w))return new Date;if(w instanceof Date)return new Date(w);if(typeof w=="string"&&!/Z$/i.test(w)){var V=w.match(p);if(V){var L=V[2]-1||0,W=(V[7]||"0").substring(0,3);return N?new Date(Date.UTC(V[1],L,V[3]||1,V[4]||0,V[5]||0,V[6]||0,W)):new Date(V[1],L,V[3]||1,V[4]||0,V[5]||0,V[6]||0,W)}}return new Date(w)}(b),this.init()},_.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==E},_.isSame=function(b,S){var w=I(b);return this.startOf(S)<=w&&w<=this.endOf(S)},_.isAfter=function(b,S){return I(b)<this.startOf(S)},_.isBefore=function(b,S){return this.endOf(S)<I(b)},_.$g=function(b,S,w){return T.u(b)?this[S]:this.set(w,b)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(b,S){var w=this,N=!!T.u(S)||S,V=T.p(b),L=function(we,ne){var ge=T.w(w.$u?Date.UTC(w.$y,ne,we):new Date(w.$y,ne,we),w);return N?ge:ge.endOf(c)},W=function(we,ne){return T.w(w.toDate()[we].apply(w.toDate("s"),(N?[0,0,0,0]:[23,59,59,999]).slice(ne)),w)},q=this.$W,K=this.$M,ie=this.$D,Ce="set"+(this.$u?"UTC":"");switch(V){case v:return N?L(1,0):L(31,11);case d:return N?L(1,K):L(0,K+1);case f:var _e=this.$locale().weekStart||0,Ve=(q<_e?q+7:q)-_e;return L(N?ie-Ve:ie+(6-Ve),K);case c:case h:return W(Ce+"Hours",0);case u:return W(Ce+"Minutes",1);case s:return W(Ce+"Seconds",2);case i:return W(Ce+"Milliseconds",3);default:return this.clone()}},_.endOf=function(b){return this.startOf(b,!1)},_.$set=function(b,S){var w,N=T.p(b),V="set"+(this.$u?"UTC":""),L=(w={},w[c]=V+"Date",w[h]=V+"Date",w[d]=V+"Month",w[v]=V+"FullYear",w[u]=V+"Hours",w[s]=V+"Minutes",w[i]=V+"Seconds",w[l]=V+"Milliseconds",w)[N],W=N===c?this.$D+(S-this.$W):S;if(N===d||N===v){var q=this.clone().set(h,1);q.$d[L](W),q.init(),this.$d=q.set(h,Math.min(this.$D,q.daysInMonth())).$d}else L&&this.$d[L](W);return this.init(),this},_.set=function(b,S){return this.clone().$set(b,S)},_.get=function(b){return this[T.p(b)]()},_.add=function(b,S){var w,N=this;b=Number(b);var V=T.p(S),L=function(K){var ie=I(N);return T.w(ie.date(ie.date()+Math.round(K*b)),N)};if(V===d)return this.set(d,this.$M+b);if(V===v)return this.set(v,this.$y+b);if(V===c)return L(1);if(V===f)return L(7);var W=(w={},w[s]=r,w[u]=a,w[i]=t,w)[V]||1,q=this.$d.getTime()+b*W;return T.w(q,this)},_.subtract=function(b,S){return this.add(-1*b,S)},_.format=function(b){var S=this,w=this.$locale();if(!this.isValid())return w.invalidDate||E;var N=b||"YYYY-MM-DDTHH:mm:ssZ",V=T.z(this),L=this.$H,W=this.$m,q=this.$M,K=w.weekdays,ie=w.months,Ce=w.meridiem,_e=function(ne,ge,Ie,Ue){return ne&&(ne[ge]||ne(S,N))||Ie[ge].slice(0,Ue)},Ve=function(ne){return T.s(L%12||12,ne,"0")},we=Ce||function(ne,ge,Ie){var Ue=ne<12?"AM":"PM";return Ie?Ue.toLowerCase():Ue};return N.replace(y,function(ne,ge){return ge||function(Ie){switch(Ie){case"YY":return String(S.$y).slice(-2);case"YYYY":return T.s(S.$y,4,"0");case"M":return q+1;case"MM":return T.s(q+1,2,"0");case"MMM":return _e(w.monthsShort,q,ie,3);case"MMMM":return _e(ie,q);case"D":return S.$D;case"DD":return T.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return _e(w.weekdaysMin,S.$W,K,2);case"ddd":return _e(w.weekdaysShort,S.$W,K,3);case"dddd":return K[S.$W];case"H":return String(L);case"HH":return T.s(L,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return we(L,W,!0);case"A":return we(L,W,!1);case"m":return String(W);case"mm":return T.s(W,2,"0");case"s":return String(S.$s);case"ss":return T.s(S.$s,2,"0");case"SSS":return T.s(S.$ms,3,"0");case"Z":return V}return null}(ne)||V.replace(":","")})},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(b,S,w){var N,V=this,L=T.p(S),W=I(b),q=(W.utcOffset()-this.utcOffset())*r,K=this-W,ie=function(){return T.m(V,W)};switch(L){case v:N=ie()/12;break;case d:N=ie();break;case g:N=ie()/3;break;case f:N=(K-q)/6048e5;break;case c:N=(K-q)/864e5;break;case u:N=K/a;break;case s:N=K/r;break;case i:N=K/t;break;default:N=K}return w?N:T.a(N)},_.daysInMonth=function(){return this.endOf(d).$D},_.$locale=function(){return k[this.$L]},_.locale=function(b,S){if(!b)return this.$L;var w=this.clone(),N=P(b,S,!0);return N&&(w.$L=N),w},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},D}(),ee=J.prototype;return I.prototype=ee,[["$ms",l],["$s",i],["$m",s],["$H",u],["$W",c],["$M",d],["$y",v],["$D",h]].forEach(function(D){ee[D[1]]=function(_){return this.$g(_,D[0],D[1])}}),I.extend=function(D,_){return D.$i||(D(_,J,I),D.$i=!0),I},I.locale=P,I.isDayjs=B,I.unix=function(D){return I(1e3*D)},I.en=k[Y],I.Ls=k,I.p={},I})}(Je)),Je.exports}var un=sn();const Lt=an(un);/**!
|
|
2
|
+
* Sortable 1.15.6
|
|
3
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
4
|
+
* @author owenm <owen23355@gmail.com>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/function Tt(o,e){var t=Object.keys(o);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),t.push.apply(t,r)}return t}function fe(o){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Tt(Object(t),!0).forEach(function(r){cn(o,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(t)):Tt(Object(t)).forEach(function(r){Object.defineProperty(o,r,Object.getOwnPropertyDescriptor(t,r))})}return o}function Ze(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ze=function(e){return typeof e}:Ze=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(o)}function cn(o,e,t){return e in o?Object.defineProperty(o,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):o[e]=t,o}function pe(){return pe=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(o[r]=t[r])}return o},pe.apply(this,arguments)}function dn(o,e){if(o==null)return{};var t={},r=Object.keys(o),a,l;for(l=0;l<r.length;l++)a=r[l],!(e.indexOf(a)>=0)&&(t[a]=o[a]);return t}function fn(o,e){if(o==null)return{};var t=dn(o,e),r,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(a=0;a<l.length;a++)r=l[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(o,r)&&(t[r]=o[r])}return t}var hn="1.15.6";function he(o){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(o)}var me=he(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),We=he(/Edge/i),Ot=he(/firefox/i),Pe=he(/safari/i)&&!he(/chrome/i)&&!he(/android/i),kt=he(/iP(ad|od|hone)/i),Yt=he(/chrome/i)&&he(/android/i),Ht={capture:!1,passive:!1};function A(o,e,t){o.addEventListener(e,t,!me&&Ht)}function M(o,e,t){o.removeEventListener(e,t,!me&&Ht)}function nt(o,e){if(e){if(e[0]===">"&&(e=e.substring(1)),o)try{if(o.matches)return o.matches(e);if(o.msMatchesSelector)return o.msMatchesSelector(e);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(e)}catch{return!1}return!1}}function Wt(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function ce(o,e,t,r){if(o){t=t||document;do{if(e!=null&&(e[0]===">"?o.parentNode===t&&nt(o,e):nt(o,e))||r&&o===t)return o;if(o===t)break}while(o=Wt(o))}return null}var Nt=/\s+/g;function ae(o,e,t){if(o&&e)if(o.classList)o.classList[t?"add":"remove"](e);else{var r=(" "+o.className+" ").replace(Nt," ").replace(" "+e+" "," ");o.className=(r+(t?" "+e:"")).replace(Nt," ")}}function $(o,e,t){var r=o&&o.style;if(r){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(t=o.currentStyle),e===void 0?t:t[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=t+(typeof t=="string"?"":"px")}}function Oe(o,e){var t="";if(typeof o=="string")t=o;else do{var r=$(o,"transform");r&&r!=="none"&&(t=r+" "+t)}while(!e&&(o=o.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(t)}function zt(o,e,t){if(o){var r=o.getElementsByTagName(e),a=0,l=r.length;if(t)for(;a<l;a++)t(r[a],a);return r}return[]}function de(){var o=document.scrollingElement;return o||document.documentElement}function G(o,e,t,r,a){if(!(!o.getBoundingClientRect&&o!==window)){var l,i,s,u,c,f,d;if(o!==window&&o.parentNode&&o!==de()?(l=o.getBoundingClientRect(),i=l.top,s=l.left,u=l.bottom,c=l.right,f=l.height,d=l.width):(i=0,s=0,u=window.innerHeight,c=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||t)&&o!==window&&(a=a||o.parentNode,!me))do if(a&&a.getBoundingClientRect&&($(a,"transform")!=="none"||t&&$(a,"position")!=="static")){var g=a.getBoundingClientRect();i-=g.top+parseInt($(a,"border-top-width")),s-=g.left+parseInt($(a,"border-left-width")),u=i+l.height,c=s+l.width;break}while(a=a.parentNode);if(r&&o!==window){var v=Oe(a||o),h=v&&v.a,E=v&&v.d;v&&(i/=E,s/=h,d/=h,f/=E,u=i+f,c=s+d)}return{top:i,left:s,bottom:u,right:c,width:d,height:f}}}function Vt(o,e,t){for(var r=ye(o,!0),a=G(o)[e];r;){var l=G(r)[t],i=void 0;if(i=a>=l,!i)return r;if(r===de())break;r=ye(r,!1)}return!1}function Ne(o,e,t,r){for(var a=0,l=0,i=o.children;l<i.length;){if(i[l].style.display!=="none"&&i[l]!==x.ghost&&(r||i[l]!==x.dragged)&&ce(i[l],t.draggable,o,!1)){if(a===e)return i[l];a++}l++}return null}function Dt(o,e){for(var t=o.lastElementChild;t&&(t===x.ghost||$(t,"display")==="none"||e&&!nt(t,e));)t=t.previousElementSibling;return t||null}function se(o,e){var t=0;if(!o||!o.parentNode)return-1;for(;o=o.previousElementSibling;)o.nodeName.toUpperCase()!=="TEMPLATE"&&o!==x.clone&&(!e||nt(o,e))&&t++;return t}function It(o){var e=0,t=0,r=de();if(o)do{var a=Oe(o),l=a.a,i=a.d;e+=o.scrollLeft*l,t+=o.scrollTop*i}while(o!==r&&(o=o.parentNode));return[e,t]}function pn(o,e){for(var t in o)if(o.hasOwnProperty(t)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===o[t][r])return Number(t)}return-1}function ye(o,e){if(!o||!o.getBoundingClientRect)return de();var t=o,r=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var a=$(t);if(t.clientWidth<t.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return de();if(r||e)return t;r=!0}}while(t=t.parentNode);return de()}function mn(o,e){if(o&&e)for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t]);return o}function ut(o,e){return Math.round(o.top)===Math.round(e.top)&&Math.round(o.left)===Math.round(e.left)&&Math.round(o.height)===Math.round(e.height)&&Math.round(o.width)===Math.round(e.width)}var Fe;function Ut(o,e){return function(){if(!Fe){var t=arguments,r=this;t.length===1?o.call(r,t[0]):o.apply(r,t),Fe=setTimeout(function(){Fe=void 0},e)}}}function gn(){clearTimeout(Fe),Fe=void 0}function jt(o,e,t){o.scrollLeft+=e,o.scrollTop+=t}function Xt(o){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(o).cloneNode(!0):t?t(o).clone(!0)[0]:o.cloneNode(!0)}function Gt(o,e,t){var r={};return Array.from(o.children).forEach(function(a){var l,i,s,u;if(!(!ce(a,e.draggable,o,!1)||a.animated||a===t)){var c=G(a);r.left=Math.min((l=r.left)!==null&&l!==void 0?l:1/0,c.left),r.top=Math.min((i=r.top)!==null&&i!==void 0?i:1/0,c.top),r.right=Math.max((s=r.right)!==null&&s!==void 0?s:-1/0,c.right),r.bottom=Math.max((u=r.bottom)!==null&&u!==void 0?u:-1/0,c.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var re="Sortable"+new Date().getTime();function vn(){var o=[],e;return{captureAnimationState:function(){if(o=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(a){if(!($(a,"display")==="none"||a===x.ghost)){o.push({target:a,rect:G(a)});var l=fe({},o[o.length-1].rect);if(a.thisAnimationDuration){var i=Oe(a,!0);i&&(l.top-=i.f,l.left-=i.e)}a.fromRect=l}})}},addAnimationState:function(r){o.push(r)},removeAnimationState:function(r){o.splice(pn(o,{target:r}),1)},animateAll:function(r){var a=this;if(!this.options.animation){clearTimeout(e),typeof r=="function"&&r();return}var l=!1,i=0;o.forEach(function(s){var u=0,c=s.target,f=c.fromRect,d=G(c),g=c.prevFromRect,v=c.prevToRect,h=s.rect,E=Oe(c,!0);E&&(d.top-=E.f,d.left-=E.e),c.toRect=d,c.thisAnimationDuration&&ut(g,d)&&!ut(f,d)&&(h.top-d.top)/(h.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(u=yn(h,g,v,a.options)),ut(d,f)||(c.prevFromRect=f,c.prevToRect=d,u||(u=a.options.animation),a.animate(c,h,d,u)),u&&(l=!0,i=Math.max(i,u),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},u),c.thisAnimationDuration=u)}),clearTimeout(e),l?e=setTimeout(function(){typeof r=="function"&&r()},i):typeof r=="function"&&r(),o=[]},animate:function(r,a,l,i){if(i){$(r,"transition",""),$(r,"transform","");var s=Oe(this.el),u=s&&s.a,c=s&&s.d,f=(a.left-l.left)/(u||1),d=(a.top-l.top)/(c||1);r.animatingX=!!f,r.animatingY=!!d,$(r,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=bn(r),$(r,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),$(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){$(r,"transition",""),$(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},i)}}}}function bn(o){return o.offsetWidth}function yn(o,e,t,r){return Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*r.animation}var xe=[],ct={initializeByDefault:!0},ze={mount:function(e){for(var t in ct)ct.hasOwnProperty(t)&&!(t in e)&&(e[t]=ct[t]);xe.forEach(function(r){if(r.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),xe.push(e)},pluginEvent:function(e,t,r){var a=this;this.eventCanceled=!1,r.cancel=function(){a.eventCanceled=!0};var l=e+"Global";xe.forEach(function(i){t[i.pluginName]&&(t[i.pluginName][l]&&t[i.pluginName][l](fe({sortable:t},r)),t.options[i.pluginName]&&t[i.pluginName][e]&&t[i.pluginName][e](fe({sortable:t},r)))})},initializePlugins:function(e,t,r,a){xe.forEach(function(s){var u=s.pluginName;if(!(!e.options[u]&&!s.initializeByDefault)){var c=new s(e,t,e.options);c.sortable=e,c.options=e.options,e[u]=c,pe(r,c.defaults)}});for(var l in e.options)if(e.options.hasOwnProperty(l)){var i=this.modifyOption(e,l,e.options[l]);typeof i<"u"&&(e.options[l]=i)}},getEventProperties:function(e,t){var r={};return xe.forEach(function(a){typeof a.eventProperties=="function"&&pe(r,a.eventProperties.call(t[a.pluginName],e))}),r},modifyOption:function(e,t,r){var a;return xe.forEach(function(l){e[l.pluginName]&&l.optionListeners&&typeof l.optionListeners[t]=="function"&&(a=l.optionListeners[t].call(e[l.pluginName],r))}),a}};function _n(o){var e=o.sortable,t=o.rootEl,r=o.name,a=o.targetEl,l=o.cloneEl,i=o.toEl,s=o.fromEl,u=o.oldIndex,c=o.newIndex,f=o.oldDraggableIndex,d=o.newDraggableIndex,g=o.originalEvent,v=o.putSortable,h=o.extraEventProperties;if(e=e||t&&t[re],!!e){var E,p=e.options,y="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!me&&!We?E=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(E=document.createEvent("Event"),E.initEvent(r,!0,!0)),E.to=i||t,E.from=s||t,E.item=a||t,E.clone=l,E.oldIndex=u,E.newIndex=c,E.oldDraggableIndex=f,E.newDraggableIndex=d,E.originalEvent=g,E.pullMode=v?v.lastPutMode:void 0;var R=fe(fe({},h),ze.getEventProperties(r,e));for(var C in R)E[C]=R[C];t&&t.dispatchEvent(E),p[y]&&p[y].call(e,E)}}var wn=["evt"],oe=function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=r.evt,l=fn(r,wn);ze.pluginEvent.bind(x)(e,t,fe({dragEl:m,parentEl:U,ghostEl:O,rootEl:H,nextEl:De,lastDownEl:Ke,cloneEl:z,cloneHidden:be,dragStarted:Me,putSortable:Z,activeSortable:x.active,originalEvent:a,oldIndex:Te,oldDraggableIndex:Le,newIndex:le,newDraggableIndex:ve,hideGhostForTarget:Kt,unhideGhostForTarget:Qt,cloneNowHidden:function(){be=!0},cloneNowShown:function(){be=!1},dispatchSortableEvent:function(s){te({sortable:t,name:s,originalEvent:a})}},l))};function te(o){_n(fe({putSortable:Z,cloneEl:z,targetEl:m,rootEl:H,oldIndex:Te,oldDraggableIndex:Le,newIndex:le,newDraggableIndex:ve},o))}var m,U,O,H,De,Ke,z,be,Te,le,Le,ve,je,Z,$e=!1,ot=!1,rt=[],Ee,ue,dt,ft,Mt,At,Me,Be,Ye,He=!1,Xe=!1,Qe,Q,ht=[],yt=!1,at=[],st=typeof document<"u",Ge=kt,Rt=We||me?"cssFloat":"float",En=st&&!Yt&&!kt&&"draggable"in document.createElement("div"),qt=function(){if(st){if(me)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),Jt=function(e,t){var r=$(e),a=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),l=Ne(e,0,t),i=Ne(e,1,t),s=l&&$(l),u=i&&$(i),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+G(l).width,f=u&&parseInt(u.marginLeft)+parseInt(u.marginRight)+G(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(l&&s.float&&s.float!=="none"){var d=s.float==="left"?"left":"right";return i&&(u.clear==="both"||u.clear===d)?"vertical":"horizontal"}return l&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=a&&r[Rt]==="none"||i&&r[Rt]==="none"&&c+f>a)?"vertical":"horizontal"},kn=function(e,t,r){var a=r?e.left:e.top,l=r?e.right:e.bottom,i=r?e.width:e.height,s=r?t.left:t.top,u=r?t.right:t.bottom,c=r?t.width:t.height;return a===s||l===u||a+i/2===s+c/2},Dn=function(e,t){var r;return rt.some(function(a){var l=a[re].options.emptyInsertThreshold;if(!(!l||Dt(a))){var i=G(a),s=e>=i.left-l&&e<=i.right+l,u=t>=i.top-l&&t<=i.bottom+l;if(s&&u)return r=a}}),r},Zt=function(e){function t(l,i){return function(s,u,c,f){var d=s.options.group.name&&u.options.group.name&&s.options.group.name===u.options.group.name;if(l==null&&(i||d))return!0;if(l==null||l===!1)return!1;if(i&&l==="clone")return l;if(typeof l=="function")return t(l(s,u,c,f),i)(s,u,c,f);var g=(i?s:u).options.group.name;return l===!0||typeof l=="string"&&l===g||l.join&&l.indexOf(g)>-1}}var r={},a=e.group;(!a||Ze(a)!="object")&&(a={name:a}),r.name=a.name,r.checkPull=t(a.pull,!0),r.checkPut=t(a.put),r.revertClone=a.revertClone,e.group=r},Kt=function(){!qt&&O&&$(O,"display","none")},Qt=function(){!qt&&O&&$(O,"display","")};st&&!Yt&&document.addEventListener("click",function(o){if(ot)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),ot=!1,!1},!0);var ke=function(e){if(m){e=e.touches?e.touches[0]:e;var t=Dn(e.clientX,e.clientY);if(t){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=e[a]);r.target=r.rootEl=t,r.preventDefault=void 0,r.stopPropagation=void 0,t[re]._onDragOver(r)}}},Sn=function(e){m&&m.parentNode[re]._isOutsideThisEl(e.target)};function x(o,e){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=e=pe({},e),o[re]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Jt(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,s){i.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:x.supportPointer!==!1&&"PointerEvent"in window&&(!Pe||kt),emptyInsertThreshold:5};ze.initializePlugins(this,o,t);for(var r in t)!(r in e)&&(e[r]=t[r]);Zt(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:En,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?A(o,"pointerdown",this._onTapStart):(A(o,"mousedown",this._onTapStart),A(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(A(o,"dragover",this),A(o,"dragenter",this)),rt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),pe(this,vn())}x.prototype={constructor:x,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Be=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,m):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,r=this.el,a=this.options,l=a.preventOnFilter,i=e.type,s=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,u=(s||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||u,f=a.filter;if(Vn(r),!m&&!(/mousedown|pointerdown/.test(i)&&e.button!==0||a.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Pe&&u&&u.tagName.toUpperCase()==="SELECT")&&(u=ce(u,a.draggable,r,!1),!(u&&u.animated)&&Ke!==u)){if(Te=se(u),Le=se(u,a.draggable),typeof f=="function"){if(f.call(this,e,u,this)){te({sortable:t,rootEl:c,name:"filter",targetEl:u,toEl:r,fromEl:r}),oe("filter",t,{evt:e}),l&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=ce(c,d.trim(),r,!1),d)return te({sortable:t,rootEl:d,name:"filter",targetEl:u,fromEl:r,toEl:r}),oe("filter",t,{evt:e}),!0}),f)){l&&e.preventDefault();return}a.handle&&!ce(c,a.handle,r,!1)||this._prepareDragStart(e,s,u)}}},_prepareDragStart:function(e,t,r){var a=this,l=a.el,i=a.options,s=l.ownerDocument,u;if(r&&!m&&r.parentNode===l){var c=G(r);if(H=l,m=r,U=m.parentNode,De=m.nextSibling,Ke=r,je=i.group,x.dragged=m,Ee={target:m,clientX:(t||e).clientX,clientY:(t||e).clientY},Mt=Ee.clientX-c.left,At=Ee.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,m.style["will-change"]="all",u=function(){if(oe("delayEnded",a,{evt:e}),x.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!Ot&&a.nativeDraggable&&(m.draggable=!0),a._triggerDragStart(e,t),te({sortable:a,name:"choose",originalEvent:e}),ae(m,i.chosenClass,!0)},i.ignore.split(",").forEach(function(f){zt(m,f.trim(),pt)}),A(s,"dragover",ke),A(s,"mousemove",ke),A(s,"touchmove",ke),i.supportPointer?(A(s,"pointerup",a._onDrop),!this.nativeDraggable&&A(s,"pointercancel",a._onDrop)):(A(s,"mouseup",a._onDrop),A(s,"touchend",a._onDrop),A(s,"touchcancel",a._onDrop)),Ot&&this.nativeDraggable&&(this.options.touchStartThreshold=4,m.draggable=!0),oe("delayStart",this,{evt:e}),i.delay&&(!i.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(We||me))){if(x.eventCanceled){this._onDrop();return}i.supportPointer?(A(s,"pointerup",a._disableDelayedDrag),A(s,"pointercancel",a._disableDelayedDrag)):(A(s,"mouseup",a._disableDelayedDrag),A(s,"touchend",a._disableDelayedDrag),A(s,"touchcancel",a._disableDelayedDrag)),A(s,"mousemove",a._delayedDragTouchMoveHandler),A(s,"touchmove",a._delayedDragTouchMoveHandler),i.supportPointer&&A(s,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(u,i.delay)}else u()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){m&&pt(m),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;M(e,"mouseup",this._disableDelayedDrag),M(e,"touchend",this._disableDelayedDrag),M(e,"touchcancel",this._disableDelayedDrag),M(e,"pointerup",this._disableDelayedDrag),M(e,"pointercancel",this._disableDelayedDrag),M(e,"mousemove",this._delayedDragTouchMoveHandler),M(e,"touchmove",this._delayedDragTouchMoveHandler),M(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?A(document,"pointermove",this._onTouchMove):t?A(document,"touchmove",this._onTouchMove):A(document,"mousemove",this._onTouchMove):(A(m,"dragend",this),A(H,"dragstart",this._onDragStart));try{document.selection?et(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if($e=!1,H&&m){oe("dragStarted",this,{evt:t}),this.nativeDraggable&&A(document,"dragover",Sn);var r=this.options;!e&&ae(m,r.dragClass,!1),ae(m,r.ghostClass,!0),x.active=this,e&&this._appendGhost(),te({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ue){this._lastX=ue.clientX,this._lastY=ue.clientY,Kt();for(var e=document.elementFromPoint(ue.clientX,ue.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ue.clientX,ue.clientY),e!==t);)t=e;if(m.parentNode[re]._isOutsideThisEl(e),t)do{if(t[re]){var r=void 0;if(r=t[re]._onDragOver({clientX:ue.clientX,clientY:ue.clientY,target:e,rootEl:t}),r&&!this.options.dragoverBubble)break}e=t}while(t=Wt(t));Qt()}},_onTouchMove:function(e){if(Ee){var t=this.options,r=t.fallbackTolerance,a=t.fallbackOffset,l=e.touches?e.touches[0]:e,i=O&&Oe(O,!0),s=O&&i&&i.a,u=O&&i&&i.d,c=Ge&&Q&&It(Q),f=(l.clientX-Ee.clientX+a.x)/(s||1)+(c?c[0]-ht[0]:0)/(s||1),d=(l.clientY-Ee.clientY+a.y)/(u||1)+(c?c[1]-ht[1]:0)/(u||1);if(!x.active&&!$e){if(r&&Math.max(Math.abs(l.clientX-this._lastX),Math.abs(l.clientY-this._lastY))<r)return;this._onDragStart(e,!0)}if(O){i?(i.e+=f-(dt||0),i.f+=d-(ft||0)):i={a:1,b:0,c:0,d:1,e:f,f:d};var g="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");$(O,"webkitTransform",g),$(O,"mozTransform",g),$(O,"msTransform",g),$(O,"transform",g),dt=f,ft=d,ue=l}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!O){var e=this.options.fallbackOnBody?document.body:H,t=G(m,!0,Ge,!0,e),r=this.options;if(Ge){for(Q=e;$(Q,"position")==="static"&&$(Q,"transform")==="none"&&Q!==document;)Q=Q.parentNode;Q!==document.body&&Q!==document.documentElement?(Q===document&&(Q=de()),t.top+=Q.scrollTop,t.left+=Q.scrollLeft):Q=de(),ht=It(Q)}O=m.cloneNode(!0),ae(O,r.ghostClass,!1),ae(O,r.fallbackClass,!0),ae(O,r.dragClass,!0),$(O,"transition",""),$(O,"transform",""),$(O,"box-sizing","border-box"),$(O,"margin",0),$(O,"top",t.top),$(O,"left",t.left),$(O,"width",t.width),$(O,"height",t.height),$(O,"opacity","0.8"),$(O,"position",Ge?"absolute":"fixed"),$(O,"zIndex","100000"),$(O,"pointerEvents","none"),x.ghost=O,e.appendChild(O),$(O,"transform-origin",Mt/parseInt(O.style.width)*100+"% "+At/parseInt(O.style.height)*100+"%")}},_onDragStart:function(e,t){var r=this,a=e.dataTransfer,l=r.options;if(oe("dragStart",this,{evt:e}),x.eventCanceled){this._onDrop();return}oe("setupClone",this),x.eventCanceled||(z=Xt(m),z.removeAttribute("id"),z.draggable=!1,z.style["will-change"]="",this._hideClone(),ae(z,this.options.chosenClass,!1),x.clone=z),r.cloneId=et(function(){oe("clone",r),!x.eventCanceled&&(r.options.removeCloneOnHide||H.insertBefore(z,m),r._hideClone(),te({sortable:r,name:"clone"}))}),!t&&ae(m,l.dragClass,!0),t?(ot=!0,r._loopId=setInterval(r._emulateDragOver,50)):(M(document,"mouseup",r._onDrop),M(document,"touchend",r._onDrop),M(document,"touchcancel",r._onDrop),a&&(a.effectAllowed="move",l.setData&&l.setData.call(r,a,m)),A(document,"drop",r),$(m,"transform","translateZ(0)")),$e=!0,r._dragStartId=et(r._dragStarted.bind(r,t,e)),A(document,"selectstart",r),Me=!0,window.getSelection().removeAllRanges(),Pe&&$(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,r=e.target,a,l,i,s=this.options,u=s.group,c=x.active,f=je===u,d=s.sort,g=Z||c,v,h=this,E=!1;if(yt)return;function p(w,N){oe(w,h,fe({evt:e,isOwner:f,axis:v?"vertical":"horizontal",revert:i,dragRect:a,targetRect:l,canSort:d,fromSortable:g,target:r,completed:R,onMove:function(L,W){return qe(H,t,m,a,L,G(L),e,W)},changed:C},N))}function y(){p("dragOverAnimationCapture"),h.captureAnimationState(),h!==g&&g.captureAnimationState()}function R(w){return p("dragOverCompleted",{insertion:w}),w&&(f?c._hideClone():c._showClone(h),h!==g&&(ae(m,Z?Z.options.ghostClass:c.options.ghostClass,!1),ae(m,s.ghostClass,!0)),Z!==h&&h!==x.active?Z=h:h===x.active&&Z&&(Z=null),g===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){p("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(r===m&&!m.animated||r===t&&!r.animated)&&(Be=null),!s.dragoverBubble&&!e.rootEl&&r!==document&&(m.parentNode[re]._isOutsideThisEl(e.target),!w&&ke(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),E=!0}function C(){le=se(m),ve=se(m,s.draggable),te({sortable:h,name:"change",toEl:t,newIndex:le,newDraggableIndex:ve,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),r=ce(r,s.draggable,t,!0),p("dragOver"),x.eventCanceled)return E;if(m.contains(e.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return R(!1);if(ot=!1,c&&!s.disabled&&(f?d||(i=U!==H):Z===this||(this.lastPutMode=je.checkPull(this,c,m,e))&&u.checkPut(this,c,m,e))){if(v=this._getDirection(e,r)==="vertical",a=G(m),p("dragOverValid"),x.eventCanceled)return E;if(i)return U=H,y(),this._hideClone(),p("revert"),x.eventCanceled||(De?H.insertBefore(m,De):H.appendChild(m)),R(!0);var F=Dt(t,s.draggable);if(!F||$n(e,v,this)&&!F.animated){if(F===m)return R(!1);if(F&&t===e.target&&(r=F),r&&(l=G(r)),qe(H,t,m,a,r,l,e,!!r)!==!1)return y(),F&&F.nextSibling?t.insertBefore(m,F.nextSibling):t.appendChild(m),U=t,C(),R(!0)}else if(F&&Bn(e,v,this)){var Y=Ne(t,0,s,!0);if(Y===m)return R(!1);if(r=Y,l=G(r),qe(H,t,m,a,r,l,e,!1)!==!1)return y(),t.insertBefore(m,Y),U=t,C(),R(!0)}else if(r.parentNode===t){l=G(r);var k=0,j,B=m.parentNode!==t,P=!kn(m.animated&&m.toRect||a,r.animated&&r.toRect||l,v),I=v?"top":"left",T=Vt(r,"top","top")||Vt(m,"top","top"),J=T?T.scrollTop:void 0;Be!==r&&(j=l[I],He=!1,Xe=!P&&s.invertSwap||B),k=Tn(e,r,l,v,P?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,Xe,Be===r);var ee;if(k!==0){var D=se(m);do D-=k,ee=U.children[D];while(ee&&($(ee,"display")==="none"||ee===O))}if(k===0||ee===r)return R(!1);Be=r,Ye=k;var _=r.nextElementSibling,b=!1;b=k===1;var S=qe(H,t,m,a,r,l,e,b);if(S!==!1)return(S===1||S===-1)&&(b=S===1),yt=!0,setTimeout(xn,30),y(),b&&!_?t.appendChild(m):r.parentNode.insertBefore(m,b?_:r),T&&jt(T,0,J-T.scrollTop),U=m.parentNode,j!==void 0&&!Xe&&(Qe=Math.abs(j-G(r)[I])),C(),R(!0)}if(t.contains(m))return R(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){M(document,"mousemove",this._onTouchMove),M(document,"touchmove",this._onTouchMove),M(document,"pointermove",this._onTouchMove),M(document,"dragover",ke),M(document,"mousemove",ke),M(document,"touchmove",ke)},_offUpEvents:function(){var e=this.el.ownerDocument;M(e,"mouseup",this._onDrop),M(e,"touchend",this._onDrop),M(e,"pointerup",this._onDrop),M(e,"pointercancel",this._onDrop),M(e,"touchcancel",this._onDrop),M(document,"selectstart",this)},_onDrop:function(e){var t=this.el,r=this.options;if(le=se(m),ve=se(m,r.draggable),oe("drop",this,{evt:e}),U=m&&m.parentNode,le=se(m),ve=se(m,r.draggable),x.eventCanceled){this._nulling();return}$e=!1,Xe=!1,He=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),_t(this.cloneId),_t(this._dragStartId),this.nativeDraggable&&(M(document,"drop",this),M(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Pe&&$(document.body,"user-select",""),$(m,"transform",""),e&&(Me&&(e.cancelable&&e.preventDefault(),!r.dropBubble&&e.stopPropagation()),O&&O.parentNode&&O.parentNode.removeChild(O),(H===U||Z&&Z.lastPutMode!=="clone")&&z&&z.parentNode&&z.parentNode.removeChild(z),m&&(this.nativeDraggable&&M(m,"dragend",this),pt(m),m.style["will-change"]="",Me&&!$e&&ae(m,Z?Z.options.ghostClass:this.options.ghostClass,!1),ae(m,this.options.chosenClass,!1),te({sortable:this,name:"unchoose",toEl:U,newIndex:null,newDraggableIndex:null,originalEvent:e}),H!==U?(le>=0&&(te({rootEl:U,name:"add",toEl:U,fromEl:H,originalEvent:e}),te({sortable:this,name:"remove",toEl:U,originalEvent:e}),te({rootEl:U,name:"sort",toEl:U,fromEl:H,originalEvent:e}),te({sortable:this,name:"sort",toEl:U,originalEvent:e})),Z&&Z.save()):le!==Te&&le>=0&&(te({sortable:this,name:"update",toEl:U,originalEvent:e}),te({sortable:this,name:"sort",toEl:U,originalEvent:e})),x.active&&((le==null||le===-1)&&(le=Te,ve=Le),te({sortable:this,name:"end",toEl:U,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){oe("nulling",this),H=m=U=O=De=z=Ke=be=Ee=ue=Me=le=ve=Te=Le=Be=Ye=Z=je=x.dragged=x.ghost=x.clone=x.active=null,at.forEach(function(e){e.checked=!0}),at.length=dt=ft=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":m&&(this._onDragOver(e),Cn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,r=this.el.children,a=0,l=r.length,i=this.options;a<l;a++)t=r[a],ce(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Nn(t));return e},sort:function(e,t){var r={},a=this.el;this.toArray().forEach(function(l,i){var s=a.children[i];ce(s,this.options.draggable,a,!1)&&(r[l]=s)},this),t&&this.captureAnimationState(),e.forEach(function(l){r[l]&&(a.removeChild(r[l]),a.appendChild(r[l]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return ce(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var r=this.options;if(t===void 0)return r[e];var a=ze.modifyOption(this,e,t);typeof a<"u"?r[e]=a:r[e]=t,e==="group"&&Zt(r)},destroy:function(){oe("destroy",this);var e=this.el;e[re]=null,M(e,"mousedown",this._onTapStart),M(e,"touchstart",this._onTapStart),M(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(M(e,"dragover",this),M(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),rt.splice(rt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!be){if(oe("hideClone",this),x.eventCanceled)return;$(z,"display","none"),this.options.removeCloneOnHide&&z.parentNode&&z.parentNode.removeChild(z),be=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(be){if(oe("showClone",this),x.eventCanceled)return;m.parentNode==H&&!this.options.group.revertClone?H.insertBefore(z,m):De?H.insertBefore(z,De):H.appendChild(z),this.options.group.revertClone&&this.animate(m,z),$(z,"display",""),be=!1}}};function Cn(o){o.dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault()}function qe(o,e,t,r,a,l,i,s){var u,c=o[re],f=c.options.onMove,d;return window.CustomEvent&&!me&&!We?u=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(u=document.createEvent("Event"),u.initEvent("move",!0,!0)),u.to=e,u.from=o,u.dragged=t,u.draggedRect=r,u.related=a||e,u.relatedRect=l||G(e),u.willInsertAfter=s,u.originalEvent=i,o.dispatchEvent(u),f&&(d=f.call(c,u,i)),d}function pt(o){o.draggable=!1}function xn(){yt=!1}function Bn(o,e,t){var r=G(Ne(t.el,0,t.options,!0)),a=Gt(t.el,t.options,O),l=10;return e?o.clientX<a.left-l||o.clientY<r.top&&o.clientX<r.right:o.clientY<a.top-l||o.clientY<r.bottom&&o.clientX<r.left}function $n(o,e,t){var r=G(Dt(t.el,t.options.draggable)),a=Gt(t.el,t.options,O),l=10;return e?o.clientX>a.right+l||o.clientY>r.bottom&&o.clientX>r.left:o.clientY>a.bottom+l||o.clientX>r.right&&o.clientY>r.top}function Tn(o,e,t,r,a,l,i,s){var u=r?o.clientY:o.clientX,c=r?t.height:t.width,f=r?t.top:t.left,d=r?t.bottom:t.right,g=!1;if(!i){if(s&&Qe<c*a){if(!He&&(Ye===1?u>f+c*l/2:u<d-c*l/2)&&(He=!0),He)g=!0;else if(Ye===1?u<f+Qe:u>d-Qe)return-Ye}else if(u>f+c*(1-a)/2&&u<d-c*(1-a)/2)return On(e)}return g=g||i,g&&(u<f+c*l/2||u>d-c*l/2)?u>f+c/2?1:-1:0}function On(o){return se(m)<se(o)?1:-1}function Nn(o){for(var e=o.tagName+o.className+o.src+o.href+o.textContent,t=e.length,r=0;t--;)r+=e.charCodeAt(t);return r.toString(36)}function Vn(o){at.length=0;for(var e=o.getElementsByTagName("input"),t=e.length;t--;){var r=e[t];r.checked&&at.push(r)}}function et(o){return setTimeout(o,0)}function _t(o){return clearTimeout(o)}st&&A(document,"touchmove",function(o){(x.active||$e)&&o.cancelable&&o.preventDefault()});x.utils={on:A,off:M,css:$,find:zt,is:function(e,t){return!!ce(e,t,e,!1)},extend:mn,throttle:Ut,closest:ce,toggleClass:ae,clone:Xt,index:se,nextTick:et,cancelNextTick:_t,detectDirection:Jt,getChild:Ne,expando:re};x.get=function(o){return o[re]};x.mount=function(){for(var o=arguments.length,e=new Array(o),t=0;t<o;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(x.utils=fe(fe({},x.utils),r.utils)),ze.mount(r)})};x.create=function(o,e){return new x(o,e)};x.version=hn;var X=[],Ae,wt,Et=!1,mt,gt,lt,Re;function In(){function o(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return o.prototype={dragStarted:function(t){var r=t.originalEvent;this.sortable.nativeDraggable?A(document,"dragover",this._handleAutoScroll):this.options.supportPointer?A(document,"pointermove",this._handleFallbackAutoScroll):r.touches?A(document,"touchmove",this._handleFallbackAutoScroll):A(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var r=t.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?M(document,"dragover",this._handleAutoScroll):(M(document,"pointermove",this._handleFallbackAutoScroll),M(document,"touchmove",this._handleFallbackAutoScroll),M(document,"mousemove",this._handleFallbackAutoScroll)),Pt(),tt(),gn()},nulling:function(){lt=wt=Ae=Et=Re=mt=gt=null,X.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,r){var a=this,l=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(l,i);if(lt=t,r||this.options.forceAutoScrollFallback||We||me||Pe){vt(t,this.options,s,r);var u=ye(s,!0);Et&&(!Re||l!==mt||i!==gt)&&(Re&&Pt(),Re=setInterval(function(){var c=ye(document.elementFromPoint(l,i),!0);c!==u&&(u=c,tt()),vt(t,a.options,c,r)},10),mt=l,gt=i)}else{if(!this.options.bubbleScroll||ye(s,!0)===de()){tt();return}vt(t,this.options,ye(s,!1),!1)}}},pe(o,{pluginName:"scroll",initializeByDefault:!0})}function tt(){X.forEach(function(o){clearInterval(o.pid)}),X=[]}function Pt(){clearInterval(Re)}var vt=Ut(function(o,e,t,r){if(e.scroll){var a=(o.touches?o.touches[0]:o).clientX,l=(o.touches?o.touches[0]:o).clientY,i=e.scrollSensitivity,s=e.scrollSpeed,u=de(),c=!1,f;wt!==t&&(wt=t,tt(),Ae=e.scroll,f=e.scrollFn,Ae===!0&&(Ae=ye(t,!0)));var d=0,g=Ae;do{var v=g,h=G(v),E=h.top,p=h.bottom,y=h.left,R=h.right,C=h.width,F=h.height,Y=void 0,k=void 0,j=v.scrollWidth,B=v.scrollHeight,P=$(v),I=v.scrollLeft,T=v.scrollTop;v===u?(Y=C<j&&(P.overflowX==="auto"||P.overflowX==="scroll"||P.overflowX==="visible"),k=F<B&&(P.overflowY==="auto"||P.overflowY==="scroll"||P.overflowY==="visible")):(Y=C<j&&(P.overflowX==="auto"||P.overflowX==="scroll"),k=F<B&&(P.overflowY==="auto"||P.overflowY==="scroll"));var J=Y&&(Math.abs(R-a)<=i&&I+C<j)-(Math.abs(y-a)<=i&&!!I),ee=k&&(Math.abs(p-l)<=i&&T+F<B)-(Math.abs(E-l)<=i&&!!T);if(!X[d])for(var D=0;D<=d;D++)X[D]||(X[D]={});(X[d].vx!=J||X[d].vy!=ee||X[d].el!==v)&&(X[d].el=v,X[d].vx=J,X[d].vy=ee,clearInterval(X[d].pid),(J!=0||ee!=0)&&(c=!0,X[d].pid=setInterval((function(){r&&this.layer===0&&x.active._onTouchMove(lt);var _=X[this.layer].vy?X[this.layer].vy*s:0,b=X[this.layer].vx?X[this.layer].vx*s:0;typeof f=="function"&&f.call(x.dragged.parentNode[re],b,_,o,lt,X[this.layer].el)!=="continue"||jt(X[this.layer].el,b,_)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&g!==u&&(g=ye(g,!1)));Et=c}},30),en=function(e){var t=e.originalEvent,r=e.putSortable,a=e.dragEl,l=e.activeSortable,i=e.dispatchSortableEvent,s=e.hideGhostForTarget,u=e.unhideGhostForTarget;if(t){var c=r||l;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(f.clientX,f.clientY);u(),c&&!c.el.contains(d)&&(i("spill"),this.onSpill({dragEl:a,putSortable:r}))}};function St(){}St.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,r=e.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var a=Ne(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(t,a):this.sortable.el.appendChild(t),this.sortable.animateAll(),r&&r.animateAll()},drop:en};pe(St,{pluginName:"revertOnSpill"});function Ct(){}Ct.prototype={onSpill:function(e){var t=e.dragEl,r=e.putSortable,a=r||this.sortable;a.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),a.animateAll()},drop:en};pe(Ct,{pluginName:"removeOnSpill"});x.mount(new In);x.mount(Ct,St);const Mn={__name:"index",props:{isVisible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:Number,default:200}},setup(o){const e=o,t=n.ref(null),r=n.ref(!1),a=n.ref(null);return n.watch(()=>e==null?void 0:e.isVisible,()=>{r.value=e==null?void 0:e.isVisible},{deep:!0,immediate:!0}),n.watch(()=>a.value,()=>{n.nextTick(()=>{var l,i;(i=(l=t.value)==null?void 0:l.updatePopper)==null||i.call(l)})},{deep:!0,immediate:!0}),(l,i)=>{const s=n.resolveComponent("el-popover");return n.openBlock(),n.createBlock(s,{visible:r.value,placement:"bottom",title:e==null?void 0:e.title,width:e==null?void 0:e.width,ref_key:"popOverRef",ref:t},{reference:n.withCtx(()=>[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"reference",{ref_key:"referenceRef",ref:a})])]),default:n.withCtx(()=>[n.createElementVNode("div",null,[n.renderSlot(l.$slots,"content")])]),_:3},8,["visible","title","width"])}}},An={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-switch");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),"active-color":"#13ce66","inactive-color":"#ff4949"},null,8,["modelValue"])}}},Rn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},Pn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-color-picker");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),"show-alpha":""},null,8,["modelValue"])}}},Fn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),style:{height:"100%"},type:"number"},null,8,["modelValue"])}}},Ln={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return(t,r)=>{var a,l,i,s,u,c;return n.openBlock(),n.createBlock(Bt,{rowContents:((a=e==null?void 0:e.content)==null?void 0:a.rowContents)??[],buttonValue:((l=e==null?void 0:e.content)==null?void 0:l.buttonValue)??[],isEnableWrap:(i=e==null?void 0:e.content)==null?void 0:i.isEnableWrap,isRowFlex:(s=e==null?void 0:e.content)==null?void 0:s.isRowFlex,isButtonRow:(u=e==null?void 0:e.content)==null?void 0:u.isButtonRow,rowValues:((c=e==null?void 0:e.content)==null?void 0:c.rowValues)??[]},null,8,["rowContents","buttonValue","isEnableWrap","isRowFlex","isButtonRow","rowValues"])}}},Yn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-radio"),i=n.resolveComponent("el-radio-group");return n.openBlock(),n.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),style:{height:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.content,(s,u)=>(n.openBlock(),n.createBlock(l,{key:u,label:s.label},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(s==null?void 0:s.value),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}},Hn=["onDblclick"],Wn={key:1,class:"tabs-label"},zn={__name:"index",props:{tabsContents:{type:Array,default:()=>[]}},emits:["dblClick","dbChange"],setup(o,{emit:e}){var c;const t=o,r=e,a=n.ref([]),l=n.ref((c=t==null?void 0:t.tabsContents[0])==null?void 0:c.value),i=f=>xt(f),s=f=>{r("dblClick",f)},u=f=>{r("dbChange",f)};return n.watch(()=>t.tabsContents,()=>{a.value=it.cloneDeep(t.tabsContents)},{deep:!0,immediate:!0}),(f,d)=>{const g=n.resolveComponent("el-tab-pane"),v=n.resolveComponent("el-tabs");return n.openBlock(),n.createBlock(v,{type:"card",modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=h=>l.value=h)},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.value,(h,E)=>(n.openBlock(),n.createBlock(g,{key:E,name:h==null?void 0:h.value},{label:n.withCtx(()=>{var p;return[h!=null&&h.label?(n.openBlock(),n.createElementBlock("div",{key:0,onDblclick:y=>s(h)},n.toDisplayString(h==null?void 0:h.label),41,Hn)):n.createCommentVNode("",!0),h!=null&&h.contents&&((p=h==null?void 0:h.contents)==null?void 0:p.length)>0?(n.openBlock(),n.createElementBlock("div",Wn,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h==null?void 0:h.contents,(y,R)=>(n.openBlock(),n.createElementBlock("div",{key:R,class:"tabs-children"},[y!=null&&y.value||(y==null?void 0:y.value)===""?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(y==null?void 0:y.type)),{key:0,modelValue:y.value,"onUpdate:modelValue":C=>y.value=C,content:(y==null?void 0:y.contents)??[]},null,8,["modelValue","onUpdate:modelValue","content"])):n.createCommentVNode("",!0)]))),128))])):n.createCommentVNode("",!0),n.renderSlot(f.$slots,`${(h==null?void 0:h.value)??""}_header`,{},void 0,!0)]}),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h==null?void 0:h.children,(p,y)=>(n.openBlock(),n.createElementBlock("div",{key:y,class:"tabs-contents"},[n.renderSlot(f.$slots,`${(p==null?void 0:p.value)??""}_operateButtons`,{},void 0,!0),p!=null&&p.value||(p==null?void 0:p.value)===""?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(i(p==null?void 0:p.type)),{key:0,modelValue:p.value,"onUpdate:modelValue":R=>p.value=R,onDbChange:u,content:p==null?void 0:p.content},n.createSlots({_:2},[n.renderList(f.$slots,(R,C)=>({name:C,fn:n.withCtx(F=>[n.renderSlot(f.$slots,C,n.mergeProps({ref_for:!0},F||{}),void 0,!0)])}))]),1064,["modelValue","onUpdate:modelValue","content"])):n.createCommentVNode("",!0)]))),128))]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue"])}}},tn=Se._export_sfc(zn,[["__scopeId","data-v-c1c693d0"]]),Un=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"})),jn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o;return n.onMounted(()=>{document.querySelectorAll(".el-tab-pane").forEach(r=>{r.style.display="block"})}),(t,r)=>{var a;return n.openBlock(),n.createBlock(tn,{tabsContents:((a=e==null?void 0:e.content)==null?void 0:a.tabsContents)??[]},n.createSlots({_:2},[n.renderList(t.$slots,(l,i)=>({name:i,fn:n.withCtx(s=>[n.renderSlot(t.$slots,i,n.normalizeProps(n.guardReactiveProps(s||{})))])}))]),1032,["tabsContents"])}}},Xn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["dbChange"],setup(o,{emit:e}){const t=o,r=n.ref([]);n.watch(()=>{var i;return(i=t==null?void 0:t.content)==null?void 0:i.tableData},()=>{var i,s,u,c;((s=(i=t==null?void 0:t.content)==null?void 0:i.tableData)==null?void 0:s.length)===0||!((u=t==null?void 0:t.content)!=null&&u.tableData)||(r.value=it.cloneDeep((c=t==null?void 0:t.content)==null?void 0:c.tableData))},{deep:!0,immediate:!0});const a=e,l=i=>{var f,d,g,v;if(((f=t==null?void 0:t.content)==null?void 0:f.dbType)!=="edit"||!r.value||((d=r.value)==null?void 0:d.length)===0)return;let s=r.value,u=[];((g=s==null?void 0:s.filter(h=>(h==null?void 0:h.tableEditType)==="edit"))==null?void 0:g.length)!==(((v=t==null?void 0:t.content)==null?void 0:v.editNumber)??1)&&(s=s==null?void 0:s.map(h=>((h==null?void 0:h.id)===(i==null?void 0:i.id)&&(h.tableEditType="edit",u.push(h)),h)),a("dbChange",{content:s,item:u}))};return(i,s)=>{var u,c,f,d,g,v,h;return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.renderSlot(i.$slots,`${(u=t==null?void 0:t.content)==null?void 0:u.value}_tableHeader`),(n.openBlock(),n.createBlock(on,{columns:((c=t==null?void 0:t.content)==null?void 0:c.columns)??[],tableData:r.value??[],currentPage:(f=t==null?void 0:t.content)==null?void 0:f.currentPage,total:(d=t==null?void 0:t.content)==null?void 0:d.total,pageSize:(g=t==null?void 0:t.content)==null?void 0:g.pageSize,isShowPagination:(v=t==null?void 0:t.content)==null?void 0:v.isShowPagination,isShowEdit:!1,isMoveColumn:(h=t==null?void 0:t.content)==null?void 0:h.isMoveColumn,isShowDelete:!1,onDoClickRow:l,key:r.value??[]},{actions:n.withCtx(({item:E})=>{var p;return[n.renderSlot(i.$slots,`${(p=t==null?void 0:t.content)==null?void 0:p.value}_action`,{item:E})]}),_:3},8,["columns","tableData","currentPage","total","pageSize","isShowPagination","isMoveColumn"]))],64)}}},Gn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-option"),i=n.resolveComponent("el-select");return n.openBlock(),n.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.content,s=>(n.openBlock(),n.createBlock(l,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},qn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-option"),i=n.resolveComponent("el-select");return n.openBlock(),n.createBlock(i,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=s=>t.value=s),multiple:"",clearable:"",placeholder:"请选择下拉内容...",style:{width:"100%"}},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e==null?void 0:e.content,s=>(n.openBlock(),n.createBlock(l,{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}},Jn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-date-picker");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),type:"date",placeholder:"请选择日期",format:"YYYY-MM-DD",style:{width:"100%"}},null,8,["modelValue"])}}},Zn={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},setup(o){const e=o,t=n.ref(e.value);return(r,a)=>{const l=n.resolveComponent("el-input");return n.openBlock(),n.createBlock(l,{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=i=>t.value=i),type:"textarea",disabled:!(e!=null&&e.isEdit)},null,8,["modelValue","disabled"])}}},Kn=Se._export_sfc(Zn,[["__scopeId","data-v-917c453d"]]),Qn={class:"dialog-title"},eo={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:Number,default:600},visible:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(o,{emit:e}){const t=o,r=e,a=n.ref(!1),l=()=>{r("beforeDestroy")};return n.watch(()=>t==null?void 0:t.visible,()=>{a.value=t==null?void 0:t.visible},{deep:!0,immediate:!0}),(i,s)=>{const u=n.resolveComponent("el-dialog");return n.openBlock(),n.createBlock(u,{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=c=>a.value=c),width:t==null?void 0:t.dialogWidth,"before-close":l},{default:n.withCtx(()=>[n.renderSlot(i.$slots,"default",{},void 0,!0)]),header:n.withCtx(()=>[n.createElementVNode("div",Qn,n.toDisplayString(t==null?void 0:t.title),1)]),footer:n.withCtx(()=>[n.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width"])}}},nn=Se._export_sfc(eo,[["__scopeId","data-v-5547662c"]]),to={class:"upload"},no={class:"upload-icon"},oo={class:"dialog-footer"},ro={__name:"index",props:{value:String,content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0}},emits:["uploadContents"],setup(o,{emit:e}){const t=o,r=e;n.ref(t.value);const a=n.ref([]),l=n.ref(!1),i=()=>{l.value=!0},s=async()=>{l.value=!1,Ft.ElMessage.success("上传成功"),r("uploadContents",a.value),a.value=[]},u=()=>{l.value=!1,a.value=[]},c=(f,d)=>{d.value=d};return(f,d)=>{const g=n.resolveComponent("el-button"),v=n.resolveComponent("el-icon"),h=n.resolveComponent("el-upload");return n.openBlock(),n.createElementBlock(n.Fragment,null,[n.createElementVNode("div",null,[n.createVNode(g,{type:"primary",onClick:i},{default:n.withCtx(()=>[n.createElementVNode("div",to,[d[1]||(d[1]=n.createElementVNode("div",{class:"upload-word"},n.toDisplayString("上传"),-1)),n.createElementVNode("div",no,[n.createVNode(n.unref(bt.upload_filled_default))])])]),_:1})]),n.createVNode(nn,{visible:l.value,onBeforeDestroy:u,title:"上传文件"},{default:n.withCtx(()=>[n.createVNode(h,{"file-list":a.value,"onUpdate:fileList":d[0]||(d[0]=E=>a.value=E),multiple:"",drag:"",action:"","auto-upload":!1,limit:1,"on-change":c},{tip:n.withCtx(()=>d[2]||(d[2]=[n.createElementVNode("div",{class:"el-upload__tip tip-content"}," 请上传大小不超过10MB的文件 ",-1)])),default:n.withCtx(()=>[n.createVNode(v,{class:"el-icon--upload"},{default:n.withCtx(()=>[n.createVNode(n.unref(bt.upload_filled_default))]),_:1}),d[3]||(d[3]=n.createElementVNode("div",{class:"el-upload__text"},[n.createTextVNode(" 将文件拖到此处或"),n.createElementVNode("em",null,"点击上传")],-1))]),_:1,__:[3]},8,["file-list"])]),footer:n.withCtx(()=>[n.createElementVNode("div",oo,[n.createVNode(g,{onClick:u},{default:n.withCtx(()=>d[4]||(d[4]=[n.createTextVNode(n.toDisplayString("取消"))])),_:1,__:[4]}),n.createVNode(g,{type:"primary",onClick:s},{default:n.withCtx(()=>d[5]||(d[5]=[n.createTextVNode(n.toDisplayString("确认"))])),_:1,__:[5]})])]),_:1},8,["visible"])],64)}}},ao=Se._export_sfc(ro,[["__scopeId","data-v-3e08e20d"]]),lo={SWITCH:An,INPUT:Rn,COLOR:Pn,NUMBER:Fn,FORM:Ln,RADIO:Yn,TAB:jn,TABLE:Xn,SELECT:Gn,MULTISELECT:qn,SSMenu:rn.default,DATE:Jn,TEXTAREA:Kn,UPLOAD:ao};function xt(o){return lo[o==null?void 0:o.toUpperCase()]||null}const io=o=>o.match(/\((.*)\)/)[1],so=o=>{try{return Lt(o).format("YYYY-MM-DD")!=="Invalid Date"}catch{return!1}},uo={class:"form-content-view"},co=["onClick"],fo=["onClick"],ho=["onClick"],po={__name:"index",props:{rowContents:Array,buttonValue:Array,isEnableWrap:{default:!0,type:Boolean},isRowFlex:{default:!0,type:Boolean},isButtonRow:{default:!0,type:Boolean},rowValues:Array,isEdit:{type:Boolean,default:!0},isStartJustify:{type:Boolean,default:!0}},emits:["change","onButtonClick"],setup(o,{emit:e}){const t=o;n.onMounted(()=>{console.log("表单",t)});const r=e,a=n.ref(null),l=n.ref(null),i=n.ref(),s=n.ref(),u=f=>xt(f);n.watch(()=>t==null?void 0:t.rowContents,()=>{var d,g;if(((d=t==null?void 0:t.rowContents)==null?void 0:d.length)===0)return;const f={};(g=it.cloneDeep(t==null?void 0:t.rowContents))==null||g.forEach(v=>{f[v.name]=(v==null?void 0:v.type)!=="date"?v==null?void 0:v.value:v!=null&&v.value?so(v==null?void 0:v.value)?Lt(v==null?void 0:v.value):v==null?void 0:v.value:""}),i.value=f,s.value=f,console.log("rowContents",t==null?void 0:t.rowContents)},{deep:!0,immediate:!0});const c=f=>{r("onButtonClick",{content:s.value,buttonName:f})};return n.watch(()=>s.value,()=>{r("change",s.value)},{deep:!0,immediate:!0}),(f,d)=>{var h;const g=n.resolveComponent("el-form-item"),v=n.resolveComponent("el-form");return n.openBlock(),n.createElementBlock("div",{class:"form-content",style:n.normalizeStyle({flexDirection:o.isButtonRow?"row":"column"})},[n.createElementVNode("div",uo,[t.isEnableWrap?(n.openBlock(),n.createBlock(v,{ref_key:"formWrapRef",ref:a,model:i.value,class:"form-data",key:t.isRowFlex},{default:n.withCtx(()=>{var E,p;return[(E=f.item)!=null&&E.isHidden?n.createCommentVNode("",!0):(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(t==null?void 0:t.rowContents,(y,R)=>(n.openBlock(),n.createBlock(g,{key:R,class:"form-item",style:n.normalizeStyle({flexDirection:o.isRowFlex?"row":"column",alignItems:o.isRowFlex?"center":"start",height:o.isRowFlex?"100%":"auto"})},n.createSlots({default:n.withCtx(()=>[y!=null&&y.isHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u((y==null?void 0:y.type)??"Input")),{key:0,modelValue:s.value[y.name],"onUpdate:modelValue":C=>s.value[y.name]=C,content:(y==null?void 0:y.contents)??[],isEdit:t==null?void 0:t.isEdit},null,8,["modelValue","onUpdate:modelValue","content","isEdit"]))]),_:2},[y!=null&&y.isHidden?void 0:{name:"label",fn:n.withCtx(()=>[y!=null&&y.label?(n.openBlock(),n.createElementBlock("div",{key:0,class:"from-item-label",style:n.normalizeStyle({width:o.isRowFlex?"72px":"260px",minWidth:o.isRowFlex?"72px":"260px"})},n.toDisplayString(y==null?void 0:y.label),5)):n.createCommentVNode("",!0)]),key:"0"}]),1032,["style"]))),128)),((p=t.buttonValue)==null?void 0:p.length)>0&&o.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:1,class:"form-button",style:n.normalizeStyle({paddingTop:o.isRowFlex?"0":"26px",justifyContent:o.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t==null?void 0:t.buttonValue,(y,R)=>(n.openBlock(),n.createElementBlock("div",{key:R,class:"form-button-content"},[y?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(y==null?void 0:y.background)??"var(--ssComponent-primary-color)"}),onClick:C=>c(y==null?void 0:y.label)},n.toDisplayString(y==null?void 0:y.label),13,co)):n.createCommentVNode("",!0)]))),128))],4)):n.createCommentVNode("",!0)]}),_:1},8,["model"])):(n.openBlock(),n.createBlock(v,{key:1,ref_key:"formRef",ref:l,model:s.value,class:"form-noRegular-data"},{default:n.withCtx(()=>{var E;return[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t==null?void 0:t.rowContents,(p,y)=>(n.openBlock(),n.createBlock(g,{key:y,class:n.normalizeClass(["form-item",{"form-row-content":!o.isRowFlex}]),style:n.normalizeStyle({flexDirection:o.isRowFlex?"row":"column",alignItems:o.isRowFlex?"center":"start",height:o.isRowFlex?"100%":"auto",width:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`,minWidth:`calc((100% / ${(p==null?void 0:p.width)??1}) - 12px)`})},n.createSlots({default:n.withCtx(()=>[p!=null&&p.isHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(n.resolveDynamicComponent(u((p==null?void 0:p.type)??"Input")),{key:0,modelValue:s.value[p.name],"onUpdate:modelValue":R=>s.value[p.name]=R,isEdit:t==null?void 0:t.isEdit,content:(p==null?void 0:p.contents)??[]},null,8,["modelValue","onUpdate:modelValue","isEdit","content"]))]),_:2},[p!=null&&p.isHidden?void 0:{name:"label",fn:n.withCtx(()=>[p!=null&&p.label?(n.openBlock(),n.createElementBlock("div",{key:0,class:"from-item-label",style:n.normalizeStyle({width:o.isRowFlex?"72px":"auto",minWidth:o.isRowFlex?"72px":`calc((100% / ${(p==null?void 0:p.width)??1}) - 8px)`})},n.toDisplayString(p==null?void 0:p.label),5)):n.createCommentVNode("",!0)]),key:"0"}]),1032,["class","style"]))),128)),((E=t.buttonValue)==null?void 0:E.length)>0&&o.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button",style:n.normalizeStyle({paddingTop:o.isRowFlex?"0":"26px",justifyContent:o.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t==null?void 0:t.buttonValue,(p,y)=>(n.openBlock(),n.createElementBlock("div",{key:y,class:"form-button-content"},[p?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(p==null?void 0:p.background)??"var(--ssComponent-primary-color)"}),onClick:R=>c(p==null?void 0:p.label)},n.toDisplayString(p==null?void 0:p.label),13,fo)):n.createCommentVNode("",!0)]))),128))],4)):n.createCommentVNode("",!0)]}),_:1},8,["model"]))]),((h=t.buttonValue)==null?void 0:h.length)>0&&!o.isButtonRow?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button",style:n.normalizeStyle({justifyContent:o.isStartJustify?"start":"end"})},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t==null?void 0:t.buttonValue,(E,p)=>(n.openBlock(),n.createElementBlock("div",{key:p,class:"form-button-content",onClick:y=>c(E)},[E?(n.openBlock(),n.createElementBlock("div",{key:0,class:"form-button-item",style:n.normalizeStyle({background:(E==null?void 0:E.background)??"var(--ssComponent-primary-color)"})},n.toDisplayString(E==null?void 0:E.label),5)):n.createCommentVNode("",!0)],8,ho))),128))],4)):n.createCommentVNode("",!0)],4)}}},Bt=Se._export_sfc(po,[["__scopeId","data-v-8892f0f4"]]),mo={class:"extra-button-content"},go={key:0,class:"extra-header"},vo=["onClick"],bo={class:"extra-button-filter"},yo={__name:"header",props:{buttons:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]}},emits:["buttonClick"],setup(o,{emit:e}){const t=e,r=o,a=n.ref(!1),l=n.ref([]),i=n.ref([{label:"取消"},{label:"确认"}]),s=f=>{t("buttonClick",f)},u=f=>{var d;l.value=(d=f==null?void 0:f.filter(g=>(g==null?void 0:g.label)!==""&&(g==null?void 0:g.label)!=="操作"))==null?void 0:d.map(g=>({label:(g==null?void 0:g.label)??"",value:"",name:(g==null?void 0:g.prop)??""}))},c=f=>{a.value=!1};return n.onMounted(()=>{u(r.columns)}),n.watch(()=>r.columns,()=>{u(r.columns)},{deep:!0,immediate:!0}),(f,d)=>{var v;const g=n.resolveComponent("el-tooltip");return n.openBlock(),n.createElementBlock("div",mo,[r!=null&&r.buttons&&((v=r==null?void 0:r.buttons)==null?void 0:v.length)>0?(n.openBlock(),n.createElementBlock("div",go,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r==null?void 0:r.buttons,(h,E)=>(n.openBlock(),n.createElementBlock("div",{class:"extra-contents",key:E},[n.createElementVNode("div",{class:"extra-content",style:n.normalizeStyle({background:(h==null?void 0:h.background)??"var(--ssComponent-primary-color)",color:"white"}),onClick:p=>s(h==null?void 0:h.label)},n.toDisplayString(h==null?void 0:h.label),13,vo)]))),128))])):n.createCommentVNode("",!0),n.createElementVNode("div",bo,[n.createVNode(Mn,{title:"筛选数据",width:500,isVisible:a.value},{reference:n.withCtx(()=>[n.createVNode(g,{content:"筛选",placement:"top-start"},{default:n.withCtx(()=>[n.createElementVNode("div",{class:"button-style",onClick:d[0]||(d[0]=h=>a.value=!a.value)},[n.createVNode(n.unref(bt.filter_default))])]),_:1})]),content:n.withCtx(()=>[(n.openBlock(),n.createBlock(Bt,{rowContents:l.value,buttonValue:i.value,isRowFlex:!0,isEnableWrap:!1,isButtonRow:!1,key:i.value,isStartJustify:!1,onOnButtonClick:c},null,8,["rowContents","buttonValue"]))]),_:1},8,["isVisible"])])])}}},_o=Se._export_sfc(yo,[["__scopeId","data-v-1d46278f"]]),wo=n.defineComponent({__name:"recurseCol",props:{column:{type:Object,default:{}}},setup(o){return(e,t)=>{var l,i,s,u,c,f,d;const r=n.resolveComponent("RecurseCol",!0),a=n.resolveComponent("el-table-column");return o.column.isHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(a,{key:0,label:o.column.label,prop:o.column.prop,fixed:(l=o.column)==null?void 0:l.fixed,align:((i=o.column)==null?void 0:i.align)??"center",sortable:((s=o.column)==null?void 0:s.sortable)??!0,"show-overflow-tooltip":((u=o.column)==null?void 0:u.showOverflowTooltip)??!0,width:(c=o.column)!=null&&c.width?parseInt(o.column.width):void 0,"min-width":(f=o.column)!=null&&f.width?parseInt(o.column.width):void 0,"class-name":(((d=o.column)==null?void 0:d.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{default:n.withCtx(g=>[n.renderSlot(e.$slots,"content",{row:g.row,column:g.column,$index:g.$index}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.column.children,(v,h)=>(n.openBlock(),n.createBlock(r,{key:h,column:v},n.createSlots({_:2},[n.renderList(e.$slots,(E,p)=>({name:p,fn:n.withCtx(y=>[n.renderSlot(e.$slots,p,n.mergeProps({ref_for:!0},y,{slotData:y,row:g.row,item:{child:v}}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),Eo=n.defineComponent({__name:"index",props:{column:{type:Object,default:{}}},setup(o){return(e,t)=>{var a,l,i,s,u,c,f;const r=n.resolveComponent("el-table-column");return o.column.isHidden?n.createCommentVNode("",!0):(n.openBlock(),n.createBlock(r,{key:0,label:o.column.label,prop:o.column.prop,fixed:(a=o.column)==null?void 0:a.fixed,align:((l=o.column)==null?void 0:l.align)??"center",sortable:((i=o.column)==null?void 0:i.sortable)??!0,"show-overflow-tooltip":((s=o.column)==null?void 0:s.showOverflowTooltip)??!0,width:(u=o.column)!=null&&u.width?parseInt(o.column.width):void 0,"min-width":(c=o.column)!=null&&c.width?parseInt(o.column.width):void 0,"class-name":(((f=o.column)==null?void 0:f.isNotDrag)??!1)===!0?"is-not-drag":"is-drag"},{default:n.withCtx(d=>[n.renderSlot(e.$slots,"content",{row:d.row,column:d.column,$index:d.$index}),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.column.children,(g,v)=>(n.openBlock(),n.createBlock(wo,{key:v,column:g},n.createSlots({_:2},[n.renderList(e.$slots,(h,E)=>({name:E,fn:n.withCtx(({row:p,slotData:y,item:R})=>[n.renderSlot(e.$slots,E,n.mergeProps({ref_for:!0},y??p,{item:R??g,slotData:y??p}))])}))]),1032,["column"]))),128))]),_:3},8,["label","prop","fixed","align","sortable","show-overflow-tooltip","width","min-width","class-name"]))}}}),ko={class:"table-content-show"},Do=["onClick"],So=["onClick"],Co={key:2,style:{"font-size":"14px","font-weight":"400"}},xo={__name:"index",props:{columns:Array,tableData:Array,currentPage:Number,total:Number,pageSize:Number,extraButton:{type:Array,default:()=>[]},isShowPagination:{type:Boolean,default:!0},isShowEdit:{type:Boolean,default:!0},isMoveColumn:{type:Boolean,default:!0},isShowDelete:{type:Boolean,default:!0}},emits:["dbClickRow","fixRow","deleteRow","doSizeChange","doCurrentChange","buttonClick"],setup(o,{emit:e}){const t=o,r=n.ref([]),a=n.ref([]),l=n.ref(0),i=n.ref(null),s=n.ref(null),u=e;n.onMounted(()=>{r.value=t==null?void 0:t.columns,console.log(123,r.value),a.value=t==null?void 0:t.tableData,t.isMoveColumn&&h(),E()});const c=C=>{u("buttonClick",C)};n.watch(()=>t==null?void 0:t.tableData,()=>{a.value=t==null?void 0:t.tableData},{deep:!0});const f=C=>xt(C),d=(C,F)=>{u("dbClickRow",C)},g=C=>{u("fixRow",C)},v=C=>{u("deleteRow",C)},h=()=>{var F;const C=(F=i.value)==null?void 0:F.$el.querySelector(".el-table__header-wrapper tr");!C||!t.isMoveColumn||x.create(C,{animation:180,delay:0,handle:".is-drag .cell",onMove:Y=>!Y.related.classList.contains("is-not-drag"),onEnd:Y=>{l.value++;const k=Y.oldIndex,j=Y.newIndex,B=r.value.splice(k,1)[0];r.value.splice(j,0,B),t.isMoveColumn&&n.nextTick(()=>{h(),E()})}})};n.watch(()=>t.isMoveColumn,()=>{t.isMoveColumn&&n.nextTick(()=>{h(),E()})});const E=()=>{var F;const C=(F=i.value)==null?void 0:F.$el.querySelector(".el-table__body-wrapper tbody");C&&new x(C,{animation:150,handle:".el-table__row",ghostClass:"sortable-ghost",onEnd:({newIndex:Y,oldIndex:k})=>{const j=[...a.value],[B]=j.splice(k,1);j.splice(Y,0,B),a.value=j,n.nextTick(()=>{E()})}})},p=C=>{C.preventDefault();try{const Y=(C.clipboardData||(window==null?void 0:window.clipboardData)).getData("text/plain");if(!Y)return;const k=y(Y);if(!k.length)return;const{rowIndex:j,columnIndex:B}=s.value||{rowIndex:0,columnIndex:0},P=[];if(k==null||k.forEach(I=>{P.push(I.length+B)}),(P==null?void 0:P.filter(I=>{var T;return I>Object.keys((T=a.value)==null?void 0:T[0]).length}).length)>0){Ft.ElMessage({type:"warning",message:"所剩列数不够"});return}for(let I=0;I<k.length;I++){const T=k[I],J=a.value[j+I],ee=it.cloneDeep(r.value).map(D=>D.prop);for(let D=0;D<T.length&&B+D<ee.length;D++){const _=ee[B+D];J[_]=T[D]||""}}}catch(F){console.error("粘贴失败:",F)}},y=C=>C.trim().split(/\r\n|\n|\r/).map(k=>k.trim()?k.split(" ").map(j=>j.replace(/^"(.*)"$/,"$1")):[""]),R=C=>{C&&(s.value={rowIndex:C==null?void 0:C.$index,columnIndex:C==null?void 0:C.cellIndex,columnProp:C.column.property})};return(C,F)=>{const Y=n.resolveComponent("el-table");return n.openBlock(),n.createElementBlock("div",ko,[n.createVNode(_o,{buttons:t==null?void 0:t.extraButton,onButtonClick:c,columns:r.value},null,8,["buttons","columns"]),(n.openBlock(),n.createBlock(Y,{border:!0,class:"table-wrap",data:a.value,stripe:"",style:{width:"100%"},"max-height":"600",ref_key:"tableRef",ref:i,"empty-text":"暂无数据",onSelectionChange:C.handleTableSelectChange,onRowDblclick:d,key:l.value,onPaste:p},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value,(k,j)=>(n.openBlock(),n.createBlock(Eo,{column:k},{content:n.withCtx(({row:B,item:P,slotData:I})=>{var T;return[((k==null?void 0:k.type)??"text")==="text"&&((B==null?void 0:B.tableEditType)??"text")==="text"?(n.openBlock(),n.createElementBlock("span",{key:0,style:n.normalizeStyle([{"font-size":"14px","font-weight":"400"},{cursor:B!=null&&B.children?"pointer":"default"}])},n.toDisplayString(B!=null&&B[k==null?void 0:k.prop]?B==null?void 0:B[k==null?void 0:k.prop]:(B==null?void 0:B[P==null?void 0:P.prop])??(I==null?void 0:I[P==null?void 0:P.prop])??(B==null?void 0:B[(T=P==null?void 0:P.child)==null?void 0:T.prop])),5)):n.createCommentVNode("",!0),((k==null?void 0:k.type)??"text")==="operate"?(n.openBlock(),n.createElementBlock("span",{key:1,class:"table-operate",style:n.normalizeStyle({justifyContent:o.isShowEdit&&o.isShowDelete?"space-between":"center"})},[n.renderSlot(C.$slots,"actions",{item:B},void 0,!0),o.isShowEdit?(n.openBlock(),n.createElementBlock("span",{key:0,onClick:J=>g(B),class:"blue-table-operate table-operate-content"},"编辑",8,Do)):n.createCommentVNode("",!0),o.isShowDelete?(n.openBlock(),n.createElementBlock("span",{key:1,onClick:J=>v(B),class:"red-table-operate table-operate-content"},"删除",8,So)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),((k==null?void 0:k.type)??"text")==="edit"&&((B==null?void 0:B.tableEditType)??"text")!=="edit"||((k==null?void 0:k.type)??"text")==="text"&&((B==null?void 0:B.tableEditType)??"text")==="edit"?(n.openBlock(),n.createElementBlock("span",Co,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(f((k==null?void 0:k.columnType)??"Input")),{modelValue:B[k.prop],"onUpdate:modelValue":J=>B[k.prop]=J,style:{height:"100%"},onFocus:J=>R(B),content:(k==null?void 0:k.contents)??[]},null,40,["modelValue","onUpdate:modelValue","onFocus","content"]))])):n.createCommentVNode("",!0)]}),_:2},1032,["column"]))),256))]),_:3},8,["data","onSelectionChange"]))])}}},on=Se._export_sfc(xo,[["__scopeId","data-v-d58cc443"]]);exports.formGetOptions=io;exports.index=Un;exports.ssDialog=nn;exports.ssForm=Bt;exports.ssTable=on;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("./array-
|
|
1
|
+
"use strict";const e=require("vue"),C=require("./array-BYRvPg11.cjs"),k=require("./index-BIRKKGuW.cjs"),V=require("./index-uMboxmjq.cjs"),h=require("./modelComp-DY1RniW6.cjs"),D=require("./menu-B_Az9K_F.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),d=require("./cloneDeep-WwDap0fL.cjs"),I={class:"type-select"},N=["onClick"],x={class:"list-icon"},$={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n}=D.storeToRefs(s),r=o=>V.ElIcons[o],i=o=>{const u=d.cloneDeep(n.value);u.push({comp:o.comp,name:o.name,compData:[]}),s.setItemData(u)};return(o,u)=>(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C.slotContent),(a,t)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:t},[e.createElementVNode("div",{class:"list-content",onClick:c=>i(a)},[e.createElementVNode("div",x,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r(a.icon))))]),e.createElementVNode("div",null,e.toDisplayString(a.name),1)],8,N)]))),128))]))}},w=f._export_sfc($,[["__scopeId","data-v-fe4aecc8"]]),q={class:"fill-content"},S={class:"operate-content"},F={class:"collapse-title"},L={class:"comp-child"},M={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n,originalData:r}=D.storeToRefs(s),i=e.ref([]),o=e.ref([]);e.watch(()=>n.value,()=>{var t;!n.value||((t=n.value)==null?void 0:t.length)===0||(i.value=d.cloneDeep(n.value))},{deep:!0,immediate:!0});const u=t=>C.getComponent(t),a=(t,c,v)=>{if(!t||t.length===0)return;let p=d.cloneDeep(n.value);const l=d.cloneDeep(c);l.compData=t,p=p==null?void 0:p.map((m,_)=>(_===v&&(m=l),m)),s.setItemData(p)};return(t,c)=>{const v=e.resolveComponent("el-collapse-item"),p=e.resolveComponent("el-collapse");return e.openBlock(),e.createElementBlock("div",q,[c[1]||(c[1]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",S,[e.createVNode(p,{modelValue:o.value,"onUpdate:modelValue":c[0]||(c[0]=l=>o.value=l),class:"collapse-content"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(l,m)=>(e.openBlock(),e.createBlock(v,{key:m,name:m},{title:e.withCtx(()=>[e.createElementVNode("div",F,e.toDisplayString(l.name),1)]),default:e.withCtx(()=>{var _,g;return[e.createElementVNode("div",L,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u(l.comp+"Operate")),{itemContents:l==null?void 0:l.compData,originalItemContents:(g=(_=e.unref(r))==null?void 0:_.find((E,y)=>y===m))==null?void 0:g.compData,onChange:E=>a(E,l,m)},null,40,["itemContents","originalItemContents","onChange"]))])]}),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])])}}},R=f._export_sfc(M,[["__scopeId","data-v-a216b035"]]),T={key:0,class:"show-content"},b={__name:"index",setup(B){const s=h.useModelComp(k.pinia),{itemData:n}=D.storeToRefs(s),r=e.ref([]);e.watch(()=>n.value,()=>{var o;!n.value||((o=n.value)==null?void 0:o.length)===0||(r.value=d.cloneDeep(n.value))},{deep:!0,immediate:!0});const i=o=>C.getComponent(o);return(o,u)=>{var a;return((a=r.value)==null?void 0:a.length)>0?(e.openBlock(),e.createElementBlock("div",T,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(t,c)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:c},[e.createElementVNode("div",null,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:c},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},H=f._export_sfc(b,[["__scopeId","data-v-79320497"]]);exports.modelFill=R;exports.modelSelect=w;exports.modelShow=H;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, computed as m, createElementBlock as I, openBlock as g, normalizeClass as y, unref as n, renderSlot as z, createVNode as L, Transition as W, withCtx as M, withDirectives as q, createElementVNode as _, normalizeStyle as K, createTextVNode as ce, toDisplayString as J, vShow as Q, watch as X, shallowReactive as pe, ref as N, onMounted as fe, createBlock as T, createCommentVNode as k, resolveDynamicComponent as me, Fragment as ge, withModifiers as ye, nextTick as ve, isVNode as Y, render as H } from "vue";
|
|
2
|
-
import { f as D, h as v, _ as ee, x as be, e as S, K as V, F as Ce, ab as he, k as Te, ac as Se, d as se, j as we, U as Be, W as R, s as Ee, A as Ne, B as U, T as ke, ad as Me, G as ze, g as Z, w as x, v as $e, m as Oe, ae as G, af as Ie } from "./index-
|
|
2
|
+
import { f as D, h as v, _ as ee, x as be, e as S, K as V, F as Ce, ab as he, k as Te, ac as Se, d as se, j as we, U as Be, W as R, s as Ee, A as Ne, B as U, T as ke, ad as Me, G as ze, g as Z, w as x, v as $e, m as Oe, ae as G, af as Ie } from "./index-BH3F6_ql.js";
|
|
3
3
|
const _e = (o) => o, xe = D({
|
|
4
4
|
value: {
|
|
5
5
|
type: [String, Number],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const or=require("vue"),Ab=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ji=require("./cloneDeep-WwDap0fL.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./request-
|
|
1
|
+
"use strict";const e=require("./request-BrHEv9dn.cjs");function a(t){return e.service({url:"/api/insofData/add",method:"post",data:t})}function i(t){return e.service({url:"/api/insofData/get",method:"post",data:t})}function n(t){return e.service({url:"/api/insofData/update",method:"post",data:t})}function o(t){return e.service({url:"/api/insofData/delete",method:"post",data:t})}exports.createInsofDataApi=a;exports.deleteInsofDataApi=o;exports.getInsofDataApi=i;exports.updateInsofDataApi=n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),$t=require("./index-CVBCwf2F.cjs"),Ht=require("./index-BIRKKGuW.cjs"),re=require("./menu-B_Az9K_F.cjs"),ge=require("./index-CqJa9o1o.cjs"),R=require("./cloneDeep-WwDap0fL.cjs"),oe=require("./index-5dGTUAu_.cjs"),l=require("./index-uMboxmjq.cjs"),Kt=require("./modelComp-DY1RniW6.cjs"),Ut=require("vue-router");require("./request-BrHEv9dn.cjs");const Wt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function qt(e){return e}function Yt(e,n,o){switch(o.length){case 0:return e.call(n);case 1:return e.call(n,o[0]);case 2:return e.call(n,o[0],o[1]);case 3:return e.call(n,o[0],o[1],o[2])}return e.apply(n,o)}var jt=800,Gt=16,Xt=Date.now;function Jt(e){var n=0,o=0;return function(){var r=Xt(),a=Gt-(r-o);if(o=r,a>0){if(++n>=jt)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Qt(e){return function(){return e}}var Zt=R.defineProperty?function(e,n){return R.defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:Qt(n),writable:!0})}:qt,en=Jt(Zt),Ze=Math.max;function tn(e,n,o){return n=Ze(n===void 0?e.length-1:n,0),function(){for(var r=arguments,a=-1,s=Ze(r.length-n,0),i=Array(s);++a<s;)i[a]=r[n+a];a=-1;for(var u=Array(n+1);++a<n;)u[a]=r[a];return u[n]=o(i),Yt(e,this,u)}}var et=l.Symbol?l.Symbol.isConcatSpreadable:void 0;function nn(e){return l.isArray(e)||R.isArguments(e)||!!(et&&e&&e[et])}function on(e,n,o,r,a){var s=-1,i=e.length;for(o||(o=nn),a||(a=[]);++s<i;){var u=e[s];o(u)?R.arrayPush(a,u):a[a.length]=u}return a}function rn(e){var n=e==null?0:e.length;return n?on(e):[]}function an(e){return en(tn(e,void 0,rn),e+"")}function sn(e,n){return e!=null&&n in Object(e)}function ln(e,n,o){n=l.castPath(n,e);for(var r=-1,a=n.length,s=!1;++r<a;){var i=l.toKey(n[r]);if(!(s=e!=null&&o(e,i)))break;e=e[i]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&R.isLength(a)&&R.isIndex(i,a)&&(l.isArray(e)||R.isArguments(e)))}function un(e,n){return e!=null&&ln(e,n,sn)}function Ct(e){return e==null}function cn(e,n,o,r){if(!l.isObject(e))return e;n=l.castPath(n,e);for(var a=-1,s=n.length,i=s-1,u=e;u!=null&&++a<s;){var f=l.toKey(n[a]),d=o;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(a!=i){var v=u[f];d=void 0,d===void 0&&(d=l.isObject(v)?v:R.isIndex(n[a+1])?[]:{})}R.assignValue(u,f,d),u=u[f]}return e}function dn(e,n,o){for(var r=-1,a=n.length,s={};++r<a;){var i=n[r],u=l.baseGet(e,i);o(u,i)&&cn(s,l.castPath(i,e),u)}return s}function fn(e,n){return dn(e,n,function(o,r){return un(e,r)})}var pn=an(function(e,n){return e==null?{}:fn(e,n)});const Ie="update:modelValue",tt="change",nt="input";let ce;const vn=e=>{var n;if(!l.isClient)return 0;if(ce!==void 0)return ce;const o=document.createElement("div");o.className=`${e}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const r=o.offsetWidth;o.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",o.appendChild(a);const s=a.offsetWidth;return(n=o.parentNode)==null||n.removeChild(o),ce=r-s,ce},hn=()=>l.isClient&&/firefox/i.test(window.navigator.userAgent);let M;const mn={height:"0",visibility:"hidden",overflow:hn()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},gn=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function bn(e){const n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),a=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:gn.map(i=>[i,n.getPropertyValue(i)]),paddingSize:r,borderSize:a,boxSizing:o}}function ot(e,n=1,o){var r;M||(M=document.createElement("textarea"),document.body.appendChild(M));const{paddingSize:a,borderSize:s,boxSizing:i,contextStyle:u}=bn(e);u.forEach(([h,C])=>M==null?void 0:M.style.setProperty(h,C)),Object.entries(mn).forEach(([h,C])=>M==null?void 0:M.style.setProperty(h,C,"important")),M.value=e.value||e.placeholder||"";let f=M.scrollHeight;const d={};i==="border-box"?f=f+s:i==="content-box"&&(f=f-a),M.value="";const v=M.scrollHeight-a;if(l.isNumber(n)){let h=v*n;i==="border-box"&&(h=h+a+s),f=Math.max(h,f),d.minHeight=`${h}px`}if(l.isNumber(o)){let h=v*o;i==="border-box"&&(h=h+a+s),f=Math.min(h,f)}return d.height=`${f}px`,(r=M.parentNode)==null||r.removeChild(M),M=void 0,d}const yn=l.buildProps({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Cn=e=>pn(yn,e),En=l.buildProps({id:{type:String,default:void 0},size:l.useSizeProp,disabled:Boolean,modelValue:{type:l.definePropType([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:l.definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:l.iconPropType},prefixIcon:{type:l.iconPropType},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:l.definePropType([Object,Array,String]),default:()=>oe.mutable({})},autofocus:Boolean,rows:{type:Number,default:2},...Cn(["ariaLabel"])}),wn={[Ie]:e=>l.isString(e),input:e=>l.isString(e),change:e=>l.isString(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},kn=["class","style"],Sn=/^on[A-Z]/,Tn=(e={})=>{const{excludeListeners:n=!1,excludeKeys:o}=e,r=t.computed(()=>((o==null?void 0:o.value)||[]).concat(kn)),a=t.getCurrentInstance();return a?t.computed(()=>{var s;return l.fromPairs(Object.entries((s=a.proxy)==null?void 0:s.$attrs).filter(([i])=>!r.value.includes(i)&&!(n&&Sn.test(i))))}):(l.debugWarn("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),t.computed(()=>({})))},De=Symbol("formContextKey"),Et=Symbol("formItemContextKey"),Ne={prefix:Math.floor(Math.random()*1e4),current:0},Bn=Symbol("elIdInjection"),xn=()=>t.getCurrentInstance()?t.inject(Bn,Ne):Ne,Me=e=>{const n=xn();!l.isClient&&n===Ne&&l.debugWarn("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
|
|
2
2
|
usage: app.provide(ID_INJECTION_KEY, {
|
|
3
3
|
prefix: number,
|
|
4
4
|
current: number,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createElementBlock as d, openBlock as D, createElementVNode as A, renderSlot as R, defineComponent as Y, ref as k, resolveComponent as S, createVNode as C, withCtx as E, reactive as m, watch as M, unref as U, toDisplayString as c, createTextVNode as l } from "vue";
|
|
2
2
|
import { _ as a } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { u as O, l as H } from "./index-
|
|
3
|
+
import { u as O, l as H } from "./index-BH3F6_ql.js";
|
|
4
4
|
import { useRouter as P } from "vue-router";
|
|
5
|
-
import "./request-
|
|
5
|
+
import "./request-BK6KCyS9.js";
|
|
6
6
|
import { u as v, s as j } from "./menu-BIINB-0Y.js";
|
|
7
7
|
const r = {}, h = { class: "header-wrapper" }, G = { class: "header-horizontal" }, b = { class: "header-logo" }, Z = { class: "header-cTitle" }, N = { class: "header-horizontal" }, W = { class: "header-eTitle" };
|
|
8
8
|
function f(o, e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
|
|
2
2
|
import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
-
import { c as Ki } from "./cloneDeep-
|
|
3
|
+
import { c as Ki } from "./cloneDeep-BfzU0pBe.js";
|
|
4
4
|
/*! *****************************************************************************
|
|
5
5
|
Copyright (c) Microsoft Corporation.
|
|
6
6
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CVBCwf2F.cjs"),a=require("./index-BIRKKGuW.cjs"),l=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([{label:"机构名称",value:"",name:"a0"}]),s=t=>{console.log("handleQueryChange",t)},c=e.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"tableIndex",contents:[]},{key:"header",contents:[{label:"机构名称"},{label:"机构类型",formType:"Select",options:[{label:"集团",value:"集团"},{label:"公司",value:"公司"},{label:"部门",value:"部门"},{label:"区域",value:"区域"},{label:"组",value:"组"}]},{label:"机构状态"},{label:"操作"}]},{key:"tableContents",contents:[["数设科技","集团","启动"],["开发部","部门","启动"],["国核","组","启动"]]}]),u=t=>{console.log("handleItemDataChange",t)},i=t=>{console.log("onDoubleClick",t)},d=(t,n)=>{console.log("onButtonClick",t,n)},b=Object.freeze(Object.defineProperty({__proto__:null,handleItemDataChange:u,handleQueryChange:s,itemData:c,onButtonClick:d,onDoubleClick:i,queryFormData:r},Symbol.toStringTag,{value:"Module"})),g={class:"role-wrapper"},h=e.defineComponent({__name:"index",setup(t){const n=e.reactive({...b});return e.onMounted(()=>{console.log("state",n)}),(m,p)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(o.ssForm,{class:"role-header",rowContents:n.queryFormData,isEnableWrap:!1,isEdit:!0,onChange:n.handleQueryChange},null,8,["rowContents","onChange"]),e.createVNode(a.ssTable,{class:"role-body",itemData:n.itemData,onChange:n.handleItemDataChange},null,8,["itemData","onChange"])]))}}),_=l._export_sfc(h,[["__scopeId","data-v-93a308ef"]]);exports.default=_;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveComponent as n, createElementBlock as r, openBlock as c, createVNode as m } from "vue";
|
|
2
|
-
import "./array-
|
|
3
|
-
import "./index-
|
|
2
|
+
import "./array-DyxKeexo.js";
|
|
3
|
+
import "./index-smYHb1Ta.js";
|
|
4
4
|
import { _ as s } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-
|
|
5
|
+
import "./index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js";
|
|
6
6
|
import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js";
|
|
7
7
|
const u = {
|
|
8
8
|
__name: "index",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as r, defineComponent as I, reactive as x, onMounted as S, createElementBlock as E, openBlock as A, createVNode as D } from "vue";
|
|
2
|
-
import { s as B } from "./index-
|
|
3
|
-
import { s as w } from "./index-
|
|
4
|
-
import { g as h, c as M, u as T } from "./index-
|
|
2
|
+
import { s as B } from "./index-B3iQoZwc.js";
|
|
3
|
+
import { s as w } from "./index-smYHb1Ta.js";
|
|
4
|
+
import { g as h, c as M, u as T } from "./index-COPrDtid.js";
|
|
5
5
|
import { s as d, u as b } from "./menu-BIINB-0Y.js";
|
|
6
|
-
import { E as g } from "./index-
|
|
6
|
+
import { E as g } from "./index-CdEEK8I0.js";
|
|
7
7
|
import { u as O } from "./modelComp-CHWFvhCq.js";
|
|
8
8
|
import { useRoute as P } from "vue-router";
|
|
9
|
-
import { c as K } from "./cloneDeep-
|
|
9
|
+
import { c as K } from "./cloneDeep-BfzU0pBe.js";
|
|
10
10
|
import { _ as j } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
11
|
const F = b(), { activeMenuPath: i } = d(F), Q = r([
|
|
12
12
|
{
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as k, onMounted as ae, watch as J, createElementBlock as _, openBlock as m, Fragment as Y, renderList as Z, createElementVNode as N, createCommentVNode as M, toDisplayString as G, resolveComponent as F, createVNode as B, withCtx as H, createBlock as U, unref as S, resolveDynamicComponent as oe } from "vue";
|
|
2
|
-
import { m as le, a as re, b as se } from "./index-
|
|
3
|
-
import ce from "./index-
|
|
4
|
-
import { p as O, u as ue, a as ie } from "./index-
|
|
2
|
+
import { m as le, a as re, b as se } from "./index-b_11tfuG.js";
|
|
3
|
+
import ce from "./index-BpJeYb4X.js";
|
|
4
|
+
import { p as O, u as ue, a as ie } from "./index-smYHb1Ta.js";
|
|
5
5
|
import { u as ee } from "./modelComp-CHWFvhCq.js";
|
|
6
6
|
import { u as te, s as R } from "./menu-BIINB-0Y.js";
|
|
7
|
-
import { i as de, e as me, b as X, c as he, g as ve, a as fe } from "./array-
|
|
7
|
+
import { i as de, e as me, b as X, c as he, g as ve, a as fe } from "./array-DyxKeexo.js";
|
|
8
8
|
import "./index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js";
|
|
9
9
|
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { c as P } from "./cloneDeep-
|
|
10
|
+
import { c as P } from "./cloneDeep-BfzU0pBe.js";
|
|
11
11
|
const ye = { class: "bread-content" }, _e = ["onClick"], ge = { key: 0 }, Ce = {
|
|
12
12
|
__name: "index",
|
|
13
13
|
props: {
|