ss-component-new 1.3.729 → 1.3.731

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.
@@ -0,0 +1,188 @@
1
+ import { defineComponent as g, resolveComponent as d, createElementBlock as p, openBlock as u, Fragment as h, renderList as O, createBlock as s, withCtx as c, createVNode as _, mergeProps as y, ref as v, watch as $, nextTick as H, createElementVNode as k, renderSlot as b, createSlots as R, normalizeStyle as E } from "vue";
2
+ const j = /* @__PURE__ */ g({
3
+ __name: "vxeTableChildHeader",
4
+ props: {
5
+ columns: {
6
+ type: Array,
7
+ default: () => []
8
+ }
9
+ },
10
+ setup(m) {
11
+ return (t, i) => {
12
+ const o = d("vxe-colgroup"), a = d("vxe-column");
13
+ return u(!0), p(h, null, O(m.columns, (n, e) => {
14
+ var l;
15
+ return u(), p(h, { key: e }, [
16
+ ((l = n.children) == null ? void 0 : l.length) > 0 ? (u(), s(o, {
17
+ key: 0,
18
+ title: n.title
19
+ }, {
20
+ default: c(() => [
21
+ _(C, {
22
+ columns: n.children
23
+ }, null, 8, ["columns"])
24
+ ]),
25
+ _: 2
26
+ }, 1032, ["title"])) : (u(), s(a, y({
27
+ key: 1,
28
+ ref_for: !0
29
+ }, n), null, 16))
30
+ ], 64);
31
+ }), 128);
32
+ };
33
+ }
34
+ }), w = /* @__PURE__ */ g({
35
+ __name: "index",
36
+ props: {
37
+ extra: {
38
+ type: Object,
39
+ default: () => {
40
+ }
41
+ },
42
+ modelValue: {
43
+ type: String,
44
+ default: ""
45
+ }
46
+ },
47
+ setup(m) {
48
+ const t = m, i = v(null), o = v(!1), a = v(null);
49
+ return $(
50
+ () => a.value,
51
+ () => {
52
+ H(() => {
53
+ var n, e;
54
+ (e = (n = i.value) == null ? void 0 : n.updatePopper) == null || e.call(n);
55
+ });
56
+ },
57
+ { deep: !0, immediate: !0 }
58
+ ), (n, e) => {
59
+ var r, f;
60
+ const l = d("el-popover");
61
+ return u(), s(l, {
62
+ visible: o.value,
63
+ "onUpdate:visible": e[0] || (e[0] = (x) => o.value = x),
64
+ ref_key: "popOverRef",
65
+ ref: i,
66
+ trigger: ((r = t == null ? void 0 : t.extra) == null ? void 0 : r.trigger) ?? "hover",
67
+ placement: ((f = t == null ? void 0 : t.extra) == null ? void 0 : f.placement) ?? "bottom",
68
+ "trigger-keys": []
69
+ }, {
70
+ reference: c(() => [
71
+ k("div", null, [
72
+ b(n.$slots, "reference", {
73
+ ref_key: "referenceRef",
74
+ ref: a
75
+ })
76
+ ])
77
+ ]),
78
+ default: c(() => [
79
+ k("div", null, [
80
+ b(n.$slots, "content")
81
+ ])
82
+ ]),
83
+ _: 3
84
+ }, 8, ["visible", "trigger", "placement"]);
85
+ };
86
+ }
87
+ }), C = /* @__PURE__ */ g({
88
+ __name: "vxeTableHeader",
89
+ props: {
90
+ columns: {
91
+ type: Array,
92
+ default: () => []
93
+ }
94
+ },
95
+ setup(m) {
96
+ return (t, i) => {
97
+ const o = d("vxe-colgroup"), a = d("svg-icon"), n = d("vxe-column");
98
+ return u(!0), p(h, null, O(m.columns, (e, l) => {
99
+ var r;
100
+ return u(), p(h, { key: l }, [
101
+ ((r = e.children) == null ? void 0 : r.length) > 0 ? (u(), s(o, {
102
+ key: 0,
103
+ title: e.title
104
+ }, {
105
+ default: c(() => [
106
+ _(j, {
107
+ columns: e.children
108
+ }, null, 8, ["columns"])
109
+ ]),
110
+ _: 2
111
+ }, 1032, ["title"])) : (u(), s(n, y({
112
+ key: 1,
113
+ ref_for: !0
114
+ }, e), R({ _: 2 }, [
115
+ e.field === "operate" ? {
116
+ name: "default",
117
+ fn: c(() => [
118
+ _(w, { extra: { trigger: "hover", placement: "left-start" } }, {
119
+ reference: c(() => [
120
+ _(a, {
121
+ name: "more",
122
+ style: E({ width: e == null ? void 0 : e.iconWidth, height: e == null ? void 0 : e.iconHeight })
123
+ }, null, 8, ["style"])
124
+ ]),
125
+ _: 2
126
+ }, 1024)
127
+ ]),
128
+ key: "0"
129
+ } : void 0,
130
+ e.field === "operate" ? {
131
+ name: "header",
132
+ fn: c(() => [
133
+ _(a, {
134
+ name: e == null ? void 0 : e.icon,
135
+ style: E({ width: e == null ? void 0 : e.iconWidth, height: e == null ? void 0 : e.iconHeight })
136
+ }, null, 8, ["name", "style"])
137
+ ]),
138
+ key: "1"
139
+ } : void 0
140
+ ]), 1040))
141
+ ], 64);
142
+ }), 128);
143
+ };
144
+ }
145
+ }), S = /* @__PURE__ */ g({
146
+ __name: "index",
147
+ props: {
148
+ itemElement: {
149
+ type: Object,
150
+ default: () => {
151
+ }
152
+ },
153
+ extra: {
154
+ type: Object,
155
+ default: () => ({})
156
+ }
157
+ },
158
+ setup(m) {
159
+ const t = m, i = v([]), o = v([]), a = (n, e) => {
160
+ let l = n;
161
+ return l = l == null ? void 0 : l.map((r) => {
162
+ var f;
163
+ return e == null || e.forEach((x) => {
164
+ r[x] = r == null ? void 0 : r.prop;
165
+ }), r.children && ((f = r.children) == null ? void 0 : f.length) > 0 && (r.children = a(r.children, e)), r;
166
+ }), l;
167
+ };
168
+ return $(
169
+ () => t == null ? void 0 : t.itemElement,
170
+ () => {
171
+ var n, e;
172
+ i.value = (n = t == null ? void 0 : t.itemElement) == null ? void 0 : n.columns, o.value = (e = t == null ? void 0 : t.itemElement) == null ? void 0 : e.tableData, i.value = a(i.value, ["field", "title"]);
173
+ },
174
+ { deep: !0, immediate: !0 }
175
+ ), (n, e) => {
176
+ const l = d("vxe-table");
177
+ return u(), s(l, y({ data: o.value }, t == null ? void 0 : t.extra), {
178
+ default: c(() => [
179
+ _(C, { columns: i.value }, null, 8, ["columns"])
180
+ ]),
181
+ _: 1
182
+ }, 16, ["data"]);
183
+ };
184
+ }
185
+ });
186
+ export {
187
+ S as default
188
+ };
@@ -2,7 +2,7 @@ import { defineComponent as $, createBlock as _, openBlock as f, resolveDynamicC
2
2
  import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js";
3
3
  import { _ as L } from "./index.vue_vue_type_script_setup_true_lang-DJgUI7Bv.js";
4
4
  import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js";
5
- import { g as B } from "./index--Aw3B9EM.js";
5
+ import { g as B } from "./index-DvTFFE-C.js";
6
6
  const I = /* @__PURE__ */ $({
7
7
  __name: "index",
8
8
  props: {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as q, resolveComponent as u, createElementBlock as k, openBlock as s, Fragment as y, renderList as C, createBlock as f, createCommentVNode as z, withCtx as o, createVNode as r, createSlots as O, renderSlot as d, mergeProps as P, computed as j, ref as D, normalizeStyle as g } from "vue";
2
2
  import { u as G, p as w, s as b, a as H } from "./menu-ClNHLze7.js";
3
- import { S as $ } from "./index--Aw3B9EM.js";
3
+ import { S as $ } from "./index-DvTFFE-C.js";
4
4
  import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const K = /* @__PURE__ */ q({
6
6
  __name: "menuItem",