@farris/ui-vue 1.8.1 → 1.8.4
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/components/batch-editor/index.esm.js +7332 -7299
- package/components/batch-editor/index.umd.cjs +22 -22
- package/components/button/index.esm.js +7334 -7301
- package/components/button/index.umd.cjs +22 -22
- package/components/collection-property-editor/index.esm.js +2 -2
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/component/index.esm.js +880 -874
- package/components/component/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +841 -835
- package/components/data-grid/index.umd.cjs +2 -2
- package/components/data-view/index.esm.js +14551 -14472
- package/components/data-view/index.umd.cjs +27 -27
- package/components/designer-canvas/index.esm.js +820 -814
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +848 -842
- package/components/mapping-editor/index.umd.cjs +2 -2
- package/components/popover/index.esm.js +264 -243
- package/components/popover/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +315 -309
- package/components/tree-grid/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +8304 -8257
- package/designer/data-grid/index.umd.cjs +26 -26
- package/designer/farris-designer.all.esm.js +3235 -3223
- package/designer/farris-designer.all.umd.cjs +14 -14
- package/designer/radio-group/index.esm.js +80 -62
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/tabs/index.esm.js +830 -824
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +348 -342
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +18919 -18822
- package/farris.all.umd.cjs +39 -39
- package/package.json +1 -1
- package/types/data-view/components/column-header/column-header.component.d.ts +2 -2
- package/types/data-view/composition/column/persist-column-widths.d.ts +15 -0
- package/types/data-view/composition/column/use-resize.d.ts +3 -2
- package/types/data-view/index.d.ts +1 -0
- package/types/popover/src/composition/measure-host.d.ts +10 -5
- package/types/popover/src/composition/types.d.ts +2 -2
- package/types/popover/src/composition/use-host.d.ts +1 -2
- package/types/radio-group/src/property-config/radio-group.property-config.d.ts +21 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { getCustomClass as
|
|
2
|
-
import { createVNode as f, defineComponent as
|
|
3
|
-
import { useResizeObserver as
|
|
4
|
-
import { debounce as
|
|
1
|
+
import { getCustomClass as sl, withInstall as cl } from "../common/index.esm.js";
|
|
2
|
+
import { createVNode as f, defineComponent as dl, ref as C, computed as b, onMounted as fl, nextTick as _e, onUnmounted as Me, watch as xe, Fragment as vl, createTextVNode as ml } from "vue";
|
|
3
|
+
import { useResizeObserver as yl } from "@vueuse/core";
|
|
4
|
+
import { debounce as hl, isUndefined as V } from "lodash-es";
|
|
5
5
|
import { LocaleService as Y } from "../locale/index.esm.js";
|
|
6
|
-
import { getHierarchyRow as
|
|
7
|
-
import { resolveField as
|
|
8
|
-
import
|
|
6
|
+
import { getHierarchyRow as gl, useIdentify as pl, useGroupData as Cl, useFilter as Sl, useHierarchy as bl, useLoading as wl, useDataView as Il, useSelection as _l, useSelectHierarchyItem as xl, usePagination as Fl, useDataViewContainerStyle as Bl, useCommandColumn as Dl, useSettingColumn as Rl, useColumn as Ol, useSort as Tl, useGroupColumn as Vl, useRow as Pl, useEdit as Ll, useVisualDataBound as kl, useVisualDataCell as El, useVisualDataRow as Gl, useVisualData as Al, useCellPosition as Hl, useSidebar as jl, useVirtualScroll as Nl, useFitColumn as Ml, useFilterHistory as zl, useColumnFilter as Wl, useDragColumn as Ul, getColumnHeader as Yl, getSidebar as ql, getDisableMask as Kl, getHorizontalScrollbar as $l, getVerticalScrollbar as Xl, getEmpty as Jl, getPagination as Ql, getSummary as Zl, ColumnSettingSolution as ea, refreshScrollAfterDataSourceLoad as ta, COMMAND_COLUMN_DATA_TYPE as Fe, SETTING_COLUMN_DATA_TYPE as Be } from "../data-view/index.esm.js";
|
|
7
|
+
import { resolveField as la } from "../common/index.esm.js/utils/resolve-field";
|
|
8
|
+
import aa from "../input-group/index.esm.js";
|
|
9
9
|
import ue from "../button/index.esm.js";
|
|
10
|
-
const
|
|
10
|
+
const Ia = {
|
|
11
11
|
/** 启用分页 */
|
|
12
12
|
enable: { type: Boolean, default: !1 },
|
|
13
13
|
/** 当前页码 */
|
|
@@ -30,7 +30,7 @@ const wa = {
|
|
|
30
30
|
total: { type: Number, default: 0 },
|
|
31
31
|
/** 禁用分页 */
|
|
32
32
|
disabled: { type: Boolean, default: !1 }
|
|
33
|
-
},
|
|
33
|
+
}, _a = {
|
|
34
34
|
/** 启用排序 */
|
|
35
35
|
enable: { type: Boolean, default: !1 },
|
|
36
36
|
/** 排序字段集合 */
|
|
@@ -39,7 +39,7 @@ const wa = {
|
|
|
39
39
|
mode: { type: String, default: "client" },
|
|
40
40
|
/** 多列排序 */
|
|
41
41
|
multiSort: { type: Boolean, default: !1 }
|
|
42
|
-
},
|
|
42
|
+
}, xa = {
|
|
43
43
|
/** 自定义分组合计内容 */
|
|
44
44
|
customGroupRow: { type: Function, default: () => {
|
|
45
45
|
} },
|
|
@@ -63,7 +63,7 @@ const wa = {
|
|
|
63
63
|
showSummary: { type: Boolean, default: !1 },
|
|
64
64
|
/** 显示合计行位置; */
|
|
65
65
|
summaryPosition: { type: String, default: "separate" }
|
|
66
|
-
},
|
|
66
|
+
}, Fa = {
|
|
67
67
|
/** 启用筛选 */
|
|
68
68
|
enable: { type: Boolean, default: !1 },
|
|
69
69
|
/** DataGrid筛选风格 */
|
|
@@ -72,10 +72,10 @@ const wa = {
|
|
|
72
72
|
mode: { type: String, default: "server" },
|
|
73
73
|
/** 显示过滤条件工具条 */
|
|
74
74
|
showSummary: { type: Boolean, default: !0 }
|
|
75
|
-
},
|
|
75
|
+
}, Ba = {
|
|
76
76
|
/** 允许折行显示列标题 */
|
|
77
77
|
wrapHeadings: { type: Boolean, default: !1 }
|
|
78
|
-
},
|
|
78
|
+
}, Da = {
|
|
79
79
|
/** 自定义行样式 */
|
|
80
80
|
customRowStyle: { type: Function, default: () => {
|
|
81
81
|
} },
|
|
@@ -90,7 +90,7 @@ const wa = {
|
|
|
90
90
|
showHovering: { type: Boolean, default: !0 },
|
|
91
91
|
/** 禁止数据折行 */
|
|
92
92
|
wrapContent: { type: Boolean, default: !1 }
|
|
93
|
-
},
|
|
93
|
+
}, Ra = {
|
|
94
94
|
/** 显示合计信息 */
|
|
95
95
|
enable: { type: Boolean, default: !1 },
|
|
96
96
|
/** 合计行自定义样式,对启用合计行模板无效 */
|
|
@@ -102,7 +102,7 @@ const wa = {
|
|
|
102
102
|
mode: { type: String, default: "client" },
|
|
103
103
|
/** 合计行显示位置, top: 顶部 bottom: 底部, both: 顶部与底部同时显示 */
|
|
104
104
|
position: { type: String, default: "bottom" }
|
|
105
|
-
},
|
|
105
|
+
}, Oa = {
|
|
106
106
|
/** 自动列宽。设为true后,所有列将填满表格并不会出现横向滚动条。 */
|
|
107
107
|
fitColumns: { type: Boolean, default: !1 },
|
|
108
108
|
/** 自动适配列宽度模式 */
|
|
@@ -114,17 +114,17 @@ const wa = {
|
|
|
114
114
|
resizeColumn: { type: Boolean, default: !0 },
|
|
115
115
|
/** 双击表头列自适应内容宽度 */
|
|
116
116
|
resizeColumnOnDoubleClick: { type: Boolean, default: !0 }
|
|
117
|
-
},
|
|
117
|
+
}, Ta = {
|
|
118
118
|
/** 编辑时选中文本 */
|
|
119
119
|
selectOnEditing: { type: Boolean, default: !1 },
|
|
120
120
|
/** 编辑模式; row:整行编辑,cell: 单元格编辑 */
|
|
121
121
|
editMode: { type: String, default: "cell" }
|
|
122
|
-
},
|
|
122
|
+
}, Va = {
|
|
123
123
|
/** show loading */
|
|
124
124
|
show: { type: Boolean, default: !1 },
|
|
125
125
|
/** message on display when loading */
|
|
126
126
|
message: { type: String, default: `${Y.getLocaleValue("datagrid.loadingMessage")}...` }
|
|
127
|
-
},
|
|
127
|
+
}, na = {
|
|
128
128
|
/**
|
|
129
129
|
* 自定义样式
|
|
130
130
|
*/
|
|
@@ -397,37 +397,37 @@ const wa = {
|
|
|
397
397
|
* 编辑单元格时默认获得焦点
|
|
398
398
|
*/
|
|
399
399
|
focusOnEditingCell: { type: Boolean, default: !0 }
|
|
400
|
-
},
|
|
401
|
-
function
|
|
400
|
+
}, ia = "enum", oa = "boolean";
|
|
401
|
+
function ua(l) {
|
|
402
402
|
const { formatter: c } = l;
|
|
403
403
|
return !c || typeof c == "function" ? null : c;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function ra(l, c) {
|
|
406
406
|
const v = c.options || c, { data: h } = v;
|
|
407
407
|
if (!h || !h.length)
|
|
408
408
|
return "";
|
|
409
409
|
const I = Object.prototype.hasOwnProperty.call(v, "valueField") && v.valueField || "value", F = Object.prototype.hasOwnProperty.call(v, "textField") && v.textField || "name";
|
|
410
410
|
if (typeof l == "string" && l.includes(",")) {
|
|
411
|
-
const G = l.split(","), L = h.reduce((m,
|
|
412
|
-
var
|
|
413
|
-
return (
|
|
411
|
+
const G = l.split(","), L = h.reduce((m, x) => (m[x[I]] = x, m), {}), p = G.map((m) => {
|
|
412
|
+
var x;
|
|
413
|
+
return (x = L[m]) == null ? void 0 : x[F];
|
|
414
414
|
}).filter((m) => m != null);
|
|
415
415
|
return p.length ? p.join(",") : "";
|
|
416
416
|
}
|
|
417
417
|
const P = h.find((G) => G[I] === l);
|
|
418
418
|
return (P == null ? void 0 : P[F]) ?? (l == null ? "" : String(l));
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function sa(l, c) {
|
|
421
421
|
if (l == null)
|
|
422
422
|
return "";
|
|
423
423
|
const v = c.options || c, h = l ? v == null ? void 0 : v.trueText : v == null ? void 0 : v.falseText;
|
|
424
424
|
return h == null ? "" : String(h);
|
|
425
425
|
}
|
|
426
|
-
function
|
|
427
|
-
const v =
|
|
428
|
-
return I ===
|
|
426
|
+
function ca(l, c) {
|
|
427
|
+
const v = la(c, l.field), h = ua(l), I = h == null ? void 0 : h.type;
|
|
428
|
+
return I === ia ? ra(v, h) : I === oa || l.dataType === "boolean" ? sa(v, h || {}) : v == null ? "" : String(v);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function da(l, c, v, h, I, F, P, G, L, p, m, x, J, s, k, Q, j, d, T) {
|
|
431
431
|
const {
|
|
432
432
|
calculateCellPositionInRow: re
|
|
433
433
|
} = F, {
|
|
@@ -439,11 +439,11 @@ function sa(l, c, v, h, I, F, P, G, L, p, m, _, J, s, k, Q, j, d, T) {
|
|
|
439
439
|
leftFixedGridDataStyle: se,
|
|
440
440
|
rightFixedGridDataStyle: ce
|
|
441
441
|
} = s, {
|
|
442
|
-
renderDataRow:
|
|
443
|
-
} =
|
|
442
|
+
renderDataRow: o
|
|
443
|
+
} = gl(l, c, N, j, G, L, p, m, x, J, s, k, Q, d, T), de = [o];
|
|
444
444
|
function y(g, te) {
|
|
445
445
|
const le = re(g);
|
|
446
|
-
return j.value.filter((z) => z.visible !== !1).map((z,
|
|
446
|
+
return j.value.filter((z) => z.visible !== !1).map((z, _) => de[z.type](z, le, te, _));
|
|
447
447
|
}
|
|
448
448
|
function M() {
|
|
449
449
|
return f("div", {
|
|
@@ -480,435 +480,440 @@ function sa(l, c, v, h, I, F, P, G, L, p, m, _, J, s, k, Q, j, d, T) {
|
|
|
480
480
|
renderDataArea: ve
|
|
481
481
|
};
|
|
482
482
|
}
|
|
483
|
-
const
|
|
483
|
+
const fa = /* @__PURE__ */ dl({
|
|
484
484
|
name: "FTreeGrid",
|
|
485
|
-
props:
|
|
485
|
+
props: na,
|
|
486
486
|
emits: ["selectionChange", "clickRow", "expandNode", "unSelectItem", "dblclickNode", "doubleClickRow", "selectItem", "filterChanged", "unSelectAll", "selectAll", "sortChanged", "selectionUpdate", "beginEditCell", "endEditCell"],
|
|
487
487
|
setup(l, c) {
|
|
488
|
-
var
|
|
489
|
-
const v =
|
|
488
|
+
var je, Ne;
|
|
489
|
+
const v = C(!1), h = C(!1), I = 0, F = C(((je = l.rowOption) == null ? void 0 : je.height) || 28);
|
|
490
490
|
let P = [], G = [];
|
|
491
|
-
const L =
|
|
492
|
-
idField:
|
|
493
|
-
} = m, J =
|
|
491
|
+
const L = C(20), p = C(l.columns), m = pl(l), {
|
|
492
|
+
idField: x
|
|
493
|
+
} = m, J = C(), s = C(), k = C(), Q = C(), j = C(), d = C([]), T = C(!1), re = C(((Ne = l.rowOption) == null ? void 0 : Ne.wrapContent) || !1), N = Cl(l, m), Z = Sl(l, c), D = bl(l), {
|
|
494
494
|
collapseField: ee
|
|
495
495
|
} = D, {
|
|
496
496
|
showLoading: se,
|
|
497
497
|
renderLoading: ce
|
|
498
|
-
} =
|
|
498
|
+
} = wl(l, J), o = Il(l, /* @__PURE__ */ new Map(), Z, D, m), {
|
|
499
499
|
dataView: de
|
|
500
|
-
} =
|
|
500
|
+
} = o, y = _l(l, o, m, d, c), {
|
|
501
501
|
showSelection: M,
|
|
502
502
|
selectedValues: fe
|
|
503
|
-
} = y, A =
|
|
503
|
+
} = y, A = xl(l, d, o, m, y, c), ve = b(() => l.disabled), g = b(() => l.virtualized ? Math.min(o.dataView.value.length, L.value) : o.dataView.value.length), te = Fl(l, o), {
|
|
504
504
|
shouldRenderPagination: le
|
|
505
505
|
} = te, {
|
|
506
506
|
containerStyleObject: z
|
|
507
|
-
} =
|
|
508
|
-
applyCommands:
|
|
509
|
-
} =
|
|
510
|
-
|
|
507
|
+
} = Bl(l, d), _ = C(""), w = C([]), ze = b(() => l.searchable || !1), R = C(0), De = b(() => w.value.length ? `${R.value + 1}/${w.value.length}` : ""), We = b(() => Y.getRealPropertyValue(l.searchPlaceholder, "", "datagrid.search.placeholder")), Ue = b(() => Y.getLocaleValue("datagrid.search.search")), Ye = b(() => Y.getLocaleValue("datagrid.search.prev")), qe = b(() => Y.getLocaleValue("datagrid.search.next")), Ke = b(() => Y.getLocaleValue("datagrid.search.clear")), $e = Dl(l), {
|
|
508
|
+
applyCommands: Re
|
|
509
|
+
} = $e;
|
|
510
|
+
Re(p);
|
|
511
511
|
const {
|
|
512
512
|
applyColumnSetting: me,
|
|
513
|
-
removeColumnSetting:
|
|
514
|
-
} =
|
|
513
|
+
removeColumnSetting: Xe
|
|
514
|
+
} = Rl(l);
|
|
515
515
|
l.showSetting && me(p);
|
|
516
|
-
const q =
|
|
517
|
-
applyColumnSorter:
|
|
516
|
+
const q = Ol(l, c), ye = Tl(l), {
|
|
517
|
+
applyColumnSorter: Oe,
|
|
518
518
|
columnContext: ae,
|
|
519
|
-
updateColumnRenderContext:
|
|
519
|
+
updateColumnRenderContext: Je
|
|
520
520
|
} = q;
|
|
521
|
-
|
|
522
|
-
const he =
|
|
521
|
+
Oe(o, ye);
|
|
522
|
+
const he = Vl(l, ae), W = Pl(l, c, y, m), H = Ll(l, c, m, W, d), ge = kl(l, o, F), Qe = El(l, H, ge), Ze = Gl(l, o, H, D, m, ge, Qe, F), pe = Al(l, p, o, g, I, Ze), {
|
|
523
523
|
getVisualData: ne
|
|
524
|
-
} = pe,
|
|
525
|
-
sidebarWidth:
|
|
526
|
-
} = Ce,
|
|
527
|
-
onWheel:
|
|
524
|
+
} = pe, et = Hl(l, ae, F, v), Ce = jl(l, y), {
|
|
525
|
+
sidebarWidth: tt
|
|
526
|
+
} = Ce, S = Nl(l, o, d, ae, pe, g, I, tt, F, v), {
|
|
527
|
+
onWheel: lt,
|
|
528
528
|
dataGridWidth: Te,
|
|
529
529
|
viewPortHeight: Ve,
|
|
530
530
|
viewPortWidth: ie,
|
|
531
531
|
resetScroll: Se,
|
|
532
|
-
updateVisibleRowsOnLatestVisibleScope:
|
|
533
|
-
} =
|
|
532
|
+
updateVisibleRowsOnLatestVisibleScope: at
|
|
533
|
+
} = S, Pe = Ml(l, ae, s, ie, he), {
|
|
534
534
|
calculateColumnsSize: oe
|
|
535
|
-
} = Pe, Le =
|
|
535
|
+
} = Pe, Le = zl(), nt = Wl(s, j, o, Le, S), it = Ul(l, c, q, o, he, N, S), ot = b(() => {
|
|
536
536
|
const e = {
|
|
537
537
|
"fv-grid": !0,
|
|
538
538
|
"fv-grid-bordered": l.showBorder,
|
|
539
539
|
"fv-grid-horizontal-bordered": l.showHorizontalLines,
|
|
540
540
|
"fv-datagrid-strip": l.showStripe
|
|
541
541
|
};
|
|
542
|
-
return
|
|
543
|
-
}),
|
|
542
|
+
return sl(e, l.customClass);
|
|
543
|
+
}), ut = b(() => ({
|
|
544
544
|
"fv-grid-content": !0,
|
|
545
545
|
"fv-grid-content-hover": T.value,
|
|
546
546
|
"fv-grid-wrap-content": re.value,
|
|
547
|
-
"fv-grid-scrollbar-visible":
|
|
547
|
+
"fv-grid-scrollbar-visible": S.shouldShowVirticalScrollbar.value && T.value
|
|
548
548
|
})), {
|
|
549
|
-
renderDataArea:
|
|
550
|
-
} =
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
549
|
+
renderDataArea: rt
|
|
550
|
+
} = da(l, c, k, Q, j, et, q, o, H, D, W, y, A, S, pe, ge, d, F, v), ke = C(null);
|
|
551
|
+
function st(e, t) {
|
|
552
|
+
var a, n;
|
|
553
|
+
l.enableColumnSettingSolution && ((n = (a = ke.value) == null ? void 0 : a.persistColumnWidths) == null || n.call(a, t));
|
|
554
|
+
}
|
|
555
|
+
const {
|
|
556
|
+
renderGridHeader: ct,
|
|
557
|
+
renderGridColumnResizeOverlay: dt,
|
|
558
|
+
shouldShowHeader: ft
|
|
559
|
+
} = Yl(l, c, s, Q, j, q, o, it, nt, Z, Le, Pe, he, y, Ce, ye, S, ie, d, h, st), {
|
|
560
|
+
renderDataGridSidebar: vt
|
|
561
|
+
} = ql(l, W, y, Ce, S), {
|
|
562
|
+
renderDisableMask: mt
|
|
563
|
+
} = Kl(), {
|
|
564
|
+
renderHorizontalScrollbar: yt
|
|
565
|
+
} = $l(l, s, S), {
|
|
566
|
+
renderVerticalScrollbar: ht
|
|
567
|
+
} = Xl(l, s, S);
|
|
563
568
|
let U = null;
|
|
564
|
-
function
|
|
569
|
+
function gt() {
|
|
565
570
|
var e, t, a;
|
|
566
571
|
if (s.value && s.value.clientHeight > 0 && ((e = s.value) == null ? void 0 : e.clientWidth) > 0) {
|
|
567
|
-
const
|
|
568
|
-
|
|
572
|
+
const n = Math.ceil(s.value.clientHeight / F.value);
|
|
573
|
+
n > L.value && (L.value = n, at()), Ve.value = ((t = k.value) == null ? void 0 : t.clientHeight) || 0, Te.value = ((a = s.value) == null ? void 0 : a.clientWidth) || 0, k.value && (ie.value = k.value.clientWidth);
|
|
569
574
|
}
|
|
570
575
|
s.value && (s.value.clientHeight > 0 || s.value.clientWidth > 0) && oe();
|
|
571
576
|
}
|
|
572
|
-
function
|
|
577
|
+
function pt() {
|
|
573
578
|
U !== null && cancelAnimationFrame(U), U = requestAnimationFrame(() => {
|
|
574
|
-
U = null,
|
|
579
|
+
U = null, gt();
|
|
575
580
|
});
|
|
576
581
|
}
|
|
577
|
-
|
|
578
|
-
s.value && (L.value = Math.max(Math.ceil(s.value.clientHeight / F.value), L.value), d.value = ne(0, g.value + I - 1),
|
|
582
|
+
fl(() => {
|
|
583
|
+
s.value && (L.value = Math.max(Math.ceil(s.value.clientHeight / F.value), L.value), d.value = ne(0, g.value + I - 1), yl(s.value, pt), oe(), _e(() => {
|
|
579
584
|
s.value && (Te.value = s.value.clientWidth), k.value && (ie.value = k.value.clientWidth, Ve.value = k.value.clientHeight);
|
|
580
585
|
})), se.value && ce();
|
|
581
|
-
}),
|
|
586
|
+
}), Me(() => {
|
|
582
587
|
U !== null && cancelAnimationFrame(U);
|
|
583
588
|
});
|
|
584
|
-
function
|
|
585
|
-
|
|
589
|
+
function Ct(e) {
|
|
590
|
+
o.collapseTo(e), o.reOrderVisibleIndex(), Se();
|
|
586
591
|
}
|
|
587
|
-
function
|
|
588
|
-
|
|
592
|
+
function St(e) {
|
|
593
|
+
o.expandTo(e), o.reOrderVisibleIndex(), Se();
|
|
589
594
|
}
|
|
590
|
-
function
|
|
595
|
+
function be() {
|
|
591
596
|
const e = y.getSelectionRow();
|
|
592
597
|
return e ? e.dataIndex - 1 : -1;
|
|
593
598
|
}
|
|
594
|
-
function
|
|
595
|
-
const t = e !== void 0 ? e :
|
|
599
|
+
function bt(e) {
|
|
600
|
+
const t = e !== void 0 ? e : be(), a = o.insertNewDataItem(t === -1 ? 0 : t);
|
|
596
601
|
return d.value = ne(0, g.value + I - 1), a;
|
|
597
602
|
}
|
|
598
|
-
function
|
|
599
|
-
const e =
|
|
600
|
-
|
|
603
|
+
function wt() {
|
|
604
|
+
const e = be();
|
|
605
|
+
o.insertNewChildDataItem(e), d.value = ne(0, g.value + I - 1);
|
|
601
606
|
}
|
|
602
|
-
function
|
|
603
|
-
const a = d.value.find((
|
|
604
|
-
|
|
607
|
+
function It(e, t) {
|
|
608
|
+
const a = d.value.find((u) => u.raw[x.value] === t), n = a ? a.dataIndex - 1 : -1;
|
|
609
|
+
o.insertNewChildDataItems(e, n);
|
|
605
610
|
}
|
|
606
|
-
function
|
|
607
|
-
const e =
|
|
608
|
-
|
|
611
|
+
function _t() {
|
|
612
|
+
const e = be(), t = A.getNextSelectableHierarchyItemId(e);
|
|
613
|
+
o.removeHierarchyDataItem(e), d.value = ne(0, g.value + I - 1), t && A.selectItemById(t);
|
|
609
614
|
}
|
|
610
|
-
function
|
|
615
|
+
function xt(e) {
|
|
611
616
|
H.onEditingRow(e);
|
|
612
617
|
}
|
|
613
|
-
function
|
|
618
|
+
function Ft(e) {
|
|
614
619
|
H.acceptEditingRow(e);
|
|
615
620
|
}
|
|
616
|
-
function
|
|
621
|
+
function Bt(e) {
|
|
617
622
|
H.cancelEditingRow(e);
|
|
618
623
|
}
|
|
619
624
|
function K(e) {
|
|
620
|
-
e && (p.value = e,
|
|
625
|
+
e && (p.value = e, Re(p), l.showSetting && me(p), Je(p.value), Oe(o, ye), oe());
|
|
621
626
|
}
|
|
622
|
-
|
|
627
|
+
xe(() => l.columns, (e) => {
|
|
623
628
|
if (l.showSetting && l.enableColumnSettingSolution) {
|
|
624
629
|
K(p.value);
|
|
625
630
|
return;
|
|
626
631
|
}
|
|
627
632
|
K(e);
|
|
628
633
|
});
|
|
629
|
-
function
|
|
634
|
+
function Dt(e, t) {
|
|
630
635
|
if (e) {
|
|
631
|
-
const a = !!(t != null && t.keepScrollTop || t != null && t.keepScrollPosition),
|
|
632
|
-
|
|
636
|
+
const a = !!(t != null && t.keepScrollTop || t != null && t.keepScrollPosition), n = a ? S.offsetY.value : 0;
|
|
637
|
+
o.load(e), o.reOrderVisibleIndex(), ta({
|
|
633
638
|
keepScroll: a,
|
|
634
|
-
savedOffsetY:
|
|
639
|
+
savedOffsetY: n,
|
|
635
640
|
resetScroll: Se,
|
|
636
|
-
scrollTo:
|
|
641
|
+
scrollTo: S.scrollTo
|
|
637
642
|
});
|
|
638
643
|
}
|
|
639
644
|
}
|
|
640
|
-
function
|
|
645
|
+
function we(e) {
|
|
641
646
|
W.activeRowById(e);
|
|
642
647
|
}
|
|
643
|
-
function
|
|
648
|
+
function Rt(e, t = {
|
|
644
649
|
isCurrent: !0
|
|
645
650
|
}) {
|
|
646
|
-
t != null && t.isCurrent &&
|
|
651
|
+
t != null && t.isCurrent && we(e), A.selectItemById(e);
|
|
647
652
|
}
|
|
648
|
-
function
|
|
653
|
+
function Ot(e) {
|
|
649
654
|
const t = d.value.find((a) => a.raw[m.idField.value] === e);
|
|
650
655
|
t && W.clickRowItem(t);
|
|
651
656
|
}
|
|
652
|
-
function
|
|
657
|
+
function Tt(e) {
|
|
653
658
|
A.selectItemByIds(e);
|
|
654
659
|
}
|
|
655
|
-
function
|
|
660
|
+
function Vt() {
|
|
656
661
|
return y.getSelectedItems();
|
|
657
662
|
}
|
|
658
|
-
function
|
|
663
|
+
function Ee() {
|
|
659
664
|
y.clearSelection();
|
|
660
665
|
}
|
|
661
|
-
function
|
|
666
|
+
function Pt() {
|
|
662
667
|
y.emptyCurrentRowId();
|
|
663
668
|
}
|
|
664
|
-
const
|
|
665
|
-
renderEmpty:
|
|
666
|
-
} =
|
|
667
|
-
function
|
|
669
|
+
const Lt = b(() => !d.value || !d.value.length), {
|
|
670
|
+
renderEmpty: kt
|
|
671
|
+
} = Jl(l, c);
|
|
672
|
+
function Et() {
|
|
668
673
|
return y.getSelectionRow();
|
|
669
674
|
}
|
|
670
|
-
function
|
|
675
|
+
function Gt(e, t = {
|
|
671
676
|
clearCurrent: !0
|
|
672
677
|
}) {
|
|
673
|
-
t != null && t.clearCurrent &&
|
|
678
|
+
t != null && t.clearCurrent && we(""), A.unSelectItemByIds(e);
|
|
674
679
|
}
|
|
675
|
-
function
|
|
680
|
+
function At() {
|
|
676
681
|
return y.currentSelectedDataId.value;
|
|
677
682
|
}
|
|
678
|
-
function
|
|
679
|
-
const
|
|
680
|
-
if (
|
|
681
|
-
if (Object.keys(
|
|
682
|
-
Object.prototype.hasOwnProperty.call(t, r) && (
|
|
683
|
+
function Ht(e, t, a) {
|
|
684
|
+
const n = de.value.find((u) => u[x.value] === e);
|
|
685
|
+
if (n) {
|
|
686
|
+
if (Object.keys(n).forEach((r) => {
|
|
687
|
+
Object.prototype.hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
683
688
|
}), a) {
|
|
684
689
|
const {
|
|
685
690
|
collapseField: r,
|
|
686
691
|
disabledField: B,
|
|
687
692
|
checkedField: E,
|
|
688
|
-
visibleField:
|
|
693
|
+
visibleField: O,
|
|
689
694
|
hasChildren: X
|
|
690
695
|
} = a;
|
|
691
|
-
r && !V(t[r]) && (
|
|
696
|
+
r && !V(t[r]) && (n.__fv_collapse__ = t[r]), E && !V(t[E]) && (n.__fv_checked__ = t[E]), B && !V(t[B]) && (n.__fv_disabled__ = t[B]), O && !V(t[O]) && (n.__fv_visible__ = t[O]), V(X) || (n.__fv_hasChildren__ = X);
|
|
692
697
|
}
|
|
693
|
-
const
|
|
694
|
-
if (
|
|
695
|
-
if (
|
|
696
|
-
|
|
698
|
+
const u = d.value.find((r) => r.raw[x.value] === e), i = d.value.findIndex((r) => r.raw[x.value] === e);
|
|
699
|
+
if (u) {
|
|
700
|
+
if (u.raw = n, Object.keys(u.data).forEach((r) => {
|
|
701
|
+
u.data[r].updateData(n);
|
|
697
702
|
}), a) {
|
|
698
703
|
const {
|
|
699
704
|
collapseField: r,
|
|
700
705
|
disabledField: B,
|
|
701
706
|
checkedField: E,
|
|
702
|
-
visibleField:
|
|
707
|
+
visibleField: O,
|
|
703
708
|
hasChildren: X
|
|
704
709
|
} = a;
|
|
705
|
-
r && !V(t[r]) && (
|
|
710
|
+
r && !V(t[r]) && (u.collapse = t[r]), E && !V(t[E]) && (u.checked = t[E]), B && !V(t[B]) && (u.disabled = t[B]), O && !V(t[O]) && (u.visible = t[O]), V(X) || (u.raw.__fv_hasChildren__ = X);
|
|
706
711
|
}
|
|
707
|
-
d.value = [...d.value.slice(0,
|
|
712
|
+
d.value = [...d.value.slice(0, i), u, ...d.value.slice(i + 1)], o.updateSummary();
|
|
708
713
|
}
|
|
709
714
|
}
|
|
710
715
|
}
|
|
711
|
-
function
|
|
712
|
-
return Object.prototype.hasOwnProperty.call(e, "raw") ?
|
|
716
|
+
function jt(e) {
|
|
717
|
+
return Object.prototype.hasOwnProperty.call(e, "raw") ? o.hasRealChildren(e.raw) : o.hasRealChildren(e);
|
|
713
718
|
}
|
|
714
|
-
function
|
|
715
|
-
const t =
|
|
719
|
+
function Nt(e) {
|
|
720
|
+
const t = o.dataView.value.find((a) => a[x.value] === e);
|
|
716
721
|
return t ? t[ee.value] : "";
|
|
717
722
|
}
|
|
718
|
-
function
|
|
723
|
+
function Mt() {
|
|
719
724
|
return ee.value;
|
|
720
725
|
}
|
|
721
|
-
|
|
722
|
-
e !== t && (e ? me(p) :
|
|
726
|
+
xe(() => l.showSetting, (e, t) => {
|
|
727
|
+
e !== t && (e ? me(p) : Xe(p), K(p.value));
|
|
723
728
|
});
|
|
724
|
-
function
|
|
729
|
+
function zt(e) {
|
|
725
730
|
return d.value.filter((t) => e.includes(t.raw[l.idField]));
|
|
726
731
|
}
|
|
727
|
-
function
|
|
728
|
-
const t = m.idField.value, a = d.value.find((
|
|
732
|
+
function Ge(e) {
|
|
733
|
+
const t = m.idField.value, a = d.value.find((n) => n.raw[t] === e);
|
|
729
734
|
a && W.changeRow(a);
|
|
730
735
|
}
|
|
731
|
-
function
|
|
732
|
-
y.keepSelectingOnPaging.value ||
|
|
736
|
+
function Wt() {
|
|
737
|
+
y.keepSelectingOnPaging.value || Ee(), o.updateVisibleDataSummary(d.value);
|
|
733
738
|
}
|
|
734
|
-
function
|
|
739
|
+
function Ut() {
|
|
735
740
|
H.endEditCell();
|
|
736
741
|
}
|
|
737
|
-
function
|
|
742
|
+
function Yt(e) {
|
|
738
743
|
y.updateSelectedValues(e);
|
|
739
744
|
}
|
|
740
|
-
function
|
|
745
|
+
function qt(e) {
|
|
741
746
|
y.removeSelectedValues(e);
|
|
742
747
|
}
|
|
743
|
-
const
|
|
744
|
-
function
|
|
748
|
+
const Kt = 100;
|
|
749
|
+
function $t(e, t) {
|
|
745
750
|
const a = t[e].__fv_layer__ || 0;
|
|
746
|
-
let
|
|
747
|
-
for (;
|
|
748
|
-
|
|
749
|
-
return
|
|
751
|
+
let n = e + 1;
|
|
752
|
+
for (; n < t.length && (t[n].__fv_layer__ || 0) > a; )
|
|
753
|
+
n++;
|
|
754
|
+
return n - 1;
|
|
750
755
|
}
|
|
751
|
-
function
|
|
752
|
-
const t =
|
|
753
|
-
if (typeof
|
|
756
|
+
function Xt(e) {
|
|
757
|
+
const t = o.dataView.value, a = D.collapseField.value, n = e.__fv_index__, u = e.__fv_layer__ || 0;
|
|
758
|
+
if (typeof n != "number" || e.__fv_visible__ === !1 || e[a])
|
|
754
759
|
return;
|
|
755
|
-
let
|
|
756
|
-
for (;
|
|
757
|
-
const r = t[
|
|
758
|
-
if ((r.__fv_layer__ || 0) <=
|
|
760
|
+
let i = n + 1;
|
|
761
|
+
for (; i < t.length; ) {
|
|
762
|
+
const r = t[i];
|
|
763
|
+
if ((r.__fv_layer__ || 0) <= u)
|
|
759
764
|
break;
|
|
760
765
|
if (r.__fv_visible__ = !0, r[a]) {
|
|
761
|
-
|
|
766
|
+
i = $t(i, t) + 1;
|
|
762
767
|
continue;
|
|
763
768
|
}
|
|
764
|
-
|
|
769
|
+
i++;
|
|
765
770
|
}
|
|
766
771
|
}
|
|
767
|
-
function
|
|
772
|
+
function Jt(e) {
|
|
768
773
|
let t = e;
|
|
769
774
|
const a = [];
|
|
770
|
-
let
|
|
771
|
-
for (; t && t[D.parentIdField.value] &&
|
|
772
|
-
|
|
773
|
-
const
|
|
774
|
-
if (
|
|
775
|
-
|
|
775
|
+
let n = 0;
|
|
776
|
+
for (; t && t[D.parentIdField.value] && n < Kt; ) {
|
|
777
|
+
n++;
|
|
778
|
+
const u = o.rawView.value.find((i) => i[m.idField.value] === t[D.parentIdField.value]);
|
|
779
|
+
if (u)
|
|
780
|
+
u[D.collapseField.value] && a.push(u), t = u;
|
|
776
781
|
else
|
|
777
782
|
break;
|
|
778
783
|
}
|
|
779
|
-
a.reverse().forEach((
|
|
780
|
-
|
|
784
|
+
a.reverse().forEach((u) => {
|
|
785
|
+
u[D.collapseField.value] = !1, o.toggleChildrenVisibiltyByCollapseStatus(u), Xt(u);
|
|
781
786
|
});
|
|
782
787
|
}
|
|
783
|
-
function
|
|
788
|
+
function Qt(e, t) {
|
|
784
789
|
if (e.length !== t.length)
|
|
785
790
|
return !1;
|
|
786
|
-
const a = e.map((
|
|
787
|
-
return a.every((
|
|
791
|
+
const a = e.map((u) => u[m.idField.value]).sort(), n = t.map((u) => u[m.idField.value]).sort();
|
|
792
|
+
return a.every((u, i) => u === n[i]);
|
|
788
793
|
}
|
|
789
794
|
function Ie() {
|
|
790
|
-
const e =
|
|
791
|
-
e && (
|
|
792
|
-
|
|
795
|
+
const e = w.value[R.value];
|
|
796
|
+
e && (Jt(e), _e(() => {
|
|
797
|
+
o.reOrderVisibleIndex();
|
|
793
798
|
const t = e[m.idField.value], a = e.__fv_visible_index__;
|
|
794
|
-
a !== void 0 && a !== "" && a >= 0 ? (
|
|
795
|
-
|
|
799
|
+
a !== void 0 && a !== "" && a >= 0 ? (S.scrollToRowByIndex(a), _e(() => {
|
|
800
|
+
Ge(t);
|
|
796
801
|
})) : console.warn("搜索结果的节点不在当前可见范围内,无法定位", t);
|
|
797
802
|
}));
|
|
798
803
|
}
|
|
799
|
-
function
|
|
800
|
-
!
|
|
804
|
+
function Ae() {
|
|
805
|
+
!_.value.trim() || !w.value.length || (R.value = (R.value + 1) % w.value.length, Ie());
|
|
801
806
|
}
|
|
802
|
-
function
|
|
803
|
-
if (!
|
|
804
|
-
|
|
807
|
+
function Zt() {
|
|
808
|
+
if (!_.value.trim()) {
|
|
809
|
+
w.value = [], R.value = 0;
|
|
805
810
|
return;
|
|
806
811
|
}
|
|
807
|
-
const e = [], t =
|
|
808
|
-
|
|
809
|
-
let
|
|
810
|
-
l.customSearch ?
|
|
811
|
-
if (!
|
|
812
|
-
const r =
|
|
813
|
-
r && r.toLowerCase().includes(t) && (
|
|
812
|
+
const e = [], t = _.value.toLowerCase().trim();
|
|
813
|
+
o.rawView.value.forEach((n) => {
|
|
814
|
+
let u = !1;
|
|
815
|
+
l.customSearch ? u = l.customSearch(t, n, l.columns) : l.columns.forEach((i) => {
|
|
816
|
+
if (!u && i.field) {
|
|
817
|
+
const r = ca(i, n);
|
|
818
|
+
r && r.toLowerCase().includes(t) && (u = !0);
|
|
814
819
|
}
|
|
815
|
-
}),
|
|
820
|
+
}), u && e.push(n);
|
|
816
821
|
});
|
|
817
|
-
const a = !
|
|
818
|
-
e.length > 0 ? a ? (
|
|
822
|
+
const a = !Qt(e, w.value);
|
|
823
|
+
e.length > 0 ? a ? (w.value = e, R.value = 0, Ie()) : Ae() : (w.value = [], R.value = 0);
|
|
819
824
|
}
|
|
820
|
-
function
|
|
821
|
-
if (!
|
|
825
|
+
function el() {
|
|
826
|
+
if (!_.value.trim() || !w.value.length)
|
|
822
827
|
return;
|
|
823
|
-
const e =
|
|
824
|
-
|
|
828
|
+
const e = w.value.length;
|
|
829
|
+
R.value = (R.value - 1 + e) % e, Ie();
|
|
825
830
|
}
|
|
826
|
-
const $ =
|
|
827
|
-
function
|
|
828
|
-
$.cancel(),
|
|
831
|
+
const $ = hl(Zt, 300);
|
|
832
|
+
function He() {
|
|
833
|
+
$.cancel(), _.value = "", w.value = [], R.value = 0;
|
|
829
834
|
}
|
|
830
|
-
|
|
831
|
-
e.trim() || ($.cancel(),
|
|
832
|
-
}),
|
|
835
|
+
xe(_, (e) => {
|
|
836
|
+
e.trim() || ($.cancel(), w.value = [], R.value = 0);
|
|
837
|
+
}), Me(() => {
|
|
833
838
|
$.cancel();
|
|
834
839
|
});
|
|
835
|
-
function
|
|
840
|
+
function tl(e) {
|
|
836
841
|
if (e.key === "Enter") {
|
|
837
|
-
if (!
|
|
842
|
+
if (!_.value.trim())
|
|
838
843
|
return;
|
|
839
844
|
$();
|
|
840
845
|
}
|
|
841
846
|
}
|
|
842
|
-
function
|
|
843
|
-
|
|
847
|
+
function ll() {
|
|
848
|
+
_.value.trim() && $();
|
|
844
849
|
}
|
|
845
850
|
c.expose({
|
|
846
|
-
activeRowById:
|
|
847
|
-
addNewDataItem:
|
|
848
|
-
addNewChildDataItem:
|
|
849
|
-
addChildrenToNode:
|
|
850
|
-
collapseTo:
|
|
851
|
-
expandTo:
|
|
852
|
-
removeDataItem:
|
|
853
|
-
editDataItem:
|
|
854
|
-
acceptDataItem:
|
|
855
|
-
cancelDataItem:
|
|
851
|
+
activeRowById: we,
|
|
852
|
+
addNewDataItem: bt,
|
|
853
|
+
addNewChildDataItem: wt,
|
|
854
|
+
addChildrenToNode: It,
|
|
855
|
+
collapseTo: Ct,
|
|
856
|
+
expandTo: St,
|
|
857
|
+
removeDataItem: _t,
|
|
858
|
+
editDataItem: xt,
|
|
859
|
+
acceptDataItem: Ft,
|
|
860
|
+
cancelDataItem: Bt,
|
|
856
861
|
updateColumns: K,
|
|
857
|
-
updateDataSource:
|
|
858
|
-
selectItemById:
|
|
859
|
-
selectItemByIds:
|
|
860
|
-
getSelectedItems:
|
|
861
|
-
clearSelection:
|
|
862
|
-
getSelectionRow:
|
|
863
|
-
clickRowItemById:
|
|
864
|
-
unSelectItemByIds:
|
|
865
|
-
getCurrentRowId:
|
|
866
|
-
reassignRowData:
|
|
867
|
-
hasChildren:
|
|
868
|
-
getCollapseField:
|
|
869
|
-
getCollapseStatusById:
|
|
870
|
-
getVisibleDataByIds:
|
|
871
|
-
selectRowById:
|
|
872
|
-
updateDerivedData:
|
|
873
|
-
emptyCurrentRowId:
|
|
862
|
+
updateDataSource: Dt,
|
|
863
|
+
selectItemById: Rt,
|
|
864
|
+
selectItemByIds: Tt,
|
|
865
|
+
getSelectedItems: Vt,
|
|
866
|
+
clearSelection: Ee,
|
|
867
|
+
getSelectionRow: Et,
|
|
868
|
+
clickRowItemById: Ot,
|
|
869
|
+
unSelectItemByIds: Gt,
|
|
870
|
+
getCurrentRowId: At,
|
|
871
|
+
reassignRowData: Ht,
|
|
872
|
+
hasChildren: jt,
|
|
873
|
+
getCollapseField: Mt,
|
|
874
|
+
getCollapseStatusById: Nt,
|
|
875
|
+
getVisibleDataByIds: zt,
|
|
876
|
+
selectRowById: Ge,
|
|
877
|
+
updateDerivedData: Wt,
|
|
878
|
+
emptyCurrentRowId: Pt,
|
|
874
879
|
calculateColumnsSize: oe,
|
|
875
|
-
endEditCell:
|
|
876
|
-
updateSelectedValues:
|
|
877
|
-
removeSelectedValues:
|
|
880
|
+
endEditCell: Ut,
|
|
881
|
+
updateSelectedValues: Yt,
|
|
882
|
+
removeSelectedValues: qt
|
|
878
883
|
});
|
|
879
|
-
const
|
|
884
|
+
const al = b(() => {
|
|
880
885
|
const e = {};
|
|
881
|
-
return
|
|
882
|
-
}),
|
|
886
|
+
return S.shouldShowHorizontalScrollbar.value && T.value && (e.paddingBottom = "10px"), S.shouldShowVirticalScrollbar.value && T.value, e;
|
|
887
|
+
}), nl = b(() => ({
|
|
883
888
|
...z.value,
|
|
884
889
|
borderRadius: "5px"
|
|
885
890
|
})), {
|
|
886
|
-
renderDataGridPagination:
|
|
887
|
-
} =
|
|
891
|
+
renderDataGridPagination: va
|
|
892
|
+
} = Ql(l, c, o, S, te, y), il = b(() => ({
|
|
888
893
|
"d-flex": !0,
|
|
889
894
|
"justify-content-between": le.value && M.value,
|
|
890
895
|
"justify-content-end": le.value && !M.value,
|
|
891
896
|
"position-relative": !0
|
|
892
|
-
})),
|
|
897
|
+
})), ol = b(() => ({
|
|
893
898
|
"d-flex": !0,
|
|
894
899
|
"align-items-center": !0
|
|
895
900
|
}));
|
|
896
|
-
function
|
|
897
|
-
const t = e.map((
|
|
898
|
-
a.filter((
|
|
899
|
-
const r = e.find((B) => B.id ===
|
|
900
|
-
r && (
|
|
901
|
-
}), G = a.filter((
|
|
902
|
-
const
|
|
903
|
-
P =
|
|
904
|
-
const B = e.findIndex((
|
|
901
|
+
function ul(e) {
|
|
902
|
+
const t = e.map((i) => i.id), a = [...p.value, ...P, ...G];
|
|
903
|
+
a.filter((i) => i.dataType !== Fe && i.dataType !== Be).forEach((i) => {
|
|
904
|
+
const r = e.find((B) => B.id === i.id);
|
|
905
|
+
r && (i.width = r.actualWidth || i.width || 120, r.actualWidth !== void 0 && (i.actualWidth = r.actualWidth), i.title = r.title, i.halign = r.halign, i.align = r.align, i.fixed = r.fixed);
|
|
906
|
+
}), G = a.filter((i) => i.dataType === Fe || i.dataType === Be);
|
|
907
|
+
const n = a.filter((i) => i.dataType !== Fe && i.dataType !== Be), u = n.filter((i) => t.includes(i.id));
|
|
908
|
+
P = n.filter((i) => !t.includes(i.id)), u.sort((i, r) => {
|
|
909
|
+
const B = e.findIndex((O) => O.id === i.id), E = e.findIndex((O) => O.id === r.id);
|
|
905
910
|
return B - E;
|
|
906
|
-
}), K(
|
|
911
|
+
}), K(u);
|
|
907
912
|
}
|
|
908
913
|
const {
|
|
909
|
-
renderDataGridSummary:
|
|
910
|
-
} =
|
|
911
|
-
return () => l.visible && f(
|
|
914
|
+
renderDataGridSummary: rl
|
|
915
|
+
} = Zl(l, o, q);
|
|
916
|
+
return () => l.visible && f(vl, null, [ze.value && f("div", {
|
|
912
917
|
class: "fv-grid-search",
|
|
913
918
|
style: {
|
|
914
919
|
padding: "8px 12px",
|
|
@@ -921,13 +926,13 @@ const ca = /* @__PURE__ */ sl({
|
|
|
921
926
|
display: "flex",
|
|
922
927
|
alignItems: "center"
|
|
923
928
|
}
|
|
924
|
-
}, [f(
|
|
925
|
-
value:
|
|
926
|
-
onInput: (e) =>
|
|
927
|
-
"onUpdate:value": (e) =>
|
|
928
|
-
onClear:
|
|
929
|
-
onKeydown:
|
|
930
|
-
placeholder:
|
|
929
|
+
}, [f(aa, {
|
|
930
|
+
value: _.value,
|
|
931
|
+
onInput: (e) => _.value = e,
|
|
932
|
+
"onUpdate:value": (e) => _.value = e || "",
|
|
933
|
+
onClear: He,
|
|
934
|
+
onKeydown: tl,
|
|
935
|
+
placeholder: We.value,
|
|
931
936
|
style: {
|
|
932
937
|
flex: 1
|
|
933
938
|
}
|
|
@@ -941,9 +946,9 @@ const ca = /* @__PURE__ */ sl({
|
|
|
941
946
|
}
|
|
942
947
|
}, [De.value]), f(ue, {
|
|
943
948
|
type: "link",
|
|
944
|
-
title:
|
|
945
|
-
disabled: !
|
|
946
|
-
onClick:
|
|
949
|
+
title: Ye.value,
|
|
950
|
+
disabled: !w.value.length,
|
|
951
|
+
onClick: el,
|
|
947
952
|
style: {
|
|
948
953
|
cursor: "pointer",
|
|
949
954
|
marginLeft: "4px"
|
|
@@ -954,9 +959,9 @@ const ca = /* @__PURE__ */ sl({
|
|
|
954
959
|
}, null)]
|
|
955
960
|
}), f(ue, {
|
|
956
961
|
type: "link",
|
|
957
|
-
title:
|
|
958
|
-
disabled: !
|
|
959
|
-
onClick:
|
|
962
|
+
title: qe.value,
|
|
963
|
+
disabled: !w.value.length,
|
|
964
|
+
onClick: Ae,
|
|
960
965
|
style: {
|
|
961
966
|
cursor: "pointer",
|
|
962
967
|
marginLeft: "4px"
|
|
@@ -967,8 +972,8 @@ const ca = /* @__PURE__ */ sl({
|
|
|
967
972
|
}, null)]
|
|
968
973
|
}), f(ue, {
|
|
969
974
|
type: "link",
|
|
970
|
-
title:
|
|
971
|
-
onClick:
|
|
975
|
+
title: Ue.value,
|
|
976
|
+
onClick: ll,
|
|
972
977
|
style: {
|
|
973
978
|
cursor: "pointer",
|
|
974
979
|
marginLeft: "4px"
|
|
@@ -977,10 +982,10 @@ const ca = /* @__PURE__ */ sl({
|
|
|
977
982
|
default: () => [f("i", {
|
|
978
983
|
class: "f-icon f-icon-search"
|
|
979
984
|
}, null)]
|
|
980
|
-
}),
|
|
985
|
+
}), _.value && f(ue, {
|
|
981
986
|
type: "link",
|
|
982
|
-
title:
|
|
983
|
-
onClick:
|
|
987
|
+
title: Ke.value,
|
|
988
|
+
onClick: He,
|
|
984
989
|
style: {
|
|
985
990
|
cursor: "pointer",
|
|
986
991
|
marginLeft: "4px"
|
|
@@ -991,46 +996,47 @@ const ca = /* @__PURE__ */ sl({
|
|
|
991
996
|
}, null)]
|
|
992
997
|
})])]), f("div", {
|
|
993
998
|
ref: J,
|
|
994
|
-
class: it.value,
|
|
995
|
-
style: ll.value,
|
|
996
|
-
onWheel: tt
|
|
997
|
-
}, [s.value && ct.value && rt(), f("div", {
|
|
998
|
-
ref: s,
|
|
999
999
|
class: ot.value,
|
|
1000
|
+
style: nl.value,
|
|
1001
|
+
onWheel: lt
|
|
1002
|
+
}, [s.value && ft.value && ct(), f("div", {
|
|
1003
|
+
ref: s,
|
|
1004
|
+
class: ut.value,
|
|
1000
1005
|
onMouseover: () => T.value = !0,
|
|
1001
1006
|
onMouseleave: () => T.value = !1,
|
|
1002
1007
|
onTouchstart: (e) => {
|
|
1003
|
-
e.stopPropagation(), T.value = !0,
|
|
1008
|
+
e.stopPropagation(), T.value = !0, S.onTouchstartScrollThumb(e, s);
|
|
1004
1009
|
},
|
|
1005
1010
|
onTouchend: (e) => {
|
|
1006
1011
|
T.value = !1;
|
|
1007
1012
|
},
|
|
1008
|
-
style:
|
|
1009
|
-
}, [s.value &&
|
|
1010
|
-
class:
|
|
1013
|
+
style: al.value
|
|
1014
|
+
}, [s.value && vt(d), s.value && rt(), s.value && Lt.value && kt(), s.value && yt(), s.value && ht()]), s.value && rl(), M.value && f("div", {
|
|
1015
|
+
class: il.value
|
|
1011
1016
|
}, [M.value && f("div", {
|
|
1012
|
-
class:
|
|
1013
|
-
}, [f("div", null, ["已选:" + fe.value.length,
|
|
1017
|
+
class: ol.value
|
|
1018
|
+
}, [f("div", null, ["已选:" + fe.value.length, ml(" 条")])])]), dt(), ve.value && mt()]), l.enableColumnSettingSolution && f(ea, {
|
|
1019
|
+
ref: ke,
|
|
1014
1020
|
columns: [...p.value, ...P],
|
|
1015
1021
|
componentId: l.id,
|
|
1016
1022
|
modelValue: h.value,
|
|
1017
1023
|
"onUpdate:modelValue": (e) => h.value = e,
|
|
1018
|
-
onChangeColumnSetting:
|
|
1024
|
+
onChangeColumnSetting: ul
|
|
1019
1025
|
}, null)]);
|
|
1020
1026
|
}
|
|
1021
|
-
}),
|
|
1027
|
+
}), Pa = cl(fa);
|
|
1022
1028
|
export {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1029
|
+
fa as FTreeGrid,
|
|
1030
|
+
Oa as columnOptions,
|
|
1031
|
+
Pa as default,
|
|
1032
|
+
Ta as editOptions,
|
|
1033
|
+
Fa as filterOptions,
|
|
1034
|
+
xa as groupOptions,
|
|
1035
|
+
Ba as headerOptions,
|
|
1036
|
+
Va as loadingOptions,
|
|
1037
|
+
Ia as paginationOptions,
|
|
1038
|
+
Da as rowOptions,
|
|
1039
|
+
_a as sortOptions,
|
|
1040
|
+
Ra as summaryOptions,
|
|
1041
|
+
na as treeGridProps
|
|
1036
1042
|
};
|