ss-component-new 1.2.22 → 1.2.23

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.
Files changed (136) hide show
  1. package/dist/{MTLLoader-Cgu6hVsY.cjs → MTLLoader-B8MnfNfT.cjs} +1 -1
  2. package/dist/{MTLLoader-6BGR4SPQ.js → MTLLoader-BD3cbBAW.js} +1 -1
  3. package/dist/{OrbitControls-KuEu6kM3.cjs → OrbitControls-2UHRU9Fu.cjs} +1 -1
  4. package/dist/{OrbitControls-CqrkpfUW.js → OrbitControls-D1pz0uFI.js} +1 -1
  5. package/dist/{animationData-FMGneVai.cjs → animationData-Bwh55Xw6.cjs} +1 -1
  6. package/dist/{animationData-OlBnUG8w.js → animationData-D0TJ-9dd.js} +4 -4
  7. package/dist/array-DMPAgNcb.cjs +11 -0
  8. package/dist/array-DTXrs6ZK.js +1207 -0
  9. package/dist/{dataUtil-DPRubJA4.js → dataUtil-gEKo7CEq.js} +2 -2
  10. package/dist/{dataUtil-D2dUTgHP.cjs → dataUtil-i5X2xhin.cjs} +1 -1
  11. package/dist/{fileUtil-D4f4EJ9p.js → fileUtil-CN00xr9W.js} +1 -1
  12. package/dist/{fileUtil-DWuPXxGz.cjs → fileUtil-GIRXMs25.cjs} +1 -1
  13. package/dist/{iconfont-CiYOe1nN.cjs → iconfont-C9-pGpAJ.cjs} +1 -1
  14. package/dist/{iconfont-D1aDkauN.js → iconfont-DTSZW2AU.js} +2 -2
  15. package/dist/icons/svg/LowCodeEvent.svg +1 -1
  16. package/dist/icons/svg/LowCodeExtend.svg +1 -1
  17. package/dist/icons/svg/LowCodeSetting.svg +1 -1
  18. package/dist/icons/svg/LowCodeStyle.svg +1 -1
  19. package/dist/{index-Dv32OdnH.js → index-2fqHNrPg.js} +4 -4
  20. package/dist/{index-CfrqPhLf.cjs → index-7Ru3e632.cjs} +1 -1
  21. package/dist/{index-DyA4ALuY.cjs → index-7gU0r1We.cjs} +1 -1
  22. package/dist/{index-Cgs7cequ.js → index-7oJ8Ile4.js} +1 -1
  23. package/dist/{index-C9o3guTc.js → index-B0dydZDW.js} +17 -17
  24. package/dist/{index-CIn_YMID.js → index-BD5yZDAq.js} +2 -2
  25. package/dist/index-BLwwxnzs.cjs +1 -0
  26. package/dist/{index-BQ1gqL2T.cjs → index-BNYeBPmi.cjs} +1 -1
  27. package/dist/{index-DEBf-IBT.cjs → index-BOJUyAaV.cjs} +9 -9
  28. package/dist/{index-BsXwkKZt.js → index-BQBxzTyE.js} +2 -2
  29. package/dist/{index-CJhLlcnS.js → index-BTTpV9o2.js} +3 -3
  30. package/dist/{index-CdNhl58g.cjs → index-BTfg83yY.cjs} +1 -1
  31. package/dist/{index-CkdrE77c.js → index-BVFL7Z_0.js} +3 -3
  32. package/dist/index-BVdolwlx.js +7293 -0
  33. package/dist/{index-D_zs3Ywk.cjs → index-BXEOQo2c.cjs} +1 -1
  34. package/dist/{index-C0eoTBsi.js → index-Be1LJMUR.js} +2 -2
  35. package/dist/{index-y9I5saNf.cjs → index-BkIFY0hK.cjs} +1 -1
  36. package/dist/{index-BvyKSIqa.js → index-Bm3FE_ss.js} +3 -3
  37. package/dist/{index-i1HrhN2m.js → index-BpTrDbkf.js} +4 -4
  38. package/dist/{index-DcgnW8IS.js → index-Bt2MaT2G.js} +6 -6
  39. package/dist/{index-BOwTBtjA.js → index-BuSsSHAY.js} +2733 -2817
  40. package/dist/{index-Vo9hn1HO.js → index-Bvk4OpkL.js} +2 -2
  41. package/dist/{index-Br1HQap-.js → index-BwEfrokO.js} +2 -2
  42. package/dist/{index-dJ_vyooa.cjs → index-C54wX50t.cjs} +1 -1
  43. package/dist/{index-CMSMrWWB.cjs → index-C6C5VWbs.cjs} +1 -1
  44. package/dist/{index-wFocLxVz.cjs → index-CADH_aSQ.cjs} +1 -1
  45. package/dist/{index-GVURdQmb.cjs → index-CFriKZ-T.cjs} +1 -1
  46. package/dist/index-CK54pscx.cjs +1 -0
  47. package/dist/{index-DdYGa8y9.js → index-Cl6HMOao.js} +1 -1
  48. package/dist/{index-C1xFocJD.js → index-CptCatmL.js} +2 -2
  49. package/dist/{index-BdEr19ln.js → index-CqYUVCh5.js} +12 -12
  50. package/dist/index-CsOz5vsv.cjs +1 -0
  51. package/dist/{index-kFjfkR4F.cjs → index-CtXpoEg0.cjs} +1 -1
  52. package/dist/{index-Dw_mx2E5.js → index-CvC2498b.js} +2 -2
  53. package/dist/{index-DN2RDo7w.js → index-CvrBt7bU.js} +3 -3
  54. package/dist/{index-B0mK1X2Z.js → index-D4pN9YmB.js} +2 -2
  55. package/dist/index-D8Y3imz9.cjs +1 -0
  56. package/dist/index-DEEZPcpU.cjs +1 -0
  57. package/dist/index-DEs8s152.js +3621 -0
  58. package/dist/{index-DV1Onr_-.cjs → index-DHp714Ep.cjs} +1 -1
  59. package/dist/index-DMbCaqEC.cjs +15 -0
  60. package/dist/{index-C7Wgog15.js → index-DNs9XPOG.js} +2 -2
  61. package/dist/{index-B3vewIE0.js → index-DOhvzke2.js} +5 -5
  62. package/dist/index-DPX3w6cO.js +2643 -0
  63. package/dist/{index-D6aL_qQ4.cjs → index-DQ3y1xkr.cjs} +1 -1
  64. package/dist/{index-Gqf0Dw_K.cjs → index-DR9beXhk.cjs} +1 -1
  65. package/dist/{index-C8YYklCT.cjs → index-DSchKIyh.cjs} +1 -1
  66. package/dist/{index-vIQwCbI-.cjs → index-DSlPg3dk.cjs} +1 -1
  67. package/dist/{index-CYvWTBiC.cjs → index-DbCNaQ87.cjs} +1 -1
  68. package/dist/{index-B1KcMjms.cjs → index-Dfwm0xPp.cjs} +1 -1
  69. package/dist/index-DiRBJiMW.js +43 -0
  70. package/dist/{index-BuQNI1CB.js → index-DlIkbsRf.js} +6 -6
  71. package/dist/{index-B__9hFoC.cjs → index-DllJulGH.cjs} +1 -1
  72. package/dist/{index-BJadEVee.js → index-Dm_WlV6R.js} +5542 -5543
  73. package/dist/{index-D4nuGSp1.cjs → index-Do8zI4DM.cjs} +1 -1
  74. package/dist/{index-7w9QLGZ8.cjs → index-DrWIUUZK.cjs} +1 -1
  75. package/dist/index-G_cKl_J4.js +2379 -0
  76. package/dist/{index-CkJaR30x.js → index-NlkdTb--.js} +4 -4
  77. package/dist/{index-CuYt_7-p.js → index-ThNNBX7h.js} +1 -1
  78. package/dist/{index-DzuOO-jn.js → index-XXKsLOYd.js} +2 -2
  79. package/dist/{index-_7Qm6usF.cjs → index-dwX_BHyo.cjs} +1 -1
  80. package/dist/{index-D-ygp57X.cjs → index-eH9RMVXv.cjs} +1 -1
  81. package/dist/index-pmcRbjPd.cjs +1 -0
  82. package/dist/{index-B5KCSN4c.cjs → index-tttYIzsn.cjs} +1 -1
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bhj73Dii.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtycIAIT.js} +2 -2
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DAjyk3_9.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6X3fCNs.cjs} +1 -1
  85. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DbaX17jD.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-De0avjy5.js} +6 -6
  86. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B0Slk6gv.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DhMDLOg8.cjs} +1 -1
  87. package/dist/{index.vue_vue_type_style_index_0_scoped_980cb04a_lang-BmYxcD8z.js → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-CEcxaThh.js} +13 -13
  88. package/dist/{index.vue_vue_type_style_index_0_scoped_980cb04a_lang-DGpKXuuO.cjs → index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-DLuOs1IZ.cjs} +1 -1
  89. package/dist/{index.vue_vue_type_style_index_1_lang-8MlG6f_5.js → index.vue_vue_type_style_index_1_lang-B0l6QIWy.js} +531 -536
  90. package/dist/{index.vue_vue_type_style_index_1_lang-BMAOkg3Y.cjs → index.vue_vue_type_style_index_1_lang-CC1o5rIu.cjs} +8 -8
  91. package/dist/{index.vue_vue_type_style_index_1_lang-C5-R1ghT.cjs → index.vue_vue_type_style_index_1_lang-Chzrrthw.cjs} +1 -1
  92. package/dist/{index.vue_vue_type_style_index_1_lang-QVwLsuO7.js → index.vue_vue_type_style_index_1_lang-DzZEPkuk.js} +5 -5
  93. package/dist/{isString-D6Z6SOrb.cjs → isString-CELwppr9.cjs} +1 -1
  94. package/dist/{isString-DOZgMp8l.js → isString-DvY0kl3S.js} +1 -1
  95. package/dist/{main-BCD-Orm3.js → main-DQXqHTYg.js} +5 -5
  96. package/dist/{main-DUUTokjq.cjs → main-yiUkyrA7.cjs} +1 -1
  97. package/dist/ss-component.cjs +1 -1
  98. package/dist/ss-component.css +2 -2
  99. package/dist/ss-component.js +12 -12
  100. package/dist/ss-component2.cjs +1 -1
  101. package/dist/ss-component2.js +12 -12
  102. package/dist/{threeModel-DWfIRtBe.js → threeModel-BiWZCOOI.js} +5 -5
  103. package/dist/{threeModel-D-cNRyXR.cjs → threeModel-Cva5i9Dy.cjs} +1 -1
  104. package/dist/{threePreview-CB4s2usq.cjs → threePreview-BNvDY6xx.cjs} +1 -1
  105. package/dist/{threePreview-BelyhkDx.js → threePreview-CjFKHY3_.js} +4 -4
  106. package/dist/{threeSceneView-9pPPVjCA.cjs → threeSceneView-DM8uof_D.cjs} +1 -1
  107. package/dist/{threeSceneView-C66YfUi3.js → threeSceneView-DPTQ_xR-.js} +11 -11
  108. package/dist/{threeSceneViewForCPMPIP-WBguXbnU.js → threeSceneViewForCPMPIP-Bqb44i-c.js} +50 -50
  109. package/dist/{threeSceneViewForCPMPIP-DLVSylJ7.cjs → threeSceneViewForCPMPIP-D5jl1r-h.cjs} +1 -1
  110. package/dist/{threeTrackPathView-DxO-9BKu.js → threeTrackPathView-BvxoafSz.js} +6 -6
  111. package/dist/{threeTrackPathView-C4c7FI2n.cjs → threeTrackPathView-DgnuPrBe.cjs} +1 -1
  112. package/dist/{threeViewerHost-CNs819Rf.js → threeViewerHost-CKmZPGir.js} +4 -4
  113. package/dist/{threeViewerHost-Ihdu1cjR.cjs → threeViewerHost-D80V4Cfh.cjs} +1 -1
  114. package/dist/{urdfTree-CLhAUUAD.js → urdfTree-BxuavyNQ.js} +1 -1
  115. package/dist/{urdfTree-Di3A1LA8.cjs → urdfTree-wR2vnG4s.cjs} +1 -1
  116. package/dist/{workpieceTreePanel-CzDrMcRN.cjs → workpieceTreePanel-C2BXrv3k.cjs} +1 -1
  117. package/dist/{workpieceTreePanel--iaoqT8x.js → workpieceTreePanel-CSKzSdIt.js} +5 -5
  118. package/package.json +1 -1
  119. package/public/icons/svg/LowCodeEvent.svg +1 -1
  120. package/public/icons/svg/LowCodeExtend.svg +1 -1
  121. package/public/icons/svg/LowCodeSetting.svg +1 -1
  122. package/public/icons/svg/LowCodeStyle.svg +1 -1
  123. package/dist/array-Ct7vOLI-.cjs +0 -11
  124. package/dist/array-W5079asF.js +0 -691
  125. package/dist/index-4WD9Ho5n.js +0 -2933
  126. package/dist/index-BA9JRDoC.cjs +0 -1
  127. package/dist/index-BVaHwt5f.cjs +0 -1
  128. package/dist/index-CFI3jKGA.js +0 -2671
  129. package/dist/index-CO41Br9G.cjs +0 -1
  130. package/dist/index-CTq3U1p_.cjs +0 -1
  131. package/dist/index-CvZk_MDD.cjs +0 -15
  132. package/dist/index-Db9w-sM_.cjs +0 -1
  133. package/dist/index-DitsEkB9.js +0 -673
  134. package/dist/index-DooNp_Nd.js +0 -12047
  135. package/dist/index-JAuJmfCC.cjs +0 -1
  136. package/dist/index-rlStojTL.js +0 -52
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_1_lang-BMAOkg3Y.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f=t.defineComponent({__name:"index",props:{modelValue:String,disabled:{type:Boolean,default:!1},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:d}){const e=n,i=t.ref(e.modelValue),o=d,s=l=>{o("clickTrigger",l)};return(l,a)=>{const u=t.resolveComponent("el-button");return t.openBlock(),t.createBlock(u,{type:e==null?void 0:e.buttonType,id:e!=null&&e.emptyColor?"":"themeButton",onClick:a[0]||(a[0]=c=>s(i.value)),loading:e==null?void 0:e.loading,disabled:e==null?void 0:e.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value),1)]),_:1},8,["type","id","loading","disabled"])}}}),g={class:"dialog-title"},m={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:Number,default:600},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},emits:["beforeDestroy"],setup(n,{emit:d}){const e=n,i=d,o=t.ref(!1),s=()=>{i("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(l,a)=>{const u=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":s,draggable:"","append-to-body":"",style:t.normalizeStyle({height:e==null?void 0:e.dialogHeight}),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":n.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),header:t.withCtx(()=>[t.createElementVNode("div",g,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(l.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(l.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(m,[["__scopeId","data-v-70924351"]]);exports._sfc_main=f;exports.ssDialog=y;
@@ -1,673 +0,0 @@
1
- import { ref as $, computed as ne, resolveComponent as Y, createElementBlock as w, openBlock as d, Fragment as Z, renderList as ee, createElementVNode as g, toDisplayString as K, createVNode as f, watch as me, createBlock as O, resolveDynamicComponent as J, unref as p, withCtx as _, isRef as Me, createTextVNode as Q, createCommentVNode as z, normalizeStyle as Ne, withModifiers as ae, normalizeClass as Ue, nextTick as Fe } from "vue";
2
- import { G as de, g as Ae, D as ze, n as He, v as $e, b as We } from "./index-DooNp_Nd.js";
3
- import { p as re, s as oe, c as A, E as Ge } from "./index-BJadEVee.js";
4
- import { a as he, u as Oe, E as Pe } from "./index.vue_vue_type_style_index_1_lang-8MlG6f_5.js";
5
- import { s as F, h as Be, o as Ve, b as Ye, c as pe, d as qe, f as se, g as Je, i as Xe, j as Re, k as je, l as ve, m as ce, n as Ke, t as Qe, p as Ze } from "./array-W5079asF.js";
6
- import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- import et from "./index-rlStojTL.js";
8
- import { a as tt, b as at } from "./index-BOwTBtjA.js";
9
- import { s as nt } from "./index-C9o3guTc.js";
10
- const ot = { class: "type-select" }, lt = { class: "group-label" }, st = { class: "group-items" }, ct = ["onDragstart"], rt = {
11
- __name: "index",
12
- props: {
13
- compContainerRef: Object
14
- },
15
- emits: [""],
16
- setup(ge, { emit: I }) {
17
- const B = he(re), { itemData: le, activeItemIndex: ie } = oe(B), m = I, H = $(null), k = ne(() => {
18
- var N, P, M;
19
- const E = { label: "布局", items: ["TABS", "LAYOUT"] }, V = { label: "常用", items: ["FORM", "TABLE"] }, R = { label: "高级", items: ["STEP", "TIMELINE", "CHART", "SIGNATURE", "AVATAR", "FOLD"] }, b = (N = de.value) == null ? void 0 : N.filter((S) => {
20
- var l, e;
21
- return (e = E == null ? void 0 : E.items) == null ? void 0 : e.includes((l = S == null ? void 0 : S.type) == null ? void 0 : l.toUpperCase());
22
- }), G = (P = de.value) == null ? void 0 : P.filter((S) => {
23
- var l, e;
24
- return (e = V == null ? void 0 : V.items) == null ? void 0 : e.includes((l = S == null ? void 0 : S.type) == null ? void 0 : l.toUpperCase());
25
- }), T = (M = de.value) == null ? void 0 : M.filter((S) => {
26
- var l, e;
27
- return (e = R == null ? void 0 : R.items) == null ? void 0 : e.includes((l = S == null ? void 0 : S.type) == null ? void 0 : l.toUpperCase());
28
- });
29
- return [
30
- {
31
- ...E,
32
- items: b
33
- },
34
- {
35
- ...V,
36
- items: G
37
- },
38
- {
39
- ...R,
40
- items: T
41
- }
42
- ];
43
- }), W = (E, V) => {
44
- try {
45
- E.dataTransfer.clearData();
46
- const R = {
47
- ...V,
48
- timestamp: Date.now()
49
- // 添加时间戳确保唯一性
50
- };
51
- E.dataTransfer.setData("application/json", JSON.stringify(R)), E.dataTransfer.effectAllowed = "copyMove", E.target.classList.add("dragging"), m("handleDragStart", V);
52
- } catch (R) {
53
- console.error("Drag start error:", R);
54
- }
55
- };
56
- return (E, V) => {
57
- const R = Y("svg-icon");
58
- return d(), w("div", ot, [
59
- (d(!0), w(Z, null, ee(k.value, (b) => (d(), w("div", {
60
- class: "group-item",
61
- key: b == null ? void 0 : b.label
62
- }, [
63
- g("div", lt, K(b == null ? void 0 : b.label), 1),
64
- g("div", st, [
65
- (d(!0), w(Z, null, ee(b == null ? void 0 : b.items, (G, T) => (d(), w("div", {
66
- class: "type-list",
67
- title: "鼠标拖动",
68
- ref_for: !0,
69
- ref_key: "dragItem",
70
- ref: H,
71
- key: T,
72
- draggable: !0,
73
- onDragstart: (N) => W(N, G)
74
- }, [
75
- f(R, {
76
- name: G.icon,
77
- style: { width: "15px", height: "15px" }
78
- }, null, 8, ["name"]),
79
- g("div", null, K(G.name), 1)
80
- ], 40, ct))), 128))
81
- ])
82
- ]))), 128))
83
- ]);
84
- };
85
- }
86
- }, zt = /* @__PURE__ */ fe(rt, [["__scopeId", "data-v-951fb5b4"]]), it = { class: "fill-content" }, ut = { class: "overall-config-wrapper" }, dt = { class: "operate-content" }, pt = ["onClick"], vt = {
87
- class: "collapse-title-item",
88
- title: "编辑"
89
- }, mt = { key: 1 }, ht = ["onClick"], ft = { class: "icon-content" }, gt = {
90
- key: 0,
91
- class: "edit-content"
92
- }, _t = ["onClick"], yt = { title: "设置" }, Ct = ["onClick"], Dt = { class: "parent-main" }, wt = { style: { display: "flex", "justify-content": "space-between" } }, It = { title: "样式" }, kt = { title: "交互" }, bt = { title: "扩展" }, xt = { style: { width: "100%", "max-height": "500px", overflow: "auto" } }, Tt = {
93
- __name: "index",
94
- setup(ge) {
95
- const I = he(re), { itemData: B, originalData: le } = oe(I), ie = Oe(), { activeMenuPath: m } = oe(ie);
96
- $([]);
97
- const H = $([]), k = $([]), W = $([]), E = ne(() => {
98
- var l, e, u, c;
99
- return ((l = F.value) == null ? void 0 : l.length) > 0 && (e = F.value) != null && e.every((r) => {
100
- var x, L;
101
- return (r == null ? void 0 : r.comp) === ((L = (x = F.value) == null ? void 0 : x[0]) == null ? void 0 : L.comp);
102
- }) ? (c = (u = F.value) == null ? void 0 : u[0]) == null ? void 0 : c.comp : null;
103
- }), V = (l) => {
104
- var u;
105
- let e = (u = A(k.value)) == null ? void 0 : u.map((c, r) => (l === r && (c.content = !0), c));
106
- k.value = e;
107
- }, R = (l) => {
108
- var u;
109
- let e = (u = A(k.value)) == null ? void 0 : u.map((c, r) => (l === r && (c.content = !1), c));
110
- k.value = e, F.value = A(B.value);
111
- }, b = (l, e) => {
112
- var x;
113
- let u = (x = A(k.value)) == null ? void 0 : x.map((L, n) => (l === n && (L.content = !1), L));
114
- k.value = u;
115
- const c = A(B.value), r = c == null ? void 0 : c.filter((L, n) => (n === l && (L.name = e), L));
116
- I.setOriginalData(r), I.setItemData(r);
117
- }, G = (l) => {
118
- const e = A(B.value), u = e == null ? void 0 : e.map((c, r) => ((c == null ? void 0 : c.name) === (l == null ? void 0 : l.name) ? c.isShow = !(l != null && l.isShow) : c.isShow = c.isShow, c));
119
- B.value = u;
120
- };
121
- me(
122
- () => B.value,
123
- () => {
124
- var l, e, u, c;
125
- !B.value || ((l = B.value) == null ? void 0 : l.length) === 0 ? F.value = [] : F.value = (e = B.value) == null ? void 0 : e.filter((r) => (r == null ? void 0 : r.comp) !== "methodButton"), H.value = F.value, k.value = (u = A(H.value)) == null ? void 0 : u.map((r, x) => ({
126
- id: x,
127
- content: !1
128
- })), W.value = (c = A(H.value)) == null ? void 0 : c.map((r, x) => ({
129
- id: x,
130
- isShow: r == null ? void 0 : r.isShow
131
- }));
132
- },
133
- { deep: !0, immediate: !0 }
134
- );
135
- const T = (l) => Ae(l), N = (l, e, u, c) => {
136
- var x, L;
137
- if (!l) return;
138
- let r = A(B.value);
139
- r = (x = r == null ? void 0 : r.map((n, v) => {
140
- if (c && v === u) {
141
- const { compData: s, itemChildData: t } = l;
142
- return n.compData = s, n.itemChildData = t, n;
143
- }
144
- return v === u && (n.compData = l), n;
145
- })) == null ? void 0 : x.filter((n) => (n == null ? void 0 : n.comp) !== "methodButton"), k.value = (L = A(r)) == null ? void 0 : L.map((n, v) => ({
146
- id: v,
147
- content: !1
148
- })), I.setOriginalData(r), I.setItemData(r);
149
- }, P = $(null), M = (l, e) => {
150
- if (!e) {
151
- I.setActiveItemIndex(l);
152
- return;
153
- }
154
- I.setActiveItemIndex(-1);
155
- }, S = (l) => {
156
- Pe.confirm("是否确认要删除", "", {
157
- confirmButtonText: "确认",
158
- cancelButtonText: "取消",
159
- type: "warning"
160
- }).then(
161
- () => {
162
- const e = A(B.value), u = e == null ? void 0 : e.filter((c, r) => r !== l);
163
- I.setOriginalData(u), I.setItemData(u), I.setActiveItemIndex(-1), Ge({
164
- type: "success",
165
- message: "删除成功"
166
- });
167
- }
168
- ).catch(() => {
169
- });
170
- };
171
- return (l, e) => {
172
- var L;
173
- const u = Y("svg-icon"), c = Y("el-tab-pane"), r = Y("el-card"), x = Y("el-tabs");
174
- return d(), w("div", it, [
175
- e[10] || (e[10] = g("div", { class: "fill-operate" }, "操作栏", -1)),
176
- g("div", ut, [
177
- (d(), O(J(T(E.value + "style")), {
178
- target: "overall",
179
- optionItems: p(Ve),
180
- compType: E.value,
181
- comp: (L = p(F)) == null ? void 0 : L[0],
182
- onChange: p(Be)
183
- }, null, 40, ["optionItems", "compType", "comp", "onChange"]))
184
- ]),
185
- g("div", dt, [
186
- f(et, {
187
- class: "collapse-content",
188
- collapseContents: p(F),
189
- accordion: !0,
190
- onChange: p(Ye),
191
- ref_key: "ssCollapseRef",
192
- ref: P
193
- }, {
194
- title: _(({ item: n, index: v, isActive: s }) => {
195
- var t, a, i, h, C, U, q, X, j, te;
196
- return [
197
- g("div", {
198
- class: "collapse-title-content",
199
- onClick: (y) => M(v, s)
200
- }, [
201
- g("div", vt, [
202
- (a = (t = k.value) == null ? void 0 : t.find((y) => y.id === v)) != null && a.content ? z("", !0) : (d(), w("div", {
203
- key: 0,
204
- class: "collapse-title",
205
- style: Ne({ marginRight: n.name && n.name !== "" ? "8px" : "0px" })
206
- }, K(n.name), 5)),
207
- (h = (i = k.value) == null ? void 0 : i.find((y) => y.id === v)) != null && h.content ? (d(), w("div", mt, [
208
- f(at, {
209
- modelValue: n.name,
210
- "onUpdate:modelValue": (y) => n.name = y,
211
- onClick: e[0] || (e[0] = ae(() => {
212
- }, ["stop"]))
213
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
214
- ])) : z("", !0),
215
- (U = (C = k.value) == null ? void 0 : C.find((y) => y.id === v)) != null && U.content ? z("", !0) : (d(), w("div", {
216
- key: 2,
217
- onClick: ae((y) => V(v), ["stop"]),
218
- class: "icon-content"
219
- }, [
220
- f(u, {
221
- name: "Edit",
222
- style: { width: "13px", height: "13px" }
223
- })
224
- ], 8, ht))
225
- ]),
226
- g("div", ft, [
227
- (X = (q = k.value) == null ? void 0 : q.find((y) => y.id === v)) != null && X.content ? (d(), w("div", gt, [
228
- f(u, {
229
- name: "Cancel",
230
- style: { width: "16px", height: "16px" },
231
- class: "icon-content",
232
- onClick: ae((y) => R(v), ["stop"])
233
- }, null, 8, ["onClick"]),
234
- f(u, {
235
- name: "Save",
236
- onClick: ae((y) => b(v, n.name), ["stop"]),
237
- style: { width: "16px", height: "16px", fill: "var(--ssComponent-primary-color)" },
238
- class: "icon-content"
239
- }, null, 8, ["onClick"])
240
- ])) : z("", !0),
241
- (te = (j = k.value) == null ? void 0 : j.find((y) => y.id === v)) != null && te.content ? z("", !0) : (d(), w("div", {
242
- key: 1,
243
- onClick: ae((y) => S(v), ["stop"]),
244
- class: "icon-content"
245
- }, [
246
- f(u, {
247
- name: "Delete",
248
- style: { width: "16px", height: "16px" }
249
- })
250
- ], 8, _t))
251
- ])
252
- ], 8, pt)
253
- ];
254
- }),
255
- content: _(({ item: n, index: v }) => [
256
- f(x, {
257
- modelValue: p(pe),
258
- "onUpdate:modelValue": e[2] || (e[2] = (s) => Me(pe) ? pe.value = s : null),
259
- class: "config-tabs",
260
- onTabClick: M
261
- }, {
262
- default: _(() => [
263
- f(c, {
264
- label: "设置",
265
- name: "data"
266
- }, {
267
- label: _(() => [
268
- g("span", yt, [
269
- f(u, {
270
- name: "LowCodeSetting",
271
- style: { width: "15px", height: "15px", "margin-right": "5px" }
272
- }),
273
- e[3] || (e[3] = Q("设置"))
274
- ])
275
- ]),
276
- default: _(() => {
277
- var s, t;
278
- return [
279
- g("div", {
280
- class: "comp-child",
281
- onClick: (a) => M(v)
282
- }, [
283
- (d(), O(J(T(n.comp + "Operate")), {
284
- itemContents: n == null ? void 0 : n.compData,
285
- originalItemContents: (t = (s = H.value) == null ? void 0 : s.find((a, i) => i === v)) == null ? void 0 : t.compData,
286
- itemChildData: n == null ? void 0 : n.itemChildData,
287
- onChange: (a, i) => N(a, n, v, i)
288
- }, null, 40, ["itemContents", "originalItemContents", "itemChildData", "onChange"]))
289
- ], 8, Ct),
290
- g("div", Dt, [
291
- e[5] || (e[5] = g("div", { class: "operate-title" }, [
292
- g("div", null, K("显隐控制"))
293
- ], -1)),
294
- g("div", wt, [
295
- e[4] || (e[4] = g("div", { class: "operate-center-content" }, K("是否显示"), -1)),
296
- f(tt, {
297
- value: W.value.find((a) => a.id === v).isShow,
298
- "onUpdate:value": (a) => W.value.find((i) => i.id === v).isShow = a,
299
- onClick: (a) => G(n)
300
- }, null, 8, ["value", "onUpdate:value", "onClick"])
301
- ])
302
- ])
303
- ];
304
- }),
305
- _: 2
306
- }, 1024),
307
- f(c, {
308
- label: "样式",
309
- name: "style"
310
- }, {
311
- label: _(() => [
312
- g("span", It, [
313
- f(u, {
314
- name: "LowCodeStyle",
315
- style: { width: "15px", height: "15px", "margin-right": "5px" }
316
- }),
317
- e[6] || (e[6] = Q("样式"))
318
- ])
319
- ]),
320
- default: _(() => [
321
- (d(), O(J(T((n == null ? void 0 : n.comp) + "style")), {
322
- target: "alone",
323
- compType: n == null ? void 0 : n.comp,
324
- comp: n,
325
- optionItems: p(Ve),
326
- onChange: (s) => p(Be)(s, n)
327
- }, null, 40, ["compType", "comp", "optionItems", "onChange"]))
328
- ]),
329
- _: 2
330
- }, 1024),
331
- f(c, {
332
- label: "交互",
333
- name: "event"
334
- }, {
335
- label: _(() => [
336
- g("span", kt, [
337
- f(u, {
338
- name: "LowCodeEvent",
339
- style: { width: "15px", height: "15px", "margin-right": "5px" }
340
- }),
341
- e[7] || (e[7] = Q("交互"))
342
- ])
343
- ]),
344
- default: _(() => [
345
- e[8] || (e[8] = Q(" 交互 "))
346
- ]),
347
- _: 1,
348
- __: [8]
349
- }),
350
- f(c, {
351
- label: "扩展",
352
- name: "extend"
353
- }, {
354
- label: _(() => [
355
- g("span", bt, [
356
- f(u, {
357
- name: "LowCodeExtend",
358
- style: { width: "15px", height: "15px", "margin-right": "5px" }
359
- }),
360
- e[9] || (e[9] = Q("扩展"))
361
- ])
362
- ]),
363
- default: _(() => [
364
- f(x, {
365
- "tab-position": "left",
366
- modelValue: p(se),
367
- "onUpdate:modelValue": e[1] || (e[1] = (s) => Me(se) ? se.value = s : null),
368
- class: "extend-tabs",
369
- onTabChange: p(qe)
370
- }, {
371
- default: _(() => [
372
- (d(!0), w(Z, null, ee(p(Je), (s, t) => (d(), O(c, {
373
- key: s == null ? void 0 : s.name,
374
- label: s == null ? void 0 : s.label,
375
- name: s == null ? void 0 : s.name
376
- }, {
377
- default: _(() => [
378
- f(r, null, {
379
- default: _(() => {
380
- var a, i, h;
381
- return [
382
- (d(), O(J(T((a = s == null ? void 0 : s.component) == null ? void 0 : a.comp)), {
383
- compItem: s == null ? void 0 : s.component,
384
- itemData: (i = s == null ? void 0 : s.component) == null ? void 0 : i.compData,
385
- childItemData: (h = s == null ? void 0 : s.component) == null ? void 0 : h.itemChildData,
386
- key: t,
387
- level: 1,
388
- onChange: p(Re),
389
- onOnButtonClick: p(Xe)
390
- }, null, 40, ["compItem", "itemData", "childItemData", "onChange", "onOnButtonClick"]))
391
- ];
392
- }),
393
- _: 2
394
- }, 1024)
395
- ]),
396
- _: 2
397
- }, 1032, ["label", "name"]))), 128))
398
- ]),
399
- _: 1
400
- }, 8, ["modelValue", "onTabChange"])
401
- ]),
402
- _: 1
403
- })
404
- ]),
405
- _: 2
406
- }, 1032, ["modelValue"])
407
- ]),
408
- _: 1
409
- }, 8, ["collapseContents", "onChange"])
410
- ]),
411
- f(nt, {
412
- class: "task-dialog-wrapper",
413
- visible: p(ve).show,
414
- title: p(ve).title,
415
- dialogWidth: p(ve).width,
416
- onBeforeDestroy: p(je)
417
- }, {
418
- default: _(() => {
419
- var n, v;
420
- return [
421
- g("div", xt, [
422
- p(ce) ? (d(), O(J(T(((n = p(ce)) == null ? void 0 : n.comp) + "extend")), {
423
- key: 0,
424
- target: "alone",
425
- comp: p(ce),
426
- extendItem: p(Ze),
427
- compType: (v = p(ce)) == null ? void 0 : v.comp,
428
- activeTabName: p(se),
429
- relatedData: p(Qe),
430
- onChange: p(Re),
431
- onOnButtonClick: p(Ke)
432
- }, null, 40, ["comp", "extendItem", "compType", "activeTabName", "relatedData", "onChange", "onOnButtonClick"])) : z("", !0)
433
- ])
434
- ];
435
- }),
436
- _: 1
437
- }, 8, ["visible", "title", "dialogWidth", "onBeforeDestroy"])
438
- ]);
439
- };
440
- }
441
- }, Ht = /* @__PURE__ */ fe(Tt, [["__scopeId", "data-v-f0e84b56"]]), St = { style: { display: "flex" } }, Lt = { key: 1 }, Et = {
442
- key: 3,
443
- style: { "margin-top": "30px" }
444
- }, Mt = {
445
- __name: "index",
446
- setup(ge) {
447
- const I = he(re), { itemData: B, activeItemIndex: le, pageMapState: ie } = oe(I), m = $([]), H = $(1), k = $(""), W = Oe(re), { activeMenuPath: E } = oe(W), V = $(null), R = $(null), b = $(24), G = $(2), T = $([]), N = ne(() => {
448
- var t, a, i, h;
449
- return ((t = m.value) == null ? void 0 : t.length) > 0 && ((a = m.value) != null && a.every((C) => C == null ? void 0 : C.layout)) ? (h = (i = m.value) == null ? void 0 : i[0]) == null ? void 0 : h.layout : "vertical";
450
- }), P = ne(() => {
451
- var t, a;
452
- return (a = (t = m.value) == null ? void 0 : t[0]) == null ? void 0 : a.isStepLayout;
453
- }), M = $(null), S = ne(() => {
454
- var t, a, i;
455
- return ((t = m.value) == null ? void 0 : t.length) > 0 && N.value === "horizontal" ? (i = (a = m.value) == null ? void 0 : a[0]) == null ? void 0 : i.name : "";
456
- }), l = (t, a) => {
457
- console.log("clickStep", t, a), H.value = a, M.value = t;
458
- }, e = (t) => {
459
- var C;
460
- if (!t) return;
461
- let a = null;
462
- const i = A(m.value);
463
- if (le.value >= 0 && (a = i == null ? void 0 : i[le.value]), a && a.comp === "Layout") {
464
- const { compData: U = [] } = a;
465
- ((C = U == null ? void 0 : U.find((X) => {
466
- const { key: j } = X;
467
- return j === "children";
468
- })) == null ? void 0 : C.contents).push({
469
- comp: t.comp,
470
- name: t.name,
471
- compData: []
472
- }), I.setItemData(i);
473
- return;
474
- }
475
- const h = A(m.value);
476
- h.push({
477
- comp: t.comp,
478
- name: t.name,
479
- compData: []
480
- }), I.setItemData(h), v(h);
481
- }, u = (t) => {
482
- t.preventDefault(), t.dataTransfer.dropEffect = "copy";
483
- }, c = async (t) => {
484
- try {
485
- const a = t.dataTransfer.getData("application/json");
486
- if (!a) return;
487
- const i = JSON.parse(a), h = await r(t), C = x(i, h);
488
- await Fe(), L(C), e(JSON.parse(a || "")), console.log("drop"), n();
489
- } catch (a) {
490
- console.error("Drop error:", a), n();
491
- }
492
- }, r = async (t) => V.value ? new Promise((a) => {
493
- requestAnimationFrame(() => {
494
- const i = V.value.getBoundingClientRect(), h = t.clientX - i.left, C = t.clientY, U = Math.floor(h / (i.width / b.value)), q = Math.floor(C / (i.width / b.value));
495
- a({
496
- x: Math.max(0, U),
497
- y: Math.max(0, q),
498
- w: b.value,
499
- h: G.value
500
- });
501
- });
502
- }) : { x: 0, y: 0 }, x = (t, a) => {
503
- var h, C;
504
- const i = `item_${Date.now()}_${(C = (h = Math.random()) == null ? void 0 : h.toString(36)) == null ? void 0 : C.substring(2, 9)}`;
505
- return {
506
- i,
507
- id: i,
508
- x: a.x,
509
- y: a.y,
510
- w: a.w,
511
- h: a.h,
512
- component: t,
513
- minW: 2,
514
- minH: 2
515
- };
516
- }, L = (t) => {
517
- v([...T.value, t], !0);
518
- }, n = () => {
519
- document.querySelectorAll(".dragging").forEach((t) => {
520
- t.classList.remove("dragging");
521
- });
522
- }, v = (t, a) => {
523
- T.value = a ? t : We(t), W.setContentLoading(!1);
524
- };
525
- me(() => T.value, (t) => {
526
- I.setItemGridData({
527
- pageKey: E.value,
528
- results: t
529
- });
530
- }, { immediate: !0 }), me(() => B.value, (t) => {
531
- W.setContentLoading(!0), m.value = !t || (t == null ? void 0 : t.length) === 0 ? [] : A(t), v(m.value);
532
- }, { immediate: !0 });
533
- const s = (t) => Ae(t);
534
- return (t, a) => {
535
- var q, X, j, te, y, _e, ye;
536
- const i = Y("el-tab-pane"), h = Y("el-tabs"), C = Y("el-step"), U = Y("el-steps");
537
- return d(), w("div", {
538
- ref_key: "containerRef",
539
- ref: V,
540
- class: "low-code-wrapper",
541
- onDragover: u,
542
- onDrop: c
543
- }, [
544
- !P.value && N.value === "vertical" ? (d(), O(p(ze), {
545
- key: 0,
546
- ref_key: "gridLayoutRef",
547
- ref: R,
548
- layout: T.value,
549
- "onUpdate:layout": a[0] || (a[0] = (o) => T.value = o),
550
- "prevent-collision": !1,
551
- "is-draggable": !0,
552
- "is-resizable": !0,
553
- responsive: !1,
554
- "col-num": 24,
555
- margin: [8, 16]
556
- }, {
557
- default: _(() => [
558
- (d(!0), w(Z, null, ee(T.value, (o, D) => {
559
- var ue, Ce;
560
- return d(), O(p(He), {
561
- key: o.i,
562
- x: o.x,
563
- y: o.y,
564
- "min-h": o.minH,
565
- "max-h": o.maxH,
566
- "min-w": o.minW,
567
- w: o.w,
568
- h: p($e)((ue = m.value[D]) == null ? void 0 : ue.comp) ? 0 : o.h,
569
- i: o.i,
570
- class: Ue(p($e)((Ce = m.value[D]) == null ? void 0 : Ce.comp) ? "grid-method-button" : "")
571
- }, {
572
- default: _(() => {
573
- var De, we, Ie, ke, be, xe, Te, Se, Le, Ee;
574
- return [
575
- g("div", St, K((De = m.value[D]) == null ? void 0 : De.name), 1),
576
- (d(), O(J(s((we = m.value[D]) == null ? void 0 : we.comp)), {
577
- pageLayout: N.value,
578
- itemData: (Ie = m.value[D]) == null ? void 0 : Ie.compData,
579
- childItemData: (ke = m.value[D]) == null ? void 0 : ke.itemChildData,
580
- index: ((be = m.value[D]) == null ? void 0 : be.id) ?? D,
581
- parentTableId: (xe = m.value[D]) == null ? void 0 : xe.tableId,
582
- children: (Te = m.value[D]) == null ? void 0 : Te.children,
583
- level: 1,
584
- config: {
585
- showIndex: (Se = m.value[D]) == null ? void 0 : Se.showIndex,
586
- allowMove: (Le = m.value[D]) == null ? void 0 : Le.allowMove,
587
- viewport: (Ee = m.value[D]) == null ? void 0 : Ee.viewport
588
- }
589
- }, null, 8, ["pageLayout", "itemData", "childItemData", "index", "parentTableId", "children", "config"]))
590
- ];
591
- }),
592
- _: 2
593
- }, 1032, ["x", "y", "min-h", "max-h", "min-w", "w", "h", "i", "class"]);
594
- }), 128))
595
- ]),
596
- _: 1
597
- }, 8, ["layout"])) : z("", !0),
598
- !P.value && N.value === "horizontal" ? (d(), w("div", Lt, [
599
- f(h, {
600
- modelValue: S.value,
601
- "onUpdate:modelValue": a[1] || (a[1] = (o) => S.value = o),
602
- type: "card",
603
- class: "display-tabs"
604
- }, {
605
- default: _(() => [
606
- (d(!0), w(Z, null, ee(m.value, (o, D) => (d(), O(i, {
607
- key: o.i,
608
- label: o == null ? void 0 : o.name,
609
- name: o == null ? void 0 : o.name
610
- }, {
611
- default: _(() => [
612
- (d(), O(J(s(o == null ? void 0 : o.comp)), {
613
- pageLayout: N.value,
614
- itemData: o == null ? void 0 : o.compData,
615
- childItemData: o == null ? void 0 : o.itemChildData,
616
- key: D,
617
- config: {
618
- showIndex: o == null ? void 0 : o.showIndex,
619
- allowMove: o == null ? void 0 : o.allowMove,
620
- viewport: o == null ? void 0 : o.viewport
621
- }
622
- }, null, 8, ["pageLayout", "itemData", "childItemData", "config"]))
623
- ]),
624
- _: 2
625
- }, 1032, ["label", "name"]))), 128))
626
- ]),
627
- _: 1
628
- }, 8, ["modelValue"])
629
- ])) : z("", !0),
630
- P.value ? (d(), O(U, {
631
- key: 2,
632
- direction: "horizontal",
633
- active: H.value,
634
- "align-center": !0,
635
- class: "display-steps"
636
- }, {
637
- default: _(() => [
638
- (d(!0), w(Z, null, ee(m.value, (o, D) => (d(), O(C, {
639
- key: D,
640
- class: "step-item",
641
- status: k.value,
642
- onClick: (ue) => l(o, D + 1)
643
- }, {
644
- title: _(() => [
645
- Q(K(o == null ? void 0 : o.name), 1)
646
- ]),
647
- _: 2
648
- }, 1032, ["status", "onClick"]))), 128))
649
- ]),
650
- _: 1
651
- }, 8, ["active"])) : z("", !0),
652
- P.value ? (d(), w("div", Et, [
653
- (d(), O(J(s((q = M.value) == null ? void 0 : q.comp)), {
654
- pageLayout: N.value,
655
- itemData: (X = M.value) == null ? void 0 : X.compData,
656
- childItemData: (j = M.value) == null ? void 0 : j.itemChildData,
657
- key: (te = M.value) == null ? void 0 : te.id,
658
- config: {
659
- showIndex: (y = M.value) == null ? void 0 : y.showIndex,
660
- allowMove: (_e = M.value) == null ? void 0 : _e.allowMove,
661
- viewport: (ye = M.value) == null ? void 0 : ye.viewport
662
- }
663
- }, null, 8, ["pageLayout", "itemData", "childItemData", "config"]))
664
- ])) : z("", !0)
665
- ], 544);
666
- };
667
- }
668
- }, Wt = /* @__PURE__ */ fe(Mt, [["__scopeId", "data-v-e59da700"]]);
669
- export {
670
- Wt as a,
671
- Ht as b,
672
- zt as m
673
- };