@dazhicheng/ui 1.5.201 → 1.5.203
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/RiRefreshLine.svg.js +4 -0
- package/dist/assets/svg/add.svg.js +4 -0
- package/dist/assets/svg/addCircleLine.svg.js +4 -0
- package/dist/assets/svg/arrowDown.svg.js +4 -0
- package/dist/assets/svg/arrowLineDown.svg.js +5 -0
- package/dist/assets/svg/arrowSUp.svg.js +4 -0
- package/dist/assets/svg/arrowUp.svg.js +4 -0
- package/dist/assets/svg/columnSet.svg.js +4 -0
- package/dist/assets/svg/determinateCircleLine.svg.js +5 -0
- package/dist/assets/svg/drag.svg.js +5 -0
- package/dist/assets/svg/exportSvg.svg.js +4 -0
- package/dist/assets/svg/fileSvg.svg.js +4 -0
- package/dist/assets/svg/help.svg.js +4 -0
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-button/components/AddButton.vue.js +2 -2
- package/dist/components/tt-checkbox/index.vue.js +7 -7
- package/dist/components/tt-drawer/index.js +1 -1
- package/dist/components/tt-drawer/src/RenderDrawer.vue.js +18 -17
- package/dist/components/tt-drawer/src/components/DrawerFooter.vue.js +1 -1
- package/dist/components/tt-drawer/src/props.js +1 -1
- package/dist/components/tt-drawer/src/utils/drawer-api.js +1 -1
- package/dist/components/tt-empty/index.js +1 -1
- package/dist/components/tt-form/index.js +11 -17
- package/dist/components/tt-form/src/components/ExpandableArrow.vue2.js +3 -3
- package/dist/components/tt-form/src/components/FormActions.vue2.js +1 -1
- package/dist/components/tt-form/src/config.js +4 -4
- package/dist/components/tt-form/src/form/FormMessageToolTip.vue.js +1 -1
- package/dist/components/tt-form/src/form-render/FormField.vue2.js +3 -4
- package/dist/components/tt-form/src/form-render/FormLabel.vue2.js +6 -7
- package/dist/components/tt-form/src/form-render/form.vue2.js +4 -5
- package/dist/components/tt-form/src/group-form/GroupForm.vue2.js +1 -1
- package/dist/components/tt-form/src/group-form/GroupSection.vue2.js +25 -26
- package/dist/components/tt-form/src/index.vue2.js +5 -7
- package/dist/components/tt-form-item-error-tooltip/index.js +2 -2
- package/dist/components/tt-icon/components/AddIcon.vue.js +1 -1
- package/dist/components/tt-icon/components/SubIcon.vue.js +1 -1
- package/dist/components/tt-log/index.vue.js +5 -4
- package/dist/components/tt-modal/index.js +1 -1
- package/dist/components/tt-modal/src/RenderModal.vue.js +26 -26
- package/dist/components/tt-modal/src/props.js +1 -1
- package/dist/components/tt-modal/src/utils/modal-api.js +1 -1
- package/dist/components/tt-modal-form/index.vue.js +47 -24
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +14 -14
- package/dist/components/tt-panel-select/src/components/PanelMiddle.vue.js +2 -2
- package/dist/components/tt-panel-select/src/components/PanelRight.vue.js +14 -14
- package/dist/components/tt-select/src/Select.vue.js +27 -27
- package/dist/components/tt-select/src/components/SelectTable.vue.js +1 -1
- package/dist/components/tt-select/src/components/Table.vue.js +2 -2
- package/dist/components/tt-table/index.js +48 -18
- package/dist/components/tt-table/src/Table.vue.js +2 -2
- package/dist/components/tt-table/src/TableForm.vue.js +120 -81
- package/dist/components/tt-table/src/components/TableAction.vue.js +3 -3
- package/dist/components/tt-table/src/components/TableButtons.js +9 -9
- package/dist/components/tt-table/src/components/TableColumnModal.vue2.js +19 -18
- package/dist/components/tt-table/src/components/TableToobalTools.vue.js +4 -4
- package/dist/components/tt-table/src/hooks/useCellArea.js +1 -1
- package/dist/components/tt-table/src/hooks/useColumns.js +1 -1
- package/dist/components/tt-table/src/hooks/useCustomColumns.js +1 -1
- package/dist/components/tt-table/src/hooks/useDataSource.js +1 -1
- package/dist/components/tt-table/src/hooks/usePagination.js +1 -1
- package/dist/components/tt-table/src/hooks/useTableSlot.js +1 -1
- package/dist/components/tt-table/src/props.js +1 -1
- package/dist/components/tt-table/src/utils/table-api.js +1 -1
- package/dist/components/tt-text/index.vue2.js +1 -1
- package/dist/components/tt-upload/src/TtUpload.vue.js +71 -70
- package/dist/directives/dialog-resize/index.js +10 -10
- package/dist/hooks/useScreenshotOss.js +1 -1
- package/dist/hooks/useTable.js +13 -0
- package/dist/hooks/useTemplateSlot.js +13 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/components/tt-area/{TtArea.vue2.js → TtArea.vue3.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as K, ref as f, watch as p, useTemplateRef as R, computed as N, onActivated as Q, onDeactivated as ee, watchPostEffect as te, createElementBlock as d, openBlock as s, Fragment as z, createElementVNode as r, createBlock as oe, normalizeClass as l, unref as t, Teleport as ne, createCommentVNode as V, normalizeStyle as ie, createVNode as y, withCtx as H, createTextVNode as ae, toDisplayString as O, renderList as le, renderSlot as re, isVNode as se, h as ue } from "vue";
|
|
2
|
-
import de from "
|
|
3
|
-
import ce from "
|
|
4
|
-
import { TtText as fe } from "
|
|
2
|
+
import de from "../../../assets/svg/drag.svg.js";
|
|
3
|
+
import { TtIcon as ce } from "../../tt-icon/index.js";
|
|
4
|
+
import { TtText as fe } from "../../tt-text/index.js";
|
|
5
5
|
import { useDesign as pe } from "@dazhicheng/hooks";
|
|
6
6
|
import { isString as me, isFunction as P, isNullOrUnDef as ve, isArray as _e, isObject as he } from "@dazhicheng/utils";
|
|
7
7
|
import { useElementSize as ge, useDraggable as ye } from "@vueuse/core";
|
|
8
8
|
import { useZIndex as we, ElScrollbar as $e } from "element-plus";
|
|
9
9
|
import { TT_NAV_ANCHOR_ROOT_WIDTH_PX as m } from "./constants.js";
|
|
10
|
-
const Te = ["onClick"], be = ["title"],
|
|
10
|
+
const Te = ["onClick"], be = ["title"], Ie = /* @__PURE__ */ K({
|
|
11
11
|
name: "TtNavAnchor",
|
|
12
12
|
__name: "TtNavAnchor",
|
|
13
13
|
props: {
|
|
@@ -24,7 +24,7 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
24
24
|
},
|
|
25
25
|
emits: ["change", "update:modelValue"],
|
|
26
26
|
setup(B, { emit: W }) {
|
|
27
|
-
var
|
|
27
|
+
var S;
|
|
28
28
|
const { prefixCls: o } = pe("nav-anchor"), i = B, M = W;
|
|
29
29
|
function X(e) {
|
|
30
30
|
return ve(e) || se(e) || _e(e) ? e : he(e) || P(e) ? ue(e) : e;
|
|
@@ -33,7 +33,7 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
33
33
|
const { title: a } = e.row;
|
|
34
34
|
return X(P(a) ? a(e.row) : a);
|
|
35
35
|
}
|
|
36
|
-
const v = f(i.modelValue || ((
|
|
36
|
+
const v = f(i.modelValue || ((S = i.items[0]) == null ? void 0 : S.key) || "");
|
|
37
37
|
p(
|
|
38
38
|
() => i.modelValue,
|
|
39
39
|
(e) => {
|
|
@@ -43,7 +43,7 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
43
43
|
function F(e) {
|
|
44
44
|
v.value = e, M("update:modelValue", e), M("change", e);
|
|
45
45
|
}
|
|
46
|
-
const c = R("navRef"),
|
|
46
|
+
const c = R("navRef"), A = R("headerRef"), w = R("sourceRef"), _ = f(!0), $ = f(i.teleportTo || null), { height: E } = ge(c);
|
|
47
47
|
function h(e, a) {
|
|
48
48
|
return e == null ? a : typeof e == "number" ? e : parseInt(e, 10) || a;
|
|
49
49
|
}
|
|
@@ -59,12 +59,12 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
59
59
|
let n;
|
|
60
60
|
return i.top !== void 0 ? n = h(i.top, 24) : i.bottom !== void 0 ? n = e > 0 ? window.innerHeight - e - h(i.bottom, 24) : 0 : n = 24, Y(a, n, e);
|
|
61
61
|
}
|
|
62
|
-
const { nextZIndex:
|
|
62
|
+
const { nextZIndex: I } = we(), x = f(I()), {
|
|
63
63
|
style: j,
|
|
64
64
|
isDragging: L,
|
|
65
65
|
position: k
|
|
66
66
|
} = ye(c, {
|
|
67
|
-
handle:
|
|
67
|
+
handle: A,
|
|
68
68
|
initialValue: b(0),
|
|
69
69
|
preventDefault: !0,
|
|
70
70
|
onStart() {
|
|
@@ -79,10 +79,10 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
|
-
p(
|
|
82
|
+
p(E, (e) => {
|
|
83
83
|
T.value || e <= 0 || (k.value = b(e));
|
|
84
84
|
}), p([() => i.left, () => i.right, () => i.top, () => i.bottom], () => {
|
|
85
|
-
T.value = !1, k.value = b(
|
|
85
|
+
T.value = !1, k.value = b(E.value);
|
|
86
86
|
});
|
|
87
87
|
const U = N(() => {
|
|
88
88
|
if (i.position === "static")
|
|
@@ -100,7 +100,7 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
100
100
|
$.value = J();
|
|
101
101
|
}
|
|
102
102
|
function C() {
|
|
103
|
-
x.value =
|
|
103
|
+
x.value = I();
|
|
104
104
|
}
|
|
105
105
|
return Q(() => {
|
|
106
106
|
_.value = !0, g();
|
|
@@ -136,7 +136,7 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
136
136
|
}, [
|
|
137
137
|
r("div", {
|
|
138
138
|
ref_key: "headerRef",
|
|
139
|
-
ref:
|
|
139
|
+
ref: A,
|
|
140
140
|
class: l(`${t(o)}__header`),
|
|
141
141
|
onClick: C
|
|
142
142
|
}, [
|
|
@@ -230,5 +230,5 @@ const Te = ["onClick"], be = ["title"], Ee = /* @__PURE__ */ K({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
export {
|
|
233
|
-
|
|
233
|
+
Ie as default
|
|
234
234
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ie, useTemplateRef as ue, ref as f, computed as v, watch as x, nextTick as L, createElementBlock as d, openBlock as s, normalizeClass as n, createElementVNode as w, createCommentVNode as Y, createVNode as p, createBlock as I, unref as i, withCtx as u, createTextVNode as $, normalizeStyle as M, Fragment as A, renderList as H, toDisplayString as V } from "vue";
|
|
2
|
-
import { TtButton as de } from "
|
|
3
|
-
import { TtText as _ } from "
|
|
2
|
+
import { TtButton as de } from "../../../tt-button/index.js";
|
|
3
|
+
import { TtText as _ } from "../../../tt-text/index.js";
|
|
4
4
|
import { Search as pe } from "@element-plus/icons-vue";
|
|
5
5
|
import { ElInput as ce, ElIcon as fe, ElCheckbox as P, ElScrollbar as ve } from "element-plus";
|
|
6
6
|
const he = ["data-virtual-index", "data-flash-seed"], O = 8, Ce = /* @__PURE__ */ ie({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import w from "
|
|
3
|
-
import { TtButton as Y } from "
|
|
4
|
-
import { TtIcon as y } from "
|
|
5
|
-
import { TtText as D } from "
|
|
1
|
+
import { defineComponent as V, ref as f, computed as s, watch as z, nextTick as H, createElementBlock as c, openBlock as p, normalizeClass as o, createElementVNode as v, createVNode as r, unref as t, withCtx as h, createTextVNode as b, normalizeStyle as g, Fragment as N, renderList as I, createCommentVNode as A, toDisplayString as P } from "vue";
|
|
2
|
+
import w from "../../../../assets/svg/close.svg.js";
|
|
3
|
+
import { TtButton as Y } from "../../../tt-button/index.js";
|
|
4
|
+
import { TtIcon as y } from "../../../tt-icon/index.js";
|
|
5
|
+
import { TtText as D } from "../../../tt-text/index.js";
|
|
6
6
|
import { ElScrollbar as F } from "element-plus";
|
|
7
|
-
const n = 34, $ = 8, U = /* @__PURE__ */
|
|
7
|
+
const n = 34, $ = 8, U = /* @__PURE__ */ V({
|
|
8
8
|
name: "PanelRight",
|
|
9
9
|
__name: "PanelRight",
|
|
10
10
|
props: {
|
|
@@ -17,13 +17,13 @@ const n = 34, $ = 8, U = /* @__PURE__ */ O({
|
|
|
17
17
|
setup(_, { emit: k }) {
|
|
18
18
|
const a = _, C = k, u = f(), d = f(0), x = f(340), T = s(() => a.selectedOptions.length * n), R = s(() => Math.max(1, Math.ceil(x.value / n))), m = s(() => Math.max(0, Math.floor(d.value / n) - $)), S = s(
|
|
19
19
|
() => Math.min(a.selectedOptions.length, m.value + R.value + $ * 2)
|
|
20
|
-
),
|
|
21
|
-
function
|
|
20
|
+
), B = s(() => m.value * n), E = s(() => a.selectedOptions.slice(m.value, S.value));
|
|
21
|
+
function M() {
|
|
22
22
|
var l;
|
|
23
23
|
const e = (l = u.value) == null ? void 0 : l.wrapRef;
|
|
24
24
|
e && (x.value = e.clientHeight, d.value = e.scrollTop);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function O() {
|
|
27
27
|
var l;
|
|
28
28
|
const e = (l = u.value) == null ? void 0 : l.wrapRef;
|
|
29
29
|
e && (d.value = e.scrollTop);
|
|
@@ -31,7 +31,7 @@ const n = 34, $ = 8, U = /* @__PURE__ */ O({
|
|
|
31
31
|
return z(
|
|
32
32
|
() => a.selectedOptions.length,
|
|
33
33
|
async () => {
|
|
34
|
-
await H(),
|
|
34
|
+
await H(), M();
|
|
35
35
|
},
|
|
36
36
|
{ immediate: !0 }
|
|
37
37
|
), (e, l) => (p(), c("div", {
|
|
@@ -63,16 +63,16 @@ const n = 34, $ = 8, U = /* @__PURE__ */ O({
|
|
|
63
63
|
ref: u,
|
|
64
64
|
class: o(`${e.prefixCls}__selected-list ${e.prefixCls}__right-scrollbar`),
|
|
65
65
|
height: "340px",
|
|
66
|
-
onScroll:
|
|
66
|
+
onScroll: O
|
|
67
67
|
}, {
|
|
68
68
|
default: h(() => [
|
|
69
69
|
v("div", {
|
|
70
70
|
style: g({ height: `${T.value}px` })
|
|
71
71
|
}, [
|
|
72
72
|
v("div", {
|
|
73
|
-
style: g({ transform: `translateY(${
|
|
73
|
+
style: g({ transform: `translateY(${B.value}px)` })
|
|
74
74
|
}, [
|
|
75
|
-
(p(!0), c(N, null, I(
|
|
75
|
+
(p(!0), c(N, null, I(E.value, (i) => (p(), c("div", {
|
|
76
76
|
key: i.value,
|
|
77
77
|
style: g({ height: `${n}px` }),
|
|
78
78
|
class: o(`${e.prefixCls}__selected-item`)
|
|
@@ -91,7 +91,7 @@ const n = 34, $ = 8, U = /* @__PURE__ */ O({
|
|
|
91
91
|
size: 14,
|
|
92
92
|
"is-custom-svg": "",
|
|
93
93
|
icon: t(w),
|
|
94
|
-
onClick: (
|
|
94
|
+
onClick: (L) => C("remove", i.value)
|
|
95
95
|
}, null, 8, ["icon", "onClick"])
|
|
96
96
|
], 2))
|
|
97
97
|
], 6))), 128))
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as
|
|
1
|
+
import { defineComponent as Ne, useAttrs as Re, ref as g, useSlots as Ae, computed as i, unref as l, watch as Be, createElementBlock as ae, openBlock as x, mergeProps as h, createBlock as We, createCommentVNode as Ke, resolveDynamicComponent as ze, createSlots as I, withCtx as c, renderSlot as p, normalizeProps as P, guardReactiveProps as y, createElementVNode as He, normalizeClass as ne, toDisplayString as _e, renderList as O, createVNode as u, toHandlers as ie, withModifiers as Ge, withDirectives as Ue, resolveComponent as qe, toValue as Je, isRef as Qe, isReactive as Xe } from "vue";
|
|
2
2
|
import Ye from "./components/Table.vue.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import { useDesign as Ze } from "@dazhicheng/hooks";
|
|
5
|
-
import { useLoading as et } from "
|
|
6
|
-
import { isArray as
|
|
5
|
+
import { useLoading as et } from "../../../hooks/useLoading.js";
|
|
6
|
+
import { isArray as re, isObject as tt, isEmpty as ot } from "@dazhicheng/utils";
|
|
7
7
|
import { CopyDocument as lt } from "@element-plus/icons-vue";
|
|
8
8
|
import { ElIcon as st, ElSelect as at } from "element-plus";
|
|
9
|
-
import nt from "
|
|
10
|
-
import { useTableSlot as
|
|
11
|
-
import { useResizeObserver as
|
|
9
|
+
import nt from "../../../directives/disabled-tip/index.js";
|
|
10
|
+
import { useTableSlot as it } from "../../../hooks/useTable.js";
|
|
11
|
+
import { useResizeObserver as rt } from "@vueuse/core";
|
|
12
12
|
import { omit as ct, pick as dt, cloneDeep as j, isEqual as pt } from "lodash-es";
|
|
13
13
|
import ut from "./components/SelectTable.vue.js";
|
|
14
14
|
/* empty css */
|
|
@@ -28,15 +28,15 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
28
28
|
emit: pe
|
|
29
29
|
}) {
|
|
30
30
|
var X, Y, Z, ee;
|
|
31
|
-
const t = ce, f = pe, S = Re(), m = g(null), v = g(),
|
|
31
|
+
const t = ce, f = pe, S = Re(), m = g(null), v = g(), r = g((X = t.selectProps) != null && X.multiple ? [] : void 0), a = g(void 0), C = g(!1), {
|
|
32
32
|
prefixCls: w
|
|
33
33
|
} = Ze("select-v2"), ue = Ae(), {
|
|
34
34
|
getTableSlotKeys: M,
|
|
35
35
|
replaceTableSlotKey: N
|
|
36
|
-
} =
|
|
36
|
+
} = it(ue), {
|
|
37
37
|
getLoading: V,
|
|
38
38
|
setLoading: fe
|
|
39
|
-
} = et(
|
|
39
|
+
} = et(i(() => t.loading || !1)), R = i(() => {
|
|
40
40
|
var e;
|
|
41
41
|
return (((e = t.gridProps) == null ? void 0 : e.columns) || []).map((o) => o.field || "");
|
|
42
42
|
}), {
|
|
@@ -61,7 +61,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
61
61
|
searchValue: Ce,
|
|
62
62
|
getImmediate: we,
|
|
63
63
|
updateOptionsDisabled: Ve
|
|
64
|
-
} = ft(
|
|
64
|
+
} = ft(i(() => ({
|
|
65
65
|
...ht,
|
|
66
66
|
...t.configProps
|
|
67
67
|
})), {
|
|
@@ -76,17 +76,17 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
76
76
|
columnsFields: l(R),
|
|
77
77
|
setHasNextPage: ge,
|
|
78
78
|
getSelectEvent: () => D,
|
|
79
|
-
extra:
|
|
80
|
-
selectValue:
|
|
79
|
+
extra: i(() => t.extra),
|
|
80
|
+
selectValue: r,
|
|
81
81
|
renderType: t.renderType,
|
|
82
|
-
multipleLimit:
|
|
83
|
-
}, f), ke =
|
|
82
|
+
multipleLimit: i(() => t.selectProps.multipleLimit)
|
|
83
|
+
}, f), ke = i(() => {
|
|
84
84
|
if (S.disabled !== void 0)
|
|
85
85
|
return !!S.disabled;
|
|
86
86
|
if (t.disabled || t.configProps.disabled)
|
|
87
87
|
return !0;
|
|
88
88
|
const e = t.disabledTip;
|
|
89
|
-
return
|
|
89
|
+
return re(e) && e.length > 0 ? e.some((o) => !!(o != null && o.condition)) : tt(e) ? !!e.condition : !1;
|
|
90
90
|
}), {
|
|
91
91
|
getOtherSelectProps: Ee,
|
|
92
92
|
calcMaxCollapseTags: H,
|
|
@@ -95,7 +95,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
95
95
|
showPopup: De,
|
|
96
96
|
setShowPopup: Fe,
|
|
97
97
|
getSelectWidth: Te
|
|
98
|
-
} = gt(
|
|
98
|
+
} = gt(i(() => t.selectProps), {
|
|
99
99
|
collapse: t.configProps.collapse,
|
|
100
100
|
selectOption: a,
|
|
101
101
|
selectRef: m,
|
|
@@ -117,11 +117,11 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
117
117
|
selectEvent: D,
|
|
118
118
|
keyboardEvent: U,
|
|
119
119
|
defaultDataSelect: Le
|
|
120
|
-
} = vt(
|
|
120
|
+
} = vt(i(() => t), {
|
|
121
121
|
tableRef: v,
|
|
122
122
|
selectRef: m,
|
|
123
123
|
options: $,
|
|
124
|
-
selectValue:
|
|
124
|
+
selectValue: r,
|
|
125
125
|
selectOption: a,
|
|
126
126
|
setSelectValue: q,
|
|
127
127
|
multiple: ((Z = t.selectProps) == null ? void 0 : Z.multiple) || !1,
|
|
@@ -147,7 +147,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
147
147
|
persistent: ((ee = t.selectProps) == null ? void 0 : ee.persistent) || !1,
|
|
148
148
|
updateOptionsDisabled: Ve,
|
|
149
149
|
getIsSelectFirstOption: ye
|
|
150
|
-
}, f), F =
|
|
150
|
+
}, f), F = i(() => ({
|
|
151
151
|
popperClass: `${w}-popper vxe-table--ignore-clear`,
|
|
152
152
|
valueKey: "value",
|
|
153
153
|
placement: "bottom-end",
|
|
@@ -156,7 +156,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
156
156
|
...ct(t.selectProps, ["allowCreate"]),
|
|
157
157
|
...l(Ee),
|
|
158
158
|
loading: l(V)
|
|
159
|
-
})), T =
|
|
159
|
+
})), T = i(() => {
|
|
160
160
|
var o;
|
|
161
161
|
return {
|
|
162
162
|
grid: t.gridProps ?? {},
|
|
@@ -166,7 +166,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
166
166
|
pagination: l(A),
|
|
167
167
|
multiple: t.selectProps.multiple,
|
|
168
168
|
disableFn: t.configProps.disableFn,
|
|
169
|
-
selectValue: l(
|
|
169
|
+
selectValue: l(r),
|
|
170
170
|
selectWidth: l(_),
|
|
171
171
|
deleteField: t.configProps.deleteField,
|
|
172
172
|
hasNextPage: l(B),
|
|
@@ -178,8 +178,8 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
178
178
|
};
|
|
179
179
|
});
|
|
180
180
|
function q(e, o, s = !0) {
|
|
181
|
-
const n = j(
|
|
182
|
-
a.value = o,
|
|
181
|
+
const n = j(r.value);
|
|
182
|
+
a.value = o, r.value = j(e), !(pt(j(e), n) || !s) && (f("update:modelValue", r.value), f("change", r.value, a.value), f("select-change", r.value, a.value), Ie());
|
|
183
183
|
}
|
|
184
184
|
function xe() {
|
|
185
185
|
return Object.keys(D).reduce((e, o) => (e[`on${o.charAt(0).toUpperCase()}${o.slice(1)}`] = D[o], e), {});
|
|
@@ -220,7 +220,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
220
220
|
H();
|
|
221
221
|
}, {
|
|
222
222
|
deep: !0
|
|
223
|
-
}),
|
|
223
|
+
}), rt(m, () => {
|
|
224
224
|
H(), _.value = Te();
|
|
225
225
|
});
|
|
226
226
|
function J(e) {
|
|
@@ -238,7 +238,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
238
238
|
function je() {
|
|
239
239
|
if (!ot(a.value)) {
|
|
240
240
|
const e = a.value;
|
|
241
|
-
if (
|
|
241
|
+
if (re(e)) {
|
|
242
242
|
const o = e.map((s) => s.label).join(",");
|
|
243
243
|
Q(o);
|
|
244
244
|
} else
|
|
@@ -273,7 +273,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
273
273
|
fn: c(() => [p(e.$slots, "empty", {}, () => [u(ut, h({
|
|
274
274
|
ref_key: "tableRef",
|
|
275
275
|
ref: v
|
|
276
|
-
}, T.value,
|
|
276
|
+
}, T.value, ie(l(G))), I({
|
|
277
277
|
_: 2
|
|
278
278
|
}, [O(l(M), (s) => ({
|
|
279
279
|
name: l(N)(s),
|
|
@@ -287,7 +287,7 @@ const Pt = ["title"], At = /* @__PURE__ */ Ne({
|
|
|
287
287
|
ref: v
|
|
288
288
|
}, T.value, {
|
|
289
289
|
"config-props": e.configProps
|
|
290
|
-
},
|
|
290
|
+
}, ie(l(G))), I({
|
|
291
291
|
_: 2
|
|
292
292
|
}, [O(l(M), (s) => ({
|
|
293
293
|
name: l(N)(s),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as C, useSlots as y, computed as s, unref as r, withDirectives as I, createElementBlock as b, openBlock as P, normalizeClass as R, createVNode as a, mergeProps as S, toHandlers as T, createSlots as k, withCtx as c, createElementVNode as D, renderList as V, renderSlot as z, normalizeProps as N, guardReactiveProps as O } from "vue";
|
|
2
2
|
import { useDesign as j } from "@dazhicheng/hooks";
|
|
3
|
-
import { TtEmpty as B } from "
|
|
3
|
+
import { TtEmpty as B } from "../../../tt-empty/index.js";
|
|
4
4
|
import { vLoading as L } from "element-plus";
|
|
5
5
|
import { VxeGrid as M } from "vxe-table";
|
|
6
6
|
import { tableEmits as d } from "vxe-table/es/table/src/emits";
|
|
@@ -2,8 +2,8 @@ import { defineComponent as We, useTemplateRef as S, ref as v, shallowRef as we,
|
|
|
2
2
|
import { calc as I } from "@dazhicheng/utils";
|
|
3
3
|
import { useDesign as Be } from "@dazhicheng/hooks";
|
|
4
4
|
import { ElCheckbox as Z, ElTooltip as Pe } from "element-plus";
|
|
5
|
-
import Se from "
|
|
6
|
-
import { TtText as ee } from "
|
|
5
|
+
import { TtEmpty as Se } from "../../../tt-empty/index.js";
|
|
6
|
+
import { TtText as ee } from "../../../tt-text/index.js";
|
|
7
7
|
import { debounce as Ee, cloneDeep as Ne } from "lodash-es";
|
|
8
8
|
import { VxeList as $e } from "vxe-pc-ui";
|
|
9
9
|
import { GRID_MIN_HEIGHT as Ie, GRID_MAX_HEIGHT as Le } from "../const.js";
|
|
@@ -5,29 +5,59 @@ import m from "./src/Table.vue.js";
|
|
|
5
5
|
/* empty css */
|
|
6
6
|
import "vue";
|
|
7
7
|
import "@tanstack/vue-store";
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
8
|
+
import "../tt-button/index.js";
|
|
9
|
+
import "../tt-checkbox/index.js";
|
|
10
|
+
import "../tt-empty/index.js";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
import "../tt-select/index.js";
|
|
13
|
+
import "../tt-panel-select/index.js";
|
|
14
|
+
import "../tt-upload/index.js";
|
|
15
|
+
import "../tt-api-component/index.js";
|
|
16
|
+
import "vee-validate";
|
|
17
|
+
import "dayjs";
|
|
18
|
+
import "dayjs/plugin/timezone";
|
|
10
19
|
import "lodash-es";
|
|
20
|
+
import "es-toolkit/compat";
|
|
21
|
+
import "zod";
|
|
22
|
+
import "../tt-form/src/shared/zod-defaults.js";
|
|
23
|
+
import "@dazhicheng/hooks";
|
|
24
|
+
import "@vueuse/core";
|
|
25
|
+
import "../tt-icon/index.js";
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
28
|
+
import "../tt-form/src/components/Slot.js";
|
|
29
|
+
import "../tt-form-item-error-tooltip/index.js";
|
|
30
|
+
/* empty css */
|
|
31
|
+
import "../tt-form/src/form/RenderContent.vue.js";
|
|
32
|
+
import "@vee-validate/zod";
|
|
33
|
+
import "../tt-text/index.js";
|
|
34
|
+
import "../tt-form/src/form-render/FormFieldContact.js";
|
|
35
|
+
/* empty css */
|
|
36
|
+
/* empty css */
|
|
37
|
+
import "../tt-nav-anchor/index.js";
|
|
38
|
+
/* empty css */
|
|
39
|
+
/* empty css */
|
|
40
|
+
import "../tt-image/index.js";
|
|
41
|
+
import "../tt-drawer/index.js";
|
|
42
|
+
import "../tt-modal/index.js";
|
|
43
|
+
import "../../directives/disabled-tip/index.js";
|
|
11
44
|
import "xe-utils";
|
|
12
|
-
import "
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import "
|
|
45
|
+
import "../tt-log/index.js";
|
|
46
|
+
/* empty css */
|
|
47
|
+
/* empty css */
|
|
48
|
+
/* empty css */
|
|
49
|
+
/* empty css */
|
|
50
|
+
/* empty css */
|
|
51
|
+
import "../tt-loading/index.js";
|
|
52
|
+
import "vue-router";
|
|
53
|
+
import "numeral";
|
|
19
54
|
import "sortablejs";
|
|
20
55
|
/* empty css */
|
|
21
|
-
import "@/assets/svg/RiRefreshLine.svg?raw";
|
|
22
|
-
import "@/assets/svg/exportSvg.svg?raw";
|
|
23
|
-
import "@/assets/svg/columnSet.svg?raw";
|
|
24
56
|
import "./src/emits.js";
|
|
25
|
-
import "@dazhicheng-ui/hooks/useSetup";
|
|
26
|
-
import "@dazhicheng-ui/hooks/useTemplateSlot";
|
|
27
57
|
import "./src/props.js";
|
|
28
|
-
const
|
|
58
|
+
const st = t(o), Tt = t(r), at = t(m);
|
|
29
59
|
export {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
60
|
+
at as TtTable,
|
|
61
|
+
st as TtTableAction,
|
|
62
|
+
Tt as TtTableButton
|
|
33
63
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as vt, useAttrs as St, useSlots as xt, ref as P, getCurrentInstance as wt, computed as v, provide as Ce, reactive as Ct, toValue as B, toRaw as _, unref as t, watch as M, nextTick as F, onMounted as Tt, onUnmounted as kt, createElementBlock as p, openBlock as d, normalizeClass as K, createVNode as O, mergeProps as ee, toHandlers as $t, createSlots as Rt, withCtx as u, renderSlot as m, createBlock as te, createCommentVNode as V, normalizeStyle as k, createElementVNode as w, normalizeProps as j, guardReactiveProps as J, Fragment as Te, toDisplayString as L, renderList as oe, withModifiers as Pt, createTextVNode as re } from "vue";
|
|
2
|
-
import { useLoading as _t } from "
|
|
2
|
+
import { useLoading as _t } from "../../../hooks/useLoading.js";
|
|
3
3
|
import { useDesign as Et } from "@dazhicheng/hooks";
|
|
4
4
|
import { extractResourceFromApi as It, generateTestId as ke, checkVersion as zt, isBoolean as Ot, isString as Vt, getDifference as Dt, kebabToCamelCase as Ht } from "@dazhicheng/utils";
|
|
5
|
-
import { TtErrorTooltip as Bt } from "
|
|
5
|
+
import { TtErrorTooltip as Bt } from "../../tt-form-item-error-tooltip/index.js";
|
|
6
6
|
import { useStore as Ft } from "@tanstack/vue-store";
|
|
7
7
|
import { ElScrollbar as $e } from "element-plus";
|
|
8
8
|
import { omit as N, cloneDeep as Kt } from "lodash-es";
|