gzhr-ui 1.1.2 → 1.1.3
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/es/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as o } from "./utils-D3bEDOQn.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import { H as r } from "./button-gTulgQZJ.mjs";
|
|
4
|
-
import { H as t } from "./table-
|
|
4
|
+
import { H as t } from "./table-DYSZBHc3.mjs";
|
|
5
5
|
import { H as m } from "./icon-iNG7ZwAk.mjs";
|
|
6
6
|
import { A as a } from "./vendor-Oml3ZDAp.mjs";
|
|
7
7
|
const s = [r, t, m, a], H = o(s);
|
|
@@ -733,8 +733,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
733
733
|
if (h[4] && (b = parseFloat(h[4])), k === 0)
|
|
734
734
|
i = s = _ = w * 255;
|
|
735
735
|
else {
|
|
736
|
-
const O = (
|
|
737
|
-
i = O(j,
|
|
736
|
+
const O = (N, M, R) => (R < 0 && (R += 1), R > 1 && (R -= 1), R < 0.16666666666666666 ? N + (M - N) * 6 * R : R < 0.5 ? M : R < 0.6666666666666666 ? N + (M - N) * (0.6666666666666666 - R) * 6 : N), S = w < 0.5 ? w * (1 + k) : w + k - w * k, j = 2 * w - S;
|
|
737
|
+
i = O(j, S, x + 1 / 3) * 255, s = O(j, S, x) * 255, _ = O(j, S, x - 1 / 3) * 255;
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
}
|
|
@@ -768,7 +768,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
768
768
|
if (i === 0)
|
|
769
769
|
_ = b = h = s;
|
|
770
770
|
else {
|
|
771
|
-
const x = (O,
|
|
771
|
+
const x = (O, S, j) => (j < 0 && (j += 1), j > 1 && (j -= 1), j < 0.16666666666666666 ? O + (S - O) * 6 * j : j < 0.5 ? S : j < 0.6666666666666666 ? O + (S - O) * (0.6666666666666666 - j) * 6 : O), k = s < 0.5 ? s * (1 + i) : s + i - s * i, w = 2 * s - k;
|
|
772
772
|
_ = x(w, k, u + 1 / 3), b = x(w, k, u), h = x(w, k, u - 1 / 3);
|
|
773
773
|
}
|
|
774
774
|
return { r: Math.round(_ * 255), g: Math.round(b * 255), b: Math.round(h * 255) };
|
|
@@ -777,8 +777,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
|
|
|
777
777
|
if (!u) return;
|
|
778
778
|
let { r: s, g: _, b } = l(u), { h, s: x, l: k } = o(s, _, b);
|
|
779
779
|
k = Math.max(0, k - i);
|
|
780
|
-
const { r: w, g: O, b:
|
|
781
|
-
return `rgb(${w}, ${O}, ${
|
|
780
|
+
const { r: w, g: O, b: S } = n(h, x, k);
|
|
781
|
+
return `rgb(${w}, ${O}, ${S})`;
|
|
782
782
|
}
|
|
783
783
|
function f() {
|
|
784
784
|
function u(h, x) {
|
|
@@ -2170,12 +2170,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2170
2170
|
TreeMultipleSelectRender: k,
|
|
2171
2171
|
ChooseFrameRender: w,
|
|
2172
2172
|
PickPeopleRender: O,
|
|
2173
|
-
FileRender:
|
|
2173
|
+
FileRender: S,
|
|
2174
2174
|
CustomRender: j,
|
|
2175
|
-
DatePickerRender:
|
|
2175
|
+
DatePickerRender: N,
|
|
2176
2176
|
LabelRender: M
|
|
2177
2177
|
} = comps$1, {
|
|
2178
|
-
InputEditor:
|
|
2178
|
+
InputEditor: R,
|
|
2179
2179
|
TreeSelectEditor: H,
|
|
2180
2180
|
SelectEditor: L,
|
|
2181
2181
|
TextareaEditor: q,
|
|
@@ -2264,7 +2264,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2264
2264
|
p.map((C, B) => B === 0 ? "合计" : o["Total-Field"].includes(C.field) ? m.reduce(
|
|
2265
2265
|
(V, y) => {
|
|
2266
2266
|
var $, P;
|
|
2267
|
-
return !(y != null && y.children) || (($ = y.children) == null ? void 0 : $.length) === 0 && y.ParentOID === "00000000-0000-0000-0000-000000000000" ? V + (Number(y[C.field]) || 0) : ((P = y.children) == null ? void 0 : P.length) > 0 && y.ParentOID === "00000000-0000-0000-0000-000000000000" ? V + E(y, C.field) : V;
|
|
2267
|
+
return !(y != null && y.children) || (($ = y.children) == null ? void 0 : $.length) === 0 && (y.ParentOID === "00000000-0000-0000-0000-000000000000" || y.ParentOID === null) ? V + (Number(y[C.field]) || 0) : ((P = y.children) == null ? void 0 : P.length) > 0 && (y.ParentOID === "00000000-0000-0000-0000-000000000000" || y.ParentOID === null) ? V + E(y, C.field) : V;
|
|
2268
2268
|
},
|
|
2269
2269
|
0
|
|
2270
2270
|
) : "")
|
|
@@ -2284,23 +2284,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2284
2284
|
var p, m, E, C, B, F, V;
|
|
2285
2285
|
if (await nextTick(), g.params.isAutoSort) {
|
|
2286
2286
|
let y = (p = l == null ? void 0 : l.value) == null ? void 0 : p.getTableData().tableData;
|
|
2287
|
-
const $ = y == null ? void 0 : y.sort((P,
|
|
2288
|
-
const T = P[g.field] ?? 0, Y =
|
|
2287
|
+
const $ = y == null ? void 0 : y.sort((P, D) => {
|
|
2288
|
+
const T = P[g.field] ?? 0, Y = D[g.field] ?? 0, U = T - Y;
|
|
2289
2289
|
return U !== 0 ? U : P[g.field] == v[g.field] ? -1 : 0;
|
|
2290
2290
|
});
|
|
2291
|
-
$ == null || $.forEach((P,
|
|
2292
|
-
P[g.field] =
|
|
2291
|
+
$ == null || $.forEach((P, D) => {
|
|
2292
|
+
P[g.field] = D + 1;
|
|
2293
2293
|
}), (m = l == null ? void 0 : l.value) == null || m.reloadData($);
|
|
2294
2294
|
} else if (g.params.NodeSum) {
|
|
2295
|
-
let y = function(
|
|
2295
|
+
let y = function(D) {
|
|
2296
2296
|
let T = 0;
|
|
2297
|
-
return
|
|
2297
|
+
return D.children.forEach((Y) => {
|
|
2298
2298
|
Y.children && Y.children.length > 0 ? T += y(Y) : T += Number(Y[g.field]) || 0;
|
|
2299
|
-
}),
|
|
2299
|
+
}), D.children.length > 0 && (D[g.field] = T), T;
|
|
2300
2300
|
}, $ = (E = l == null ? void 0 : l.value) == null ? void 0 : E.getTableData().tableData;
|
|
2301
2301
|
const P = (C = l == null ? void 0 : l.value) == null ? void 0 : C.getTreeExpandRecords();
|
|
2302
|
-
$.forEach((
|
|
2303
|
-
y(
|
|
2302
|
+
$.forEach((D) => {
|
|
2303
|
+
y(D);
|
|
2304
2304
|
}), (B = l == null ? void 0 : l.value) == null || B.reloadData($), (F = l == null ? void 0 : l.value) == null || F.setTreeExpand(P, !0);
|
|
2305
2305
|
}
|
|
2306
2306
|
(V = l == null ? void 0 : l.value) == null || V.updateFooter();
|
|
@@ -2349,6 +2349,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2349
2349
|
g.print();
|
|
2350
2350
|
break;
|
|
2351
2351
|
}
|
|
2352
|
+
},
|
|
2353
|
+
toggleTreeExpand() {
|
|
2354
|
+
var v;
|
|
2355
|
+
(v = l == null ? void 0 : l.value) == null || v.updateFooter();
|
|
2352
2356
|
}
|
|
2353
2357
|
};
|
|
2354
2358
|
function te(v) {
|
|
@@ -2518,7 +2522,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2518
2522
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2519
2523
|
]),
|
|
2520
2524
|
FileRender: withCtx(({ row: p, column: m }) => [
|
|
2521
|
-
createVNode(unref(
|
|
2525
|
+
createVNode(unref(S), {
|
|
2522
2526
|
row: p,
|
|
2523
2527
|
column: m,
|
|
2524
2528
|
"grid-ref": l.value,
|
|
@@ -2533,7 +2537,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2533
2537
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2534
2538
|
]),
|
|
2535
2539
|
DatePickerRender: withCtx(({ row: p, column: m }) => [
|
|
2536
|
-
createVNode(unref(
|
|
2540
|
+
createVNode(unref(N), {
|
|
2537
2541
|
row: p,
|
|
2538
2542
|
column: m,
|
|
2539
2543
|
"grid-ref": l.value
|
|
@@ -2547,7 +2551,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2547
2551
|
}, null, 8, ["row", "column", "grid-ref"])
|
|
2548
2552
|
]),
|
|
2549
2553
|
InputEditor: withCtx(({ row: p, column: m }) => [
|
|
2550
|
-
createVNode(unref(
|
|
2554
|
+
createVNode(unref(R), {
|
|
2551
2555
|
row: p,
|
|
2552
2556
|
column: m,
|
|
2553
2557
|
"grid-ref": l.value
|
|
@@ -2622,7 +2626,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2622
2626
|
}, 16, ["onCellClick"])
|
|
2623
2627
|
]));
|
|
2624
2628
|
}
|
|
2625
|
-
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
2629
|
+
}), Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e5506c18"]]);
|
|
2626
2630
|
VxeUI.setConfig({
|
|
2627
2631
|
size: "small",
|
|
2628
2632
|
table: {
|