ss-component-new 1.2.167 → 1.2.168
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/{MTLLoader-CLFzjnPX.cjs → MTLLoader-2Qm8cPmo.cjs} +1 -1
- package/dist/{MTLLoader-CwSo4rHD.js → MTLLoader-9WvkSLFg.js} +1 -1
- package/dist/{OrbitControls-Ciif_9cK.cjs → OrbitControls-DRKDm0yy.cjs} +1 -1
- package/dist/{OrbitControls-D7j0g2sZ.js → OrbitControls-DXkJabxx.js} +1 -1
- package/dist/{URDFLoader-C0tqucYX.js → URDFLoader-BB73Ksfs.js} +2 -2
- package/dist/{URDFLoader-cHMWLPFW.cjs → URDFLoader-Do4U4xIe.cjs} +1 -1
- package/dist/{animationData-CQk2prjo.js → animationData-BjFBqDOo.js} +1 -1
- package/dist/{animationData-BCdseud5.cjs → animationData-CZ6SyrKC.cjs} +1 -1
- package/dist/{array-Cp-J8xjb.cjs → array-KNvIoKA9.cjs} +1 -1
- package/dist/{array-DYHNnoK9.js → array-R-XVY8b6.js} +1 -1
- package/dist/{iconfont-BFXiN9Bo.cjs → iconfont-DQ1VDf_w.cjs} +1 -1
- package/dist/{iconfont-BRy-QXQw.js → iconfont-DTg9kGTn.js} +2 -2
- package/dist/{index-k6y7P258.js → index-36opsD5o.js} +1 -1
- package/dist/{index-BPxYVk2A.cjs → index-B1LqmmGb.cjs} +1 -1
- package/dist/{index-DY1duHqJ.js → index-B8Q8NZ73.js} +1 -1
- package/dist/{index-bPYLBUyT.cjs → index-BHSBTyi0.cjs} +1 -1
- package/dist/{index-C2IASFRp.cjs → index-BINAL66A.cjs} +1 -1
- package/dist/{index-BK7SMFKC.js → index-BawjmjWD.js} +1 -1
- package/dist/{index-mydZ_rrD.cjs → index-BebHGVjE.cjs} +1 -1
- package/dist/{index-B0UtYmIj.cjs → index-BsmTGDw1.cjs} +1 -1
- package/dist/{index-DGR_Aii4.js → index-BthT7J8J.js} +4 -4
- package/dist/{index-BtquudlB.js → index-C2YoDSvL.js} +1 -1
- package/dist/{index-D1Z5FL2v.js → index-C2cXXsd3.js} +8 -8
- package/dist/{index-xAq-FNXj.cjs → index-C4HhqOwl.cjs} +1 -1
- package/dist/index-C6k1y2O2.cjs +1 -0
- package/dist/{index-D5BegmPk.cjs → index-CK0BoGQY.cjs} +1 -1
- package/dist/{index-SiOl7MN_.cjs → index-CS18yl3Q.cjs} +1 -1
- package/dist/{index-DSYTzO6a.js → index-CTOZ6vli.js} +7 -7
- package/dist/{index-CVCnVB2h.cjs → index-CUYTy6Nv.cjs} +1 -1
- package/dist/{index-Dpe4rGFO.cjs → index-CVOt7hbx.cjs} +1 -1
- package/dist/{index-Dk8X-ihc.js → index-CjW_PUUJ.js} +1 -1
- package/dist/{index-7Rauzgc6.js → index-CwcbkEfq.js} +1 -1
- package/dist/{index-BGFPdvbG.js → index-CzPJP7kV.js} +3 -3
- package/dist/{index-DFzzIlqk.js → index-D0rVq6fA.js} +1 -1
- package/dist/{index-BPX4t5Me.cjs → index-D2t7w6Su.cjs} +1 -1
- package/dist/{index-BrE2Bc0f.cjs → index-DAz028y4.cjs} +1 -1
- package/dist/{index-hfeW3BQ6.js → index-DOaK_yYx.js} +2 -2
- package/dist/{index-BniWsVyD.js → index-DQuTjHkR.js} +16 -16
- package/dist/{index-CNNDW9ER.js → index-DSk4yuMd.js} +134 -133
- package/dist/{index-BpWp0foW.cjs → index-DUHUIMfY.cjs} +1 -1
- package/dist/{index-CvthuHiN.cjs → index-DUNQky_G.cjs} +1 -1
- package/dist/{index-DhmUocvg.cjs → index-Dh3eXc8t.cjs} +1 -1
- package/dist/{index-DRjBO6iH.cjs → index-DhCphHrS.cjs} +1 -1
- package/dist/{index-BZUaEnBX.cjs → index-DhcgCf_P.cjs} +1 -1
- package/dist/{index-ClyfxBR1.js → index-Dm1nRMsj.js} +2 -2
- package/dist/{index-B3hLcSqR.js → index-Dp9-r8Ia.js} +1 -1
- package/dist/{index-BweEcptF.js → index-DtEls4Bg.js} +1 -1
- package/dist/{index-Bj9nTlxi.js → index-EoOdoILl.js} +1 -1
- package/dist/{index-BsUk6uFp.cjs → index-I8UQkIRx.cjs} +1 -1
- package/dist/{index-D97rmBt_.js → index-RM-Obg1w.js} +1 -1
- package/dist/{index-B5_ImWg6.js → index-SEYAUfdY.js} +4 -4
- package/dist/{index-D9F4jB5w.cjs → index-VCBhs2dF.cjs} +1 -1
- package/dist/{index-FdKoPAXC.cjs → index-bAih1wGL.cjs} +1 -1
- package/dist/{index-yINd3mEb.js → index-dVctwafW.js} +4 -4
- package/dist/{index-D5QE8mUk.cjs → index-e3khx_ef.cjs} +1 -1
- package/dist/{index-D53LFFRF.js → index-hut0Ggjv.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bs49T9pF.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BRxzNepU.js} +7 -7
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-bjAg_fV4.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BvOP5cVm.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-yCSfdkEK.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0kcdG2ep.js} +9009 -8944
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bjj5ubf_.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRV8YvCu.cjs} +108 -108
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-EkXalL64.cjs → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-BXe56RXJ.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Aw5kJy3h.js → index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D1MudhMh.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_1_lang-BLPUcvNI.cjs → index.vue_vue_type_style_index_1_lang-B76B53s2.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-DOqhwSkH.js → index.vue_vue_type_style_index_1_lang-DKoxXC91.js} +3 -3
- package/dist/{main-CEldaddq.js → main-D41g7ntj.js} +3 -3
- package/dist/{main-BWVy0P8L.cjs → main-DsFlg2Zd.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-B9sa7eGf.js → threeModel-DBrsi2Vq.js} +4 -4
- package/dist/{threeModel-D8xNzE3K.cjs → threeModel-JEksebIs.cjs} +1 -1
- package/dist/{threePreview-GJScMAEP.cjs → threePreview-V5rV1BL3.cjs} +1 -1
- package/dist/{threePreview-BE-5b24m.js → threePreview-YbsIeU2a.js} +3 -3
- package/dist/{threeSceneView-BzUK4TV9.cjs → threeSceneView-BxSafLzc.cjs} +1 -1
- package/dist/{threeSceneView-BpiNLqLX.js → threeSceneView-tu-X5gA6.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-SDHyHidh.js → threeSceneViewForCPMPIP-CP6_HEzn.js} +7 -7
- package/dist/{threeSceneViewForCPMPIP-D4DvVNeV.cjs → threeSceneViewForCPMPIP-CZ_xxi5F.cjs} +1 -1
- package/dist/{threeTrackPathView-BxNyiXJw.cjs → threeTrackPathView-9P9d3o-R.cjs} +1 -1
- package/dist/{threeTrackPathView-CZpYoFbz.js → threeTrackPathView-pVLxoACg.js} +3 -3
- package/dist/{threeViewerHost-7xonkuMm.js → threeViewerHost-B_g_ki2p.js} +2 -2
- package/dist/{threeViewerHost-DpVBZPj4.cjs → threeViewerHost-DMKy_W1r.cjs} +1 -1
- package/dist/{urdfTree-BqejtjRY.js → urdfTree-CzBdJDCg.js} +1 -1
- package/dist/{urdfTree-CbGA9aZz.cjs → urdfTree-DXfhe2j-.cjs} +1 -1
- package/dist/{workpieceTreePanel-Z0SsLhDM.js → workpieceTreePanel-B3XGaJU8.js} +4 -4
- package/dist/{workpieceTreePanel-CY-42AI4.cjs → workpieceTreePanel-Bedf5dkF.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-q76H6HKw.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DOCHgBta.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-C8qRkCgn.cjs"),_=require("./index-DOCHgBta.cjs"),C=require("./index-C6k1y2O2.cjs"),r=require("./index-BbzUzdxF.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=_.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
2
|
-
import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
1
|
+
import { _ as I } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D1MudhMh.js";
|
|
2
|
+
import { a as W, d as X, f as Y, s as Z } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D1MudhMh.js";
|
|
3
3
|
import { resolveComponent as r, createElementBlock as l, openBlock as n, Fragment as g, createVNode as s, createCommentVNode as d, withCtx as i, normalizeStyle as E, toDisplayString as c, createElementVNode as p, renderList as _, createTextVNode as M, createBlock as S, resolveDynamicComponent as L } from "vue";
|
|
4
4
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const $ = ["title"], N = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { s as m } from "./index-
|
|
2
|
+
import { s as m } from "./index-DSk4yuMd.js";
|
|
3
3
|
import { g as d, c as _ } from "./index-62PHNV7A.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
|
|
2
2
|
import { S as m } from "./index-62PHNV7A.js";
|
|
3
|
-
import { s as _ } from "./index-
|
|
3
|
+
import { s as _ } from "./index-DSk4yuMd.js";
|
|
4
4
|
import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
|
|
6
6
|
__name: "index",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as x, ref as I, reactive as N, resolveComponent as v, createElementBlock as E, openBlock as U, createVNode as u, withCtx as d, createElementVNode as l, createTextVNode as h, toDisplayString as T, nextTick as H, Fragment as q, withDirectives as z, renderSlot as V, vShow as $ } from "vue";
|
|
2
|
-
import { aV as M } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { aV as M } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0kcdG2ep.js";
|
|
3
3
|
import { N as X, a9 as J, a3 as G, H as D, I as c, aD as R, a0 as g } from "./index-DIUrwul5.js";
|
|
4
4
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const K = "ElUpload";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-C6k1y2O2.cjs"),n=require("./index-BoXjy_oE.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
2
|
+
import { s as b } from "./index-BawjmjWD.js";
|
|
3
3
|
import { c as s } from "./index-DIUrwul5.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as V, computed as Z, resolveComponent as K, createElementBlock as w, openBlock as r, Fragment as ee, renderList as ae, createElementVNode as g, toDisplayString as Q, createVNode as C, watch as ue, createBlock as A, resolveDynamicComponent as X, unref as h, withCtx as D, isRef as ze, createTextVNode as te, createCommentVNode as G, normalizeStyle as Xe, withModifiers as ne, normalizeClass as Ge, nextTick as Ke } from "vue";
|
|
2
|
-
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-
|
|
2
|
+
import { J as ve, g as Ye, D as je, B as Qe, C as He, b as Ze } from "./index-C2cXXsd3.js";
|
|
3
3
|
import { p as ie, s as le, c as R, E as ea } from "./index-DIUrwul5.js";
|
|
4
4
|
import { a as me, u as qe, E as aa } from "./index-AIq5wzuR.js";
|
|
5
|
-
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-
|
|
5
|
+
import { s as W, h as We, o as Je, b as ta, c as he, d as na, f as ce, g as la, i as oa, j as Pe, k as sa, l as fe, m as re, n as ca, t as ra, p as ua } from "./array-R-XVY8b6.js";
|
|
6
6
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import ia from "./index-rlStojTL.js";
|
|
8
|
-
import { b as da, c as pa } from "./index-
|
|
9
|
-
import { s as va } from "./index-
|
|
8
|
+
import { b as da, c as pa } from "./index-dVctwafW.js";
|
|
9
|
+
import { s as va } from "./index-B8Q8NZ73.js";
|
|
10
10
|
const ha = { class: "type-select" }, fa = { class: "group-label" }, ma = { class: "group-items" }, ga = ["onDragstart"], _a = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BoXjy_oE.cjs"),r=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-BoXjy_oE.cjs"),r=require("./index-C6k1y2O2.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),A=require("./index-BPxYVk2A.cjs"),g=require("./index-C8qRkCgn.cjs"),G=require("./index-DOCHgBta.cjs"),r=require("./array-Cp-J8xjb.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=require("./index-BVaHwt5f.cjs"),Ce=require("./index-DRjBO6iH.cjs"),ke=require("./index-BrE2Bc0f.cjs"),_e={class:"type-select"},we={class:"group-label"},De={class:"group-items"},xe=["onDragstart"],Be={__name:"index",props:{compContainerRef:Object},emits:[""],setup(X,{emit:k}){const T=G.useModelComp(g.pinia),{itemData:H,activeItemIndex:P}=g.storeToRefs(T),d=k,O=e.ref(null),D=e.computed(()=>{var q,M,V;const N={label:"布局",items:["TABS","LAYOUT"]},S={label:"常用",items:["FORM","TABLE"]},L={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},x=(q=A.slotContent.value)==null?void 0:q.filter(B=>{var c,n;return(n=N==null?void 0:N.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())}),U=(M=A.slotContent.value)==null?void 0:M.filter(B=>{var c,n;return(n=S==null?void 0:S.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())}),_=(V=A.slotContent.value)==null?void 0:V.filter(B=>{var c,n;return(n=L==null?void 0:L.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())});return[{...N,items:x},{...S,items:U},{...L,items:_}]}),F=(N,S)=>{try{N.dataTransfer.clearData();const L={...S,timestamp:Date.now()};N.dataTransfer.setData("application/json",JSON.stringify(L)),N.dataTransfer.effectAllowed="copyMove",N.target.classList.add("dragging"),d("handleDragStart",S)}catch(L){console.error("Drag start error:",L)}};return(N,S)=>{const L=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,x=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:x==null?void 0:x.label},[e.createElementVNode("div",we,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x==null?void 0:x.items,(U,_)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:O,key:_,draggable:!0,onDragstart:q=>F(q,U)},[e.createVNode(L,{name:U.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(U.name),1)],40,xe))),128))])]))),128))])}}},Ie=J._export_sfc(Be,[["__scopeId","data-v-951fb5b4"]]),Ne={class:"fill-content"},Ve={class:"overall-config-wrapper"},Ee={class:"operate-content"},be=["onClick"],Te={class:"collapse-title-item",title:"编辑"},Se={key:1},Le=["onClick"],Me={class:"icon-content"},$e={key:0,class:"edit-content"},Re=["onClick"],Ae={title:"设置"},Oe=["onClick"],Fe={class:"parent-main"},Ue={style:{display:"flex","justify-content":"space-between"}},qe={title:"样式"},ze={title:"交互"},Ge={title:"扩展"},He={style:{width:"100%","max-height":"500px",overflow:"auto"}},We={__name:"index",setup(X){const k=G.useModelComp(g.pinia),{itemData:T,originalData:H}=g.storeToRefs(k),P=G.useMenuState(),{activeMenuPath:d}=g.storeToRefs(P);e.ref([]);const O=e.ref([]),D=e.ref([]),F=e.ref([]),N=e.computed(()=>{var c,n,p,i;return((c=r.showItems.value)==null?void 0:c.length)>0&&(n=r.showItems.value)!=null&&n.every(u=>{var I,E;return(u==null?void 0:u.comp)===((E=(I=r.showItems.value)==null?void 0:I[0])==null?void 0:E.comp)})?(i=(p=r.showItems.value)==null?void 0:p[0])==null?void 0:i.comp:null}),S=c=>{var p;let n=(p=g.cloneDeep(D.value))==null?void 0:p.map((i,u)=>(c===u&&(i.content=!0),i));D.value=n},L=c=>{var p;let n=(p=g.cloneDeep(D.value))==null?void 0:p.map((i,u)=>(c===u&&(i.content=!1),i));D.value=n,r.showItems.value=g.cloneDeep(T.value)},x=(c,n)=>{var I;let p=(I=g.cloneDeep(D.value))==null?void 0:I.map((E,l)=>(c===l&&(E.content=!1),E));D.value=p;const i=g.cloneDeep(T.value),u=i==null?void 0:i.filter((E,l)=>(l===c&&(E.name=n),E));k.setOriginalData(u),k.setItemData(u)},U=c=>{const n=g.cloneDeep(T.value),p=n==null?void 0:n.map((i,u)=>((i==null?void 0:i.name)===(c==null?void 0:c.name)?i.isShow=!(c!=null&&c.isShow):i.isShow=i.isShow,i));T.value=p};e.watch(()=>T.value,()=>{var c,n,p,i;!T.value||((c=T.value)==null?void 0:c.length)===0?r.showItems.value=[]:r.showItems.value=(n=T.value)==null?void 0:n.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),O.value=r.showItems.value,D.value=(p=g.cloneDeep(O.value))==null?void 0:p.map((u,I)=>({id:I,content:!1})),F.value=(i=g.cloneDeep(O.value))==null?void 0:i.map((u,I)=>({id:I,isShow:u==null?void 0:u.isShow}))},{deep:!0,immediate:!0});const _=c=>A.getComponent(c),q=(c,n,p,i)=>{var I,E;if(!c)return;let u=g.cloneDeep(T.value);u=(I=u==null?void 0:u.map((l,f)=>{if(i&&f===p){const{compData:s,itemChildData:$}=c;return l.compData=s,l.itemChildData=$,l}return f===p&&(l.compData=c),l}))==null?void 0:I.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),D.value=(E=g.cloneDeep(u))==null?void 0:E.map((l,f)=>({id:f,content:!1})),k.setOriginalData(u),k.setItemData(u)},M=e.ref(null),V=(c,n)=>{if(!n){k.setActiveItemIndex(c);return}k.setActiveItemIndex(-1)},B=c=>{G.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const n=g.cloneDeep(T.value),p=n==null?void 0:n.filter((i,u)=>u!==c);k.setOriginalData(p),k.setItemData(p),k.setActiveItemIndex(-1),g.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(c,n)=>{var E;const p=e.resolveComponent("svg-icon"),i=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-card"),I=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Ne,[n[10]||(n[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ve,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(N.value+"style")),{target:"overall",optionItems:e.unref(r.optionItems),compType:N.value,comp:(E=e.unref(r.showItems))==null?void 0:E[0],onChange:e.unref(r.handleStyleChange)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ee,[e.createVNode(ye.default,{class:"collapse-content",collapseContents:e.unref(r.showItems),accordion:!0,onChange:e.unref(r.handleCollapseChange),ref_key:"ssCollapseRef",ref:M},{title:e.withCtx(({item:l,index:f,isActive:s})=>{var $,w,b,o,a,v,h,m,R,z;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:C=>V(f,s)},[e.createElementVNode("div",Te,[(w=($=D.value)==null?void 0:$.find(C=>C.id===f))!=null&&w.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:l.name&&l.name!==""?"8px":"0px"})},e.toDisplayString(l.name),5)),(o=(b=D.value)==null?void 0:b.find(C=>C.id===f))!=null&&o.content?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(Ce._sfc_main$3,{modelValue:l.name,"onUpdate:modelValue":C=>l.name=C,onClick:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(v=(a=D.value)==null?void 0:a.find(C=>C.id===f))!=null&&v.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(C=>S(f),["stop"]),class:"icon-content"},[e.createVNode(p,{name:"Edit",style:{width:"13px",height:"13px"}})],8,Le))]),e.createElementVNode("div",Me,[(m=(h=D.value)==null?void 0:h.find(C=>C.id===f))!=null&&m.content?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(p,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(C=>L(f),["stop"])},null,8,["onClick"]),e.createVNode(p,{name:"Save",onClick:e.withModifiers(C=>x(f,l.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(z=(R=D.value)==null?void 0:R.find(C=>C.id===f))!=null&&z.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(C=>B(f),["stop"]),class:"icon-content"},[e.createVNode(p,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Re))])],8,be)]}),content:e.withCtx(({item:l,index:f})=>[e.createVNode(I,{modelValue:e.unref(r.activeTabName),"onUpdate:modelValue":n[2]||(n[2]=s=>e.isRef(r.activeTabName)?r.activeTabName.value=s:null),class:"config-tabs",onTabClick:V},{default:e.withCtx(()=>[e.createVNode(i,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",Ae,[e.createVNode(p,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[3]||(n[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var s,$;return[e.createElementVNode("div",{class:"comp-child",onClick:w=>V(f)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(l.comp+"Operate")),{itemContents:l==null?void 0:l.compData,originalItemContents:($=(s=O.value)==null?void 0:s.find((w,b)=>b===f))==null?void 0:$.compData,itemChildData:l==null?void 0:l.itemChildData,onChange:(w,b)=>q(w,l,f,b)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,Oe),e.createElementVNode("div",Fe,[n[5]||(n[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",Ue,[n[4]||(n[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ce._sfc_main$2,{value:F.value.find(w=>w.id===f).isShow,"onUpdate:value":w=>F.value.find(b=>b.id===f).isShow=w,onClick:w=>U(l)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(i,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",qe,[e.createVNode(p,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[6]||(n[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_((l==null?void 0:l.comp)+"style")),{target:"alone",compType:l==null?void 0:l.comp,comp:l,optionItems:e.unref(r.optionItems),onChange:s=>e.unref(r.handleStyleChange)(s,l)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(i,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",ze,[e.createVNode(p,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[7]||(n[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[n[8]||(n[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(i,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",Ge,[e.createVNode(p,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[9]||(n[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(I,{"tab-position":"left",modelValue:e.unref(r.activeExtendTabName),"onUpdate:modelValue":n[1]||(n[1]=s=>e.isRef(r.activeExtendTabName)?r.activeExtendTabName.value=s:null),class:"extend-tabs",onTabChange:e.unref(r.changeExtendTab)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r.extendTabs),(s,$)=>(e.openBlock(),e.createBlock(i,{key:s==null?void 0:s.name,label:s==null?void 0:s.label,name:s==null?void 0:s.name},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>{var w,b,o;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_((w=s==null?void 0:s.component)==null?void 0:w.comp)),{compItem:s==null?void 0:s.component,itemData:(b=s==null?void 0:s.component)==null?void 0:b.compData,childItemData:(o=s==null?void 0:s.component)==null?void 0:o.itemChildData,key:$,level:1,onChange:e.unref(r.handleExtendChange),onOnButtonClick:e.unref(r.clickExtendTable)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(ke.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(r.extendDialogInfo).show,title:e.unref(r.extendDialogInfo).title,dialogWidth:e.unref(r.extendDialogInfo).width,onBeforeDestroy:e.unref(r.beforeDestroyExtendDialog)},{default:e.withCtx(()=>{var l,f;return[e.createElementVNode("div",He,[e.unref(r.findExtendComp)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(((l=e.unref(r.findExtendComp))==null?void 0:l.comp)+"extend")),{key:0,target:"alone",comp:e.unref(r.findExtendComp),extendItem:e.unref(r.clickExtendTableRow),compType:(f=e.unref(r.findExtendComp))==null?void 0:f.comp,activeTabName:e.unref(r.activeExtendTabName),relatedData:e.unref(r.taskConfigTable),onChange:e.unref(r.handleExtendChange),onOnButtonClick:e.unref(r.clickTaskFormButton)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},Pe=J._export_sfc(We,[["__scopeId","data-v-0ecba574"]]),Ye={style:{display:"flex"}},Je={style:{display:"flex"}},Xe={key:2},Ke={key:4,style:{"margin-top":"30px"}},je={__name:"index",setup(X){const k=G.useModelComp(g.pinia),{itemData:T,activeItemIndex:H,pageMapState:P}=g.storeToRefs(k),d=e.ref([]),O=e.ref(0),D=e.ref(""),F=G.useMenuState(g.pinia),{activeMenuPath:N}=g.storeToRefs(F),S=e.ref(null),L=e.ref(null),x=e.ref(24),U=e.ref(2),_=e.ref([]),q=e.ref([]),M=e.computed(()=>{var o,a,v;return{default:!c.value&&!B.value&&V.value==="vertical"&&((o=d.value)==null?void 0:o.length)>0,grid:c.value&&!B.value&&V.value==="vertical",tab:V.value==="horizontal"&&((a=d.value)==null?void 0:a.length)>0,step:B.value&&V.value==="vertical"&&((v=d.value)==null?void 0:v.length)>0}}),V=e.computed(()=>{var o,a,v,h;return((o=d.value)==null?void 0:o.length)>0&&((a=d.value)!=null&&a.every(m=>m==null?void 0:m.layout))?(h=(v=d.value)==null?void 0:v[0])==null?void 0:h.layout:"vertical"}),B=e.computed(()=>{var o,a;return(a=(o=d.value)==null?void 0:o[0])==null?void 0:a.isStepLayout}),c=e.computed(()=>{var o,a;return(a=(o=d.value)==null?void 0:o[0])==null?void 0:a.isGridLayout}),n=e.ref(null),p=e.computed(()=>{var o,a,v;return((o=d.value)==null?void 0:o.length)>0&&V.value==="horizontal"?(v=(a=d.value)==null?void 0:a[0])==null?void 0:v.name:""}),i=(o,a)=>{O.value=a,n.value=o},u=o=>{var m;if(!o)return;let a=null;const v=g.cloneDeep(d.value);if(H.value>=0&&(a=v==null?void 0:v[H.value]),a&&a.comp==="Layout"){const{compData:R=[]}=a;((m=R==null?void 0:R.find(C=>{const{key:W}=C;return W==="children"}))==null?void 0:m.contents).push({comp:o.comp,name:o.name,compData:[]}),k.setItemData(v);return}const h=g.cloneDeep(d.value);h.push({comp:o.comp,name:o.name,compData:[]}),k.setItemData(h),w(h)},I=o=>{o.preventDefault(),o.dataTransfer.dropEffect="copy"},E=async o=>{try{const a=o.dataTransfer.getData("application/json");if(!a)return;const v=JSON.parse(a),h=await l(o),m=f(v,h);await e.nextTick(),s(m),u(JSON.parse(a||"")),console.log("drop"),$()}catch(a){console.error("Drop error:",a),$()}},l=async o=>S.value?new Promise(a=>{requestAnimationFrame(()=>{const v=S.value.getBoundingClientRect(),h=o.clientX-v.left,m=o.clientY,R=Math.floor(h/(v.width/x.value)),z=Math.floor(m/(v.width/x.value));a({x:Math.max(0,R),y:Math.max(0,z),w:x.value,h:U.value})})}):{x:0,y:0},f=(o,a)=>{var h,m;const v=`item_${Date.now()}_${(m=(h=Math.random())==null?void 0:h.toString(36))==null?void 0:m.substring(2,9)}`;return{i:v,id:v,x:a.x,y:a.y,w:a.w,h:a.h,component:o,minW:2,minH:2}},s=o=>{w([..._.value,o],!0)},$=()=>{document.querySelectorAll(".dragging").forEach(o=>{o.classList.remove("dragging")})},w=(o,a)=>{_.value=a?o:A.generateLayouts(o),k.setItemGridData({pageKey:N.value,results:_.value}),F.setContentLoading(!1)};e.watch(()=>M.value.step,o=>{var a;o&&i((a=d.value)==null?void 0:a[0],1)},{immediate:!0}),e.watch(()=>M.value.grid,o=>{var a,v;!o&&((a=_.value)==null?void 0:a.length)>0&&k.setItemGridData({pageKey:N.value,results:(v=_.value)==null?void 0:v.map(h=>h==null?void 0:h.id),isDelete:!0})},{immediate:!0}),e.watch(()=>T.value,o=>{var a,v,h;F.setContentLoading(!0),d.value=!o||(o==null?void 0:o.length)===0?[]:(a=g.cloneDeep(o))==null?void 0:a.filter(m=>!(m!=null&&m.affix)||(m==null?void 0:m.affix)==="default"),q.value=!o||(o==null?void 0:o.length)===0?[]:(v=g.cloneDeep(o))==null?void 0:v.filter(m=>(m==null?void 0:m.affix)&&(m==null?void 0:m.affix)!=="default"),(h=M.value)!=null&&h.grid&&w(d.value)},{deep:!0,immediate:!0});const b=o=>A.getComponent(o);return(o,a)=>{var z,C,W,K,j,Q,Z,ee,te,oe,ne,ae;const v=e.resolveComponent("el-tab-pane"),h=e.resolveComponent("el-tabs"),m=e.resolveComponent("el-step"),R=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:S,class:"low-code-wrapper",onDragover:I,onDrop:E},[(z=M.value)!=null&&z.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d.value,(t,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",Ye,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:y,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:V.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(C=M.value)!=null&&C.grid?(e.openBlock(),e.createBlock(e.unref(A.De),{key:1,ref_key:"gridLayoutRef",ref:L,layout:_.value,"onUpdate:layout":a[0]||(a[0]=t=>_.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(t,y)=>{var Y,le;return e.openBlock(),e.createBlock(e.unref(A.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(A.verifyButton)((Y=d.value[y])==null?void 0:Y.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(A.verifyButton)((le=d.value[y])==null?void 0:le.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var ce,re,se,ie,ue,de,pe,ve,me,fe,he,ge;return[e.createElementVNode("div",{class:e.normalizeClass((re=q.value)!=null&&re.includes((ce=t==null?void 0:t.component)==null?void 0:ce.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Je,e.toDisplayString((se=d.value[y])==null?void 0:se.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b((ie=d.value[y])==null?void 0:ie.comp)),{pageLayout:V.value,itemData:(ue=d.value[y])==null?void 0:ue.compData,childItemData:(de=d.value[y])==null?void 0:de.itemChildData,index:((pe=d.value[y])==null?void 0:pe.id)??y,parentTableId:(ve=d.value[y])==null?void 0:ve.tableId,children:(me=d.value[y])==null?void 0:me.children,level:1,config:{showIndex:(fe=d.value[y])==null?void 0:fe.showIndex,allowMove:(he=d.value[y])==null?void 0:he.allowMove,viewport:(ge=d.value[y])==null?void 0:ge.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(W=M.value)!=null&&W.tab?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(h,{modelValue:p.value,"onUpdate:modelValue":a[1]||(a[1]=t=>p.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t,y)=>(e.openBlock(),e.createBlock(v,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(t==null?void 0:t.comp)),{pageLayout:V.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:y,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(K=M.value)!=null&&K.step?(e.openBlock(),e.createBlock(R,{key:3,direction:"horizontal",active:O.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t,y)=>(e.openBlock(),e.createBlock(m,{key:y,class:"step-item",status:D.value,onClick:Y=>i(t,y+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(j=M.value)!=null&&j.step?(e.openBlock(),e.createElementBlock("div",Ke,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b((Q=n.value)==null?void 0:Q.comp)),{pageLayout:V.value,itemData:(Z=n.value)==null?void 0:Z.compData,childItemData:(ee=n.value)==null?void 0:ee.itemChildData,key:(te=n.value)==null?void 0:te.id,config:{showIndex:(oe=n.value)==null?void 0:oe.showIndex,allowMove:(ne=n.value)==null?void 0:ne.allowMove,viewport:(ae=n.value)==null?void 0:ae.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Qe=J._export_sfc(je,[["__scopeId","data-v-fda67a9b"]]);exports.modelFill=Pe;exports.modelSelect=Ie;exports.modelShow=Qe;
|
|
1
|
+
"use strict";const e=require("vue"),A=require("./index-B1LqmmGb.cjs"),g=require("./index-C8qRkCgn.cjs"),G=require("./index-DOCHgBta.cjs"),r=require("./array-KNvIoKA9.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),ye=require("./index-BVaHwt5f.cjs"),Ce=require("./index-DhCphHrS.cjs"),ke=require("./index-DAz028y4.cjs"),_e={class:"type-select"},we={class:"group-label"},De={class:"group-items"},xe=["onDragstart"],Be={__name:"index",props:{compContainerRef:Object},emits:[""],setup(X,{emit:k}){const T=G.useModelComp(g.pinia),{itemData:H,activeItemIndex:P}=g.storeToRefs(T),d=k,O=e.ref(null),D=e.computed(()=>{var q,M,V;const N={label:"布局",items:["TABS","LAYOUT"]},S={label:"常用",items:["FORM","TABLE"]},L={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},x=(q=A.slotContent.value)==null?void 0:q.filter(B=>{var c,n;return(n=N==null?void 0:N.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())}),U=(M=A.slotContent.value)==null?void 0:M.filter(B=>{var c,n;return(n=S==null?void 0:S.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())}),_=(V=A.slotContent.value)==null?void 0:V.filter(B=>{var c,n;return(n=L==null?void 0:L.items)==null?void 0:n.includes((c=B==null?void 0:B.type)==null?void 0:c.toUpperCase())});return[{...N,items:x},{...S,items:U},{...L,items:_}]}),F=(N,S)=>{try{N.dataTransfer.clearData();const L={...S,timestamp:Date.now()};N.dataTransfer.setData("application/json",JSON.stringify(L)),N.dataTransfer.effectAllowed="copyMove",N.target.classList.add("dragging"),d("handleDragStart",S)}catch(L){console.error("Drag start error:",L)}};return(N,S)=>{const L=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",_e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,x=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:x==null?void 0:x.label},[e.createElementVNode("div",we,e.toDisplayString(x==null?void 0:x.label),1),e.createElementVNode("div",De,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(x==null?void 0:x.items,(U,_)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:O,key:_,draggable:!0,onDragstart:q=>F(q,U)},[e.createVNode(L,{name:U.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(U.name),1)],40,xe))),128))])]))),128))])}}},Ie=J._export_sfc(Be,[["__scopeId","data-v-951fb5b4"]]),Ne={class:"fill-content"},Ve={class:"overall-config-wrapper"},Ee={class:"operate-content"},be=["onClick"],Te={class:"collapse-title-item",title:"编辑"},Se={key:1},Le=["onClick"],Me={class:"icon-content"},$e={key:0,class:"edit-content"},Re=["onClick"],Ae={title:"设置"},Oe=["onClick"],Fe={class:"parent-main"},Ue={style:{display:"flex","justify-content":"space-between"}},qe={title:"样式"},ze={title:"交互"},Ge={title:"扩展"},He={style:{width:"100%","max-height":"500px",overflow:"auto"}},We={__name:"index",setup(X){const k=G.useModelComp(g.pinia),{itemData:T,originalData:H}=g.storeToRefs(k),P=G.useMenuState(),{activeMenuPath:d}=g.storeToRefs(P);e.ref([]);const O=e.ref([]),D=e.ref([]),F=e.ref([]),N=e.computed(()=>{var c,n,p,i;return((c=r.showItems.value)==null?void 0:c.length)>0&&(n=r.showItems.value)!=null&&n.every(u=>{var I,E;return(u==null?void 0:u.comp)===((E=(I=r.showItems.value)==null?void 0:I[0])==null?void 0:E.comp)})?(i=(p=r.showItems.value)==null?void 0:p[0])==null?void 0:i.comp:null}),S=c=>{var p;let n=(p=g.cloneDeep(D.value))==null?void 0:p.map((i,u)=>(c===u&&(i.content=!0),i));D.value=n},L=c=>{var p;let n=(p=g.cloneDeep(D.value))==null?void 0:p.map((i,u)=>(c===u&&(i.content=!1),i));D.value=n,r.showItems.value=g.cloneDeep(T.value)},x=(c,n)=>{var I;let p=(I=g.cloneDeep(D.value))==null?void 0:I.map((E,l)=>(c===l&&(E.content=!1),E));D.value=p;const i=g.cloneDeep(T.value),u=i==null?void 0:i.filter((E,l)=>(l===c&&(E.name=n),E));k.setOriginalData(u),k.setItemData(u)},U=c=>{const n=g.cloneDeep(T.value),p=n==null?void 0:n.map((i,u)=>((i==null?void 0:i.name)===(c==null?void 0:c.name)?i.isShow=!(c!=null&&c.isShow):i.isShow=i.isShow,i));T.value=p};e.watch(()=>T.value,()=>{var c,n,p,i;!T.value||((c=T.value)==null?void 0:c.length)===0?r.showItems.value=[]:r.showItems.value=(n=T.value)==null?void 0:n.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),O.value=r.showItems.value,D.value=(p=g.cloneDeep(O.value))==null?void 0:p.map((u,I)=>({id:I,content:!1})),F.value=(i=g.cloneDeep(O.value))==null?void 0:i.map((u,I)=>({id:I,isShow:u==null?void 0:u.isShow}))},{deep:!0,immediate:!0});const _=c=>A.getComponent(c),q=(c,n,p,i)=>{var I,E;if(!c)return;let u=g.cloneDeep(T.value);u=(I=u==null?void 0:u.map((l,f)=>{if(i&&f===p){const{compData:s,itemChildData:$}=c;return l.compData=s,l.itemChildData=$,l}return f===p&&(l.compData=c),l}))==null?void 0:I.filter(l=>(l==null?void 0:l.comp)!=="methodButton"),D.value=(E=g.cloneDeep(u))==null?void 0:E.map((l,f)=>({id:f,content:!1})),k.setOriginalData(u),k.setItemData(u)},M=e.ref(null),V=(c,n)=>{if(!n){k.setActiveItemIndex(c);return}k.setActiveItemIndex(-1)},B=c=>{G.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const n=g.cloneDeep(T.value),p=n==null?void 0:n.filter((i,u)=>u!==c);k.setOriginalData(p),k.setItemData(p),k.setActiveItemIndex(-1),g.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(c,n)=>{var E;const p=e.resolveComponent("svg-icon"),i=e.resolveComponent("el-tab-pane"),u=e.resolveComponent("el-card"),I=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Ne,[n[10]||(n[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ve,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(N.value+"style")),{target:"overall",optionItems:e.unref(r.optionItems),compType:N.value,comp:(E=e.unref(r.showItems))==null?void 0:E[0],onChange:e.unref(r.handleStyleChange)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",Ee,[e.createVNode(ye.default,{class:"collapse-content",collapseContents:e.unref(r.showItems),accordion:!0,onChange:e.unref(r.handleCollapseChange),ref_key:"ssCollapseRef",ref:M},{title:e.withCtx(({item:l,index:f,isActive:s})=>{var $,w,b,o,a,v,h,m,R,z;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:C=>V(f,s)},[e.createElementVNode("div",Te,[(w=($=D.value)==null?void 0:$.find(C=>C.id===f))!=null&&w.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:l.name&&l.name!==""?"8px":"0px"})},e.toDisplayString(l.name),5)),(o=(b=D.value)==null?void 0:b.find(C=>C.id===f))!=null&&o.content?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(Ce._sfc_main$3,{modelValue:l.name,"onUpdate:modelValue":C=>l.name=C,onClick:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(v=(a=D.value)==null?void 0:a.find(C=>C.id===f))!=null&&v.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(C=>S(f),["stop"]),class:"icon-content"},[e.createVNode(p,{name:"Edit",style:{width:"13px",height:"13px"}})],8,Le))]),e.createElementVNode("div",Me,[(m=(h=D.value)==null?void 0:h.find(C=>C.id===f))!=null&&m.content?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(p,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(C=>L(f),["stop"])},null,8,["onClick"]),e.createVNode(p,{name:"Save",onClick:e.withModifiers(C=>x(f,l.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(z=(R=D.value)==null?void 0:R.find(C=>C.id===f))!=null&&z.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(C=>B(f),["stop"]),class:"icon-content"},[e.createVNode(p,{name:"Delete",style:{width:"16px",height:"16px"}})],8,Re))])],8,be)]}),content:e.withCtx(({item:l,index:f})=>[e.createVNode(I,{modelValue:e.unref(r.activeTabName),"onUpdate:modelValue":n[2]||(n[2]=s=>e.isRef(r.activeTabName)?r.activeTabName.value=s:null),class:"config-tabs",onTabClick:V},{default:e.withCtx(()=>[e.createVNode(i,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",Ae,[e.createVNode(p,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[3]||(n[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var s,$;return[e.createElementVNode("div",{class:"comp-child",onClick:w=>V(f)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(l.comp+"Operate")),{itemContents:l==null?void 0:l.compData,originalItemContents:($=(s=O.value)==null?void 0:s.find((w,b)=>b===f))==null?void 0:$.compData,itemChildData:l==null?void 0:l.itemChildData,onChange:(w,b)=>q(w,l,f,b)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,Oe),e.createElementVNode("div",Fe,[n[5]||(n[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",Ue,[n[4]||(n[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ce._sfc_main$2,{value:F.value.find(w=>w.id===f).isShow,"onUpdate:value":w=>F.value.find(b=>b.id===f).isShow=w,onClick:w=>U(l)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(i,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",qe,[e.createVNode(p,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[6]||(n[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_((l==null?void 0:l.comp)+"style")),{target:"alone",compType:l==null?void 0:l.comp,comp:l,optionItems:e.unref(r.optionItems),onChange:s=>e.unref(r.handleStyleChange)(s,l)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(i,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",ze,[e.createVNode(p,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[7]||(n[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[n[8]||(n[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(i,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",Ge,[e.createVNode(p,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),n[9]||(n[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(I,{"tab-position":"left",modelValue:e.unref(r.activeExtendTabName),"onUpdate:modelValue":n[1]||(n[1]=s=>e.isRef(r.activeExtendTabName)?r.activeExtendTabName.value=s:null),class:"extend-tabs",onTabChange:e.unref(r.changeExtendTab)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r.extendTabs),(s,$)=>(e.openBlock(),e.createBlock(i,{key:s==null?void 0:s.name,label:s==null?void 0:s.label,name:s==null?void 0:s.name},{default:e.withCtx(()=>[e.createVNode(u,null,{default:e.withCtx(()=>{var w,b,o;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_((w=s==null?void 0:s.component)==null?void 0:w.comp)),{compItem:s==null?void 0:s.component,itemData:(b=s==null?void 0:s.component)==null?void 0:b.compData,childItemData:(o=s==null?void 0:s.component)==null?void 0:o.itemChildData,key:$,level:1,onChange:e.unref(r.handleExtendChange),onOnButtonClick:e.unref(r.clickExtendTable)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(ke.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(r.extendDialogInfo).show,title:e.unref(r.extendDialogInfo).title,dialogWidth:e.unref(r.extendDialogInfo).width,onBeforeDestroy:e.unref(r.beforeDestroyExtendDialog)},{default:e.withCtx(()=>{var l,f;return[e.createElementVNode("div",He,[e.unref(r.findExtendComp)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(_(((l=e.unref(r.findExtendComp))==null?void 0:l.comp)+"extend")),{key:0,target:"alone",comp:e.unref(r.findExtendComp),extendItem:e.unref(r.clickExtendTableRow),compType:(f=e.unref(r.findExtendComp))==null?void 0:f.comp,activeTabName:e.unref(r.activeExtendTabName),relatedData:e.unref(r.taskConfigTable),onChange:e.unref(r.handleExtendChange),onOnButtonClick:e.unref(r.clickTaskFormButton)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},Pe=J._export_sfc(We,[["__scopeId","data-v-0ecba574"]]),Ye={style:{display:"flex"}},Je={style:{display:"flex"}},Xe={key:2},Ke={key:4,style:{"margin-top":"30px"}},je={__name:"index",setup(X){const k=G.useModelComp(g.pinia),{itemData:T,activeItemIndex:H,pageMapState:P}=g.storeToRefs(k),d=e.ref([]),O=e.ref(0),D=e.ref(""),F=G.useMenuState(g.pinia),{activeMenuPath:N}=g.storeToRefs(F),S=e.ref(null),L=e.ref(null),x=e.ref(24),U=e.ref(2),_=e.ref([]),q=e.ref([]),M=e.computed(()=>{var o,a,v;return{default:!c.value&&!B.value&&V.value==="vertical"&&((o=d.value)==null?void 0:o.length)>0,grid:c.value&&!B.value&&V.value==="vertical",tab:V.value==="horizontal"&&((a=d.value)==null?void 0:a.length)>0,step:B.value&&V.value==="vertical"&&((v=d.value)==null?void 0:v.length)>0}}),V=e.computed(()=>{var o,a,v,h;return((o=d.value)==null?void 0:o.length)>0&&((a=d.value)!=null&&a.every(m=>m==null?void 0:m.layout))?(h=(v=d.value)==null?void 0:v[0])==null?void 0:h.layout:"vertical"}),B=e.computed(()=>{var o,a;return(a=(o=d.value)==null?void 0:o[0])==null?void 0:a.isStepLayout}),c=e.computed(()=>{var o,a;return(a=(o=d.value)==null?void 0:o[0])==null?void 0:a.isGridLayout}),n=e.ref(null),p=e.computed(()=>{var o,a,v;return((o=d.value)==null?void 0:o.length)>0&&V.value==="horizontal"?(v=(a=d.value)==null?void 0:a[0])==null?void 0:v.name:""}),i=(o,a)=>{O.value=a,n.value=o},u=o=>{var m;if(!o)return;let a=null;const v=g.cloneDeep(d.value);if(H.value>=0&&(a=v==null?void 0:v[H.value]),a&&a.comp==="Layout"){const{compData:R=[]}=a;((m=R==null?void 0:R.find(C=>{const{key:W}=C;return W==="children"}))==null?void 0:m.contents).push({comp:o.comp,name:o.name,compData:[]}),k.setItemData(v);return}const h=g.cloneDeep(d.value);h.push({comp:o.comp,name:o.name,compData:[]}),k.setItemData(h),w(h)},I=o=>{o.preventDefault(),o.dataTransfer.dropEffect="copy"},E=async o=>{try{const a=o.dataTransfer.getData("application/json");if(!a)return;const v=JSON.parse(a),h=await l(o),m=f(v,h);await e.nextTick(),s(m),u(JSON.parse(a||"")),console.log("drop"),$()}catch(a){console.error("Drop error:",a),$()}},l=async o=>S.value?new Promise(a=>{requestAnimationFrame(()=>{const v=S.value.getBoundingClientRect(),h=o.clientX-v.left,m=o.clientY,R=Math.floor(h/(v.width/x.value)),z=Math.floor(m/(v.width/x.value));a({x:Math.max(0,R),y:Math.max(0,z),w:x.value,h:U.value})})}):{x:0,y:0},f=(o,a)=>{var h,m;const v=`item_${Date.now()}_${(m=(h=Math.random())==null?void 0:h.toString(36))==null?void 0:m.substring(2,9)}`;return{i:v,id:v,x:a.x,y:a.y,w:a.w,h:a.h,component:o,minW:2,minH:2}},s=o=>{w([..._.value,o],!0)},$=()=>{document.querySelectorAll(".dragging").forEach(o=>{o.classList.remove("dragging")})},w=(o,a)=>{_.value=a?o:A.generateLayouts(o),k.setItemGridData({pageKey:N.value,results:_.value}),F.setContentLoading(!1)};e.watch(()=>M.value.step,o=>{var a;o&&i((a=d.value)==null?void 0:a[0],1)},{immediate:!0}),e.watch(()=>M.value.grid,o=>{var a,v;!o&&((a=_.value)==null?void 0:a.length)>0&&k.setItemGridData({pageKey:N.value,results:(v=_.value)==null?void 0:v.map(h=>h==null?void 0:h.id),isDelete:!0})},{immediate:!0}),e.watch(()=>T.value,o=>{var a,v,h;F.setContentLoading(!0),d.value=!o||(o==null?void 0:o.length)===0?[]:(a=g.cloneDeep(o))==null?void 0:a.filter(m=>!(m!=null&&m.affix)||(m==null?void 0:m.affix)==="default"),q.value=!o||(o==null?void 0:o.length)===0?[]:(v=g.cloneDeep(o))==null?void 0:v.filter(m=>(m==null?void 0:m.affix)&&(m==null?void 0:m.affix)!=="default"),(h=M.value)!=null&&h.grid&&w(d.value)},{deep:!0,immediate:!0});const b=o=>A.getComponent(o);return(o,a)=>{var z,C,W,K,j,Q,Z,ee,te,oe,ne,ae;const v=e.resolveComponent("el-tab-pane"),h=e.resolveComponent("el-tabs"),m=e.resolveComponent("el-step"),R=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:S,class:"low-code-wrapper",onDragover:I,onDrop:E},[(z=M.value)!=null&&z.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d.value,(t,y)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:y},[e.createElementVNode("div",Ye,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:y,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:V.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(C=M.value)!=null&&C.grid?(e.openBlock(),e.createBlock(e.unref(A.De),{key:1,ref_key:"gridLayoutRef",ref:L,layout:_.value,"onUpdate:layout":a[0]||(a[0]=t=>_.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.value,(t,y)=>{var Y,le;return e.openBlock(),e.createBlock(e.unref(A.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(A.verifyButton)((Y=d.value[y])==null?void 0:Y.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(A.verifyButton)((le=d.value[y])==null?void 0:le.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var ce,re,se,ie,ue,de,pe,ve,me,fe,he,ge;return[e.createElementVNode("div",{class:e.normalizeClass((re=q.value)!=null&&re.includes((ce=t==null?void 0:t.component)==null?void 0:ce.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",Je,e.toDisplayString((se=d.value[y])==null?void 0:se.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b((ie=d.value[y])==null?void 0:ie.comp)),{pageLayout:V.value,itemData:(ue=d.value[y])==null?void 0:ue.compData,childItemData:(de=d.value[y])==null?void 0:de.itemChildData,index:((pe=d.value[y])==null?void 0:pe.id)??y,parentTableId:(ve=d.value[y])==null?void 0:ve.tableId,children:(me=d.value[y])==null?void 0:me.children,level:1,config:{showIndex:(fe=d.value[y])==null?void 0:fe.showIndex,allowMove:(he=d.value[y])==null?void 0:he.allowMove,viewport:(ge=d.value[y])==null?void 0:ge.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(W=M.value)!=null&&W.tab?(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(h,{modelValue:p.value,"onUpdate:modelValue":a[1]||(a[1]=t=>p.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t,y)=>(e.openBlock(),e.createBlock(v,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b(t==null?void 0:t.comp)),{pageLayout:V.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:y,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(K=M.value)!=null&&K.step?(e.openBlock(),e.createBlock(R,{key:3,direction:"horizontal",active:O.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(t,y)=>(e.openBlock(),e.createBlock(m,{key:y,class:"step-item",status:D.value,onClick:Y=>i(t,y+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(j=M.value)!=null&&j.step?(e.openBlock(),e.createElementBlock("div",Ke,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(b((Q=n.value)==null?void 0:Q.comp)),{pageLayout:V.value,itemData:(Z=n.value)==null?void 0:Z.compData,childItemData:(ee=n.value)==null?void 0:ee.itemChildData,key:(te=n.value)==null?void 0:te.id,config:{showIndex:(oe=n.value)==null?void 0:oe.showIndex,allowMove:(ne=n.value)==null?void 0:ne.allowMove,viewport:(ae=n.value)==null?void 0:ae.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Qe=J._export_sfc(je,[["__scopeId","data-v-fda67a9b"]]);exports.modelFill=Pe;exports.modelSelect=Ie;exports.modelShow=Qe;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ref as G, resolveComponent as Z, createBlock as W, openBlock as _, createCommentVNode as s0, createSlots as B2, withCtx as I, renderSlot as g0, defineComponent as h2, onMounted as ae, createVNode as e0, createElementVNode as a0, createElementBlock as V, Fragment as y0, renderList as C0, createTextVNode as E2, toDisplayString as j0, reactive as d1, h as Be, Transition as qr, withDirectives as ut, vShow as qt, createApp as Yr, toRefs as T4, nextTick as y2, isRef as Kr, watch as n2, computed as i0, onBeforeUnmount as On, normalizeStyle as X0, normalizeClass as X3, resolveDynamicComponent as Yt, normalizeProps as Xr, guardReactiveProps as Qr, mergeProps as u1, withModifiers as z4, inject as Jr, watchEffect as _e, onUnmounted as f1, unref as nt, resolveDirective as Zr } from "vue";
|
|
2
2
|
import { S as ft } from "./index-BHtNKL1L.js";
|
|
3
|
-
import { aO as e8, W as P4, n as Je, c as t8, u as i8, T as vs, e as A4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as ws, aU as xs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
3
|
+
import { aO as e8, W as P4, n as Je, c as t8, u as i8, T as vs, e as A4, aP as n8, aQ as s8, aR as o8, aS as l8, d as r8, aT as ws, aU as xs } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0kcdG2ep.js";
|
|
4
4
|
import { _ as P0 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { bQ as V4, bR as E4, cf as a8, cg as bs, bG as c8, b8 as n3, V as h8, af as B4, aJ as Dt, b7 as _s, $ as L4, ch as d8, E as B3, p as st, s as pt, c as Y2, a as H4, ci as u8, aW as f8, aw as p8, cj as g8, b as m8, b2 as v8 } from "./index-DIUrwul5.js";
|
|
6
6
|
import { _ as xe } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
7
|
import { a as Dn, u as Mn } from "./index-AIq5wzuR.js";
|
|
8
|
-
import { s as Tn } from "./index-
|
|
9
|
-
import { T as ys, a as w8 } from "./threeViewerHost-
|
|
10
|
-
import { s as x8 } from "./index-
|
|
8
|
+
import { s as Tn } from "./index-B8Q8NZ73.js";
|
|
9
|
+
import { T as ys, a as w8 } from "./threeViewerHost-B_g_ki2p.js";
|
|
10
|
+
import { s as x8 } from "./index-EoOdoILl.js";
|
|
11
11
|
var b8 = "[object Date]";
|
|
12
12
|
function _8(n) {
|
|
13
13
|
return V4(n) && E4(n) == b8;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),I=require("./index-
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index-BsmTGDw1.cjs"),B=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRV8YvCu.cjs"),x=require("./index-C8qRkCgn.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-DhCphHrS.cjs"),k=require("./index-BpPyaNFa.cjs"),N={class:"avatar-model-wrap"},V={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:b}){const s=i,u=b,h=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),p=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{p.value=h.value+"/"+o},{immediate:!0});const w=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},S=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(p.value=h.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){x.ElMessage.error(r)}},y=async()=>{try{if(!p.value)return}catch(o){x.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",N,[e.createVNode(I.ssAvatar,{avatarUrl:p.value,avatarBlob:_.value,size:i.size,onClickAvatar:w,onSubmitImage:S,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",V,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=C._export_sfc(E,[["__scopeId","data-v-747bdfb7"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:b}){const s=i,u=e.ref({}),h=e.ref([]),d=b,p=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{u.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),S=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){x.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=S(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,h.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,m;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((m=i.userInfo)==null?void 0:m.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,a=>{var m;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(m=a.label)!=null&&m.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>p(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(k.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=C._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { s as H } from "./index-
|
|
3
|
-
import { d as M, e as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
2
|
+
import { s as H } from "./index-EoOdoILl.js";
|
|
3
|
+
import { d as M, e as P } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0kcdG2ep.js";
|
|
4
4
|
import { E as z } from "./index-DIUrwul5.js";
|
|
5
5
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-dVctwafW.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { K as Nu, L as Ea, M as Qk, _ as om, N as sm, O as ew } from "./index-
|
|
1
|
+
import { K as Nu, L as Ea, M as Qk, _ as om, N as sm, O as ew } from "./index-C2cXXsd3.js";
|
|
2
2
|
import { defineComponent as Q, shallowRef as bn, ref as B, computed as C, watch as we, onMounted as $t, watchEffect as Ll, createElementBlock as q, openBlock as M, normalizeStyle as Ze, normalizeClass as R, unref as o, createElementVNode as X, renderSlot as re, nextTick as Ye, useSlots as qn, toRef as Jt, createBlock as ye, Transition as Rl, withCtx as le, withDirectives as ht, createCommentVNode as pe, resolveDynamicComponent as Et, createTextVNode as Tt, toDisplayString as Oe, Fragment as tt, createVNode as J, vShow as qt, inject as Ge, onBeforeUnmount as pn, withModifiers as st, provide as Ot, reactive as ln, onActivated as id, onUpdated as Ha, cloneVNode as tw, Comment as Co, Text as nw, mergeProps as bt, getCurrentInstance as Dt, Teleport as lw, onBeforeMount as ud, readonly as rm, onDeactivated as aw, useAttrs as oo, createSlots as _l, renderList as kt, normalizeProps as ia, guardReactiveProps as La, h as et, triggerRef as Gr, isVNode as nl, toRaw as Ni, isRef as ba, vModelCheckbox as im, toRefs as ul, vModelRadio as um, onBeforeUpdate as cm, withKeys as An, vModelText as Qi, toHandlers as ow, resolveComponent as Yt, TransitionGroup as dm, markRaw as Js, effectScope as sw, resolveDirective as eu, toHandlerKey as rw, render as Oi, onUnmounted as tu, createApp as iw, defineProps as fm } from "vue";
|
|
3
3
|
import { i as uw, j as cw, k as cd, l as dw, C as wt, m as dd, n as El, o as nh, p as eo, q as wr, s as fd, t as pm, v as Cl, I as Jn, U as at, w as nu, x as to, y as fl, z as Sl, A as vm, B as il, D as ds, F as pl, G as Yn, H as Gl, J as xa, K as fw, L as pd, M as Xr, N as hm, O as lu, P as so, T as js, Q as vd, R as pw, S as vw, V as hw, W as gw, X as gm, Y as mm, Z as mw, _ as au, $ as Jr, a0 as lh, a1 as Uo, a2 as Eo, a3 as qa, a4 as ah, a5 as yw, a6 as bw, a7 as kw, a8 as oh, a9 as ww, aa as sh, E as Sw, u as ou, ab as Cw, a as ym } from "./index-AIq5wzuR.js";
|
|
4
4
|
import { i as hd, j as bm, S as Ew, k as km, l as wm, m as Sm, n as Cm, t as gd, o as zn, q as Em, r as $m, v as Nm, w as Om, x as $w, y as Nw, z as Ou, A as Tm, B as Ow, C as Tw, D as Iw, F as Qt, G as Je, H as Ne, I as te, _ as Te, J as Se, K as md, L as rh, M as Dn, N as Kn, O as Mn, P as pt, Q as Mw, R as At, T as yd, U as Ti, V as kn, W as We, X as Rw, Y as Tn, Z as Pt, $ as en, a0 as el, a1 as su, a2 as ka, a3 as jn, a4 as tc, a5 as ru, a6 as $e, a7 as Wa, a8 as Mt, a9 as Fe, aa as Xn, ab as fn, ac as _w, ad as nc, ae as bd, af as ut, ag as iu, ah as fs, ai as on, aj as ro, ak as Im, al as Pw, am as Rt, an as En, ao as wl, ap as Go, aq as kd, ar as Va, d as yl, as as ll, at as xl, au as In, av as Sr, c as he, aw as $a, ax as ps, ay as Po, az as Cr, aA as Ta, aB as lr, aC as Aw, aD as Rn, aE as Bl, aF as Dw, aG as Lw, aH as Mm, aI as xw, aJ as Rm, aK as uu, aL as ma, aM as no, aN as lo, aO as _m, aP as Bw, aQ as ar, aR as Pm, aS as ih, aT as Vw, aU as Zs, aV as Fw, aW as zw, aX as Kw, aY as Am, aZ as Hw, a_ as Ww, a$ as Dm, b0 as jw, b1 as Yw, b2 as Lm, b3 as qw, b4 as Uw, b5 as Gw, b6 as wd, b7 as Aa, b8 as ua, b9 as Xw, ba as Jw, bb as Zw, bc as lc, bd as ac, be as xm, bf as uh, bg as Qw, bh as eS, bi as tS, bj as Bm, bk as Vm, bl as Br, bm as nS, bn as ch, bo as lS, bp as aS, bq as oS, br as Fm, bs as sS, bt as rS, bu as iS, bv as uS, bw as cS, bx as oc, by as dS, bz as zm, bA as fS, bB as pS, bC as vS, bD as Km, bE as hS, bF as gS, bG as mS, bH as yS, E as Sd, g as jl, f as bS, bI as Xo, bJ as sc, bK as Cd, h as Ed, e as rc, bL as kS, p as Er, s as $o, u as Hm, bM as Wm } from "./index-DIUrwul5.js";
|
|
5
5
|
import { useRouter as jm } from "vue-router";
|
|
6
6
|
import { a as Ym, d as qm, e as Um, f as Gm, g as Xm, h as Jm } from "./index-CAPx0_D4.js";
|
|
7
|
-
import { E as wS, s as SS, g as Ii } from "./index-
|
|
8
|
-
import { i as CS, j as ES, k as $S, m as NS, n as dt, p as io, q as Zm, r as OS, t as Mi, s as kl, v as Zr, b as Qs, w as Qr, x as TS, y as Tu, I as Kl, z as Jo, a as $d, A as ic, B as Da, C as gl, D as Qm, E as No, F as Oo, G as ei, H as IS, J as MS, K as RS, L as Iu, M as _S, N as PS } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
7
|
+
import { E as wS, s as SS, g as Ii } from "./index-dVctwafW.js";
|
|
8
|
+
import { i as CS, j as ES, k as $S, m as NS, n as dt, p as io, q as Zm, r as OS, t as Mi, s as kl, v as Zr, b as Qs, w as Qr, x as TS, y as Tu, I as Kl, z as Jo, a as $d, A as ic, B as Da, C as gl, D as Qm, E as No, F as Oo, G as ei, H as IS, J as MS, K as RS, L as Iu, M as _S, N as PS } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0kcdG2ep.js";
|
|
9
9
|
import { _ as AS } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
10
10
|
import { _ as DS } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { u as LS, a as xS, g as uc, b as BS } from "./index-
|
|
12
|
-
import { t as VS } from "./index-
|
|
11
|
+
import { u as LS, a as xS, g as uc, b as BS } from "./index-EoOdoILl.js";
|
|
12
|
+
import { t as VS } from "./index-D0rVq6fA.js";
|
|
13
13
|
import { t as FS } from "./index-zHH5odRp.js";
|
|
14
|
-
import { q as ey, r as zS, u as KS, v as HS, w as WS } from "./array-
|
|
15
|
-
import { a as jS } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-
|
|
14
|
+
import { q as ey, r as zS, u as KS, v as HS, w as WS } from "./array-R-XVY8b6.js";
|
|
15
|
+
import { a as jS } from "./index.vue_vue_type_style_index_0_scoped_140f5e74_lang-D1MudhMh.js";
|
|
16
16
|
function YS() {
|
|
17
17
|
}
|
|
18
18
|
function ty(e, t, n, l) {
|