@dazhicheng/ui 1.6.7 → 1.6.9
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-form/src/form-render/expandable.js +31 -32
- package/dist/components/tt-form/src/useFormContext.js +1 -1
- package/dist/components/tt-panel-select/src/index.vue.js +28 -28
- package/dist/components/tt-table/index.d.ts +3 -15
- package/dist/components/tt-table/index.js +5 -4
- package/dist/components/tt-table/src/Table.vue.d.ts +1 -1
- package/dist/components/tt-table/src/Table.vue.js +3 -3
- package/dist/components/tt-table/src/TableForm.vue.js +168 -159
- package/dist/components/tt-table/src/components/TableAction.vue.d.ts +2 -12
- package/dist/components/tt-table/src/components/TableAction.vue.js +78 -175
- package/dist/components/tt-table/src/hooks/useGridProps.js +64 -60
- package/dist/components/tt-table/src/hooks/useTableData.js +77 -74
- package/dist/components/tt-table/src/types/table.d.ts +2 -1
- package/dist/components/tt-table/src/utils/table-api.d.ts +2 -1
- package/dist/components/tt-table/src/utils/table-api.js +3 -2
- package/dist/components/tt-vtable/index.js +54 -0
- package/dist/components/tt-vtable/src/components/TtVTable.vue.d.ts +188 -0
- package/dist/components/tt-vtable/src/components/TtVTable.vue.js +227 -0
- package/dist/components/tt-vtable/src/components/TtVTable.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/TtVTableForm.vue.d.ts +32 -0
- package/dist/components/tt-vtable/src/components/TtVTableForm.vue.js +121 -0
- package/dist/components/tt-vtable/src/components/TtVTableForm.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/VTableEmpty.vue.d.ts +64 -0
- package/dist/components/tt-vtable/src/components/VTableEmpty.vue.js +97 -0
- package/dist/components/tt-vtable/src/components/VTableEmpty.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/VTablePagination.vue.d.ts +53 -0
- package/dist/components/tt-vtable/src/components/VTablePagination.vue.js +52 -0
- package/dist/components/tt-vtable/src/components/VTablePagination.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue.d.ts +35 -0
- package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue.js +50 -0
- package/dist/components/tt-vtable/src/components/VTableSelectionAlert.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/VTableToolbar.vue.d.ts +63 -0
- package/dist/components/tt-vtable/src/components/VTableToolbar.vue.js +126 -0
- package/dist/components/tt-vtable/src/components/VTableToolbar.vue2.js +4 -0
- package/dist/components/tt-vtable/src/components/VTableViewport.vue.js +133 -0
- package/dist/components/tt-vtable/src/components/VTableViewport.vue2.js +4 -0
- package/dist/components/tt-vtable/src/composables/useVTable.d.ts +41 -0
- package/dist/components/tt-vtable/src/composables/useVTable.js +25 -0
- package/dist/components/tt-vtable/src/composables/useVTableFormRender.d.ts +13 -0
- package/dist/components/tt-vtable/src/composables/useVTableFormRender.js +92 -0
- package/dist/components/tt-vtable/src/composables/useVTableRender.d.ts +13 -0
- package/dist/components/tt-vtable/src/composables/useVTableRender.js +13 -0
- package/dist/components/tt-vtable/src/engine/visactor/createListTable.d.ts +10 -0
- package/dist/components/tt-vtable/src/engine/visactor/createListTable.js +63 -0
- package/dist/components/tt-vtable/src/engine/visactor/createVueCellLayout.d.ts +37 -0
- package/dist/components/tt-vtable/src/engine/visactor/createVueCellLayout.js +133 -0
- package/dist/components/tt-vtable/src/engine/visactor/index.d.ts +8 -0
- package/dist/components/tt-vtable/src/engine/visactor/native-boundaries.d.ts +23 -0
- package/dist/components/tt-vtable/src/engine/visactor/native-boundaries.js +70 -0
- package/dist/components/tt-vtable/src/engine/visactor/record-adapter.d.ts +38 -0
- package/dist/components/tt-vtable/src/engine/visactor/record-adapter.js +41 -0
- package/dist/components/tt-vtable/src/engine/visactor/toColumnDefinitions.d.ts +45 -0
- package/dist/components/tt-vtable/src/engine/visactor/toColumnDefinitions.js +73 -0
- package/dist/components/tt-vtable/src/engine/visactor/toListTableOptions.d.ts +25 -0
- package/dist/components/tt-vtable/src/engine/visactor/toListTableOptions.js +25 -0
- package/dist/components/tt-vtable/src/engine/visactor/types.d.ts +29 -0
- package/dist/components/tt-vtable/src/features/column-preferences/column-preference-storage.d.ts +5 -0
- package/dist/components/tt-vtable/src/features/column-preferences/column-preference-storage.js +52 -0
- package/dist/components/tt-vtable/src/features/column-preferences/useColumnPreferences.d.ts +74 -0
- package/dist/components/tt-vtable/src/features/column-preferences/useColumnPreferences.js +232 -0
- package/dist/components/tt-vtable/src/features/editing/useCellEditing.d.ts +48 -0
- package/dist/components/tt-vtable/src/features/editing/useCellEditing.js +102 -0
- package/dist/components/tt-vtable/src/features/form-integration/useVTableForm.d.ts +51 -0
- package/dist/components/tt-vtable/src/features/pagination/useTablePagination.d.ts +40 -0
- package/dist/components/tt-vtable/src/features/pagination/useTablePagination.js +51 -0
- package/dist/components/tt-vtable/src/features/querying/useRecordQuery.d.ts +38 -0
- package/dist/components/tt-vtable/src/features/querying/useRecordQuery.js +57 -0
- package/dist/components/tt-vtable/src/features/records/index.d.ts +3 -0
- package/dist/components/tt-vtable/src/features/records/record-index.d.ts +122 -0
- package/dist/components/tt-vtable/src/features/records/record-index.js +209 -0
- package/dist/components/tt-vtable/src/features/records/useRecordSource.d.ts +41 -0
- package/dist/components/tt-vtable/src/features/records/useRecordSource.js +249 -0
- package/dist/components/tt-vtable/src/features/selection/useRowSelection.d.ts +65 -0
- package/dist/components/tt-vtable/src/features/selection/useRowSelection.js +129 -0
- package/dist/components/tt-vtable/src/features/tree/useTreeRecords.d.ts +60 -0
- package/dist/components/tt-vtable/src/features/tree/useTreeRecords.js +125 -0
- package/dist/components/tt-vtable/src/public/column-preferences.d.ts +32 -0
- package/dist/components/tt-vtable/src/public/index.d.ts +8 -0
- package/dist/components/tt-vtable/src/public/table-api.d.ts +215 -0
- package/dist/components/tt-vtable/src/public/table-column.d.ts +123 -0
- package/dist/components/tt-vtable/src/public/table-errors.d.ts +26 -0
- package/dist/components/tt-vtable/src/public/table-errors.js +26 -0
- package/dist/components/tt-vtable/src/public/table-events.d.ts +69 -0
- package/dist/components/tt-vtable/src/public/table-props.d.ts +216 -0
- package/dist/components/tt-vtable/src/public/table-slots.d.ts +37 -0
- package/dist/components/tt-vtable/src/runtime/createVTableController.d.ts +12 -0
- package/dist/components/tt-vtable/src/runtime/createVTableController.js +238 -0
- package/dist/components/tt-vtable/src/runtime/createVTableRuntime.d.ts +79 -0
- package/dist/components/tt-vtable/src/runtime/createVTableRuntime.js +380 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +129 -115
- package/dist/packages/utils/src/is.js +46 -37
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/assets/svg/action_more.svg.js +0 -4
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { useTemplateRef as
|
|
2
|
-
import { useElementVisibility as
|
|
1
|
+
import { useTemplateRef as k, ref as d, computed as x, watch as B, nextTick as h, onMounted as C } from "vue";
|
|
2
|
+
import { useElementVisibility as I, useBreakpoints as S, breakpointsTailwind as M } from "@vueuse/core";
|
|
3
3
|
function H(n) {
|
|
4
|
-
const i =
|
|
5
|
-
const e = n.collapsedRows ?? 1,
|
|
6
|
-
let
|
|
7
|
-
for (let
|
|
8
|
-
|
|
9
|
-
return Math.max(
|
|
4
|
+
const i = k("wrapperRef"), p = I(i), r = d({}), l = d(!1), g = S(M), R = x(() => {
|
|
5
|
+
const e = n.collapsedRows ?? 1, a = r.value;
|
|
6
|
+
let o = 0;
|
|
7
|
+
for (let t = 1; t <= e; t++)
|
|
8
|
+
o += (a == null ? void 0 : a[t]) ?? 0;
|
|
9
|
+
return Math.max(o - 1, 1);
|
|
10
10
|
});
|
|
11
|
-
|
|
11
|
+
B(
|
|
12
12
|
[
|
|
13
13
|
() => n.showCollapseButton,
|
|
14
|
-
() =>
|
|
14
|
+
() => g.active().value,
|
|
15
15
|
() => {
|
|
16
16
|
var e;
|
|
17
17
|
return (e = n.schema) == null ? void 0 : e.length;
|
|
18
18
|
},
|
|
19
|
-
() =>
|
|
19
|
+
() => p.value
|
|
20
20
|
],
|
|
21
|
-
async ([e, , ,
|
|
22
|
-
var
|
|
23
|
-
if (e
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
21
|
+
async ([e, a, o, t], m) => {
|
|
22
|
+
var s;
|
|
23
|
+
if (!e || !t)
|
|
24
|
+
return;
|
|
25
|
+
const [, c, w] = m ?? [];
|
|
26
|
+
l.value && a === c && o === w || (await h(), (s = i.value) != null && s.offsetParent && (r.value = {}, l.value = !1, await f()));
|
|
28
27
|
}
|
|
29
28
|
);
|
|
30
|
-
async function
|
|
31
|
-
if (!n.showCollapseButton || (await
|
|
29
|
+
async function f() {
|
|
30
|
+
if (!n.showCollapseButton || (await h(), !i.value))
|
|
32
31
|
return;
|
|
33
|
-
const e = i.value,
|
|
34
|
-
if (
|
|
32
|
+
const e = i.value, o = window.getComputedStyle(e).getPropertyValue("grid-template-rows").split(" "), t = e == null ? void 0 : e.getBoundingClientRect();
|
|
33
|
+
if (o[0] === "none" || t.height === 0)
|
|
35
34
|
return;
|
|
36
|
-
Array.from(e.children).forEach((
|
|
37
|
-
const
|
|
38
|
-
let
|
|
39
|
-
for (const [
|
|
40
|
-
if (
|
|
41
|
-
|
|
35
|
+
Array.from(e.children).forEach((c) => {
|
|
36
|
+
const s = c.getBoundingClientRect().top - t.top;
|
|
37
|
+
let u = 0, v = 0;
|
|
38
|
+
for (const [y, b] of o.entries())
|
|
39
|
+
if (v += Number.parseFloat(b), s < v) {
|
|
40
|
+
u = y + 1;
|
|
42
41
|
break;
|
|
43
42
|
}
|
|
44
|
-
|
|
43
|
+
u > ((n == null ? void 0 : n.collapsedRows) ?? 1) || (r.value[u] = (r.value[u] ?? 0) + 1, l.value = !0);
|
|
45
44
|
});
|
|
46
45
|
}
|
|
47
|
-
return
|
|
48
|
-
|
|
49
|
-
}), { isCalculated:
|
|
46
|
+
return C(() => {
|
|
47
|
+
f();
|
|
48
|
+
}), { isCalculated: l, keepFormItemIndex: R, wrapperRef: i };
|
|
50
49
|
}
|
|
51
50
|
export {
|
|
52
51
|
H as useExpandable
|
|
@@ -13,7 +13,7 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.j
|
|
|
13
13
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf8.js";
|
|
14
14
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.js";
|
|
15
15
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
16
|
-
import { get as R,
|
|
16
|
+
import { get as R, has as C, cloneDeep as v } from "lodash-es";
|
|
17
17
|
import { childArrayPath as w, normalizeArrayFieldPath as h } from "./utils/array-path.js";
|
|
18
18
|
import { set as g } from "es-toolkit/compat";
|
|
19
19
|
import { createContext as x } from "./shared/createContext.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ze, mergeModels as K, useModel as je, computed as s, watch as S, ref as h, useTemplateRef as V, unref as r, onMounted as qe, createElementBlock as U, openBlock as
|
|
1
|
+
import { defineComponent as ze, mergeModels as K, useModel as je, computed as s, watch as S, ref as h, useTemplateRef as V, unref as r, onMounted as qe, createElementBlock as U, openBlock as k, normalizeClass as z, createVNode as j, mergeProps as He, withCtx as Je, withDirectives as Qe, normalizeStyle as Xe, createBlock as q, createCommentVNode as H, nextTick as O } 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 Ye } from "../../../packages/hooks/src/useDesign.js";
|
|
4
4
|
import "axios";
|
|
@@ -48,7 +48,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
48
48
|
beforeFetch: { type: Function, default: void 0 },
|
|
49
49
|
afterFetch: { type: Function, default: void 0 },
|
|
50
50
|
separator: { default: "," },
|
|
51
|
-
pasteSearch: { type: Boolean, default: !
|
|
51
|
+
pasteSearch: { type: Boolean, default: !0 },
|
|
52
52
|
alwaysLoad: { type: Boolean, default: !1 },
|
|
53
53
|
showAll: { type: Boolean, default: !0 },
|
|
54
54
|
showAllField: { default: al },
|
|
@@ -78,7 +78,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
78
78
|
const e = /* @__PURE__ */ new Map();
|
|
79
79
|
return f.value.forEach((l) => e.set(l.value, l.label)), e;
|
|
80
80
|
});
|
|
81
|
-
function
|
|
81
|
+
function A(e) {
|
|
82
82
|
return e === t.showAllField ? { label: "全部", value: t.showAllField } : { label: oe.value.get(e) ?? String(e), value: e };
|
|
83
83
|
}
|
|
84
84
|
function N(e) {
|
|
@@ -100,12 +100,12 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
100
100
|
}
|
|
101
101
|
Array.isArray(l) && (a.value = l.at(-1));
|
|
102
102
|
});
|
|
103
|
-
const
|
|
103
|
+
const C = h(), v = h(""), y = h(""), b = h(), L = V("middleRef"), w = V("selectWrapRef"), E = V("selectRef"), x = h(0);
|
|
104
104
|
function G() {
|
|
105
|
-
const e =
|
|
105
|
+
const e = w.value;
|
|
106
106
|
e && (x.value = e.offsetWidth);
|
|
107
107
|
}
|
|
108
|
-
ll(
|
|
108
|
+
ll(w, () => G());
|
|
109
109
|
const ne = s(() => ({
|
|
110
110
|
componentProps: {
|
|
111
111
|
multiple: t.multiple,
|
|
@@ -114,10 +114,10 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
114
114
|
}
|
|
115
115
|
},
|
|
116
116
|
component: "TtPanelSelect",
|
|
117
|
-
selectWrapRef:
|
|
117
|
+
selectWrapRef: w,
|
|
118
118
|
selectRef: E
|
|
119
119
|
})), { selectComponentProps: re } = tl(ne), T = s(() => {
|
|
120
|
-
const e =
|
|
120
|
+
const e = v.value.trim().toLowerCase();
|
|
121
121
|
if (!e) return F.value;
|
|
122
122
|
const l = (o) => {
|
|
123
123
|
const i = [];
|
|
@@ -136,7 +136,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
136
136
|
});
|
|
137
137
|
};
|
|
138
138
|
return l(T.value), e;
|
|
139
|
-
}),
|
|
139
|
+
}), g = s(() => ae(f.value, y.value)), se = s(() => {
|
|
140
140
|
const e = "minmax(var(--tt-panel-select-middle-width, 450px), 1fr)";
|
|
141
141
|
return t.showNav && !t.multiple ? `200px ${e}` : !t.showNav && t.multiple ? `${e} 180px` : !t.showNav && !t.multiple ? e : `200px ${e} 180px`;
|
|
142
142
|
}), ue = s(() => {
|
|
@@ -144,7 +144,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
144
144
|
return t.showNav && !t.multiple ? `max(calc(200px + ${e}), 800px)` : !t.showNav && t.multiple ? `max(calc(${e} + 180px), 800px)` : !t.showNav && !t.multiple ? `max(${e}, 800px)` : `max(calc(200px + ${e} + 180px), 800px)`;
|
|
145
145
|
}), de = s(() => {
|
|
146
146
|
const e = [];
|
|
147
|
-
return
|
|
147
|
+
return g.value.forEach((l) => {
|
|
148
148
|
!(t.showOriginMode && l.value === "__origin__") && e.push({ key: `group-${String(l.value)}`, type: "group", group: l });
|
|
149
149
|
const i = Math.ceil(l.options.length / p);
|
|
150
150
|
for (let n = 0; n < l.options.length; n += p) {
|
|
@@ -182,12 +182,12 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
182
182
|
}), _ = s({
|
|
183
183
|
get() {
|
|
184
184
|
if (t.multiple)
|
|
185
|
-
return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) =>
|
|
185
|
+
return (Array.isArray(a.value) ? a.value : a.value === void 0 ? [] : [a.value]).map((l) => A(l));
|
|
186
186
|
if (Array.isArray(a.value)) {
|
|
187
187
|
const e = a.value.at(-1);
|
|
188
|
-
return e === void 0 ? void 0 :
|
|
188
|
+
return e === void 0 ? void 0 : A(e);
|
|
189
189
|
}
|
|
190
|
-
return a.value === void 0 ? void 0 :
|
|
190
|
+
return a.value === void 0 ? void 0 : A(a.value);
|
|
191
191
|
},
|
|
192
192
|
set(e) {
|
|
193
193
|
const l = r(a);
|
|
@@ -198,10 +198,10 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
198
198
|
}
|
|
199
199
|
a.value = N(e);
|
|
200
200
|
}
|
|
201
|
-
}), Se = s(() =>
|
|
201
|
+
}), Se = s(() => g.value.reduce(
|
|
202
202
|
(e, l) => (e[String(l.value)] = he(l), e),
|
|
203
203
|
{}
|
|
204
|
-
)), Ve = s(() =>
|
|
204
|
+
)), Ve = s(() => g.value.reduce(
|
|
205
205
|
(e, l) => (e[String(l.value)] = ve(l), e),
|
|
206
206
|
{}
|
|
207
207
|
)), Oe = s(() => pe.value.has(t.showAllField)), W = s(() => [...t.showAll ? [{ label: "全部", value: t.showAllField }] : [], ...f.value.map((l) => ({ ...l }))]);
|
|
@@ -224,7 +224,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
224
224
|
return (i = l == null ? void 0 : l.path.at(-2)) == null ? void 0 : i.value;
|
|
225
225
|
}
|
|
226
226
|
function Fe(e) {
|
|
227
|
-
|
|
227
|
+
C.value = e.value;
|
|
228
228
|
const l = $e(e);
|
|
229
229
|
b.value = void 0, O(() => {
|
|
230
230
|
var o;
|
|
@@ -232,17 +232,17 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function Re(e) {
|
|
235
|
-
|
|
235
|
+
v.value = e;
|
|
236
236
|
}
|
|
237
237
|
function Be(e) {
|
|
238
|
-
|
|
238
|
+
y.value = e;
|
|
239
239
|
}
|
|
240
240
|
function Ne(e, l) {
|
|
241
|
-
const o =
|
|
241
|
+
const o = g.value.find((i) => i.value === e);
|
|
242
242
|
o && ye(o, l);
|
|
243
243
|
}
|
|
244
244
|
async function Pe(e) {
|
|
245
|
-
$("visible-change", e), e && (await O(), G(), t.alwaysLoad ? await m() : !t.immediate && !r(te) && await m());
|
|
245
|
+
$("visible-change", e), e && (y.value = "", v.value = "", await O(), G(), t.alwaysLoad ? await m() : !t.immediate && !r(te) && await m());
|
|
246
246
|
}
|
|
247
247
|
function Le() {
|
|
248
248
|
D(R);
|
|
@@ -308,7 +308,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
308
308
|
le,
|
|
309
309
|
(e) => {
|
|
310
310
|
var l;
|
|
311
|
-
|
|
311
|
+
C.value !== void 0 || !e.length || (C.value = (l = e[0]) == null ? void 0 : l.value);
|
|
312
312
|
},
|
|
313
313
|
{ immediate: !0 }
|
|
314
314
|
), qe(() => {
|
|
@@ -320,9 +320,9 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
320
320
|
getOptions: () => r(ee),
|
|
321
321
|
/** 获取当前v-model值 */
|
|
322
322
|
getValue: () => r(a)
|
|
323
|
-
}), (e, l) => (
|
|
323
|
+
}), (e, l) => (k(), U("div", {
|
|
324
324
|
ref_key: "selectWrapRef",
|
|
325
|
-
ref:
|
|
325
|
+
ref: w,
|
|
326
326
|
class: z(r(c))
|
|
327
327
|
}, [
|
|
328
328
|
j(r(Y), He({
|
|
@@ -342,7 +342,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
342
342
|
onChange: Le
|
|
343
343
|
}), {
|
|
344
344
|
empty: Je(() => [
|
|
345
|
-
Qe((
|
|
345
|
+
Qe((k(), U("div", {
|
|
346
346
|
"element-loading-text": "加载中",
|
|
347
347
|
class: z(`${r(c)}__panel`),
|
|
348
348
|
style: Xe({
|
|
@@ -351,10 +351,10 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
351
351
|
"--panel-width": x.value ? `${x.value}px` : "100%"
|
|
352
352
|
})
|
|
353
353
|
}, [
|
|
354
|
-
t.showNav ? (
|
|
354
|
+
t.showNav ? (k(), q(ol, {
|
|
355
355
|
key: 0,
|
|
356
356
|
"prefix-cls": r(c),
|
|
357
|
-
keyword:
|
|
357
|
+
keyword: v.value,
|
|
358
358
|
"tree-data": T.value,
|
|
359
359
|
"expanded-keys": ie.value,
|
|
360
360
|
"left-placeholder": e.leftPlaceholder,
|
|
@@ -366,7 +366,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
366
366
|
ref: L,
|
|
367
367
|
"prefix-cls": r(c),
|
|
368
368
|
multiple: e.multiple,
|
|
369
|
-
keyword:
|
|
369
|
+
keyword: y.value,
|
|
370
370
|
rows: de.value,
|
|
371
371
|
disabled: B.value,
|
|
372
372
|
"show-all": t.showAll,
|
|
@@ -389,7 +389,7 @@ const p = 4, El = /* @__PURE__ */ ze({
|
|
|
389
389
|
onOptionCheck: De,
|
|
390
390
|
onOptionsCheck: Ie
|
|
391
391
|
}, null, 8, ["prefix-cls", "multiple", "keyword", "rows", "disabled", "show-all", "selected-values", "is-all-checked", "is-indeterminate", "all-checked", "scroll-to-group-value", "group-checked-map", "group-indeterminate-map", "paste-search", "separator", "middle-placeholder"]),
|
|
392
|
-
t.multiple ? (
|
|
392
|
+
t.multiple ? (k(), q(rl, {
|
|
393
393
|
key: 1,
|
|
394
394
|
"prefix-cls": r(c),
|
|
395
395
|
multiple: e.multiple,
|
|
@@ -14,8 +14,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
14
14
|
default: undefined;
|
|
15
15
|
};
|
|
16
16
|
stopButtonPropagation: any;
|
|
17
|
-
showBtnNums: any;
|
|
18
|
-
popoverWidth: any;
|
|
19
17
|
wrap: any;
|
|
20
18
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
21
19
|
wrap: any;
|
|
@@ -23,8 +21,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
23
21
|
actions: import('.').TtActionItem[];
|
|
24
22
|
slotContext: Record<string, any>;
|
|
25
23
|
stopButtonPropagation: any;
|
|
26
|
-
showBtnNums: any;
|
|
27
|
-
popoverWidth: any;
|
|
28
24
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
29
25
|
P: {};
|
|
30
26
|
B: {};
|
|
@@ -46,8 +42,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
46
42
|
default: undefined;
|
|
47
43
|
};
|
|
48
44
|
stopButtonPropagation: any;
|
|
49
|
-
showBtnNums: any;
|
|
50
|
-
popoverWidth: any;
|
|
51
45
|
wrap: any;
|
|
52
46
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
53
47
|
wrap: any;
|
|
@@ -55,8 +49,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
55
49
|
actions: import('.').TtActionItem[];
|
|
56
50
|
slotContext: Record<string, any>;
|
|
57
51
|
stopButtonPropagation: any;
|
|
58
|
-
showBtnNums: any;
|
|
59
|
-
popoverWidth: any;
|
|
60
52
|
}>;
|
|
61
53
|
__isFragment?: never;
|
|
62
54
|
__isTeleport?: never;
|
|
@@ -75,8 +67,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
75
67
|
default: undefined;
|
|
76
68
|
};
|
|
77
69
|
stopButtonPropagation: any;
|
|
78
|
-
showBtnNums: any;
|
|
79
|
-
popoverWidth: any;
|
|
80
70
|
wrap: any;
|
|
81
71
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
82
72
|
wrap: any;
|
|
@@ -84,8 +74,6 @@ export declare const TtTableAction: import('../../../../utils/src').SFCWithInsta
|
|
|
84
74
|
actions: import('.').TtActionItem[];
|
|
85
75
|
slotContext: Record<string, any>;
|
|
86
76
|
stopButtonPropagation: any;
|
|
87
|
-
showBtnNums: any;
|
|
88
|
-
popoverWidth: any;
|
|
89
77
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
90
78
|
$slots: Readonly<{
|
|
91
79
|
[slotName: string]: (props: any) => import('vue').VNode;
|
|
@@ -382,7 +370,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
382
370
|
}>, {
|
|
383
371
|
xGrid: import('vue').ComputedRef<import('vxe-table').VxeGridInstance<import('../../../../utils/src').Recordable>>;
|
|
384
372
|
reload: (data?: import('.').FetchParams) => Promise<void>;
|
|
385
|
-
redoHeight: () => void;
|
|
373
|
+
redoHeight: (full?: boolean) => void;
|
|
386
374
|
setProps: (props: Partial<import('.').TtTableProps>) => void;
|
|
387
375
|
setLoading: (loading: boolean) => void;
|
|
388
376
|
getLoading?: import('vue').ComputedRef<boolean | undefined>;
|
|
@@ -1069,7 +1057,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1069
1057
|
}>, {
|
|
1070
1058
|
xGrid: import('vue').ComputedRef<import('vxe-table').VxeGridInstance<import('../../../../utils/src').Recordable>>;
|
|
1071
1059
|
reload: (data?: import('.').FetchParams) => Promise<void>;
|
|
1072
|
-
redoHeight: () => void;
|
|
1060
|
+
redoHeight: (full?: boolean) => void;
|
|
1073
1061
|
setProps: (props: Partial<import('.').TtTableProps>) => void;
|
|
1074
1062
|
setLoading: (loading: boolean) => void;
|
|
1075
1063
|
getLoading?: import('vue').ComputedRef<boolean | undefined>;
|
|
@@ -1487,7 +1475,7 @@ export declare const TtTable: import('../../../../utils/src').SFCWithInstall<{
|
|
|
1487
1475
|
}>, {
|
|
1488
1476
|
xGrid: import('vue').ComputedRef<import('vxe-table').VxeGridInstance<import('../../../../utils/src').Recordable>>;
|
|
1489
1477
|
reload: (data?: import('.').FetchParams) => Promise<void>;
|
|
1490
|
-
redoHeight: () => void;
|
|
1478
|
+
redoHeight: (full?: boolean) => void;
|
|
1491
1479
|
setProps: (props: Partial<import('.').TtTableProps>) => void;
|
|
1492
1480
|
setLoading: (loading: boolean) => void;
|
|
1493
1481
|
getLoading?: import('vue').ComputedRef<boolean | undefined>;
|
|
@@ -54,6 +54,7 @@ import "../tt-drawer/index.js";
|
|
|
54
54
|
import "../tt-modal/index.js";
|
|
55
55
|
import "../../directives/disabled-tip/index.js";
|
|
56
56
|
import "../tt-log/index.js";
|
|
57
|
+
import "../tt-vtable/index.js";
|
|
57
58
|
/* empty css */
|
|
58
59
|
/* empty css */
|
|
59
60
|
/* empty css */
|
|
@@ -68,9 +69,9 @@ import "./src/emits.js";
|
|
|
68
69
|
import "./src/props.js";
|
|
69
70
|
import "./src/table-mutation-events.js";
|
|
70
71
|
import "./src/utils/context.js";
|
|
71
|
-
const
|
|
72
|
+
const At = t(o), Ct = t(r), It = t(m);
|
|
72
73
|
export {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
It as TtTable,
|
|
75
|
+
At as TtTableAction,
|
|
76
|
+
Ct as TtTableButton
|
|
76
77
|
};
|
|
@@ -554,7 +554,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
554
554
|
}>, {
|
|
555
555
|
xGrid: import('vue').ComputedRef<VxeGridInstance<Recordable>>;
|
|
556
556
|
reload: (data?: import('..').FetchParams) => Promise<void>;
|
|
557
|
-
redoHeight: () => void;
|
|
557
|
+
redoHeight: (full?: boolean) => void;
|
|
558
558
|
setProps: (props: Partial<TtTableProps>) => void;
|
|
559
559
|
setLoading: (loading: boolean) => void;
|
|
560
560
|
getLoading?: import('vue').ComputedRef<boolean | undefined>;
|
|
@@ -219,10 +219,10 @@ const Co = ["data-testid"], xo = ["src"], $o = ["src"], To = ["src"], Ro = {
|
|
|
219
219
|
async function St(t) {
|
|
220
220
|
s.setState(t);
|
|
221
221
|
}
|
|
222
|
-
function me() {
|
|
222
|
+
function me(t = !0) {
|
|
223
223
|
J(() => {
|
|
224
|
-
var
|
|
225
|
-
return (
|
|
224
|
+
var o;
|
|
225
|
+
return (o = e(p)) == null ? void 0 : o.recalculate(t);
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
function wt(t, o) {
|