ss-component-new 1.1.72 → 1.1.74

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.
@@ -1,5 +1,6 @@
1
1
  import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
2
- import { _ as Lb, c as Ki } from "./_plugin-vue_export-helper-B7R8Jogt.js";
2
+ import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { c as Ki } from "./cloneDeep-DA0SrY7X.js";
3
4
  /*! *****************************************************************************
4
5
  Copyright (c) Microsoft Corporation.
5
6
 
@@ -44004,7 +44005,7 @@ const d7 = {
44004
44005
  pL(g7, { optionContents: t.value }, null, 8, ["optionContents"])
44005
44006
  ]));
44006
44007
  }
44007
- }, w7 = /* @__PURE__ */ Lb(_7, [["__scopeId", "data-v-0440fac3"]]);
44008
+ }, b7 = /* @__PURE__ */ Lb(_7, [["__scopeId", "data-v-0440fac3"]]);
44008
44009
  export {
44009
- w7 as default
44010
+ b7 as default
44010
44011
  };
@@ -0,0 +1,131 @@
1
+ import { createElementBlock as r, openBlock as n, Fragment as k, renderList as y, unref as F, createElementVNode as c, createBlock as f, resolveDynamicComponent as $, toDisplayString as C, ref as I, watch as L, resolveComponent as b, createVNode as R, withCtx as g, createCommentVNode as T } from "vue";
2
+ import { p as V, s as U, g as M } from "./array-vzwMZhM4.js";
3
+ import { E as j } from "./index-TqZwOJHG.js";
4
+ import { u as w } from "./modelComp-B2WEXyGq.js";
5
+ import { s as x } from "./menu-CD2KJPvR.js";
6
+ import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
+ import { c as v } from "./cloneDeep-DA0SrY7X.js";
8
+ const q = { class: "type-select" }, z = ["onClick"], A = { class: "list-icon" }, G = {
9
+ __name: "index",
10
+ setup(N) {
11
+ const m = w(V), { itemData: o } = x(m), p = (t) => j[t], _ = (t) => {
12
+ const d = v(o.value);
13
+ d.push({
14
+ comp: t.comp,
15
+ name: t.name,
16
+ compData: []
17
+ }), m.setItemData(d);
18
+ };
19
+ return (t, d) => (n(), r("div", q, [
20
+ (n(!0), r(k, null, y(F(U), (l, e) => (n(), r("div", {
21
+ class: "type-list",
22
+ key: e
23
+ }, [
24
+ c("div", {
25
+ class: "list-content",
26
+ onClick: (s) => _(l)
27
+ }, [
28
+ c("div", A, [
29
+ (n(), f($(p(l.icon))))
30
+ ]),
31
+ c("div", null, C(l.name), 1)
32
+ ], 8, z)
33
+ ]))), 128))
34
+ ]));
35
+ }
36
+ }, se = /* @__PURE__ */ E(G, [["__scopeId", "data-v-fe4aecc8"]]), H = { class: "fill-content" }, J = { class: "operate-content" }, K = { class: "collapse-title" }, P = { class: "comp-child" }, Q = {
37
+ __name: "index",
38
+ setup(N) {
39
+ const m = w(V), { itemData: o, originalData: p } = x(m), _ = I([]), t = I([]);
40
+ L(
41
+ () => o.value,
42
+ () => {
43
+ var e;
44
+ !o.value || ((e = o.value) == null ? void 0 : e.length) === 0 || (_.value = v(o.value));
45
+ },
46
+ { deep: !0, immediate: !0 }
47
+ );
48
+ const d = (e) => M(e), l = (e, s, D) => {
49
+ if (!e || e.length === 0) return;
50
+ let i = v(o.value);
51
+ const a = v(s);
52
+ a.compData = e, i = i == null ? void 0 : i.map((u, h) => (h === D && (u = a), u)), m.setItemData(i);
53
+ };
54
+ return (e, s) => {
55
+ const D = b("el-collapse-item"), i = b("el-collapse");
56
+ return n(), r("div", H, [
57
+ s[1] || (s[1] = c("div", { class: "fill-operate" }, C("操作栏"), -1)),
58
+ c("div", J, [
59
+ R(i, {
60
+ modelValue: t.value,
61
+ "onUpdate:modelValue": s[0] || (s[0] = (a) => t.value = a),
62
+ class: "collapse-content"
63
+ }, {
64
+ default: g(() => [
65
+ (n(!0), r(k, null, y(_.value, (a, u) => (n(), f(D, {
66
+ key: u,
67
+ name: u
68
+ }, {
69
+ title: g(() => [
70
+ c("div", K, C(a.name), 1)
71
+ ]),
72
+ default: g(() => {
73
+ var h, B;
74
+ return [
75
+ c("div", P, [
76
+ (n(), f($(d(a.comp + "Operate")), {
77
+ itemContents: a == null ? void 0 : a.compData,
78
+ originalItemContents: (B = (h = F(p)) == null ? void 0 : h.find((S, O) => O === u)) == null ? void 0 : B.compData,
79
+ onChange: (S) => l(S, a, u)
80
+ }, null, 40, ["itemContents", "originalItemContents", "onChange"]))
81
+ ])
82
+ ];
83
+ }),
84
+ _: 2
85
+ }, 1032, ["name"]))), 128))
86
+ ]),
87
+ _: 1
88
+ }, 8, ["modelValue"])
89
+ ])
90
+ ]);
91
+ };
92
+ }
93
+ }, le = /* @__PURE__ */ E(Q, [["__scopeId", "data-v-a216b035"]]), W = {
94
+ key: 0,
95
+ class: "show-content"
96
+ }, X = {
97
+ __name: "index",
98
+ setup(N) {
99
+ const m = w(V), { itemData: o } = x(m), p = I([]);
100
+ L(
101
+ () => o.value,
102
+ () => {
103
+ var t;
104
+ !o.value || ((t = o.value) == null ? void 0 : t.length) === 0 || (p.value = v(o.value));
105
+ },
106
+ { deep: !0, immediate: !0 }
107
+ );
108
+ const _ = (t) => M(t);
109
+ return (t, d) => {
110
+ var l;
111
+ return ((l = p.value) == null ? void 0 : l.length) > 0 ? (n(), r("div", W, [
112
+ (n(!0), r(k, null, y(p.value, (e, s) => (n(), r("div", {
113
+ class: "item-content",
114
+ key: s
115
+ }, [
116
+ c("div", null, C(e.name), 1),
117
+ (n(), f($(_(e.comp)), {
118
+ itemData: e == null ? void 0 : e.compData,
119
+ childItemData: e == null ? void 0 : e.itemChildData,
120
+ key: s
121
+ }, null, 8, ["itemData", "childItemData"]))
122
+ ]))), 128))
123
+ ])) : T("", !0);
124
+ };
125
+ }
126
+ }, ce = /* @__PURE__ */ E(X, [["__scopeId", "data-v-79320497"]]);
127
+ export {
128
+ ce as a,
129
+ le as b,
130
+ se as m
131
+ };