@dazhicheng/ui 1.6.41 → 1.6.42
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/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-api-component/index.vue2.js +73 -73
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/index.d.ts +91 -105
- package/dist/components/tt-button/index.vue.d.ts +52 -60
- package/dist/components/tt-button/index.vue2.js +1 -1
- package/dist/components/tt-drawer/index.d.ts +352 -326
- package/dist/components/tt-drawer/src/RenderDrawer.vue.d.ts +196 -184
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-empty/index.d.ts +4 -4
- package/dist/components/tt-empty/index.js +1 -1
- package/dist/components/tt-form/index.js +1 -1
- package/dist/components/tt-form/src/components/FormActions.vue2.js +1 -1
- package/dist/components/tt-form/src/components/FormElInput.vue.d.ts +106 -110
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +12 -12
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +164 -164
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +34 -34
- package/dist/components/tt-form/src/form-render/expandable.js +18 -18
- package/dist/components/tt-form/src/form-render/form.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +124 -124
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +99 -99
- package/dist/components/tt-form/src/index.vue.d.ts +8 -12
- package/dist/components/tt-form/src/index.vue2.js +1 -1
- package/dist/components/tt-form-item-error-tooltip/index.d.ts +30 -126
- package/dist/components/tt-form-item-error-tooltip/index.vue.d.ts +15 -63
- package/dist/components/tt-icon/components/AddIcon.vue.js +6 -6
- package/dist/components/tt-icon/components/SubIcon.vue.js +6 -6
- package/dist/components/tt-icon/index.d.ts +4 -4
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-icon/index.vue2.js +28 -28
- package/dist/components/tt-image/index.d.ts +29 -29
- package/dist/components/tt-image/src/components/ImageViewer.d.ts +20 -20
- package/dist/components/tt-image/tt-image.d.ts +29 -29
- package/dist/components/tt-input-textarea/index.vue.d.ts +424 -440
- package/dist/components/tt-input-textarea/index.vue.js +153 -153
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue2.js +22 -22
- package/dist/components/tt-log/index.vue.js +1 -1
- package/dist/components/tt-modal/index.d.ts +182 -162
- package/dist/components/tt-modal/src/RenderModal.vue.d.ts +54 -54
- package/dist/components/tt-modal/src/RenderModal.vue.js +236 -228
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +1 -1
- package/dist/components/tt-modal/src/hooks/useModalRender.d.ts +26 -22
- package/dist/components/tt-modal/src/utils/resolve-modal-target.js +57 -53
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +123 -123
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +24 -24
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +145 -145
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.d.ts +10 -12
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +48 -48
- package/dist/components/tt-panel-select/src/index.vue.d.ts +63 -67
- package/dist/components/tt-panel-select/src/index.vue.js +137 -137
- package/dist/components/tt-radio-group/index.vue.js +1 -1
- package/dist/components/tt-select/src/Select.vue.d.ts +8 -12
- package/dist/components/tt-select/src/Select.vue.js +1 -1
- package/dist/components/tt-select/src/components/SelectTable.vue.js +1 -1
- package/dist/components/tt-select/src/components/Table.vue.js +1 -1
- package/dist/components/tt-table/index.d.ts +20 -24
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.d.ts +40 -48
- package/dist/components/tt-table/src/Table.vue.js +1 -1
- package/dist/components/tt-table/src/TableForm.vue.d.ts +8 -12
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +1 -1
- package/dist/components/tt-table/src/hooks/useSideSlot.d.ts +40 -48
- package/dist/components/tt-text/index.vue2.js +22 -22
- package/dist/components/tt-upload/index.d.ts +60 -60
- package/dist/components/tt-upload/src/TtUpload.vue.d.ts +37 -37
- package/dist/components/tt-upload/src/TtUpload.vue.js +1 -1
- package/dist/components/tt-upload/src/typing.d.ts +17 -17
- package/dist/hooks/useScreenshotOss.js +1 -1
- package/dist/packages/hooks/src/propTypes.js +1 -1
- package/dist/plugins/vxeTable/switchStatus.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
- /package/dist/node_modules/.pnpm/{vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_ → vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_}/node_modules/vue-types/shim/index.modern.js +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useTemplateRef as
|
|
1
|
+
import { useTemplateRef as y, ref as v, computed as x, watch as B, nextTick as d, onMounted as C } from "vue";
|
|
2
2
|
import { useElementVisibility as I, useBreakpoints as S, breakpointsTailwind as M } from "@vueuse/core";
|
|
3
|
-
function
|
|
4
|
-
const i =
|
|
3
|
+
function V(n) {
|
|
4
|
+
const i = y("wrapperRef"), h = I(i), r = v({}), s = v(!1), g = S(M).active(), R = x(() => {
|
|
5
5
|
const e = n.collapsedRows ?? 1, a = r.value;
|
|
6
6
|
let o = 0;
|
|
7
7
|
for (let t = 1; t <= e; t++)
|
|
@@ -11,42 +11,42 @@ function H(n) {
|
|
|
11
11
|
B(
|
|
12
12
|
[
|
|
13
13
|
() => n.showCollapseButton,
|
|
14
|
-
|
|
14
|
+
g,
|
|
15
15
|
() => {
|
|
16
16
|
var e;
|
|
17
17
|
return (e = n.schema) == null ? void 0 : e.length;
|
|
18
18
|
},
|
|
19
|
-
() =>
|
|
19
|
+
() => h.value
|
|
20
20
|
],
|
|
21
21
|
async ([e, a, o, t], m) => {
|
|
22
|
-
var
|
|
22
|
+
var l;
|
|
23
23
|
if (!e || !t)
|
|
24
24
|
return;
|
|
25
|
-
const [,
|
|
26
|
-
|
|
25
|
+
const [, u, w] = m ?? [];
|
|
26
|
+
s.value && a === u && o === w || (await d(), (l = i.value) != null && l.offsetParent && (r.value = {}, s.value = !1, await f()));
|
|
27
27
|
}
|
|
28
28
|
);
|
|
29
29
|
async function f() {
|
|
30
|
-
if (!n.showCollapseButton || (await
|
|
30
|
+
if (!n.showCollapseButton || (await d(), !i.value))
|
|
31
31
|
return;
|
|
32
32
|
const e = i.value, o = window.getComputedStyle(e).getPropertyValue("grid-template-rows").split(" "), t = e == null ? void 0 : e.getBoundingClientRect();
|
|
33
33
|
if (o[0] === "none" || t.height === 0)
|
|
34
34
|
return;
|
|
35
|
-
Array.from(e.children).forEach((
|
|
36
|
-
const
|
|
37
|
-
let
|
|
38
|
-
for (const [
|
|
39
|
-
if (
|
|
40
|
-
|
|
35
|
+
Array.from(e.children).forEach((u) => {
|
|
36
|
+
const l = u.getBoundingClientRect().top - t.top;
|
|
37
|
+
let c = 0, p = 0;
|
|
38
|
+
for (const [k, b] of o.entries())
|
|
39
|
+
if (p += Number.parseFloat(b), l < p) {
|
|
40
|
+
c = k + 1;
|
|
41
41
|
break;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
c > ((n == null ? void 0 : n.collapsedRows) ?? 1) || (r.value[c] = (r.value[c] ?? 0) + 1, s.value = !0);
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return C(() => {
|
|
47
47
|
f();
|
|
48
|
-
}), { isCalculated:
|
|
48
|
+
}), { isCalculated: s, keepFormItemIndex: R, wrapperRef: i };
|
|
49
49
|
}
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
V as useExpandable
|
|
52
52
|
};
|
|
@@ -24,7 +24,7 @@ import { useExpandable as fe } from "./expandable.js";
|
|
|
24
24
|
import { FORM_RENDER_DEFAULT_WRAPPER_CLASS as de, getFormRootWrapperClass as ce } from "./rootWrapperClass.js";
|
|
25
25
|
import { FieldRenderer as Ce } from "./FormFieldContact.js";
|
|
26
26
|
import { getBaseRules as ve, getDefaultValueInZodStack as ge } from "./helper.js";
|
|
27
|
-
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.
|
|
27
|
+
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
28
28
|
import { useDesign as ye } from "../../../../packages/hooks/src/useDesign.js";
|
|
29
29
|
import "vue-router";
|
|
30
30
|
const Je = /* @__PURE__ */ ee({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ae, useSlots as se, provide as _, computed as a, useTemplateRef as ie, ref as ce, createElementBlock as L, openBlock as T, Fragment as V, createBlock as D, createCommentVNode as ue, createElementVNode as K, mergeProps as F, unref as w, withModifiers as me, normalizeClass as pe, normalizeStyle as ve, renderList as x, createSlots as fe, withCtx as de, renderSlot as ge, h as he, nextTick as R } from "vue";
|
|
2
2
|
import { TtNavAnchor as Ce } from "../../../tt-nav-anchor/index.js";
|
|
3
|
-
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.
|
|
3
|
+
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
4
4
|
import { useDesign as Te } from "../../../../packages/hooks/src/useDesign.js";
|
|
5
5
|
import "axios";
|
|
6
6
|
import "element-plus";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as Pe, unref as l, computed as a, inject as
|
|
1
|
+
import { defineComponent as Pe, unref as l, computed as a, inject as me, watch as Fe, useSlots as Ie, createElementBlock as h, createCommentVNode as J, openBlock as u, normalizeClass as p, createBlock as _, renderSlot as m, normalizeProps as y, mergeProps as f, resolveDynamicComponent as Ee, Fragment as H, renderList as b, createSlots as M, withCtx as k, guardReactiveProps as P, createElementVNode as F, withDirectives as Ne, createVNode as Re, vShow as Ve } from "vue";
|
|
2
2
|
import Le from "../../../../assets/svg/arrowDown.svg.js";
|
|
3
3
|
import Ae from "../../../../assets/svg/arrowSUp.svg.js";
|
|
4
4
|
import { TtIcon as Be } from "../../../tt-icon/index.js";
|
|
5
|
-
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.
|
|
5
|
+
import "../../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.34_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
6
6
|
import { useDesign as De } from "../../../../packages/hooks/src/useDesign.js";
|
|
7
7
|
import "axios";
|
|
8
8
|
import "element-plus";
|
|
9
|
-
import { isFunction as
|
|
9
|
+
import { isFunction as Q, isString as Oe } from "../../../../packages/utils/src/is.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "numeral";
|
|
12
12
|
import { clnm as c } from "../../../../packages/utils/src/tool.js";
|
|
13
|
-
import { mergeWithArrayOverride as
|
|
13
|
+
import { mergeWithArrayOverride as fe } from "../../../../packages/utils/src/merge.js";
|
|
14
14
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
16
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
@@ -26,11 +26,11 @@ import "../../../tt-form-item-error-tooltip/index.js";
|
|
|
26
26
|
import "@vueuse/core";
|
|
27
27
|
/* empty css */
|
|
28
28
|
import je from "../form/RenderContent.vue.js";
|
|
29
|
-
import { FieldRenderer as
|
|
29
|
+
import { FieldRenderer as X } from "../form-render/FormFieldContact.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
import { HIDDEN_GROUP_KEYS_KEY as Ke, GROUP_VISIBILITY_CALLBACK_KEY as Te } from "./lazyContext.js";
|
|
32
|
-
import { isGroupSchema as
|
|
33
|
-
const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"],
|
|
32
|
+
import { isGroupSchema as j, isRowSchema as pe, isSlotSchema as Z, getFieldNames as ze, getSchemaKey as Ue } from "./utils.js";
|
|
33
|
+
const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], ce = "grid-cols-1", qe = /* @__PURE__ */ Pe({
|
|
34
34
|
__name: "GroupSection",
|
|
35
35
|
props: {
|
|
36
36
|
schema: {},
|
|
@@ -47,28 +47,28 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
47
47
|
estimateFieldHeight: { default: 52 }
|
|
48
48
|
},
|
|
49
49
|
emits: ["toggleCollapse"],
|
|
50
|
-
setup(
|
|
51
|
-
const { prefixCls: s } = De("group-section"),
|
|
50
|
+
setup($, { emit: ve }) {
|
|
51
|
+
const { prefixCls: s } = De("group-section"), R = Ge(), x = He().form, [de] = Me(), ee = l(de).formApi, o = $, oe = ve, I = a(() => j(o.schema)), V = a(() => pe(o.schema)), re = a(() => Z(o.schema)), r = a(() => I.value ? o.schema : null), w = a(() => V.value ? o.schema : null), E = a(() => re.value ? o.schema : null), K = me(Ke, void 0), le = a(() => {
|
|
52
52
|
const i = o.schema.ifShow;
|
|
53
|
-
return i === void 0 || i === !0 ? !0 :
|
|
54
|
-
}), ge = a(() => !(!
|
|
55
|
-
let
|
|
53
|
+
return i === void 0 || i === !0 ? !0 : Q(i) ? !!i(R.value, ee) : !!i;
|
|
54
|
+
}), ge = a(() => !(!le.value || I.value && r.value && (K != null && K.has(r.value.key)))), T = me(Te, void 0), te = a(() => w.value ? ze(w.value.children) : []);
|
|
55
|
+
let ae;
|
|
56
56
|
Fe(
|
|
57
|
-
[
|
|
57
|
+
[le],
|
|
58
58
|
([e]) => {
|
|
59
|
-
|
|
59
|
+
T && ae !== e && (ae = e, I.value && r.value ? T({ type: "group", key: r.value.key, visible: e }) : V.value && te.value.length && T({ type: "row", fieldNames: te.value, visible: e }));
|
|
60
60
|
},
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
);
|
|
63
|
-
const
|
|
63
|
+
const N = a(() => {
|
|
64
64
|
if (!r.value) return !1;
|
|
65
65
|
const { collapsible: e } = r.value;
|
|
66
|
-
return
|
|
67
|
-
}),
|
|
68
|
-
() => r.value &&
|
|
69
|
-
),
|
|
66
|
+
return Q(e) ? e(R.value, ee) : !!e;
|
|
67
|
+
}), z = a(
|
|
68
|
+
() => r.value && N.value ? !!o.collapseStates[r.value.key] : !1
|
|
69
|
+
), se = a(() => r.value ? fe(r.value.commonConfig ?? {}, o.commonConfig, o.globalCommonConfig) : fe(o.commonConfig, o.globalCommonConfig)), Ce = a(() => ({
|
|
70
70
|
collapseStates: o.collapseStates,
|
|
71
|
-
commonConfig:
|
|
71
|
+
commonConfig: se.value,
|
|
72
72
|
globalCommonConfig: o.globalCommonConfig,
|
|
73
73
|
layout: o.layout,
|
|
74
74
|
compact: o.compact,
|
|
@@ -77,189 +77,189 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
77
77
|
scrollElement: o.scrollElement,
|
|
78
78
|
rootMargin: o.rootMargin,
|
|
79
79
|
estimateFieldHeight: o.estimateFieldHeight
|
|
80
|
-
})), he = a(() => r.value ? c("grid gap-x-4", r.value.wrapperClass ||
|
|
80
|
+
})), he = a(() => r.value ? c("grid gap-x-4", r.value.wrapperClass || ce) : ""), ye = a(() => w.value ? c("grid gap-x-4 col-span-full", w.value.wrapperClass || ce) : ""), ke = a(() => I.value ? c(s, `${s}--group`, {
|
|
81
81
|
[`${s}--nested`]: o.depth > 0
|
|
82
|
-
}) :
|
|
83
|
-
function
|
|
82
|
+
}) : V.value ? c(s, `${s}--row`, ye.value) : c(s, `${s}--transparent`));
|
|
83
|
+
function U(e, i) {
|
|
84
84
|
const {
|
|
85
85
|
colon: v = !1,
|
|
86
|
-
componentProps:
|
|
87
|
-
controlClass:
|
|
88
|
-
disabled:
|
|
89
|
-
disabledOnChangeListener:
|
|
90
|
-
disabledOnInputListener:
|
|
91
|
-
emptyStateValue:
|
|
86
|
+
componentProps: S = {},
|
|
87
|
+
controlClass: A = "",
|
|
88
|
+
disabled: B,
|
|
89
|
+
disabledOnChangeListener: D = !0,
|
|
90
|
+
disabledOnInputListener: O = !0,
|
|
91
|
+
emptyStateValue: G = void 0,
|
|
92
92
|
formFieldProps: t = {},
|
|
93
93
|
formItemClass: d = "",
|
|
94
94
|
hideLabel: g = !1,
|
|
95
95
|
hideRequiredMark: n = !1,
|
|
96
96
|
labelClass: C = "",
|
|
97
|
-
labelWidth:
|
|
98
|
-
modelPropName:
|
|
99
|
-
wrapperClass:
|
|
100
|
-
} =
|
|
101
|
-
let
|
|
102
|
-
if (
|
|
97
|
+
labelWidth: Se = 70,
|
|
98
|
+
modelPropName: _e = "",
|
|
99
|
+
wrapperClass: ue = ""
|
|
100
|
+
} = se.value;
|
|
101
|
+
let q = e.formItemClass;
|
|
102
|
+
if (Q(e.formItemClass))
|
|
103
103
|
try {
|
|
104
|
-
|
|
104
|
+
q = e.formItemClass();
|
|
105
105
|
} catch {
|
|
106
|
-
|
|
106
|
+
q = "";
|
|
107
107
|
}
|
|
108
|
-
const be = e.useArraySchema && !e.wrapperClass ? c(
|
|
108
|
+
const be = e.useArraySchema && !e.wrapperClass ? c(ue, i) : e.wrapperClass || ue;
|
|
109
109
|
return {
|
|
110
110
|
colon: v,
|
|
111
|
-
disabled:
|
|
112
|
-
disabledOnChangeListener:
|
|
113
|
-
disabledOnInputListener:
|
|
114
|
-
emptyStateValue:
|
|
111
|
+
disabled: B,
|
|
112
|
+
disabledOnChangeListener: D,
|
|
113
|
+
disabledOnInputListener: O,
|
|
114
|
+
emptyStateValue: G,
|
|
115
115
|
hideLabel: g,
|
|
116
116
|
hideRequiredMark: n,
|
|
117
|
-
labelWidth:
|
|
118
|
-
modelPropName:
|
|
117
|
+
labelWidth: Se,
|
|
118
|
+
modelPropName: _e,
|
|
119
119
|
...e,
|
|
120
120
|
wrapperClass: be,
|
|
121
|
-
commonComponentProps:
|
|
121
|
+
commonComponentProps: S,
|
|
122
122
|
componentProps: e.componentProps,
|
|
123
|
-
controlClass: c(
|
|
123
|
+
controlClass: c(A, e.controlClass),
|
|
124
124
|
formFieldProps: { ...t, ...e.formFieldProps },
|
|
125
|
-
formItemClass: c("flex-shrink-0", d,
|
|
125
|
+
formItemClass: c("flex-shrink-0", d, q),
|
|
126
126
|
labelClass: c(C, e.labelClass)
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
const
|
|
129
|
+
const L = a(() => ({
|
|
130
130
|
group: r.value,
|
|
131
|
-
collapsed:
|
|
132
|
-
isCollapsible:
|
|
133
|
-
values:
|
|
134
|
-
formActions:
|
|
135
|
-
})),
|
|
131
|
+
collapsed: z.value,
|
|
132
|
+
isCollapsible: N.value,
|
|
133
|
+
values: R.value,
|
|
134
|
+
formActions: x
|
|
135
|
+
})), ne = Ie(), $e = a(() => {
|
|
136
136
|
var v;
|
|
137
|
-
const e = (v = r.value) == null ? void 0 : v.key, i = Object.keys(
|
|
138
|
-
return e ? i.filter((
|
|
137
|
+
const e = (v = r.value) == null ? void 0 : v.key, i = Object.keys(ne);
|
|
138
|
+
return e ? i.filter((S) => !S.startsWith(`${e}-`)) : i;
|
|
139
139
|
});
|
|
140
|
-
function
|
|
141
|
-
|
|
140
|
+
function we() {
|
|
141
|
+
N.value && r.value && oe("toggleCollapse", r.value.key);
|
|
142
142
|
}
|
|
143
|
-
const
|
|
144
|
-
values:
|
|
145
|
-
formActions:
|
|
146
|
-
})),
|
|
143
|
+
const ie = a(() => ({
|
|
144
|
+
values: R.value,
|
|
145
|
+
formActions: x
|
|
146
|
+
})), W = a(() => ({
|
|
147
147
|
virtual: o.virtual,
|
|
148
148
|
progressive: o.progressive,
|
|
149
149
|
scrollElement: o.scrollElement,
|
|
150
150
|
rootMargin: o.rootMargin,
|
|
151
151
|
estimateFieldHeight: o.estimateFieldHeight
|
|
152
|
-
})),
|
|
152
|
+
})), Y = a(() => Object.keys(ne).filter((e) => e !== "default"));
|
|
153
153
|
return (e, i) => {
|
|
154
|
-
var v,
|
|
154
|
+
var v, S, A, B, D, O, G;
|
|
155
155
|
return ge.value ? (u(), h("div", {
|
|
156
156
|
key: 0,
|
|
157
|
-
class:
|
|
157
|
+
class: p(ke.value),
|
|
158
158
|
"data-group-key": (v = r.value) == null ? void 0 : v.key
|
|
159
159
|
}, [
|
|
160
|
-
|
|
160
|
+
re.value && E.value ? (u(), h("div", {
|
|
161
161
|
key: 0,
|
|
162
|
-
class:
|
|
162
|
+
class: p([`${l(s)}__slot`, E.value.wrapperClass])
|
|
163
163
|
}, [
|
|
164
|
-
l(Oe)(
|
|
165
|
-
], 2)) :
|
|
164
|
+
l(Oe)(E.value.content) ? m(e.$slots, E.value.content, y(f({ key: 0 }, ie.value))) : (u(), _(Ee(E.value.content(ie.value)), { key: 1 }))
|
|
165
|
+
], 2)) : V.value ? (u(!0), h(H, { key: 1 }, b(w.value.children, (t, d) => {
|
|
166
166
|
var g;
|
|
167
|
-
return u(),
|
|
167
|
+
return u(), _(l(X), f({
|
|
168
168
|
key: t.fieldName || `row-field-${d}`,
|
|
169
|
-
"field-config":
|
|
169
|
+
"field-config": U(t, (g = w.value) == null ? void 0 : g.wrapperClass),
|
|
170
170
|
rules: t.rules
|
|
171
|
-
}, { ref_for: !0 },
|
|
171
|
+
}, { ref_for: !0 }, W.value), M({
|
|
172
172
|
default: k((n) => [
|
|
173
|
-
m(e.$slots, t.fieldName,
|
|
173
|
+
m(e.$slots, t.fieldName, f({ ref_for: !0 }, n))
|
|
174
174
|
]),
|
|
175
175
|
_: 2
|
|
176
176
|
}, [
|
|
177
|
-
|
|
177
|
+
b(Y.value, (n) => ({
|
|
178
178
|
name: n,
|
|
179
179
|
fn: k((C) => [
|
|
180
|
-
m(e.$slots, n,
|
|
180
|
+
m(e.$slots, n, f({ ref_for: !0 }, C))
|
|
181
181
|
])
|
|
182
182
|
}))
|
|
183
183
|
]), 1040, ["field-config", "rules"]);
|
|
184
|
-
}), 128)) :
|
|
185
|
-
|
|
186
|
-
class:
|
|
184
|
+
}), 128)) : I.value ? (u(), h(H, { key: 3 }, [
|
|
185
|
+
F("div", {
|
|
186
|
+
class: p([
|
|
187
187
|
`${l(s)}__header`,
|
|
188
|
-
{ [`${l(s)}__header--collapsible`]:
|
|
188
|
+
{ [`${l(s)}__header--collapsible`]: N.value, [`${l(s)}__header--bar`]: $.depth === 0 }
|
|
189
189
|
]),
|
|
190
|
-
"data-group-scroll-anchor": (
|
|
191
|
-
onClick:
|
|
190
|
+
"data-group-scroll-anchor": (S = r.value) == null ? void 0 : S.key,
|
|
191
|
+
onClick: we
|
|
192
192
|
}, [
|
|
193
|
-
|
|
194
|
-
class:
|
|
193
|
+
F("div", {
|
|
194
|
+
class: p(`${l(s)}__header-left`)
|
|
195
195
|
}, [
|
|
196
|
-
m(e.$slots, `${(
|
|
197
|
-
|
|
198
|
-
class:
|
|
196
|
+
m(e.$slots, `${(A = r.value) == null ? void 0 : A.key}-header-left`, y(P(L.value))),
|
|
197
|
+
F("span", {
|
|
198
|
+
class: p(`${l(s)}__title`)
|
|
199
199
|
}, [
|
|
200
|
-
(
|
|
200
|
+
(B = r.value) != null && B.title ? (u(), _(l(je), {
|
|
201
201
|
key: 0,
|
|
202
202
|
content: r.value.title
|
|
203
|
-
}, null, 8, ["content"])) :
|
|
203
|
+
}, null, 8, ["content"])) : J("", !0)
|
|
204
204
|
], 2),
|
|
205
|
-
m(e.$slots, `${(
|
|
205
|
+
m(e.$slots, `${(D = r.value) == null ? void 0 : D.key}-title-right`, y(P(L.value)))
|
|
206
206
|
], 2),
|
|
207
|
-
|
|
208
|
-
class:
|
|
207
|
+
F("div", {
|
|
208
|
+
class: p(`${l(s)}__header-right`)
|
|
209
209
|
}, [
|
|
210
|
-
m(e.$slots, `${(
|
|
211
|
-
|
|
210
|
+
m(e.$slots, `${(O = r.value) == null ? void 0 : O.key}-arrow-left`, y(P(L.value))),
|
|
211
|
+
N.value ? (u(), h("span", {
|
|
212
212
|
key: 0,
|
|
213
|
-
class:
|
|
213
|
+
class: p(`${l(s)}__arrow`)
|
|
214
214
|
}, [
|
|
215
215
|
Re(l(Be), {
|
|
216
|
-
icon:
|
|
216
|
+
icon: z.value ? l(Le) : l(Ae),
|
|
217
217
|
size: 12,
|
|
218
218
|
"is-custom-svg": ""
|
|
219
219
|
}, null, 8, ["icon"])
|
|
220
|
-
], 2)) :
|
|
221
|
-
m(e.$slots, `${(
|
|
220
|
+
], 2)) : J("", !0),
|
|
221
|
+
m(e.$slots, `${(G = r.value) == null ? void 0 : G.key}-header-right`, y(P(L.value)))
|
|
222
222
|
], 2)
|
|
223
223
|
], 10, Ye),
|
|
224
|
-
Ne(
|
|
225
|
-
class:
|
|
224
|
+
Ne(F("div", {
|
|
225
|
+
class: p(`${l(s)}__body`)
|
|
226
226
|
}, [
|
|
227
|
-
|
|
228
|
-
class:
|
|
227
|
+
F("div", {
|
|
228
|
+
class: p(he.value)
|
|
229
229
|
}, [
|
|
230
|
-
(u(!0), h(
|
|
230
|
+
(u(!0), h(H, null, b(r.value.children, (t, d) => {
|
|
231
231
|
var g;
|
|
232
|
-
return u(), h(
|
|
232
|
+
return u(), h(H, {
|
|
233
233
|
key: l(Ue)(t, d)
|
|
234
234
|
}, [
|
|
235
|
-
l(
|
|
235
|
+
l(j)(t) || l(pe)(t) || l(Z)(t) ? (u(), _(qe, f({
|
|
236
236
|
key: 0,
|
|
237
237
|
schema: t
|
|
238
238
|
}, { ref_for: !0 }, Ce.value, {
|
|
239
|
-
depth: l(
|
|
240
|
-
class: { "col-span-full": l(
|
|
241
|
-
onToggleCollapse: i[0] || (i[0] = (n) =>
|
|
242
|
-
}),
|
|
243
|
-
|
|
239
|
+
depth: l(j)(t) ? $.depth + 1 : $.depth,
|
|
240
|
+
class: { "col-span-full": l(j)(t) || l(Z)(t) },
|
|
241
|
+
onToggleCollapse: i[0] || (i[0] = (n) => oe("toggleCollapse", n))
|
|
242
|
+
}), M({ _: 2 }, [
|
|
243
|
+
b($e.value, (n) => ({
|
|
244
244
|
name: n,
|
|
245
245
|
fn: k((C) => [
|
|
246
|
-
m(e.$slots, n,
|
|
246
|
+
m(e.$slots, n, f({ ref_for: !0 }, C))
|
|
247
247
|
])
|
|
248
248
|
}))
|
|
249
|
-
]), 1040, ["schema", "depth", "class"])) : (u(),
|
|
249
|
+
]), 1040, ["schema", "depth", "class"])) : (u(), _(l(X), f({
|
|
250
250
|
key: 1,
|
|
251
|
-
"field-config":
|
|
251
|
+
"field-config": U(t, (g = r.value) == null ? void 0 : g.wrapperClass),
|
|
252
252
|
rules: t.rules
|
|
253
|
-
}, { ref_for: !0 },
|
|
253
|
+
}, { ref_for: !0 }, W.value), M({
|
|
254
254
|
default: k((n) => [
|
|
255
|
-
m(e.$slots, t.fieldName,
|
|
255
|
+
m(e.$slots, t.fieldName, f({ ref_for: !0 }, n))
|
|
256
256
|
]),
|
|
257
257
|
_: 2
|
|
258
258
|
}, [
|
|
259
|
-
|
|
259
|
+
b(Y.value, (n) => ({
|
|
260
260
|
name: n,
|
|
261
261
|
fn: k((C) => [
|
|
262
|
-
m(e.$slots, n,
|
|
262
|
+
m(e.$slots, n, f({ ref_for: !0 }, C))
|
|
263
263
|
])
|
|
264
264
|
}))
|
|
265
265
|
]), 1040, ["field-config", "rules"]))
|
|
@@ -267,26 +267,26 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
267
267
|
}), 128))
|
|
268
268
|
], 2)
|
|
269
269
|
], 2), [
|
|
270
|
-
[Ve, !
|
|
270
|
+
[Ve, !z.value]
|
|
271
271
|
])
|
|
272
|
-
], 64)) : (u(),
|
|
272
|
+
], 64)) : (u(), _(l(X), f({
|
|
273
273
|
key: 2,
|
|
274
|
-
"field-config":
|
|
275
|
-
rules:
|
|
276
|
-
},
|
|
274
|
+
"field-config": U($.schema),
|
|
275
|
+
rules: $.schema.rules
|
|
276
|
+
}, W.value), M({
|
|
277
277
|
default: k((t) => [
|
|
278
|
-
m(e.$slots, o.schema.fieldName, y(
|
|
278
|
+
m(e.$slots, o.schema.fieldName, y(P(t)))
|
|
279
279
|
]),
|
|
280
280
|
_: 2
|
|
281
281
|
}, [
|
|
282
|
-
|
|
282
|
+
b(Y.value, (t) => ({
|
|
283
283
|
name: t,
|
|
284
284
|
fn: k((d) => [
|
|
285
|
-
m(e.$slots, t, y(
|
|
285
|
+
m(e.$slots, t, y(P(d)))
|
|
286
286
|
])
|
|
287
287
|
}))
|
|
288
288
|
]), 1040, ["field-config", "rules"]))
|
|
289
|
-
], 10, We)) :
|
|
289
|
+
], 10, We)) : J("", !0);
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
292
|
});
|