@dazhicheng/ui 1.5.261 → 1.5.263
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/components/tt-api-component/index.vue2.js +41 -40
- package/dist/components/tt-button/index.vue2.js +10 -9
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +16 -15
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +3 -2
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue2.js +3 -2
- package/dist/components/tt-drawer/src/props.js +3 -2
- package/dist/components/tt-form/index.js +7 -6
- package/dist/components/tt-form/src/components/FormActions.vue2.js +3 -2
- package/dist/components/tt-form/src/form-render/form.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +3 -2
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +26 -25
- package/dist/components/tt-form/src/group-form/LazyFormField.vue.js +3 -2
- package/dist/components/tt-form/src/hooks/useSelectCollapse.js +82 -64
- package/dist/components/tt-form/src/index.vue2.js +3 -2
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/src/RenderModal.vue.js +3 -2
- package/dist/components/tt-modal/src/components/ModalHeader.vue2.js +7 -6
- package/dist/components/tt-modal/src/components/ModalWrapper.vue.js +3 -2
- package/dist/components/tt-modal/src/props.js +3 -2
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +3 -2
- package/dist/components/tt-panel-select/src/components/PanelLeft.vue.js +29 -23
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +89 -81
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +49 -43
- package/dist/components/tt-panel-select/src/hooks/usePanelData.js +56 -49
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.d.ts +3 -0
- package/dist/components/tt-panel-select/src/hooks/usePanelSelection.js +94 -61
- package/dist/components/tt-panel-select/src/index.vue.d.ts +1 -1
- package/dist/components/tt-panel-select/src/index.vue.js +205 -190
- package/dist/components/tt-radio-group/index.vue.js +11 -10
- package/dist/components/tt-select/src/Select.vue.js +3 -2
- package/dist/components/tt-select/src/components/SelectTable.vue.js +3 -2
- package/dist/components/tt-select/src/components/Table.vue.js +3 -2
- package/dist/components/tt-table/index.js +1 -1
- package/dist/components/tt-table/src/Table.vue.js +45 -44
- package/dist/components/tt-table/src/TableForm.vue.js +1 -1
- package/dist/components/tt-table/src/components/TableAction.vue.js +12 -11
- package/dist/components/tt-table/src/components/TableButtons.js +3 -2
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +34 -33
- package/dist/components/tt-table/src/props.js +5 -4
- package/dist/components/tt-upload/src/TtUpload.vue.js +15 -14
- package/dist/hooks/basicDataCodes.d.ts +4 -1
- package/dist/hooks/basicDataCodes.js +35 -33
- package/dist/hooks/usePanelSelectSchemas.d.ts +3 -2
- package/dist/hooks/usePanelSelectSchemas.js +62 -62
- package/dist/hooks/useScreenshotOss.js +3 -2
- package/dist/plugins/vxeTable/switchStatus.js +3 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
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 ue, watch as Fe, useSlots as Ie, createElementBlock as h, createCommentVNode as q, openBlock as u, normalizeClass as f, createBlock as w, renderSlot as m, normalizeProps as y, mergeProps as p, resolveDynamicComponent as Ee, Fragment as G, renderList as S, createSlots as H, withCtx as k, guardReactiveProps as b, createElementVNode as P, 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";
|
|
@@ -15,6 +15,7 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
15
15
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
16
16
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
17
17
|
import "lodash-es";
|
|
18
|
+
import "vue-router";
|
|
18
19
|
import { useFormValues as Ge } from "vee-validate";
|
|
19
20
|
import { injectRenderFormProps as He } from "../form-render/context.js";
|
|
20
21
|
import { injectFormProps as Me } from "../useFormContext.js";
|
|
@@ -45,10 +46,10 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
45
46
|
},
|
|
46
47
|
emits: ["toggleCollapse"],
|
|
47
48
|
setup(ce, { emit: ve }) {
|
|
48
|
-
const { prefixCls: s } = De("group-section"), N = Ge(), Z = He().form, [de] = Me(), x = l(de).formApi, o = ce, ee = ve, F = a(() => M(o.schema)), R = a(() => pe(o.schema)), oe = a(() => X(o.schema)), r = a(() => F.value ? o.schema : null), $ = a(() => R.value ? o.schema : null), I = a(() => oe.value ? o.schema : null), j =
|
|
49
|
-
const
|
|
50
|
-
return
|
|
51
|
-
}), ge = a(() => !(!re.value || F.value && r.value && (j != null && j.has(r.value.key)))), K =
|
|
49
|
+
const { prefixCls: s } = De("group-section"), N = Ge(), Z = He().form, [de] = Me(), x = l(de).formApi, o = ce, ee = ve, F = a(() => M(o.schema)), R = a(() => pe(o.schema)), oe = a(() => X(o.schema)), r = a(() => F.value ? o.schema : null), $ = a(() => R.value ? o.schema : null), I = a(() => oe.value ? o.schema : null), j = ue(Ke, void 0), re = a(() => {
|
|
50
|
+
const i = o.schema.ifShow;
|
|
51
|
+
return i === void 0 || i === !0 ? !0 : J(i) ? !!i(N.value, x) : !!i;
|
|
52
|
+
}), ge = a(() => !(!re.value || F.value && r.value && (j != null && j.has(r.value.key)))), K = ue(Te, void 0), le = a(() => $.value ? ze($.value.children) : []);
|
|
52
53
|
let te;
|
|
53
54
|
Fe(
|
|
54
55
|
[re],
|
|
@@ -77,7 +78,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
77
78
|
})), he = a(() => r.value ? c("grid gap-x-4", r.value.wrapperClass || fe) : ""), ye = a(() => $.value ? c("grid gap-x-4 col-span-full", $.value.wrapperClass || fe) : ""), ke = a(() => F.value ? c(s, `${s}--group`, {
|
|
78
79
|
[`${s}--nested`]: o.depth > 0
|
|
79
80
|
}) : R.value ? c(s, `${s}--row`, ye.value) : c(s, `${s}--transparent`));
|
|
80
|
-
function z(e,
|
|
81
|
+
function z(e, i) {
|
|
81
82
|
const {
|
|
82
83
|
colon: v = !1,
|
|
83
84
|
componentProps: _ = {},
|
|
@@ -93,7 +94,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
93
94
|
labelClass: C = "",
|
|
94
95
|
labelWidth: we = 70,
|
|
95
96
|
modelPropName: Se = "",
|
|
96
|
-
wrapperClass:
|
|
97
|
+
wrapperClass: ie = ""
|
|
97
98
|
} = ae.value;
|
|
98
99
|
let Y = e.formItemClass;
|
|
99
100
|
if (J(e.formItemClass))
|
|
@@ -102,7 +103,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
102
103
|
} catch {
|
|
103
104
|
Y = "";
|
|
104
105
|
}
|
|
105
|
-
const be = e.useArraySchema && !e.wrapperClass ? c(
|
|
106
|
+
const be = e.useArraySchema && !e.wrapperClass ? c(ie, i) : e.wrapperClass || ie;
|
|
106
107
|
return {
|
|
107
108
|
colon: v,
|
|
108
109
|
disabled: A,
|
|
@@ -131,8 +132,8 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
131
132
|
formActions: Z
|
|
132
133
|
})), se = Ie(), $e = a(() => {
|
|
133
134
|
var v;
|
|
134
|
-
const e = (v = r.value) == null ? void 0 : v.key,
|
|
135
|
-
return e ?
|
|
135
|
+
const e = (v = r.value) == null ? void 0 : v.key, i = Object.keys(se);
|
|
136
|
+
return e ? i.filter((_) => !_.startsWith(`${e}-`)) : i;
|
|
136
137
|
});
|
|
137
138
|
function _e() {
|
|
138
139
|
E.value && r.value && ee("toggleCollapse", r.value.key);
|
|
@@ -147,21 +148,21 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
147
148
|
rootMargin: o.rootMargin,
|
|
148
149
|
estimateFieldHeight: o.estimateFieldHeight
|
|
149
150
|
})), W = a(() => Object.keys(se).filter((e) => e !== "default"));
|
|
150
|
-
return (e,
|
|
151
|
+
return (e, i) => {
|
|
151
152
|
var v, _, L, A, B, D, O;
|
|
152
|
-
return ge.value ? (
|
|
153
|
+
return ge.value ? (u(), h("div", {
|
|
153
154
|
key: 0,
|
|
154
155
|
class: f(ke.value),
|
|
155
156
|
"data-group-key": (v = r.value) == null ? void 0 : v.key
|
|
156
157
|
}, [
|
|
157
|
-
oe.value && I.value ? (
|
|
158
|
+
oe.value && I.value ? (u(), h("div", {
|
|
158
159
|
key: 0,
|
|
159
160
|
class: f([`${l(s)}__slot`, I.value.wrapperClass])
|
|
160
161
|
}, [
|
|
161
|
-
l(Oe)(I.value.content) ? m(e.$slots, I.value.content, y(p({ key: 0 }, ne.value))) : (
|
|
162
|
-
], 2)) : R.value ? (
|
|
162
|
+
l(Oe)(I.value.content) ? m(e.$slots, I.value.content, y(p({ key: 0 }, ne.value))) : (u(), w(Ee(I.value.content(ne.value)), { key: 1 }))
|
|
163
|
+
], 2)) : R.value ? (u(!0), h(G, { key: 1 }, S($.value.children, (t, d) => {
|
|
163
164
|
var g;
|
|
164
|
-
return
|
|
165
|
+
return u(), w(l(Q), p({
|
|
165
166
|
key: t.fieldName || `row-field-${d}`,
|
|
166
167
|
"field-config": z(t, (g = $.value) == null ? void 0 : g.wrapperClass),
|
|
167
168
|
rules: t.rules
|
|
@@ -178,7 +179,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
178
179
|
])
|
|
179
180
|
}))
|
|
180
181
|
]), 1040, ["field-config", "rules"]);
|
|
181
|
-
}), 128)) : F.value ? (
|
|
182
|
+
}), 128)) : F.value ? (u(), h(G, { key: 3 }, [
|
|
182
183
|
P("div", {
|
|
183
184
|
class: f([
|
|
184
185
|
`${l(s)}__header`,
|
|
@@ -194,7 +195,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
194
195
|
P("span", {
|
|
195
196
|
class: f(`${l(s)}__title`)
|
|
196
197
|
}, [
|
|
197
|
-
(A = r.value) != null && A.title ? (
|
|
198
|
+
(A = r.value) != null && A.title ? (u(), w(l(je), {
|
|
198
199
|
key: 0,
|
|
199
200
|
content: r.value.title
|
|
200
201
|
}, null, 8, ["content"])) : q("", !0)
|
|
@@ -205,7 +206,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
205
206
|
class: f(`${l(s)}__header-right`)
|
|
206
207
|
}, [
|
|
207
208
|
m(e.$slots, `${(D = r.value) == null ? void 0 : D.key}-arrow-left`, y(b(V.value))),
|
|
208
|
-
E.value ? (
|
|
209
|
+
E.value ? (u(), h("span", {
|
|
209
210
|
key: 0,
|
|
210
211
|
class: f(`${l(s)}__arrow`)
|
|
211
212
|
}, [
|
|
@@ -224,18 +225,18 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
224
225
|
P("div", {
|
|
225
226
|
class: f(he.value)
|
|
226
227
|
}, [
|
|
227
|
-
(
|
|
228
|
+
(u(!0), h(G, null, S(r.value.children, (t, d) => {
|
|
228
229
|
var g;
|
|
229
|
-
return
|
|
230
|
+
return u(), h(G, {
|
|
230
231
|
key: l(Ue)(t, d)
|
|
231
232
|
}, [
|
|
232
|
-
l(M)(t) || l(pe)(t) || l(X)(t) ? (
|
|
233
|
+
l(M)(t) || l(pe)(t) || l(X)(t) ? (u(), w(qe, p({
|
|
233
234
|
key: 0,
|
|
234
235
|
schema: t
|
|
235
236
|
}, { ref_for: !0 }, Ce.value, {
|
|
236
237
|
depth: l(M)(t) ? e.depth + 1 : e.depth,
|
|
237
238
|
class: { "col-span-full": l(M)(t) || l(X)(t) },
|
|
238
|
-
onToggleCollapse:
|
|
239
|
+
onToggleCollapse: i[0] || (i[0] = (n) => ee("toggleCollapse", n))
|
|
239
240
|
}), H({ _: 2 }, [
|
|
240
241
|
S($e.value, (n) => ({
|
|
241
242
|
name: n,
|
|
@@ -243,7 +244,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
243
244
|
m(e.$slots, n, p({ ref_for: !0 }, C))
|
|
244
245
|
])
|
|
245
246
|
}))
|
|
246
|
-
]), 1040, ["schema", "depth", "class"])) : (
|
|
247
|
+
]), 1040, ["schema", "depth", "class"])) : (u(), w(l(Q), p({
|
|
247
248
|
key: 1,
|
|
248
249
|
"field-config": z(t, (g = r.value) == null ? void 0 : g.wrapperClass),
|
|
249
250
|
rules: t.rules
|
|
@@ -266,7 +267,7 @@ const We = ["data-group-key"], Ye = ["data-group-scroll-anchor"], fe = "grid-col
|
|
|
266
267
|
], 2), [
|
|
267
268
|
[Ve, !T.value]
|
|
268
269
|
])
|
|
269
|
-
], 64)) : (
|
|
270
|
+
], 64)) : (u(), w(l(Q), p({
|
|
270
271
|
key: 2,
|
|
271
272
|
"field-config": z(e.schema),
|
|
272
273
|
rules: e.schema.rules
|
|
@@ -11,12 +11,13 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
11
11
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
12
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
13
13
|
import "lodash-es";
|
|
14
|
+
import "vue-router";
|
|
14
15
|
import { useFormValues as ce } from "vee-validate";
|
|
15
16
|
import me from "../form-render/FormField.vue2.js";
|
|
16
17
|
import { injectFormProps as de } from "../useFormContext.js";
|
|
17
18
|
import { RENDER_SCHEDULER_KEY as pe } from "./lazyContext.js";
|
|
18
19
|
import { resolveValueByFieldName as ve } from "../form-render/dependencies.js";
|
|
19
|
-
const ge = ["data-field-anchor"],
|
|
20
|
+
const ge = ["data-field-anchor"], xe = /* @__PURE__ */ K({
|
|
20
21
|
name: "LazyFormField",
|
|
21
22
|
inheritAttrs: !1,
|
|
22
23
|
__name: "LazyFormField",
|
|
@@ -188,5 +189,5 @@ const ge = ["data-field-anchor"], Ve = /* @__PURE__ */ K({
|
|
|
188
189
|
}
|
|
189
190
|
});
|
|
190
191
|
export {
|
|
191
|
-
|
|
192
|
+
xe as default
|
|
192
193
|
};
|
|
@@ -1,90 +1,108 @@
|
|
|
1
1
|
import "axios";
|
|
2
|
-
import "element-plus";
|
|
3
|
-
import { isString as
|
|
4
|
-
import { ref as
|
|
5
|
-
import
|
|
2
|
+
import { MINIMUM_INPUT_WIDTH as N } from "element-plus";
|
|
3
|
+
import { isString as V } from "../../../../packages/utils/src/is.js";
|
|
4
|
+
import { ref as z, shallowRef as K, computed as d, toValue as O, onScopeDispose as X, watch as H, nextTick as j } from "vue";
|
|
5
|
+
import "xe-utils";
|
|
6
|
+
import "dayjs";
|
|
7
|
+
import "dayjs/plugin/utc";
|
|
8
|
+
import "dayjs/plugin/timezone";
|
|
6
9
|
import "../../../../node_modules/.pnpm/decimal.js@10.6.0/node_modules/decimal.js/decimal.js";
|
|
7
10
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.js";
|
|
8
11
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
9
12
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
10
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
11
14
|
import "lodash-es";
|
|
12
|
-
import { useResizeObserver as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
import { useResizeObserver as J } from "@vueuse/core";
|
|
16
|
+
const Q = 6, Y = 40, Z = 20, P = 1;
|
|
17
|
+
let u;
|
|
18
|
+
function W(l, c) {
|
|
19
|
+
return u === void 0 && (u = document.createElement("canvas").getContext("2d")), u ? (u.font = c, u.measureText(l).width) : 0;
|
|
20
|
+
}
|
|
21
|
+
function ee(l) {
|
|
22
|
+
return `${l.fontStyle} ${l.fontWeight} ${l.fontSize} ${l.fontFamily}`;
|
|
23
|
+
}
|
|
24
|
+
function q(l) {
|
|
25
|
+
return l ? l.getBoundingClientRect().width : 0;
|
|
26
|
+
}
|
|
27
|
+
function I(l, c) {
|
|
28
|
+
const i = q(l) - q(l == null ? void 0 : l.querySelector(".el-select__tags-text"));
|
|
29
|
+
return i > 0 ? i : c;
|
|
30
|
+
}
|
|
31
|
+
function Te(l) {
|
|
32
|
+
const c = z(1), i = K(null), S = ["ElSelect", "ElSelectV2", "TtPanelSelect"], T = () => l.value.component, f = () => O(l.value.componentProps), v = () => l.value.selectWrapRef, M = () => l.value.selectRef, _ = d(() => {
|
|
33
|
+
const e = T();
|
|
34
|
+
return V(e) && S.includes(e);
|
|
35
|
+
}), h = d(() => {
|
|
36
|
+
var o;
|
|
37
|
+
const e = T(), t = f();
|
|
38
|
+
return e === "TtApiComponent" && S.includes((o = t == null ? void 0 : t.component) == null ? void 0 : o.name);
|
|
39
|
+
}), $ = d(() => {
|
|
40
|
+
const e = f();
|
|
41
|
+
if (_.value || h.value) {
|
|
24
42
|
const t = {
|
|
25
43
|
clearable: (e == null ? void 0 : e.clearable) ?? !0,
|
|
26
44
|
filterable: (e == null ? void 0 : e.filterable) ?? !0
|
|
27
45
|
};
|
|
28
|
-
return e != null && e.multiple && (t.collapseTagsTooltip = !0, t.collapseTags = !0, t.maxCollapseTags =
|
|
46
|
+
return e != null && e.multiple && (t.collapseTagsTooltip = !0, t.collapseTags = !0, t.maxCollapseTags = c.value, (e == null ? void 0 : e.placeholder) === void 0 && (t.placeholder = "支持多选")), t;
|
|
29
47
|
}
|
|
30
48
|
return {};
|
|
31
49
|
});
|
|
32
|
-
function
|
|
33
|
-
var t,
|
|
34
|
-
const e =
|
|
35
|
-
if (
|
|
36
|
-
return (
|
|
37
|
-
if (
|
|
38
|
-
return (
|
|
50
|
+
function C() {
|
|
51
|
+
var t, o, r, s;
|
|
52
|
+
const e = M();
|
|
53
|
+
if (h.value)
|
|
54
|
+
return (r = (o = (t = e.value) == null ? void 0 : t.getComponentRef) == null ? void 0 : o.call(t)) == null ? void 0 : r.selectedLabel;
|
|
55
|
+
if (_.value)
|
|
56
|
+
return (s = e.value) == null ? void 0 : s.selectedLabel;
|
|
39
57
|
}
|
|
40
|
-
function
|
|
41
|
-
var
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
58
|
+
function G(e, t) {
|
|
59
|
+
var E, L;
|
|
60
|
+
const o = window.getComputedStyle(t), r = Number.parseFloat(o.columnGap || o.gap) || Q, s = Array.from(t.querySelectorAll(".el-select__selected-item > .el-tag")).filter(
|
|
61
|
+
(n) => !n.classList.contains("in-tooltip")
|
|
62
|
+
), b = s.find((n) => n.querySelector(".el-tag__close")), x = s.find((n) => !n.querySelector(".el-tag__close")), R = (E = b ?? x) == null ? void 0 : E.querySelector(".el-select__tags-text"), y = ee(R ? window.getComputedStyle(R) : o), k = I(b, Y), B = I(x, Z), F = !!((L = t.closest(".el-select__wrapper")) != null && L.classList.contains("is-filterable")) ? r + N : 0, w = t.clientWidth - P, p = e.length;
|
|
63
|
+
let m = 0, g = 0;
|
|
64
|
+
for (let n = 0; n < p; n++) {
|
|
65
|
+
if (m += (n > 0 ? r : 0) + k + W(e[n] ?? "", y), n === p - 1 && m + F <= w) {
|
|
66
|
+
g = p;
|
|
67
|
+
break;
|
|
68
|
+
}
|
|
69
|
+
const D = r + B + W(` + ${p - n - 1}`, y);
|
|
70
|
+
if (m + D + F > w)
|
|
71
|
+
break;
|
|
72
|
+
g = n + 1;
|
|
50
73
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const t =
|
|
56
|
-
if (!t) {
|
|
57
|
-
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const l = t.querySelector(".el-select__selection");
|
|
61
|
-
if (!l) {
|
|
62
|
-
o.value = 1;
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
const n = window.getComputedStyle(l), i = n.fontFamily, W = n.fontSize, g = l.clientWidth - 48;
|
|
66
|
-
if (g <= 0) {
|
|
67
|
-
o.value = 1;
|
|
74
|
+
return Math.max(1, g);
|
|
75
|
+
}
|
|
76
|
+
function U() {
|
|
77
|
+
var o, r;
|
|
78
|
+
const e = C(), t = ((o = v().value) == null ? void 0 : o.querySelector(".el-select__selection")) ?? null;
|
|
79
|
+
if (i.value = t, !((r = f()) != null && r.multiple) || !Array.isArray(e) || !e.length || !t) {
|
|
80
|
+
c.value = 1;
|
|
68
81
|
return;
|
|
69
82
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
83
|
+
c.value = G(
|
|
84
|
+
e.map((s) => String(s ?? "")),
|
|
85
|
+
t
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
let a = null;
|
|
89
|
+
function A() {
|
|
90
|
+
a === null && (a = requestAnimationFrame(() => {
|
|
91
|
+
a = null, U();
|
|
92
|
+
}));
|
|
75
93
|
}
|
|
76
|
-
return
|
|
77
|
-
|
|
94
|
+
return X(() => {
|
|
95
|
+
a !== null && cancelAnimationFrame(a);
|
|
96
|
+
}), H(
|
|
97
|
+
C,
|
|
78
98
|
async () => {
|
|
79
|
-
await
|
|
99
|
+
await j(), A();
|
|
80
100
|
},
|
|
81
101
|
{ flush: "post", deep: !0 }
|
|
82
|
-
),
|
|
83
|
-
|
|
84
|
-
}), {
|
|
85
|
-
selectComponentProps: R
|
|
102
|
+
), J([v(), i], () => A()), {
|
|
103
|
+
selectComponentProps: $
|
|
86
104
|
};
|
|
87
105
|
}
|
|
88
106
|
export {
|
|
89
|
-
|
|
107
|
+
Te as useSelectCollapseOptions
|
|
90
108
|
};
|
|
@@ -11,6 +11,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
11
11
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
12
12
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
13
13
|
import { get as M, isEqual as q, set as G } from "lodash-es";
|
|
14
|
+
import "vue-router";
|
|
14
15
|
import { useForwardPriorityValues as W } from "./hooks/useForwardPriorityValues.js";
|
|
15
16
|
import { useDebounceFn as j } from "@vueuse/core";
|
|
16
17
|
import J from "./components/FormActions.vue2.js";
|
|
@@ -28,7 +29,7 @@ import "es-toolkit/compat";
|
|
|
28
29
|
import "../../tt-text/index.js";
|
|
29
30
|
import te from "./form-render/form.vue2.js";
|
|
30
31
|
/* empty css */
|
|
31
|
-
const
|
|
32
|
+
const Ne = /* @__PURE__ */ P({
|
|
32
33
|
name: "TtForm",
|
|
33
34
|
__name: "index",
|
|
34
35
|
props: {
|
|
@@ -154,5 +155,5 @@ const Pe = /* @__PURE__ */ P({
|
|
|
154
155
|
}
|
|
155
156
|
});
|
|
156
157
|
export {
|
|
157
|
-
|
|
158
|
+
Ne as default
|
|
158
159
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, createBlock as
|
|
1
|
+
import { defineComponent as l, createBlock as m, openBlock as s, unref as t, mergeProps as n } from "vue";
|
|
2
2
|
import "../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
3
3
|
import { useDesign as a } from "../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
@@ -13,9 +13,10 @@ import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8
|
|
|
13
13
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import "lodash-es";
|
|
16
|
+
import "vue-router";
|
|
16
17
|
import "../tt-table/index.js";
|
|
17
18
|
import { useTableRender as c } from "../tt-table/src/hooks/useTableRender.js";
|
|
18
|
-
const
|
|
19
|
+
const L = /* @__PURE__ */ l({
|
|
19
20
|
name: "TtLog",
|
|
20
21
|
__name: "index",
|
|
21
22
|
props: {
|
|
@@ -36,9 +37,9 @@ const I = /* @__PURE__ */ l({
|
|
|
36
37
|
],
|
|
37
38
|
...o.tableProps
|
|
38
39
|
});
|
|
39
|
-
return (p, f) => (
|
|
40
|
+
return (p, f) => (s(), m(t(i), n({ class: t(r) }, p.$attrs), null, 16, ["class"]));
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
43
|
export {
|
|
43
|
-
|
|
44
|
+
L as default
|
|
44
45
|
};
|
|
@@ -16,6 +16,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
16
16
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
17
17
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
18
18
|
import { omit as H, pick as O } from "lodash-es";
|
|
19
|
+
import "vue-router";
|
|
19
20
|
import Ro from "../../../directives/dialog-resize/index.js";
|
|
20
21
|
import { useStore as jo } from "@tanstack/vue-store";
|
|
21
22
|
import Eo from "./components/ModalFooter.vue.js";
|
|
@@ -25,7 +26,7 @@ import { basicProps as No } from "./props.js";
|
|
|
25
26
|
import { ModalApi as qo } from "./utils/modal-api.js";
|
|
26
27
|
import { pushModal as Ko, removeModal as W } from "./utils/modal-stack.js";
|
|
27
28
|
import Uo from "../../../assets/svg/close.svg.js";
|
|
28
|
-
const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"],
|
|
29
|
+
const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"], Pe = /* @__PURE__ */ ko({
|
|
29
30
|
name: "TtModal",
|
|
30
31
|
__name: "RenderModal",
|
|
31
32
|
props: {
|
|
@@ -318,5 +319,5 @@ const Go = ["aria-tt-id", "data-testid"], Jo = ["data-testid"], Be = /* @__PURE_
|
|
|
318
319
|
}
|
|
319
320
|
});
|
|
320
321
|
export {
|
|
321
|
-
|
|
322
|
+
Pe as default
|
|
322
323
|
};
|
|
@@ -13,23 +13,24 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/en
|
|
|
13
13
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
14
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import "lodash-es";
|
|
16
|
-
|
|
16
|
+
import "vue-router";
|
|
17
|
+
const z = /* @__PURE__ */ i({
|
|
17
18
|
__name: "ModalHeader",
|
|
18
19
|
props: {
|
|
19
20
|
/** 标题 */
|
|
20
21
|
title: d.string
|
|
21
22
|
},
|
|
22
|
-
setup(
|
|
23
|
-
const { prefixCls:
|
|
23
|
+
setup(r) {
|
|
24
|
+
const { prefixCls: e } = c("modal-header");
|
|
24
25
|
return (t, f) => (m(), p("div", {
|
|
25
|
-
class: s(l(
|
|
26
|
+
class: s(l(e))
|
|
26
27
|
}, [
|
|
27
|
-
a(n(t.$slots.title ? "" :
|
|
28
|
+
a(n(t.$slots.title ? "" : r.title) + " ", 1),
|
|
28
29
|
o(t.$slots, "titleToolbar", {}, void 0, !0),
|
|
29
30
|
o(t.$slots, "appendHeader", {}, void 0, !0)
|
|
30
31
|
], 2));
|
|
31
32
|
}
|
|
32
33
|
});
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
z as default
|
|
35
36
|
};
|
|
@@ -14,8 +14,9 @@ import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mo
|
|
|
14
14
|
import "../../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
15
15
|
import "lodash-es";
|
|
16
16
|
import { useIsScroll as $ } from "../../../../packages/hooks/src/useIsScroll.js";
|
|
17
|
+
import "vue-router";
|
|
17
18
|
import { basicProps as b } from "../props.js";
|
|
18
|
-
const
|
|
19
|
+
const U = /* @__PURE__ */ d({
|
|
19
20
|
name: "TtWrapper",
|
|
20
21
|
__name: "ModalWrapper",
|
|
21
22
|
props: b,
|
|
@@ -57,5 +58,5 @@ const Q = /* @__PURE__ */ d({
|
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
U as default
|
|
61
62
|
};
|
|
@@ -12,6 +12,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
12
12
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
13
13
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
14
14
|
import "lodash-es";
|
|
15
|
+
import "vue-router";
|
|
15
16
|
import { GlobalConfig as e } from "../../../hooks/useSetup.js";
|
|
16
17
|
const o = {
|
|
17
18
|
/** 测试标识 */
|
|
@@ -38,7 +39,7 @@ const o = {
|
|
|
38
39
|
fullscreen: { type: Boolean, default: !1 },
|
|
39
40
|
/** 是否允许自定义大小 */
|
|
40
41
|
resizer: { type: Boolean, default: !1 }
|
|
41
|
-
},
|
|
42
|
+
}, h = Object.assign({}, o, {
|
|
42
43
|
/** 弹窗的loading */
|
|
43
44
|
loading: { type: Boolean, default: !1 },
|
|
44
45
|
/** 弹窗的loading提示 */
|
|
@@ -83,6 +84,6 @@ const o = {
|
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
h as basicProps,
|
|
87
88
|
o as modalProps
|
|
88
89
|
};
|
|
@@ -17,9 +17,10 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-u
|
|
|
17
17
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
18
18
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
19
19
|
import "lodash-es";
|
|
20
|
+
import "vue-router";
|
|
20
21
|
import { useElementSize as Ie, useDraggable as Se } from "@vueuse/core";
|
|
21
22
|
import { TT_NAV_ANCHOR_DRAG_VISIBLE_SIZE_PX as k, TT_NAV_ANCHOR_ROOT_WIDTH_PX as h } from "./constants.js";
|
|
22
|
-
const De = ["tabindex"], He = ["onClick"], Oe = ["title"],
|
|
23
|
+
const De = ["tabindex"], He = ["onClick"], Oe = ["title"], lt = /* @__PURE__ */ de({
|
|
23
24
|
name: "TtNavAnchor",
|
|
24
25
|
__name: "TtNavAnchor",
|
|
25
26
|
props: {
|
|
@@ -278,5 +279,5 @@ const De = ["tabindex"], He = ["onClick"], Oe = ["title"], it = /* @__PURE__ */
|
|
|
278
279
|
}
|
|
279
280
|
});
|
|
280
281
|
export {
|
|
281
|
-
|
|
282
|
+
lt as default
|
|
282
283
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Search as
|
|
3
|
-
import { ElInput as
|
|
4
|
-
const x = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as E, computed as k, createElementBlock as y, openBlock as C, normalizeClass as n, createVNode as t, unref as a, withCtx as i } from "vue";
|
|
2
|
+
import { Search as _ } from "@element-plus/icons-vue";
|
|
3
|
+
import { ElInput as v, ElIcon as b, ElTreeV2 as H } from "element-plus";
|
|
4
|
+
const T = 26, g = 320, x = 60, D = /* @__PURE__ */ E({
|
|
5
5
|
name: "PanelLeft",
|
|
6
6
|
__name: "PanelLeft",
|
|
7
7
|
props: {
|
|
@@ -12,45 +12,51 @@ const x = /* @__PURE__ */ i({
|
|
|
12
12
|
leftPlaceholder: {}
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:keyword", "select"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
setup(c, { emit: p }) {
|
|
16
|
+
const u = c, o = p, f = k(() => {
|
|
17
|
+
const e = (r) => r.reduce((h, s) => {
|
|
18
|
+
var d;
|
|
19
|
+
return h + 1 + ((d = s.children) != null && d.length ? e(s.children) : 0);
|
|
20
|
+
}, 0), l = e(u.treeData);
|
|
21
|
+
return l ? Math.min(l * T, g) : x;
|
|
22
|
+
});
|
|
23
|
+
function m(e, l) {
|
|
24
|
+
l.isLeaf && o("select", e);
|
|
19
25
|
}
|
|
20
|
-
return (e, l) => (
|
|
21
|
-
class:
|
|
26
|
+
return (e, l) => (C(), y("div", {
|
|
27
|
+
class: n(`${e.prefixCls}__left`)
|
|
22
28
|
}, [
|
|
23
|
-
a(
|
|
29
|
+
t(a(v), {
|
|
24
30
|
"model-value": e.keyword,
|
|
25
|
-
class:
|
|
31
|
+
class: n(`${e.prefixCls}__search`),
|
|
26
32
|
placeholder: e.leftPlaceholder,
|
|
27
33
|
clearable: "",
|
|
28
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
34
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => o("update:keyword", r))
|
|
29
35
|
}, {
|
|
30
|
-
prefix:
|
|
31
|
-
a(
|
|
32
|
-
default:
|
|
33
|
-
a(
|
|
36
|
+
prefix: i(() => [
|
|
37
|
+
t(a(b), null, {
|
|
38
|
+
default: i(() => [
|
|
39
|
+
t(a(_))
|
|
34
40
|
]),
|
|
35
41
|
_: 1
|
|
36
42
|
})
|
|
37
43
|
]),
|
|
38
44
|
_: 1
|
|
39
45
|
}, 8, ["model-value", "class", "placeholder"]),
|
|
40
|
-
a(
|
|
41
|
-
class:
|
|
46
|
+
t(a(H), {
|
|
47
|
+
class: n(`${e.prefixCls}__tree`),
|
|
42
48
|
data: e.treeData,
|
|
43
49
|
props: { label: "label", children: "children", disabled: "disabled", value: "value" },
|
|
44
|
-
height:
|
|
50
|
+
height: f.value,
|
|
45
51
|
"node-key": "value",
|
|
46
52
|
"default-expanded-keys": e.expandedKeys,
|
|
47
53
|
"highlight-current": "",
|
|
48
54
|
"empty-text": "暂无数据",
|
|
49
|
-
onNodeClick:
|
|
50
|
-
}, null, 8, ["class", "data", "default-expanded-keys"])
|
|
55
|
+
onNodeClick: m
|
|
56
|
+
}, null, 8, ["class", "data", "height", "default-expanded-keys"])
|
|
51
57
|
], 2));
|
|
52
58
|
}
|
|
53
59
|
});
|
|
54
60
|
export {
|
|
55
|
-
|
|
61
|
+
D as default
|
|
56
62
|
};
|