ss-component-new 1.1.113 → 1.1.116
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-DLX9HpUG.js +1956 -0
- package/dist/array-tWsmTH5r.cjs +7 -0
- package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-B2CowBmY.js} +42 -48
- package/dist/cloneDeep-Fj9bqNcO.cjs +1 -0
- package/dist/index-2BSH90QR.cjs +6 -0
- package/dist/{index-BTt24r3U.cjs → index-B2V71oy_.cjs} +1 -1
- package/dist/{index-DxyREQkR.js → index-B5nXV29K.js} +78 -76
- package/dist/index-B6bxf0h2.js +196 -0
- package/dist/{index-COPrDtid.js → index-BEAnS4I-.js} +1 -1
- package/dist/{index-CyQkKXnK.js → index-BGhy_ENi.js} +255 -187
- package/dist/index-BNf8v3E7.cjs +1 -0
- package/dist/index-BXJIxGj9.cjs +1 -0
- package/dist/index-BYNM1Eo-.js +432 -0
- package/dist/index-B_pYEWlS.cjs +6 -0
- package/dist/index-Bo8JGvd0.cjs +1 -0
- package/dist/index-BvvxVAFa.cjs +1 -0
- package/dist/index-C1qnTNzC.cjs +1 -0
- package/dist/index-C86gx6Ye.cjs +1 -0
- package/dist/{index-B4WYIlOz.cjs → index-CbuB7VDV.cjs} +1 -1
- package/dist/{index-B3iQoZwc.js → index-CdRgYGoU.js} +631 -625
- package/dist/{index-BpJeYb4X.js → index-CeJMZbXG.js} +1 -1
- package/dist/index-D0yDjxaf.cjs +1 -0
- package/dist/index-DCRZ9Y1m.js +199 -0
- package/dist/index-DD3Jbedk.cjs +1 -0
- package/dist/index-DH5pTE-1.js +304 -0
- package/dist/index-DQ8UtE2z.js +74 -0
- package/dist/index-DTs391JS.js +208 -0
- package/dist/{index-BMLnfdpX.js → index-DYee8R31.js} +4 -3
- package/dist/{index-BH3F6_ql.js → index-DdiwlYxv.js} +1025 -1121
- package/dist/{index-ChXKNVG8.cjs → index-DjHNYg39.cjs} +1 -1
- package/dist/{index-b_11tfuG.js → index-DmA5-mTS.js} +6 -6
- package/dist/{index-DLartnmY.js → index-M_Td6T9I.js} +1 -1
- package/dist/index-MpVy5A_K.cjs +1 -0
- package/dist/index-ULdYt3Gk.js +138 -0
- package/dist/index-Uak9xh_Z.cjs +1 -0
- package/dist/index-YlTnI4EI.cjs +1 -0
- package/dist/{index-CqJa9o1o.cjs → index-kHFiVhmA.cjs} +1 -1
- package/dist/{index-DWiZqfBA.js → index-vARVx4Lc.js} +4 -4
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js +7 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSLx4cvQ.js +235 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs +1 -0
- package/dist/login-CBjdvGjn.js +47 -0
- package/dist/login-CHZ1VF7_.cjs +1 -0
- package/dist/main-3fUagSVX.cjs +1 -0
- package/dist/{main-DAPxADXM.js → main-7GSU9TqI.js} +25 -24
- package/dist/menu-BnTNA2Lx.cjs +1 -0
- package/dist/menu-DxrO5JEn.js +34 -0
- package/dist/{modelComp-CHWFvhCq.js → modelComp-BsNooORx.js} +1 -1
- package/dist/modelComp-b_KDs0lh.cjs +1 -0
- package/dist/pinia-8zVC1cUT.cjs +11 -0
- package/dist/pinia-DB5lI5eD.js +4723 -0
- package/dist/{request-BK6KCyS9.js → request-3QszTjDN.js} +1 -1
- package/dist/{request-BrHEv9dn.cjs → request-SLgezlvU.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 +3 -3
- package/dist/array-BYRvPg11.cjs +0 -7
- package/dist/array-DyxKeexo.js +0 -1732
- package/dist/cloneDeep-WwDap0fL.cjs +0 -1
- package/dist/index-5dGTUAu_.cjs +0 -1
- package/dist/index-BIRKKGuW.cjs +0 -1
- package/dist/index-BUxzwz5l.cjs +0 -1
- package/dist/index-CBHJLZo4.cjs +0 -1
- package/dist/index-CVBCwf2F.cjs +0 -6
- package/dist/index-CbphQpiC.cjs +0 -1
- package/dist/index-CdEEK8I0.js +0 -408
- package/dist/index-CumtOgAw.cjs +0 -7
- package/dist/index-DVEWSdUo.cjs +0 -1
- package/dist/index-DmoecEm1.js +0 -205
- package/dist/index-DzJuDGl8.cjs +0 -1
- package/dist/index-EIbm0jBZ.js +0 -2707
- package/dist/index-EQOXj03f.cjs +0 -1
- package/dist/index-QWm4yJ7u.js +0 -135
- package/dist/index-smYHb1Ta.js +0 -456
- package/dist/index-uMboxmjq.cjs +0 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js +0 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js +0 -192
- package/dist/main-DS-YP1Wn.cjs +0 -1
- package/dist/menu-BIINB-0Y.js +0 -1013
- package/dist/menu-B_Az9K_F.cjs +0 -11
- package/dist/modelComp-DY1RniW6.cjs +0 -1
|
@@ -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-DSLx4cvQ.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) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),J=require("./index-C86gx6Ye.cjs"),H=require("./index-CbuB7VDV.cjs"),I=require("./index-BXJIxGj9.cjs"),U=require("./modelComp-b_KDs0lh.cjs"),M=require("./pinia-8zVC1cUT.cjs"),T=require("./array-tWsmTH5r.cjs"),G=require("./menu-BnTNA2Lx.cjs"),F=require("./index-DD3Jbedk.cjs");require("./index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs");const P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),$=require("./cloneDeep-Fj9bqNcO.cjs"),W={class:"bread-content"},z=["onClick"],K={key:0},Q={__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",W,[(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,z),h!==_.value.length-1&&Array.isArray(_.value)?(e.openBlock(),e.createElementBlock("div",K,e.toDisplayString("/"))):e.createCommentVNode("",!0)]))),128))]))}},X=P._export_sfc(Q,[["__scopeId","data-v-ebb4c8e5"]]);function Y(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 Z={class:"system-wrap"},ee={key:0,class:"show-content"},te={key:0,class:"item-menu-content"},ne={key:0,class:"item-view-group"},oe={__name:"index",props:{content:String,jsonContents:Array},emits:["change","contentChange"],setup(g,{emit:D}){const t=g,_=D,y=U.useModelComp(I.pinia);F.useFormToTableComp(I.pinia);const p=e.ref(!0),B=G.useMenuState(),C=e.ref(!0),{itemData:f}=M.storeToRefs(y),h=F.useUnit(I.pinia),{activeMenuPath:E,activeMenuOpenPaths:O,menuTriggerType:L,menus:V}=M.storeToRefs(B),{selectIndex:x,selectTitle:m}=M.storeToRefs(h),w=e.ref([]),S=e.ref([]),b=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=$.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=$.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=$.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=$.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=$.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");Y(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",Z,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(r,{width:"250px"},{default:e.withCtx(()=>[e.createVNode(H.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",ee,[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",te,[(e.openBlock(),e.createBlock(X,{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",ne,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:b,index:k,onContentChange:j},null,40,["itemData","childItemData","index"])):e.createCommentVNode("",!0)]))),128))])])):(e.openBlock(),e.createBlock(l,{key:1}))]}),_:1})]),_:1})])}}},ae=P._export_sfc(oe,[["__scopeId","data-v-497d8814"]]),re={class:"add-model-content"},le={key:0,class:"model-import-data"},ce={class:"import-button"},se={key:0},ue={key:1,class:"model-operate"},ie={class:"model-select"},de={class:"model-fill"},me={key:2,class:"model-view"},fe={__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=U.useModelComp(I.pinia),h=G.useMenuState(I.pinia),{itemData:E,originalData:O}=M.storeToRefs(f),{activeMenuPath:L}=M.storeToRefs(h),V=e.ref(null),x=e.ref(0),m=e.ref([]),w=e.ref(""),S=e.ref(0),b=o=>{_("contentChange",o)},j=o=>{var l;const r=(l=$.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=()=>{V.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",re,[((l=t==null?void 0:t.jsonContents)==null?void 0:l.length)===0&&(t!=null&&t.showButton)?(e.openBlock(),e.createElementBlock("div",le,[e.createElementVNode("div",ce,[e.createElementVNode("input",{type:"file",ref_key:"fileInput",ref:V,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",se,e.toDisplayString(w.value),1)):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="edit"?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",ie,[e.createVNode(J.modelSelect)]),(e.openBlock(),e.createElementBlock("div",{class:"model-show",key:C.value},[e.createVNode(J.modelShow)])),e.createElementVNode("div",de,[e.createVNode(J.modelFill)])])):e.createCommentVNode("",!0),(t==null?void 0:t.mode)==="view"?(e.openBlock(),e.createElementBlock("div",me,[(e.openBlock(),e.createBlock(ae,{content:y.value,onChange:j,jsonContents:B.value,onContentChange:b,key:C.value},null,8,["content","jsonContents"]))])):e.createCommentVNode("",!0)])}}},he=P._export_sfc(fe,[["__scopeId","data-v-77dec451"]]);exports.default=he;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { c as A } from "./pinia-DB5lI5eD.js";
|
|
2
|
+
const w = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/, O = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/, $ = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
|
|
3
|
+
function E(r, t) {
|
|
4
|
+
if (r === "__proto__" || r === "constructor" && t && typeof t == "object" && "prototype" in t) {
|
|
5
|
+
P(r);
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
function P(r) {
|
|
11
|
+
console.warn(`[destr] Dropping "${r}" key to prevent prototype pollution.`);
|
|
12
|
+
}
|
|
13
|
+
function h(r, t = {}) {
|
|
14
|
+
if (typeof r != "string")
|
|
15
|
+
return r;
|
|
16
|
+
if (r[0] === '"' && r[r.length - 1] === '"' && r.indexOf("\\") === -1)
|
|
17
|
+
return r.slice(1, -1);
|
|
18
|
+
const e = r.trim();
|
|
19
|
+
if (e.length <= 9)
|
|
20
|
+
switch (e.toLowerCase()) {
|
|
21
|
+
case "true":
|
|
22
|
+
return !0;
|
|
23
|
+
case "false":
|
|
24
|
+
return !1;
|
|
25
|
+
case "undefined":
|
|
26
|
+
return;
|
|
27
|
+
case "null":
|
|
28
|
+
return null;
|
|
29
|
+
case "nan":
|
|
30
|
+
return Number.NaN;
|
|
31
|
+
case "infinity":
|
|
32
|
+
return Number.POSITIVE_INFINITY;
|
|
33
|
+
case "-infinity":
|
|
34
|
+
return Number.NEGATIVE_INFINITY;
|
|
35
|
+
}
|
|
36
|
+
if (!$.test(r)) {
|
|
37
|
+
if (t.strict)
|
|
38
|
+
throw new SyntaxError("[destr] Invalid JSON");
|
|
39
|
+
return r;
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
if (w.test(r) || O.test(r)) {
|
|
43
|
+
if (t.strict)
|
|
44
|
+
throw new Error("[destr] Possible prototype pollution");
|
|
45
|
+
return JSON.parse(r, E);
|
|
46
|
+
}
|
|
47
|
+
return JSON.parse(r);
|
|
48
|
+
} catch (n) {
|
|
49
|
+
if (t.strict)
|
|
50
|
+
throw n;
|
|
51
|
+
return r;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function z(r, t) {
|
|
55
|
+
if (r == null)
|
|
56
|
+
return;
|
|
57
|
+
let e = r;
|
|
58
|
+
for (let n = 0; n < t.length; n++) {
|
|
59
|
+
if (e == null || e[t[n]] == null)
|
|
60
|
+
return;
|
|
61
|
+
e = e[t[n]];
|
|
62
|
+
}
|
|
63
|
+
return e;
|
|
64
|
+
}
|
|
65
|
+
function d(r, t, e) {
|
|
66
|
+
if (e.length === 0)
|
|
67
|
+
return t;
|
|
68
|
+
const n = e[0];
|
|
69
|
+
return e.length > 1 && (t = d(
|
|
70
|
+
typeof r != "object" || r === null || !Object.prototype.hasOwnProperty.call(r, n) ? Number.isInteger(Number(e[1])) ? [] : {} : r[n],
|
|
71
|
+
t,
|
|
72
|
+
Array.prototype.slice.call(e, 1)
|
|
73
|
+
)), Number.isInteger(Number(n)) && Array.isArray(r) ? r.slice()[n] : Object.assign({}, r, { [n]: t });
|
|
74
|
+
}
|
|
75
|
+
function N(r, t) {
|
|
76
|
+
if (r == null || t.length === 0)
|
|
77
|
+
return r;
|
|
78
|
+
if (t.length === 1) {
|
|
79
|
+
if (r == null)
|
|
80
|
+
return r;
|
|
81
|
+
if (Number.isInteger(t[0]) && Array.isArray(r))
|
|
82
|
+
return Array.prototype.slice.call(r, 0).splice(t[0], 1);
|
|
83
|
+
const e = {};
|
|
84
|
+
for (const n in r)
|
|
85
|
+
e[n] = r[n];
|
|
86
|
+
return delete e[t[0]], e;
|
|
87
|
+
}
|
|
88
|
+
if (r[t[0]] == null) {
|
|
89
|
+
if (Number.isInteger(t[0]) && Array.isArray(r))
|
|
90
|
+
return Array.prototype.concat.call([], r);
|
|
91
|
+
const e = {};
|
|
92
|
+
for (const n in r)
|
|
93
|
+
e[n] = r[n];
|
|
94
|
+
return e;
|
|
95
|
+
}
|
|
96
|
+
return d(
|
|
97
|
+
r,
|
|
98
|
+
N(
|
|
99
|
+
r[t[0]],
|
|
100
|
+
Array.prototype.slice.call(t, 1)
|
|
101
|
+
),
|
|
102
|
+
[t[0]]
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function I(r, t) {
|
|
106
|
+
return t.map((e) => e.split(".")).map((e) => [e, z(r, e)]).filter((e) => e[1] !== void 0).reduce((e, n) => d(e, n[1], n[0]), {});
|
|
107
|
+
}
|
|
108
|
+
function S(r, t) {
|
|
109
|
+
return t.map((e) => e.split(".")).reduce((e, n) => N(e, n), r);
|
|
110
|
+
}
|
|
111
|
+
function g(r, {
|
|
112
|
+
storage: t,
|
|
113
|
+
serializer: e,
|
|
114
|
+
key: n,
|
|
115
|
+
debug: s,
|
|
116
|
+
pick: c,
|
|
117
|
+
omit: f,
|
|
118
|
+
beforeHydrate: o,
|
|
119
|
+
afterHydrate: i
|
|
120
|
+
}, u, l = !0) {
|
|
121
|
+
try {
|
|
122
|
+
l && (o == null || o(u));
|
|
123
|
+
const a = t.getItem(n);
|
|
124
|
+
if (a) {
|
|
125
|
+
const p = e.deserialize(a), y = c ? I(p, c) : p, _ = f ? S(y, f) : y;
|
|
126
|
+
r.$patch(_);
|
|
127
|
+
}
|
|
128
|
+
l && (i == null || i(u));
|
|
129
|
+
} catch (a) {
|
|
130
|
+
s && console.error("[pinia-plugin-persistedstate]", a);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
function m(r, {
|
|
134
|
+
storage: t,
|
|
135
|
+
serializer: e,
|
|
136
|
+
key: n,
|
|
137
|
+
debug: s,
|
|
138
|
+
pick: c,
|
|
139
|
+
omit: f
|
|
140
|
+
}) {
|
|
141
|
+
try {
|
|
142
|
+
const o = c ? I(r, c) : r, i = f ? S(o, f) : o, u = e.serialize(i);
|
|
143
|
+
t.setItem(n, u);
|
|
144
|
+
} catch (o) {
|
|
145
|
+
s && console.error("[pinia-plugin-persistedstate]", o);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function F(r, t, e) {
|
|
149
|
+
const { pinia: n, store: s, options: { persist: c = e } } = r;
|
|
150
|
+
if (!c)
|
|
151
|
+
return;
|
|
152
|
+
if (!(s.$id in n.state.value)) {
|
|
153
|
+
const i = n._s.get(s.$id.replace("__hot:", ""));
|
|
154
|
+
i && Promise.resolve().then(() => i.$persist());
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
const o = (Array.isArray(c) ? c : c === !0 ? [{}] : [c]).map(t);
|
|
158
|
+
s.$hydrate = ({ runHooks: i = !0 } = {}) => {
|
|
159
|
+
o.forEach((u) => {
|
|
160
|
+
g(s, u, r, i);
|
|
161
|
+
});
|
|
162
|
+
}, s.$persist = () => {
|
|
163
|
+
o.forEach((i) => {
|
|
164
|
+
m(s.$state, i);
|
|
165
|
+
});
|
|
166
|
+
}, o.forEach((i) => {
|
|
167
|
+
g(s, i, r), s.$subscribe(
|
|
168
|
+
(u, l) => m(l, i),
|
|
169
|
+
{ detached: !0 }
|
|
170
|
+
);
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function k(r = {}) {
|
|
174
|
+
return function(t) {
|
|
175
|
+
F(
|
|
176
|
+
t,
|
|
177
|
+
(e) => ({
|
|
178
|
+
key: (r.key ? r.key : (n) => n)(e.key ?? t.store.$id),
|
|
179
|
+
debug: e.debug ?? r.debug ?? !1,
|
|
180
|
+
serializer: e.serializer ?? r.serializer ?? {
|
|
181
|
+
serialize: (n) => JSON.stringify(n),
|
|
182
|
+
deserialize: (n) => h(n)
|
|
183
|
+
},
|
|
184
|
+
storage: e.storage ?? r.storage ?? window.localStorage,
|
|
185
|
+
beforeHydrate: e.beforeHydrate,
|
|
186
|
+
afterHydrate: e.afterHydrate,
|
|
187
|
+
pick: e.pick,
|
|
188
|
+
omit: e.omit
|
|
189
|
+
}),
|
|
190
|
+
r.auto ?? !1
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
var J = k();
|
|
195
|
+
const T = A();
|
|
196
|
+
T.use(J);
|
|
197
|
+
export {
|
|
198
|
+
T as p
|
|
199
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const c=require("vue"),Be=require("./index-BXJIxGj9.cjs"),I=require("./index-B_pYEWlS.cjs"),P=require("./pinia-8zVC1cUT.cjs"),g=require("./cloneDeep-Fj9bqNcO.cjs"),Ke=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=P.defineStore("formToTableComp",{state:()=>({selectArray:[],selectString:""}),actions:{setSelectArray(d){this.selectArray=d},setSelectString(d){this.selectString=d}}}),Fe=P.defineStore("unit",{state:()=>({selectIndex:"",selectMenu:"",selectTitle:[]}),actions:{setSelectIndex(d){this.selectIndex=d},setSelectMenu(d){this.selectMenu=d},setSelectTitle(d){this.selectTitle=d}}}),Qe=(d,h)=>{const e=h==null?void 0:h.split("-");return He(d,e)},He=(d,h)=>{var i;let e=d,l=h;return Array.isArray(e)?e=e==null?void 0:e[parseInt(g.cloneDeep(l==null?void 0:l[0]))]:Array.isArray(e==null?void 0:e.children)&&(e=(i=e==null?void 0:e.children)==null?void 0:i[parseInt(g.cloneDeep(l==null?void 0:l[0]))]),l==null||l.shift(),(l==null?void 0:l.length)>0&&(e=He(e,l)),e},qe=(d,h)=>{let e=d,l=h;return Array.isArray(e)&&(e=e==null?void 0:e.map((i,s)=>{if(Array.isArray(i)){let D={};return i=i==null?void 0:i.forEach((m,N)=>{var O;(O=l==null?void 0:l[N])!=null&&O.prop?D[l[N].prop]=m:Array.isArray(m)&&(D.children=qe(m,l))}),Object.assign(D,{id:s})}else return i})),e},Re=(d,h,e)=>{let l=d,i=h;return l=l==null?void 0:l.map((s,D)=>{var m,N;return!Array.isArray(s)||!((m=i==null?void 0:i[D])!=null&&m.label)&&!e||(s.unshift(((N=i==null?void 0:i[D])==null?void 0:N.label)??""),s.some(O=>Array.isArray(O))&&(s=s==null?void 0:s.map(O=>{var q;return Array.isArray(O)&&(O=Re(O,(q=i==null?void 0:i[D])==null?void 0:q.children,e)),O}))),s}),l},Xe=(d,h,e)=>{if(h==="")return d==null?void 0:d.filter(l=>(l==null?void 0:l.id)!==e);{const l=h.split("-");return Ye(d,l,e)}},Ye=(d,h,e)=>{let l=d,i=h;return(i==null?void 0:i.length)===0?l=l==null?void 0:l.filter(s=>s.id!==e):l=l==null?void 0:l.map(s=>(s.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),s=Se(s,i,e)),s)),l},Se=(d,h,e)=>{var s,D;let l=d,i=h;return(i==null?void 0:i.length)===0?l.children=(s=l.children)==null?void 0:s.filter(m=>m.id!==e):l.children=(D=l.children)==null?void 0:D.map(m=>(m.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),m=Se(m,i,e)),m)),l},Ze=(d,h,e)=>{if(h==="")return e;{const l=h.split("-");return Ie(d,l,e)}},Ie=(d,h,e)=>{let l=d,i=h;return(i==null?void 0:i.length)===0?l=e:l=l==null?void 0:l.map(s=>(s.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),s=Ue(s,i,e)),s)),l},Ue=(d,h,e)=>{var s;let l=d,i=h;return(i==null?void 0:i.length)===0?l.children=e:l.children=(s=l.children)==null?void 0:s.map(D=>(D.id.toString()===(i==null?void 0:i[0])&&(i==null||i.shift(),D=Ue(D,i,e)),D)),l},H=c.ref(0),W=d=>(H.value++,d==null?void 0:d.map(e=>Array.isArray(e)?W(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?void 0:e.label)==="操作"?"160":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:W(e.children)??void 0})),Me=d=>{const h=[];function e(l){if(Array.isArray(l))for(const i of l)!i.children||i.children.length===0?h.push(i):e(i.children)}return e(d),h},_e=d=>g.cloneDeep(d).map(e=>(Array.isArray(e)&&(e=e.map(l=>(Array.isArray(l)?l=W(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?void 0:l.label)==="操作"?"160":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:W(l.children)},H.value++),l))),e)),M=(d,h)=>{var i;if(h.length===0)return d;let e=d;const l=parseInt(h[0]);if(isNaN(l)||l<0||l>=e.length)return null;if(e=e[l],h.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])&&(h.shift(),Array.isArray((i=e[e.length-1])==null?void 0:i[0])?e=M(e[e.length-1],h):e=M([e[e.length-1]],h)),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","contentClick"],setup(d,{emit:h}){const e=d,l=h,i=c.ref([]),s=c.ref([]),D=c.ref(""),m=c.ref(),N=c.ref(!0),O=c.ref(0),q=c.ref(!1),R=c.ref(""),j=c.ref(!1),U=c.ref([]),G=c.ref(!1),J=c.ref([]),K=c.ref([]),w=c.ref(),V=c.ref(),Ve=je(Be.pinia),$=c.ref(),z=Fe(Be.pinia),{selectIndex:L,selectMenu:v,selectTitle:Q}=P.storeToRefs(z),{selectString:F}=P.storeToRefs(Ve),$e=c.ref(720),ze=()=>{j.value=!1},Pe=a=>{var f,t,r,u,b,k;if(le(a),a!=null&&a.children&&Array.isArray(a==null?void 0:a.children)){const y=!Array.isArray(Q.value)&&((f=Q.value)==null?void 0:f.key)!=="main"?[]:Q.value;y.push({key:v.value===""?(t=a==null?void 0:a.id)==null?void 0:t.toString():v.value+"-"+((r=a==null?void 0:a.id)==null?void 0:r.toString()),value:a[(u=Object.keys(a))==null?void 0:u.filter(A=>A!=="index"&&A!=="id")[0]]}),z.setSelectMenu(v.value===""?(b=a==null?void 0:a.id)==null?void 0:b.toString():v.value+"-"+((k=a==null?void 0:a.id)==null?void 0:k.toString())),z.setSelectTitle(y),z.setSelectIndex(e!=null&&e.index||(e==null?void 0:e.index)===0?e==null?void 0:e.index.toString():"")}},ee=a=>{var t;const f=(t=g.cloneDeep(e.itemData))==null?void 0:t.map(r=>((r==null?void 0:r.key)==="tableContents"&&(r.contents=a),r));l("contentChange",{contents:f,index:e.index})},We=a=>{l("contentClick",a)};c.watch(()=>e.changedContent,()=>{var t,r;if(!e.changedContent)return;let a=(t=s.value)==null?void 0:t.map(u=>{var b;return u.id===((b=e.changedContent)==null?void 0:b.id)&&(u={...e.changedContent,id:e.changedContent.newId?e.changedContent.newId:e.changedContent.id},delete u.newId),u});const f=(r=e.itemData)==null?void 0:r.map(u=>((u==null?void 0:u.key)==="tableContents"&&(u.contents=a),u));s.value=a,l("contentChange",{contents:f,index:e.index}),l("change",{content:a,index:e==null?void 0:e.index,buttonName:""})},{deep:!0,immediate:!0});const le=a=>{var f;if(a!=null&&a.children&&Array.isArray(a==null?void 0:a.children)){let t=[];const r=g.cloneDeep(w.value);(f=a==null?void 0:a.children)==null||f.forEach((u,b)=>{if(!Array.isArray(u))t.push(u);else{let k={};u==null||u.forEach((y,A)=>{var S;(S=r==null?void 0:r[A])!=null&&S.prop?k[r[A].prop]=y:Array.isArray(y)&&(k.children=y)}),t.push(Object.assign(k,{id:b}))}}),s.value=t}},ie=(a,f)=>{var t;if(D.value="",G.value=!0,N.value=!0,l("onButtonClick",a,f),a==="删除"){s.value=(t=g.cloneDeep(s.value))==null?void 0:t.filter(u=>(u==null?void 0:u.id)!==(f==null?void 0:f.id));const r=Xe($.value,v.value,f==null?void 0:f.id);ee(r),l("change",{content:r,singleContent:f,index:e==null?void 0:e.index,buttonName:a})}else a==="新增"?(R.value="新增",X(""),j.value=!0):a==="编辑"?(R.value="编辑",X(f),j.value=!0):a==="查看"&&(R.value="查看",X(f),G.value=!1,N.value=!1,j.value=!0)},X=a=>{var t;const f=[];(t=g.cloneDeep(i.value))==null||t.forEach((r,u)=>{r.label!==""&&(r==null?void 0:r.label)!=="操作"&&f.push({label:(r==null?void 0:r.label)??"",name:(r==null?void 0:r.prop)??"t"+u,type:!(r!=null&&r.formType)||(r==null?void 0:r.formType)===""?"Input":r==null?void 0:r.formType,value:(a==null?void 0:a[r==null?void 0:r.prop])??"",id:(r==null?void 0:r.id)??u,contents:(r==null?void 0:r.options)??[],width:1,isHidden:r==null?void 0:r.isHidden})}),a===""||!a||(D.value=a==null?void 0:a.id),K.value=f,console.log(111,K.value)};c.onMounted(()=>{});const Ge=()=>{let a,f=g.cloneDeep(s.value);D.value===""?(O.value++,f.push(Object.assign(V.value,{id:O.value})),a=Object.assign(V.value,{id:O.value})):f=f==null?void 0:f.map(r=>((r==null?void 0:r.id)===D.value&&(r=Object.assign(r,V.value),a=r),r)),s.value=f;const t=Ze($.value,v.value,f);ee(t),j.value=!1,l("change",{content:t,singleContent:a,index:e==null?void 0:e.index,buttonName:R.value})},Je=a=>{V.value=a};return c.watch(()=>[e.itemData,F.value,L.value,v.value],()=>{var S,ae,re,ne,oe,se,ce,de,fe,ue,pe,he,ye,te,ge,Ae,De,be,ke,Te,me,Oe,Ee,Ce,ve;console.log(666,e.itemData);const a=(S=g.cloneDeep(e.itemData))==null?void 0:S.filter(o=>(o==null?void 0:o.key)==="header"),f=(ae=g.cloneDeep(e.itemData))==null?void 0:ae.filter(o=>(o==null?void 0:o.key)==="tableIndexColumn")[0],t=(re=g.cloneDeep(e.itemData))==null?void 0:re.find(o=>(o==null?void 0:o.key)==="page"),r=(ne=g.cloneDeep(e.itemData))==null?void 0:ne.find(o=>(o==null?void 0:o.key)==="rowButton"),u=(oe=g.cloneDeep(e.itemData))==null?void 0:oe.find(o=>(o==null?void 0:o.key)==="extraButton"),b=(se=g.cloneDeep(e.itemData))==null?void 0:se.filter(o=>(o==null?void 0:o.key)==="tableContents"),k=(ce=g.cloneDeep(e.itemData))==null?void 0:ce.filter(o=>(o==null?void 0:o.key)==="tableIndex");q.value=(t==null?void 0:t.contents)??!0;let y=[];F.value===""?y=a==null?void 0:a[0]:y=(a==null?void 0:a.find(o=>(o==null?void 0:o.selectLabel)==="("+F.value+")"))??(a==null?void 0:a.find(o=>!(o!=null&&o.selectLabel)));let A=[];if(F.value===""?A=k==null?void 0:k[0]:A=(k==null?void 0:k.find(o=>(o==null?void 0:o.selectLabel)==="("+F.value+")"))??(k==null?void 0:k.find(o=>!(o!=null&&o.selectLabel))),((de=y==null?void 0:y.contents)==null?void 0:de.length)>0){let o=[];if(A!=null&&A.contents&&((fe=A==null?void 0:A.contents)==null?void 0:fe.length)!==0&&o.push({label:(f==null?void 0:f.contents)??"",prop:"index",sortable:!1}),y!=null&&y.contents.some(p=>Array.isArray(p)&&(p==null?void 0:p.find(n=>n.children)))){if(v.value==="")o=(ue=_e(g.cloneDeep(y==null?void 0:y.contents))[0])==null?void 0:ue.filter(p=>!Array.isArray(p));else{const p=v.value.split("-");o=(pe=M(_e(g.cloneDeep(y==null?void 0:y.contents)),p))==null?void 0:pe.filter(n=>!Array.isArray(n))}o.unshift({label:(f==null?void 0:f.contents)??"",prop:"index",sortable:!1})}else{const p=y!=null&&y.contents.some(n=>Array.isArray(n))?(he=y==null?void 0:y.contents)==null?void 0:he[0]:y==null?void 0:y.contents;p==null||p.forEach((n,_)=>{(n==null?void 0:n.label)!==""&&o.push({label:(n==null?void 0:n.label)??"",prop:(n==null?void 0:n.label)==="操作"?"operate":(n==null?void 0:n.prop)??"a"+_,width:(n==null?void 0:n.label)==="操作"?"160":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)??_,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)??[]})})}i.value=o;let B=(te=(ye=Me(g.cloneDeep(i.value)))==null?void 0:ye.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}));w.value=B;let T=[];if(F.value===""?T=b==null?void 0:b[0]:T=(b==null?void 0:b.find(p=>(p==null?void 0:p.selectLabel)==="("+F.value+")"))??(b==null?void 0:b.find(p=>!(p!=null&&p.selectLabel))),((ge=T==null?void 0:T.contents)==null?void 0:ge.length)!==0){let p=Array.isArray((Ae=T==null?void 0:T.contents)==null?void 0:Ae[0])&&((De=T==null?void 0:T.contents)!=null&&De[0].every(E=>Array.isArray(E)))?(be=g.cloneDeep(T==null?void 0:T.contents))==null?void 0:be[0]:g.cloneDeep(T==null?void 0:T.contents);A!=null&&A.contents&&((ke=A==null?void 0:A.contents)==null?void 0:ke.length)!==0&&(p=(Te=g.cloneDeep(p))==null?void 0:Te.map((E,xe)=>{if(!Array.isArray(E)){let x={};for(let C in E)C!=="id"&&C!=="index"&&(x[C]=E[C]);E=Object.values(x)}return E}));const n=!!((me=i.value)!=null&&me.find(E=>E.prop==="index"));p=Re(g.cloneDeep(p),A==null?void 0:A.contents,n);const _=[];p==null||p.forEach((E,xe)=>{let x={};Array.isArray(E)?E==null||E.forEach((C,Y)=>{var Ne;(Ne=B==null?void 0:B[Y])!=null&&Ne.prop&&!Array.isArray(C)?x[B[Y].prop]=C:Array.isArray(C)&&(C.find(Z=>(Z==null?void 0:Z.key)==="tableContentName")?x[B[Y].prop]=C:x.children=qe(C,B))}):x=E,x.id?_.push(x):_.push(Object.assign(x,{id:xe}))}),s.value=_}else{let p=(Oe=g.cloneDeep(B))==null?void 0:Oe.reduce((n,_)=>(n[_.prop]="测试数据",n),{});m.value=p,s.value=[Object.assign({},m.value,{id:O.value})]}}else i.value=[],s.value=[];if(((Ee=r==null?void 0:r.contents)==null?void 0:Ee.length)>0?U.value=r==null?void 0:r.contents:U.value=[],((Ce=u==null?void 0:u.contents)==null?void 0:Ce.length)>0?J.value=u==null?void 0:u.contents:J.value=[],O.value=((ve=s==null?void 0:s.value)==null?void 0:ve.length)??0,L.value!==""){const o=Qe(g.cloneDeep(s.value),v.value);$.value=s.value,le(o)}else $.value=s.value},{deep:!0,immediate:!0}),(a,f)=>{var t;return c.openBlock(),c.createElementBlock("div",we,[(c.openBlock(),c.createBlock(I.ssTable,{columns:i.value,key:i.value,tableData:s.value,isShowPagination:q.value,isShowEdit:!1,isShowDelete:!1,onDbClickRow:Pe,extraButton:J.value,onButtonClick:f[0]||(f[0]=r=>ie(r,"")),onContentClick:We},c.createSlots({_:2},[((t=U.value)==null?void 0:t.length)>0?{name:"actions",fn:c.withCtx(({item:r})=>[(c.openBlock(!0),c.createElementBlock(c.Fragment,null,c.renderList(U.value,(u,b)=>(c.openBlock(),c.createElementBlock("div",{key:b},[c.createElementVNode("div",{style:c.normalizeStyle({color:u==null?void 0:u.textColor}),class:"extra-button-label",onClick:k=>ie(u==null?void 0:u.label,r)},c.toDisplayString(u==null?void 0:u.label),13,Le)]))),128))]),key:"0"}:void 0]),1032,["columns","tableData","isShowPagination","extraButton"])),c.createVNode(I.ssDialog,{title:R.value,visible:j.value,width:$e.value,onBeforeDestroy:ze},{default:c.withCtx(()=>[c.createVNode(I.ssForm,{rowContents:K.value,isEnableWrap:!1,onChange:Je,isEdit:N.value},null,8,["rowContents","isEdit"])]),footer:c.withCtx(()=>[G.value?(c.openBlock(),c.createElementBlock("div",el,[c.createElementVNode("div",{onClick:f[1]||(f[1]=r=>j.value=!1),class:"cancel-button"},c.toDisplayString("取消")),c.createElementVNode("div",{class:"ok-button",onClick:Ge},c.toDisplayString("确认"))])):c.createCommentVNode("",!0)]),_:1},8,["title","visible","width"])])}}},il=Ke._export_sfc(ll,[["__scopeId","data-v-0d38acd5"]]);exports.ssTable=il;exports.useFormToTableComp=je;exports.useUnit=Fe;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { ref as r, computed as x, reactive as C, nextTick as D } from "vue";
|
|
2
|
+
import { s as K, E as y } from "./pinia-DB5lI5eD.js";
|
|
3
|
+
import { g as R, c as E, u as T, d as N } from "./index-BEAnS4I-.js";
|
|
4
|
+
import { u as F } from "./menu-DxrO5JEn.js";
|
|
5
|
+
import { c as v } from "./cloneDeep-B2CowBmY.js";
|
|
6
|
+
const P = F(), { activeMenuPath: B } = K(P), O = r([
|
|
7
|
+
{
|
|
8
|
+
label: "角色名称",
|
|
9
|
+
value: "",
|
|
10
|
+
name: "roleName"
|
|
11
|
+
}
|
|
12
|
+
]), j = r([
|
|
13
|
+
{
|
|
14
|
+
label: "查询"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: "重置"
|
|
18
|
+
}
|
|
19
|
+
]), b = C({
|
|
20
|
+
isFilter: !1,
|
|
21
|
+
filterForm: {}
|
|
22
|
+
}), M = r(!1), _ = (a) => {
|
|
23
|
+
console.log("handleQueryChange", a), b.isFilter = !0, b.filterForm = a;
|
|
24
|
+
}, c = r([
|
|
25
|
+
{
|
|
26
|
+
key: "extraButton",
|
|
27
|
+
contents: [
|
|
28
|
+
{
|
|
29
|
+
label: "新增"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: "rowButton",
|
|
35
|
+
contents: [
|
|
36
|
+
{
|
|
37
|
+
label: "授权",
|
|
38
|
+
textColor: "blue"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: "编辑"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "删除",
|
|
45
|
+
textColor: "red"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
key: "tableIndex",
|
|
51
|
+
contents: []
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "header",
|
|
55
|
+
contents: [
|
|
56
|
+
{
|
|
57
|
+
label: "角色名称",
|
|
58
|
+
prop: "roleName"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: "角色状态",
|
|
62
|
+
formType: "Radio",
|
|
63
|
+
prop: "roleStatus",
|
|
64
|
+
options: [
|
|
65
|
+
{
|
|
66
|
+
label: "启用",
|
|
67
|
+
value: "启用"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "禁用",
|
|
71
|
+
value: "禁用"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "角色排序",
|
|
77
|
+
prop: "roleOrder",
|
|
78
|
+
formType: "Number"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: "权限",
|
|
82
|
+
prop: "roleAuthority",
|
|
83
|
+
isHidden: !0
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "操作"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: "tableContents"
|
|
92
|
+
// contents: [
|
|
93
|
+
// [
|
|
94
|
+
// "超级管理员",
|
|
95
|
+
// "启动",
|
|
96
|
+
// 1,
|
|
97
|
+
// []
|
|
98
|
+
// // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
99
|
+
// ], [
|
|
100
|
+
// "普通管理员",
|
|
101
|
+
// "启动",
|
|
102
|
+
// 2,
|
|
103
|
+
// []
|
|
104
|
+
// // ['元元模型/系统/查询', '元元模型/系统/新增', '元元模型/系统/编辑']
|
|
105
|
+
// ],
|
|
106
|
+
// ]
|
|
107
|
+
// contents:undefined
|
|
108
|
+
}
|
|
109
|
+
]), z = x(() => c.value), Q = (a) => {
|
|
110
|
+
var e;
|
|
111
|
+
c.value = (e = c.value) == null ? void 0 : e.map((t) => t.key === "tableContents" ? {
|
|
112
|
+
...t,
|
|
113
|
+
contents: a.content
|
|
114
|
+
} : t), console.log("handleItemDataChange", a), m(a.singleContent, a.buttonName);
|
|
115
|
+
}, V = (a) => {
|
|
116
|
+
var n, l, o;
|
|
117
|
+
console.log("handleContentChange", a);
|
|
118
|
+
const e = v(a);
|
|
119
|
+
let t = (l = (n = e == null ? void 0 : e.contents) == null ? void 0 : n.find((s) => s.key === "tableContents")) == null ? void 0 : l.contents;
|
|
120
|
+
c.value = (o = c.value) == null ? void 0 : o.map((s) => s.key === "tableContents" ? {
|
|
121
|
+
...s,
|
|
122
|
+
contents: t == null ? void 0 : t.map((g) => Object.keys(g).filter((p) => p.startsWith("a")).map((p) => g[p]))
|
|
123
|
+
} : s), console.log("rawData", c.value);
|
|
124
|
+
}, d = r({}), w = r(), h = async (a, e) => {
|
|
125
|
+
var n, l;
|
|
126
|
+
const t = await a(e);
|
|
127
|
+
if (((n = t == null ? void 0 : t.data) == null ? void 0 : n.code) === 200)
|
|
128
|
+
return t.data.result || ((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200;
|
|
129
|
+
}, I = (a, e) => {
|
|
130
|
+
e == null || e.forEach((t) => {
|
|
131
|
+
a == null || a.forEach((n) => {
|
|
132
|
+
var l, o;
|
|
133
|
+
n.path === t.path && (!n.children || ((l = n.children) == null ? void 0 : l.length) == 0) ? n.checkedButtons = t.checkedButtons : n.children && ((o = n.children) == null ? void 0 : o.length) > 0 && I(n.children, e);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
}, S = (a) => {
|
|
137
|
+
a == null || a.forEach((e) => {
|
|
138
|
+
var t;
|
|
139
|
+
e.children && ((t = e.children) == null ? void 0 : t.length) > 0 ? S(e.children) : e.checkedButtons = [];
|
|
140
|
+
});
|
|
141
|
+
}, q = async (a, e) => {
|
|
142
|
+
var t, n, l;
|
|
143
|
+
switch (console.log("clickRowButton", a, e, u.value), d.value = v(e), a) {
|
|
144
|
+
case "授权":
|
|
145
|
+
S(u.value), await D(), (l = (n = (t = c.value) == null ? void 0 : t.find((s) => s.key === "header")) == null ? void 0 : n.contents) == null || l.findIndex((s) => s.prop === "roleAuthority");
|
|
146
|
+
const o = e.roleAuthority;
|
|
147
|
+
(o == null ? void 0 : o.length) > 0 && I(u.value, o), f.show = !0, console.log("角色的权限", o), console.log("角色的tree", u.value), console.log("角色的pageData", c.value);
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
}, H = () => {
|
|
151
|
+
f.show = !1;
|
|
152
|
+
}, i = r(), W = async (a) => {
|
|
153
|
+
const e = await h(R, {
|
|
154
|
+
key: {
|
|
155
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
156
|
+
pageKey: a
|
|
157
|
+
}
|
|
158
|
+
}), t = e == null ? void 0 : e.map((n) => {
|
|
159
|
+
var l;
|
|
160
|
+
return {
|
|
161
|
+
id: n.id,
|
|
162
|
+
rowData: (l = n == null ? void 0 : n.value) == null ? void 0 : l.rowData
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
return console.log("tempRes", t), t == null ? void 0 : t.map((n) => {
|
|
166
|
+
var l;
|
|
167
|
+
if (Array.isArray(n == null ? void 0 : n.rowData)) {
|
|
168
|
+
let o = { id: n.id };
|
|
169
|
+
return (l = n == null ? void 0 : n.rowData) == null || l.forEach((s, g) => {
|
|
170
|
+
o[`a${g}`] = s;
|
|
171
|
+
}), o;
|
|
172
|
+
} else
|
|
173
|
+
return {
|
|
174
|
+
...n.rowData,
|
|
175
|
+
id: n.id
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
}, m = (a, e) => {
|
|
179
|
+
if (e === "新增") {
|
|
180
|
+
const t = v(a);
|
|
181
|
+
delete t.id, h(E, {
|
|
182
|
+
key: {
|
|
183
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
184
|
+
pageKey: B.value
|
|
185
|
+
},
|
|
186
|
+
value: {
|
|
187
|
+
rowData: t
|
|
188
|
+
}
|
|
189
|
+
}).then((n) => {
|
|
190
|
+
i.value = {
|
|
191
|
+
...a,
|
|
192
|
+
newId: n
|
|
193
|
+
}, e && n && y.success(e + "成功");
|
|
194
|
+
});
|
|
195
|
+
} else e === "编辑" ? h(T, {
|
|
196
|
+
id: a.id,
|
|
197
|
+
key: {
|
|
198
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
199
|
+
pageKey: B.value
|
|
200
|
+
},
|
|
201
|
+
value: {
|
|
202
|
+
rowData: a
|
|
203
|
+
}
|
|
204
|
+
}).then((t) => {
|
|
205
|
+
e && t && y.success(e + "成功"), f.show = !1;
|
|
206
|
+
}) : e === "删除" && (console.log(222, a), h(N, {
|
|
207
|
+
id: a.id
|
|
208
|
+
}).then((t) => {
|
|
209
|
+
e && t && y.success(e + "成功");
|
|
210
|
+
}));
|
|
211
|
+
}, k = (a) => {
|
|
212
|
+
let e = [];
|
|
213
|
+
return a == null || a.forEach((t) => {
|
|
214
|
+
var n;
|
|
215
|
+
if (t.checkedButtons && ((n = t.checkedButtons) == null ? void 0 : n.length) > 0) {
|
|
216
|
+
const l = {
|
|
217
|
+
path: t.path,
|
|
218
|
+
checkedButtons: t.checkedButtons
|
|
219
|
+
};
|
|
220
|
+
e = e.concat(l);
|
|
221
|
+
}
|
|
222
|
+
t.children && (e = e.concat(k(t.children)));
|
|
223
|
+
}), e;
|
|
224
|
+
}, $ = () => {
|
|
225
|
+
var a, e, t;
|
|
226
|
+
(t = (e = (a = c.value) == null ? void 0 : a.find((n) => n.key === "header")) == null ? void 0 : e.contents) == null || t.findIndex((n) => n.prop === "roleAuthority"), console.log(122, d.value, k(u.value)), i.value = {
|
|
227
|
+
...d.value,
|
|
228
|
+
roleAuthority: k(u.value)
|
|
229
|
+
// ['a' + authorityIndex]: checkedKeys
|
|
230
|
+
}, D(() => {
|
|
231
|
+
console.log("clickSubmitAuthority", i.value, c.value), m(i.value, "编辑");
|
|
232
|
+
});
|
|
233
|
+
}, f = C({
|
|
234
|
+
show: !1,
|
|
235
|
+
title: "角色授权",
|
|
236
|
+
width: "30%",
|
|
237
|
+
draggable: !0
|
|
238
|
+
}), G = ({ isPenultimate: a }, e) => {
|
|
239
|
+
var t, n;
|
|
240
|
+
return console.log("isPenultimate", a, e), ((n = (t = e == null ? void 0 : e.data) == null ? void 0 : t.renderButtons) == null ? void 0 : n.length) > 0 ? "is-penultimate" : "";
|
|
241
|
+
}, u = r([]), J = r([
|
|
242
|
+
{
|
|
243
|
+
path: "资源管理",
|
|
244
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
path: "资源管理/人员",
|
|
248
|
+
buttons: ["查询", "新增", "编辑", "删除"]
|
|
249
|
+
}
|
|
250
|
+
]), L = (a, e) => {
|
|
251
|
+
var t;
|
|
252
|
+
a.checkedButtons = e ? (t = a.renderButtons) == null ? void 0 : t.map((n) => n.path) : [], console.log("handleNodeCheckChange", a, e);
|
|
253
|
+
}, U = (a, e) => {
|
|
254
|
+
var t;
|
|
255
|
+
e.checkedButtons = a, console.log("handleNodeBtnChange", e), a.length === e.renderButtons.length ? (t = w.value) == null || t.setCheckedKeys([e.path]) : a.length;
|
|
256
|
+
}, A = (a, e) => {
|
|
257
|
+
if (Array.isArray(a))
|
|
258
|
+
return a == null ? void 0 : a.map((t) => t.children && t.children.length > 0 ? {
|
|
259
|
+
...t,
|
|
260
|
+
renderButtons: t.carryData ? e == null ? void 0 : e.map((n) => ({
|
|
261
|
+
title: n,
|
|
262
|
+
path: t.path + "/" + n
|
|
263
|
+
})) : [],
|
|
264
|
+
checkedButtons: [],
|
|
265
|
+
children: A(t.children, e)
|
|
266
|
+
} : {
|
|
267
|
+
...t,
|
|
268
|
+
renderButtons: t.carryData ? e == null ? void 0 : e.map((n) => ({
|
|
269
|
+
title: n,
|
|
270
|
+
path: t.path + "/" + n
|
|
271
|
+
})) : [],
|
|
272
|
+
checkedButtons: []
|
|
273
|
+
});
|
|
274
|
+
}, ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
275
|
+
__proto__: null,
|
|
276
|
+
addButtonsToTree: A,
|
|
277
|
+
authorizeDialog: f,
|
|
278
|
+
buttonValue: j,
|
|
279
|
+
changedRow: i,
|
|
280
|
+
clickRow: d,
|
|
281
|
+
clickRowButton: q,
|
|
282
|
+
clickSubmitAuthority: $,
|
|
283
|
+
closeAuthorizeDialog: H,
|
|
284
|
+
customNodeClass: G,
|
|
285
|
+
getPageDataAsync: W,
|
|
286
|
+
handleContentChange: V,
|
|
287
|
+
handleItemDataChange: Q,
|
|
288
|
+
handleNodeBtnChange: U,
|
|
289
|
+
handleNodeCheckChange: L,
|
|
290
|
+
handleQueryChange: _,
|
|
291
|
+
handleSubmitAsync: h,
|
|
292
|
+
isPageDataExist: M,
|
|
293
|
+
menuData: u,
|
|
294
|
+
menusButtons: J,
|
|
295
|
+
pageData: c,
|
|
296
|
+
pageDataFiltered: z,
|
|
297
|
+
queryFormData: O,
|
|
298
|
+
submitTableAsyncByVerify: m,
|
|
299
|
+
treeRef: w
|
|
300
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
301
|
+
export {
|
|
302
|
+
ae as S,
|
|
303
|
+
f as a
|
|
304
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { defineComponent as v, reactive as y, onMounted as P, createElementBlock as k, openBlock as x, createVNode as f } from "vue";
|
|
2
|
+
import { s as B } from "./index-CdRgYGoU.js";
|
|
3
|
+
import { s as N } from "./index-BYNM1Eo-.js";
|
|
4
|
+
import { S } from "./index-DTs391JS.js";
|
|
5
|
+
import { s as g } from "./pinia-DB5lI5eD.js";
|
|
6
|
+
import { u as I } from "./modelComp-BsNooORx.js";
|
|
7
|
+
import { useRoute as M } from "vue-router";
|
|
8
|
+
import { u as O } from "./menu-DxrO5JEn.js";
|
|
9
|
+
import { c as w } from "./cloneDeep-B2CowBmY.js";
|
|
10
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const E = { class: "role-wrapper" }, F = /* @__PURE__ */ v({
|
|
12
|
+
__name: "index",
|
|
13
|
+
setup(R) {
|
|
14
|
+
const D = O(), { activeMenuPath: s } = g(D), l = I(), { itemData: h } = g(l), _ = M(), e = y({ ...S });
|
|
15
|
+
return P(() => {
|
|
16
|
+
const p = w(h.value), c = {
|
|
17
|
+
comp: "Group",
|
|
18
|
+
name: _.path,
|
|
19
|
+
pageData: e.pageData
|
|
20
|
+
};
|
|
21
|
+
if (l.setItemData([...p, c]), s.value) {
|
|
22
|
+
e.getPageDataAsync(s.value).then((a) => {
|
|
23
|
+
var r;
|
|
24
|
+
e.pageData = (r = e.pageData) == null ? void 0 : r.map((o) => o.key === "tableContents" ? {
|
|
25
|
+
...o,
|
|
26
|
+
contents: a
|
|
27
|
+
} : o);
|
|
28
|
+
});
|
|
29
|
+
const C = e.getPageDataAsync("/role"), b = e.getPageDataAsync("/dept");
|
|
30
|
+
Promise.all([C, b]).then((a) => {
|
|
31
|
+
var m, u, i;
|
|
32
|
+
console.log(888, a);
|
|
33
|
+
const r = (m = a == null ? void 0 : a[0]) == null ? void 0 : m.map((t) => ({
|
|
34
|
+
label: t.roleName,
|
|
35
|
+
value: t.roleName
|
|
36
|
+
})), o = (u = a == null ? void 0 : a[1]) == null ? void 0 : u.map((t) => ({
|
|
37
|
+
label: t.deptName,
|
|
38
|
+
value: t.deptName
|
|
39
|
+
}));
|
|
40
|
+
e.pageData = (i = e.pageData) == null ? void 0 : i.map((t) => {
|
|
41
|
+
var d;
|
|
42
|
+
return t.key === "header" ? {
|
|
43
|
+
...t,
|
|
44
|
+
contents: (d = t.contents) == null ? void 0 : d.map((n) => n.label === "所属机构" ? {
|
|
45
|
+
...n,
|
|
46
|
+
options: o
|
|
47
|
+
} : n.label === "角色" ? {
|
|
48
|
+
...n,
|
|
49
|
+
options: r
|
|
50
|
+
} : n)
|
|
51
|
+
} : t;
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}), (p, c) => (x(), k("div", E, [
|
|
56
|
+
f(B, {
|
|
57
|
+
class: "role-header",
|
|
58
|
+
rowContents: e.queryFormData,
|
|
59
|
+
isEnableWrap: !1,
|
|
60
|
+
isEdit: !0,
|
|
61
|
+
onChange: e.handleQueryChange
|
|
62
|
+
}, null, 8, ["rowContents", "onChange"]),
|
|
63
|
+
f(N, {
|
|
64
|
+
class: "role-body",
|
|
65
|
+
itemData: e.pageData,
|
|
66
|
+
onChange: e.handleItemDataChange,
|
|
67
|
+
onOnButtonClick: e.onButtonClick
|
|
68
|
+
}, null, 8, ["itemData", "onChange", "onOnButtonClick"])
|
|
69
|
+
]));
|
|
70
|
+
}
|
|
71
|
+
}), K = /* @__PURE__ */ A(F, [["__scopeId", "data-v-4b0300c4"]]);
|
|
72
|
+
export {
|
|
73
|
+
K as default
|
|
74
|
+
};
|