@julingbase/jly-arco-design 0.0.3 → 0.0.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/README.md +56 -2
- package/dist/arco-vue.js +16 -2
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +166 -163
- package/dist/arco-vue.min.js.map +1 -1
- package/es/_components/input-label/input-label.d.ts +2 -2
- package/es/_components/picker/input-range.d.ts +4 -4
- package/es/_components/picker/input.d.ts +2 -2
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/auto-complete/auto-complete.d.ts +3 -3
- package/es/auto-complete/index.d.ts +9 -9
- package/es/calendar/calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +3 -3
- package/es/cascader/cascader-panel.d.ts +3 -3
- package/es/cascader/cascader.d.ts +6 -6
- package/es/cascader/index.d.ts +20 -20
- package/es/checkbox/checkbox-group.d.ts +2 -2
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/date-picker/index.d.ts +7 -7
- package/es/date-picker/picker.d.ts +5 -5
- package/es/date-picker/range-picker.d.ts +7 -7
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/index.d.ts +3 -3
- package/es/form/form-item.d.ts +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/input/index.d.ts +8 -8
- package/es/input/input-password.d.ts +2 -2
- package/es/input/input.d.ts +2 -2
- package/es/input-number/index.d.ts +3 -3
- package/es/input-number/input-number.d.ts +1 -1
- package/es/input-tag/index.d.ts +18 -18
- package/es/input-tag/input-tag.d.ts +6 -6
- package/es/list/index.d.ts +3 -3
- package/es/list/list.d.ts +1 -1
- package/es/mention/index.d.ts +6 -6
- package/es/mention/mention.d.ts +2 -2
- package/es/menu/item.d.ts +1 -1
- package/es/menu/sub-menu-pop.d.ts +1 -1
- package/es/pagination/page-jumper.d.ts +3 -3
- package/es/pagination/page-options.d.ts +28 -28
- package/es/radio/index.d.ts +8 -8
- package/es/radio/radio-group.d.ts +2 -2
- package/es/radio/radio.d.ts +2 -2
- package/es/rate/index.d.ts +9 -9
- package/es/rate/rate.d.ts +3 -3
- package/es/select/index.d.ts +28 -28
- package/es/select/option.d.ts +5 -5
- package/es/select/select-dropdown.d.ts +1 -1
- package/es/select/select.d.ts +8 -8
- package/es/slider/index.d.ts +12 -12
- package/es/slider/slider-input.d.ts +3 -3
- package/es/slider/slider.d.ts +5 -5
- package/es/split/index.d.ts +3 -3
- package/es/split/split.d.ts +1 -1
- package/es/switch/index.d.ts +3 -3
- package/es/switch/switch.d.ts +1 -1
- package/es/table/index.d.ts +15 -0
- package/es/table/table-operation-td.d.ts +13 -13
- package/es/table/table.d.ts +9 -0
- package/es/table/table.js +16 -2
- package/es/tag/index.d.ts +3 -3
- package/es/tag/tag.d.ts +1 -1
- package/es/textarea/index.d.ts +6 -6
- package/es/textarea/textarea.d.ts +2 -2
- package/es/time-picker/index.d.ts +15 -15
- package/es/time-picker/time-picker.d.ts +7 -7
- package/es/transfer/index.d.ts +22 -22
- package/es/transfer/transfer-view.d.ts +8 -8
- package/es/transfer/transfer.d.ts +10 -10
- package/es/tree/base-node.d.ts +5 -5
- package/es/tree/transition-node-list.d.ts +5 -5
- package/es/tree-select/index.d.ts +8 -8
- package/es/tree-select/tree-select.d.ts +3 -3
- package/es/typography/edit-content.d.ts +24 -24
- package/es/upload/index.d.ts +3 -3
- package/es/upload/upload.d.ts +1 -1
- package/es/verification-code/index.d.ts +6 -6
- package/es/verification-code/verification-code.d.ts +2 -2
- package/json/vetur-attributes.json +2397 -2397
- package/json/vetur-tags.json +730 -730
- package/json/web-types.json +4781 -4781
- package/lib/table/table.js +16 -2
- package/package.json +2 -2
package/dist/arco-vue.min.js
CHANGED
|
@@ -9317,25 +9317,25 @@
|
|
|
9317
9317
|
var zh = e.defineComponent({ name: "Table", props: { columns: { type: Array, default: () => [] }, data: { type: Array, default: () => [] }, bordered: { type: [Boolean, Object], default: true }, hoverable: { type: Boolean, default: true }, stripe: { type: Boolean, default: false }, size: { type: String, default: () => {
|
|
9318
9318
|
var _a2, _b;
|
|
9319
9319
|
return (_b = (_a2 = e.inject(v, void 0)) == null ? void 0 : _a2.size) != null ? _b : "large";
|
|
9320
|
-
} }, tableLayoutFixed: { type: Boolean, default: false }, loading: { type: [Boolean, Object], default: false }, rowSelection: { type: Object }, expandable: { type: Object }, scroll: { type: Object }, pagination: { type: [Boolean, Object], default: true }, pagePosition: { type: String, default: "br" }, indentSize: { type: Number, default: 16 }, rowKey: { type: String, default: "key" }, showHeader: { type: Boolean, default: true }, virtualListProps: { type: Object }, spanMethod: { type: Function }, spanAll: { type: Boolean, default: false }, components: { type: Object }, loadMore: { type: Function }, filterIconAlignLeft: { type: Boolean, default: false }, hideExpandButtonOnEmpty: { type: Boolean, default: false }, rowClass: { type: [String, Array, Object, Function] }, draggable: { type: Object }, rowNumber: { type: [Boolean, Object] }, columnResizable: { type: Boolean }, summary: { type: [Boolean, Function] }, summaryText: { type: String, default: "Summary" }, summarySpanMethod: { type: Function }, selectedKeys: { type: Array }, defaultSelectedKeys: { type: Array }, expandedKeys: { type: Array }, defaultExpandedKeys: { type: Array }, defaultExpandAllRows: { type: Boolean, default: false }, stickyHeader: { type: [Boolean, Number], default: false }, scrollbar: { type: [Object, Boolean], default: true }, showEmptyTree: { type: Boolean, default: false } }, emits: { "update:selectedKeys": (e2) => true, "update:expandedKeys": (e2) => true, expand: (e2, t2) => true, expandedChange: (e2) => true, select: (e2, t2, o2) => true, selectAll: (e2) => true, selectionChange: (e2) => true, sorterChange: (e2, t2) => true, filterChange: (e2, t2) => true, pageChange: (e2) => true, pageSizeChange: (e2) => true, change: (e2, t2, o2) => true, cellMouseEnter: (e2, t2, o2) => true, cellMouseLeave: (e2, t2, o2) => true, cellClick: (e2, t2, o2) => true, rowClick: (e2, t2) => true, headerClick: (e2, t2) => true, columnResize: (e2, t2) => true, rowDblclick: (e2, t2) => true, cellDblclick: (e2, t2, o2) => true, rowContextmenu: (e2, t2) => true, cellContextmenu: (e2, t2, o2) => true }, setup(t2, { emit: n2, slots: r2 }) {
|
|
9321
|
-
const { columns: d2, rowKey: p2, rowSelection: m2, expandable: f2, loadMore: h2, filterIconAlignLeft: g2, selectedKeys: y2, defaultSelectedKeys: k2, expandedKeys: b2, defaultExpandedKeys: C2, defaultExpandAllRows: x2, spanMethod: w2, draggable: V2, summarySpanMethod: N2, scrollbar: B2, showEmptyTree: $2 } = e.toRefs(t2),
|
|
9320
|
+
} }, tableLayoutFixed: { type: Boolean, default: false }, loading: { type: [Boolean, Object], default: false }, rowSelection: { type: Object }, expandable: { type: Object }, scroll: { type: Object }, pagination: { type: [Boolean, Object], default: true }, pagePosition: { type: String, default: "br" }, indentSize: { type: Number, default: 16 }, rowKey: { type: String, default: "key" }, showHeader: { type: Boolean, default: true }, virtualListProps: { type: Object }, spanMethod: { type: Function }, spanAll: { type: Boolean, default: false }, components: { type: Object }, loadMore: { type: Function }, filterIconAlignLeft: { type: Boolean, default: false }, hideExpandButtonOnEmpty: { type: Boolean, default: false }, rowClass: { type: [String, Array, Object, Function] }, draggable: { type: Object }, rowNumber: { type: [Boolean, Object] }, columnResizable: { type: Boolean }, summary: { type: [Boolean, Function] }, summaryText: { type: String, default: "Summary" }, summarySpanMethod: { type: Function }, selectedKeys: { type: Array }, defaultSelectedKeys: { type: Array }, expandedKeys: { type: Array }, defaultExpandedKeys: { type: Array }, defaultExpandAllRows: { type: Boolean, default: false }, stickyHeader: { type: [Boolean, Number], default: false }, scrollbar: { type: [Object, Boolean], default: true }, showEmptyTree: { type: Boolean, default: false }, enabledHeaderRowSlot: { type: Boolean, default: false } }, emits: { "update:selectedKeys": (e2) => true, "update:expandedKeys": (e2) => true, expand: (e2, t2) => true, expandedChange: (e2) => true, select: (e2, t2, o2) => true, selectAll: (e2) => true, selectionChange: (e2) => true, sorterChange: (e2, t2) => true, filterChange: (e2, t2) => true, pageChange: (e2) => true, pageSizeChange: (e2) => true, change: (e2, t2, o2) => true, cellMouseEnter: (e2, t2, o2) => true, cellMouseLeave: (e2, t2, o2) => true, cellClick: (e2, t2, o2) => true, rowClick: (e2, t2) => true, headerClick: (e2, t2) => true, columnResize: (e2, t2) => true, rowDblclick: (e2, t2) => true, cellDblclick: (e2, t2, o2) => true, rowContextmenu: (e2, t2) => true, cellContextmenu: (e2, t2, o2) => true }, setup(t2, { emit: n2, slots: r2 }) {
|
|
9321
|
+
const { columns: d2, rowKey: p2, rowSelection: m2, expandable: f2, loadMore: h2, filterIconAlignLeft: g2, selectedKeys: y2, defaultSelectedKeys: k2, expandedKeys: b2, defaultExpandedKeys: C2, defaultExpandAllRows: x2, spanMethod: w2, draggable: V2, summarySpanMethod: N2, scrollbar: B2, showEmptyTree: $2, enabledHeaderRowSlot: z2 } = e.toRefs(t2), P2 = S("table"), E2 = e.inject(v, void 0), L2 = e.computed(() => a(t2.bordered) ? { ...$h, ...t2.bordered } : { ...$h, wrapper: t2.bordered }), { children: O2, components: M2 } = Qa("TableColumn"), I2 = e.computed(() => {
|
|
9322
9322
|
var _a2, _b;
|
|
9323
9323
|
return (_b = (_a2 = m2.value) == null ? void 0 : _a2.checkStrictly) != null ? _b : true;
|
|
9324
|
-
}), { displayScrollbar:
|
|
9324
|
+
}), { displayScrollbar: j2, scrollbarProps: T2 } = Xo(B2), A2 = e.computed(() => {
|
|
9325
9325
|
var _a2, _b, _c2, _d2;
|
|
9326
9326
|
return { x: Boolean(((_a2 = t2.scroll) == null ? void 0 : _a2.x) || ((_b = t2.scroll) == null ? void 0 : _b.minWidth)), y: Boolean(((_c2 = t2.scroll) == null ? void 0 : _c2.y) || ((_d2 = t2.scroll) == null ? void 0 : _d2.maxHeight)) };
|
|
9327
|
-
}),
|
|
9328
|
-
e.watch([
|
|
9327
|
+
}), D2 = e.ref(), R2 = e.ref({}), { componentRef: F2, elementRef: H2 } = Uo("containerRef"), { componentRef: W2, elementRef: K2 } = Uo("containerRef"), { componentRef: q2, elementRef: Z2 } = Uo("viewportRef"), { componentRef: Y2, elementRef: U2 } = Uo("containerRef"), X2 = e.computed(() => G2.value ? Nt2.value ? Z2.value : K2.value : H2.value), G2 = e.computed(() => A2.value.y || t2.stickyHeader || Nt2.value || A2.value.x && 0 === nt2.value.length), _2 = e.reactive(/* @__PURE__ */ new Map()), Q2 = e.ref();
|
|
9328
|
+
e.watch([M2, _2], ([e2, t3]) => {
|
|
9329
9329
|
if (e2.length > 0) {
|
|
9330
9330
|
const o2 = [];
|
|
9331
9331
|
e2.forEach((e3) => {
|
|
9332
9332
|
const l2 = t3.get(e3);
|
|
9333
9333
|
l2 && o2.push(l2);
|
|
9334
|
-
}),
|
|
9334
|
+
}), Q2.value = o2;
|
|
9335
9335
|
} else
|
|
9336
|
-
|
|
9336
|
+
Q2.value = void 0;
|
|
9337
9337
|
});
|
|
9338
|
-
const
|
|
9338
|
+
const J2 = /* @__PURE__ */ new Map(), ee2 = e.ref([]), te2 = e.ref([]), { resizingColumn: oe2, columnWidth: le2, handleThMouseDown: ne2 } = ((t3, o2) => {
|
|
9339
9339
|
const l2 = e.ref(""), n3 = e.reactive({}), a2 = () => {
|
|
9340
9340
|
l2.value = "", he(window, "mousemove", r3), he(window, "mouseup", a2), he(window, "contextmenu", a2);
|
|
9341
9341
|
}, r3 = (e2) => {
|
|
@@ -9349,8 +9349,8 @@
|
|
|
9349
9349
|
return { resizingColumn: l2, columnWidth: n3, handleThMouseDown: (e2, t4) => {
|
|
9350
9350
|
t4.preventDefault(), l2.value = e2, ve(window, "mousemove", r3), ve(window, "mouseup", a2), ve(window, "contextmenu", a2);
|
|
9351
9351
|
}, handleThMouseUp: a2 };
|
|
9352
|
-
})(
|
|
9353
|
-
e.watch([d2,
|
|
9352
|
+
})(R2, n2);
|
|
9353
|
+
e.watch([d2, Q2, le2], ([e2, t3]) => {
|
|
9354
9354
|
var _a2;
|
|
9355
9355
|
const n3 = ((e3, t4, n4) => {
|
|
9356
9356
|
const a2 = Fv(e3);
|
|
@@ -9371,31 +9371,31 @@
|
|
|
9371
9371
|
}
|
|
9372
9372
|
};
|
|
9373
9373
|
return d3(e3), c(s2) || (r3[s2].isLastLeftFixed = true, Hv(r3[s2], "left")), c(u2) || (r3[u2].isFirstRightFixed = true, Hv(r3[u2], "right")), { dataColumns: r3, groupColumns: i2 };
|
|
9374
|
-
})((_a2 = t3 != null ? t3 : e2) != null ? _a2 : [],
|
|
9375
|
-
|
|
9374
|
+
})((_a2 = t3 != null ? t3 : e2) != null ? _a2 : [], J2, le2);
|
|
9375
|
+
ee2.value = n3.dataColumns, te2.value = n3.groupColumns;
|
|
9376
9376
|
}, { immediate: true, deep: true });
|
|
9377
|
-
const
|
|
9377
|
+
const ae2 = e.computed(() => ["tl", "top", "tr"].includes(t2.pagePosition)), re2 = e.ref(false), se2 = e.ref(false), ce2 = e.ref(false);
|
|
9378
9378
|
e.watchEffect(() => {
|
|
9379
9379
|
var _a2, _b, _c2;
|
|
9380
9380
|
let e2 = false, o2 = false, l2 = false;
|
|
9381
9381
|
(((_a2 = t2.rowSelection) == null ? void 0 : _a2.fixed) || ((_b = t2.expandable) == null ? void 0 : _b.fixed) || ((_c2 = t2.draggable) == null ? void 0 : _c2.fixed)) && (e2 = true);
|
|
9382
|
-
for (const t3 of
|
|
9382
|
+
for (const t3 of ee2.value)
|
|
9383
9383
|
"left" === t3.fixed ? (e2 = true, l2 = true) : "right" === t3.fixed && (o2 = true);
|
|
9384
|
-
e2 !==
|
|
9384
|
+
e2 !== re2.value && (re2.value = e2), o2 !== se2.value && (se2.value = o2), l2 !== ce2.value && (ce2.value = l2);
|
|
9385
9385
|
});
|
|
9386
|
-
const
|
|
9387
|
-
for (const e2 of
|
|
9386
|
+
const ue2 = e.computed(() => {
|
|
9387
|
+
for (const e2 of ee2.value)
|
|
9388
9388
|
if (e2.ellipsis)
|
|
9389
9389
|
return true;
|
|
9390
9390
|
return false;
|
|
9391
|
-
}),
|
|
9392
|
-
const t3 = { type: e2, page:
|
|
9393
|
-
n2("change",
|
|
9394
|
-
}, de2 = (e2, t3) => {
|
|
9395
|
-
me2.value = { ...fe2.value, [e2]: t3 }, n2("filterChange", e2, t3), ue2("filter");
|
|
9391
|
+
}), de2 = (e2) => {
|
|
9392
|
+
const t3 = { type: e2, page: Je2.value, pageSize: et2.value, sorter: Ce2.value, filters: ge2.value, dragTarget: "drag" === e2 ? We2.data : void 0 };
|
|
9393
|
+
n2("change", at2.value, t3, Qe2.value);
|
|
9396
9394
|
}, pe2 = (e2, t3) => {
|
|
9397
|
-
|
|
9398
|
-
},
|
|
9395
|
+
fe2.value = { ...ge2.value, [e2]: t3 }, n2("filterChange", e2, t3), de2("filter");
|
|
9396
|
+
}, me2 = (e2, t3) => {
|
|
9397
|
+
be2.value = t3 ? { field: e2, direction: t3 } : void 0, n2("sorterChange", e2, t3), de2("sorter");
|
|
9398
|
+
}, { _filters: fe2, computedFilters: ge2, resetFilters: ye2, clearFilters: ke2 } = (({ columns: t3, onFilterChange: o2 }) => {
|
|
9399
9399
|
const l2 = e.ref(Vh(t3.value));
|
|
9400
9400
|
e.watch(t3, (e2) => {
|
|
9401
9401
|
const t4 = Vh(e2);
|
|
@@ -9429,7 +9429,7 @@
|
|
|
9429
9429
|
}
|
|
9430
9430
|
l2.value = a2;
|
|
9431
9431
|
} };
|
|
9432
|
-
})({ columns:
|
|
9432
|
+
})({ columns: ee2, onFilterChange: pe2 }), { _sorter: be2, computedSorter: Ce2, resetSorters: xe2, clearSorters: we2 } = (({ columns: t3, onSorterChange: o2 }) => {
|
|
9433
9433
|
const l2 = e.ref(Nh(t3.value));
|
|
9434
9434
|
e.watch(t3, (e2) => {
|
|
9435
9435
|
const t4 = Nh(e2);
|
|
@@ -9454,28 +9454,28 @@
|
|
|
9454
9454
|
for (const e2 of t3.value)
|
|
9455
9455
|
e2.dataIndex && e2.sortable && o2(e2.dataIndex, "");
|
|
9456
9456
|
} };
|
|
9457
|
-
})({ columns:
|
|
9457
|
+
})({ columns: ee2, onSorterChange: me2 }), Se2 = /* @__PURE__ */ new Set(), Ve2 = e.computed(() => {
|
|
9458
9458
|
const e2 = [];
|
|
9459
|
-
|
|
9459
|
+
Se2.clear();
|
|
9460
9460
|
const l2 = (t3) => {
|
|
9461
9461
|
if (o(t3) && t3.length > 0)
|
|
9462
9462
|
for (const o2 of t3)
|
|
9463
|
-
e2.push(o2[p2.value]), o2.disabled &&
|
|
9463
|
+
e2.push(o2[p2.value]), o2.disabled && Se2.add(o2[p2.value]), o2.children && l2(o2.children);
|
|
9464
9464
|
};
|
|
9465
9465
|
return l2(t2.data), e2;
|
|
9466
|
-
}),
|
|
9466
|
+
}), Ne2 = e.computed(() => {
|
|
9467
9467
|
const e2 = [], t3 = (o2) => {
|
|
9468
9468
|
for (const l2 of o2)
|
|
9469
9469
|
e2.push(l2.key), l2.children && t3(l2.children);
|
|
9470
9470
|
};
|
|
9471
|
-
return t3(
|
|
9472
|
-
}),
|
|
9471
|
+
return t3(nt2.value), e2;
|
|
9472
|
+
}), Be2 = e.computed(() => {
|
|
9473
9473
|
const e2 = [], t3 = (o2) => {
|
|
9474
9474
|
for (const l2 of o2)
|
|
9475
9475
|
l2.disabled || e2.push(l2.key), l2.children && t3(l2.children);
|
|
9476
9476
|
};
|
|
9477
|
-
return t3(
|
|
9478
|
-
}), { isRadio:
|
|
9477
|
+
return t3(nt2.value), e2;
|
|
9478
|
+
}), { isRadio: $e2, selectedRowKeys: ze2, currentSelectedRowKeys: Pe2, handleSelect: Ee2, handleSelectAllLeafs: Le2, handleSelectAll: Oe2, select: Me2, selectAll: Ie2, clearSelected: je2 } = (({ selectedKeys: t3, defaultSelectedKeys: o2, rowSelection: l2, currentAllRowKeys: n3, currentAllEnabledRowKeys: a2, emit: r3 }) => {
|
|
9479
9479
|
var _a2, _b, _c2;
|
|
9480
9480
|
const i2 = e.computed(() => {
|
|
9481
9481
|
var _a3;
|
|
@@ -9502,7 +9502,7 @@
|
|
|
9502
9502
|
}, clearSelected: () => {
|
|
9503
9503
|
s2.value = [], r3("selectionChange", []), r3("update:selectedKeys", []);
|
|
9504
9504
|
} };
|
|
9505
|
-
})({ selectedKeys: y2, defaultSelectedKeys: k2, rowSelection: m2, currentAllRowKeys:
|
|
9505
|
+
})({ selectedKeys: y2, defaultSelectedKeys: k2, rowSelection: m2, currentAllRowKeys: Ne2, currentAllEnabledRowKeys: Be2, emit: n2 }), { expandedRowKeys: Te2, handleExpand: Ae2, expand: De2, expandAll: Re2 } = (({ expandedKeys: t3, defaultExpandedKeys: o2, defaultExpandAllRows: l2, expandable: n3, allRowKeys: a2, emit: r3 }) => {
|
|
9506
9506
|
var _a2, _b;
|
|
9507
9507
|
const i2 = e.ref(o2.value ? o2.value : ((_a2 = n3.value) == null ? void 0 : _a2.defaultExpandedRowKeys) ? n3.value.defaultExpandedRowKeys : l2.value || ((_b = n3.value) == null ? void 0 : _b.defaultExpandAllRows) ? [...a2.value] : []), s2 = e.computed(() => {
|
|
9508
9508
|
var _a3, _b2, _c2;
|
|
@@ -9518,7 +9518,7 @@
|
|
|
9518
9518
|
const t4 = e2 ? [...a2.value] : [];
|
|
9519
9519
|
i2.value = t4, r3("expandedChange", t4), r3("update:expandedKeys", t4);
|
|
9520
9520
|
} };
|
|
9521
|
-
})({ expandedKeys: b2, defaultExpandedKeys: C2, defaultExpandAllRows: x2, expandable: f2, allRowKeys:
|
|
9521
|
+
})({ expandedKeys: b2, defaultExpandedKeys: C2, defaultExpandAllRows: x2, expandable: f2, allRowKeys: Ve2, emit: n2 }), Fe2 = e.reactive({}), { dragType: He2, dragState: We2, handleDragStart: Ke2, handleDragEnter: qe2, handleDragLeave: Ze2, handleDragover: Ye2, handleDragEnd: Ue2, handleDrop: Xe2 } = ((t3) => {
|
|
9522
9522
|
const o2 = e.computed(() => {
|
|
9523
9523
|
if (t3.value)
|
|
9524
9524
|
return "handle" === t3.value.type ? "handle" : "row";
|
|
@@ -9542,22 +9542,22 @@
|
|
|
9542
9542
|
}, handleDrop: (e2) => {
|
|
9543
9543
|
n3(), e2.preventDefault();
|
|
9544
9544
|
} };
|
|
9545
|
-
})(V2),
|
|
9545
|
+
})(V2), Ge2 = e.computed(() => {
|
|
9546
9546
|
var _a2;
|
|
9547
9547
|
const e2 = (o2) => {
|
|
9548
9548
|
const l2 = [];
|
|
9549
9549
|
for (const n3 of o2) {
|
|
9550
9550
|
const o3 = { raw: n3, key: n3[t2.rowKey], disabled: n3.disabled, expand: n3.expand, isLeaf: n3.isLeaf };
|
|
9551
|
-
n3.children ? (o3.isLeaf = false, o3.children = e2(n3.children)) : t2.loadMore && !n3.isLeaf ? (o3.isLeaf = false,
|
|
9551
|
+
n3.children ? (o3.isLeaf = false, o3.children = e2(n3.children)) : t2.loadMore && !n3.isLeaf ? (o3.isLeaf = false, Fe2[o3.key] && (o3.children = e2(Fe2[o3.key]))) : o3.isLeaf = true, o3.hasSubtree = Boolean(o3.children ? !t2.hideExpandButtonOnEmpty || o3.children.length > 0 : t2.loadMore && !o3.isLeaf), l2.push(o3);
|
|
9552
9552
|
}
|
|
9553
9553
|
return l2;
|
|
9554
9554
|
};
|
|
9555
9555
|
return e2((_a2 = t2.data) != null ? _a2 : []);
|
|
9556
|
-
}),
|
|
9556
|
+
}), _e2 = e.computed(() => {
|
|
9557
9557
|
const e2 = (t3) => t3.filter((t4) => !!((e3) => {
|
|
9558
9558
|
var _a2, _b;
|
|
9559
|
-
for (const t5 of Object.keys(
|
|
9560
|
-
const o2 =
|
|
9559
|
+
for (const t5 of Object.keys(ge2.value)) {
|
|
9560
|
+
const o2 = ge2.value[t5], l2 = J2.get(t5);
|
|
9561
9561
|
if (l2 && ((_a2 = l2.filterable) == null ? void 0 : _a2.filter) && o2.length > 0) {
|
|
9562
9562
|
const t6 = (_b = l2.filterable) == null ? void 0 : _b.filter(o2, e3.raw);
|
|
9563
9563
|
if (!t6)
|
|
@@ -9566,15 +9566,15 @@
|
|
|
9566
9566
|
}
|
|
9567
9567
|
return true;
|
|
9568
9568
|
})(t4) && (t4.children && (t4.children = e2(t4.children)), true));
|
|
9569
|
-
return Object.keys(
|
|
9570
|
-
}),
|
|
9569
|
+
return Object.keys(ge2.value).length > 0 ? e2(Ge2.value) : Ge2.value;
|
|
9570
|
+
}), Qe2 = e.computed(() => {
|
|
9571
9571
|
var _a2, _b, _c2;
|
|
9572
|
-
const e2 = Gv(
|
|
9572
|
+
const e2 = Gv(_e2.value);
|
|
9573
9573
|
if (e2.length > 0) {
|
|
9574
|
-
if ((_a2 =
|
|
9575
|
-
const t4 =
|
|
9574
|
+
if ((_a2 = Ce2.value) == null ? void 0 : _a2.field) {
|
|
9575
|
+
const t4 = J2.get(Ce2.value.field);
|
|
9576
9576
|
if (t4 && true !== ((_b = t4.sortable) == null ? void 0 : _b.sorter)) {
|
|
9577
|
-
const { field: o3, direction: l2 } =
|
|
9577
|
+
const { field: o3, direction: l2 } = Ce2.value;
|
|
9578
9578
|
e2.sort((e3, n3) => {
|
|
9579
9579
|
var _a3;
|
|
9580
9580
|
const a2 = Js(e3.raw, o3), r3 = Js(n3.raw, o3);
|
|
@@ -9585,8 +9585,8 @@
|
|
|
9585
9585
|
});
|
|
9586
9586
|
}
|
|
9587
9587
|
}
|
|
9588
|
-
const { sourcePath: t3, targetPath: o2 } =
|
|
9589
|
-
if (
|
|
9588
|
+
const { sourcePath: t3, targetPath: o2 } = We2;
|
|
9589
|
+
if (We2.dragging && o2.length && o2.toString() !== t3.toString() && t3.length === o2.length && t3.slice(0, -1).toString() === o2.slice(0, -1).toString()) {
|
|
9590
9590
|
let l2 = e2;
|
|
9591
9591
|
for (let e3 = 0; e3 < t3.length; e3++) {
|
|
9592
9592
|
const n3 = t3[e3];
|
|
@@ -9599,7 +9599,7 @@
|
|
|
9599
9599
|
}
|
|
9600
9600
|
}
|
|
9601
9601
|
return e2;
|
|
9602
|
-
}), { page:
|
|
9602
|
+
}), { page: Je2, pageSize: et2, handlePageChange: tt2, handlePageSizeChange: ot2 } = ((t3, o2) => {
|
|
9603
9603
|
var _a2, _b;
|
|
9604
9604
|
const l2 = e.ref(a(t3.pagination) ? (_a2 = t3.pagination.defaultCurrent) != null ? _a2 : 1 : 1), n3 = e.ref(a(t3.pagination) ? (_b = t3.pagination.defaultPageSize) != null ? _b : 10 : 10), r3 = e.computed(() => {
|
|
9605
9605
|
var _a3;
|
|
@@ -9613,20 +9613,20 @@
|
|
|
9613
9613
|
}, handlePageSizeChange: (e2) => {
|
|
9614
9614
|
n3.value = e2, o2("pageSizeChange", e2);
|
|
9615
9615
|
} };
|
|
9616
|
-
})(t2, n2),
|
|
9616
|
+
})(t2, n2), lt2 = e.computed(() => {
|
|
9617
9617
|
var _a2, _b;
|
|
9618
9618
|
return (_b = (_a2 = m2.value) == null ? void 0 : _a2.onlyCurrent) != null ? _b : false;
|
|
9619
9619
|
});
|
|
9620
|
-
e.watch(
|
|
9621
|
-
e2 !== t3 &&
|
|
9620
|
+
e.watch(Je2, (e2, t3) => {
|
|
9621
|
+
e2 !== t3 && lt2.value && je2();
|
|
9622
9622
|
});
|
|
9623
|
-
const
|
|
9623
|
+
const nt2 = e.computed(() => t2.pagination && Qe2.value.length > et2.value ? Qe2.value.slice((Je2.value - 1) * et2.value, Je2.value * et2.value) : Qe2.value), at2 = e.computed(() => _v(nt2.value)), rt2 = (e2) => e2 && e2.length > 0 ? e2.map((e3) => ({ raw: e3, key: e3[t2.rowKey] })) : [], it2 = e.computed(() => t2.summary ? u(t2.summary) ? rt2(t2.summary({ columns: ee2.value, data: at2.value })) : rt2([ee2.value.reduce((e2, o2, n3) => {
|
|
9624
9624
|
if (o2.dataIndex)
|
|
9625
9625
|
if (0 === n3)
|
|
9626
9626
|
ec(e2, o2.dataIndex, t2.summaryText, { addPath: true });
|
|
9627
9627
|
else {
|
|
9628
9628
|
let t3 = 0, n4 = false;
|
|
9629
|
-
|
|
9629
|
+
nt2.value.forEach((e3) => {
|
|
9630
9630
|
if (o2.dataIndex) {
|
|
9631
9631
|
const a2 = Js(e3.raw, o2.dataIndex);
|
|
9632
9632
|
s(a2) ? t3 += a2 : c(a2) || l(a2) || (n4 = true);
|
|
@@ -9634,199 +9634,202 @@
|
|
|
9634
9634
|
}), ec(e2, o2.dataIndex, n4 ? "" : t3, { addPath: true });
|
|
9635
9635
|
}
|
|
9636
9636
|
return e2;
|
|
9637
|
-
}, {})]) : []),
|
|
9637
|
+
}, {})]) : []), st2 = e.ref(0), ct2 = e.ref(true), ut2 = e.ref(true), dt2 = () => {
|
|
9638
9638
|
let e2 = true, t3 = true;
|
|
9639
|
-
const o2 =
|
|
9640
|
-
o2 && (e2 = 0 ===
|
|
9641
|
-
}, dt2 = (e2) => {
|
|
9642
|
-
e2.target.scrollLeft !== it2.value && (it2.value = e2.target.scrollLeft), ut2();
|
|
9639
|
+
const o2 = X2.value;
|
|
9640
|
+
o2 && (e2 = 0 === st2.value, t3 = Math.ceil(st2.value + o2.offsetWidth) >= o2.scrollWidth), e2 !== ct2.value && (ct2.value = e2), t3 !== ut2.value && (ut2.value = t3);
|
|
9643
9641
|
}, pt2 = (e2) => {
|
|
9644
|
-
|
|
9642
|
+
e2.target.scrollLeft !== st2.value && (st2.value = e2.target.scrollLeft), dt2();
|
|
9643
|
+
}, mt2 = (e2) => {
|
|
9644
|
+
pt2(e2);
|
|
9645
9645
|
const { scrollLeft: t3 } = e2.target;
|
|
9646
|
-
|
|
9647
|
-
},
|
|
9646
|
+
U2.value && (U2.value.scrollLeft = t3), D2.value && (D2.value.scrollLeft = t3);
|
|
9647
|
+
}, ft2 = (e2, t3) => {
|
|
9648
9648
|
n2("rowClick", e2.raw, t3);
|
|
9649
|
-
},
|
|
9649
|
+
}, vt2 = (e2, t3, o2) => {
|
|
9650
9650
|
n2("cellClick", e2.raw, t3, o2);
|
|
9651
|
-
},
|
|
9651
|
+
}, ht2 = wa((e2, t3, o2) => {
|
|
9652
9652
|
n2("cellMouseEnter", e2.raw, t3, o2);
|
|
9653
|
-
}, 30),
|
|
9653
|
+
}, 30), gt2 = wa((e2, t3, o2) => {
|
|
9654
9654
|
n2("cellMouseLeave", e2.raw, t3, o2);
|
|
9655
|
-
}, 30),
|
|
9655
|
+
}, 30), yt2 = (e2, t3, o2) => {
|
|
9656
9656
|
n2("cellDblclick", e2.raw, t3, o2);
|
|
9657
|
-
},
|
|
9657
|
+
}, kt2 = (e2, t3, o2) => {
|
|
9658
9658
|
n2("cellContextmenu", e2.raw, t3, o2);
|
|
9659
|
-
},
|
|
9659
|
+
}, bt2 = e.computed(() => {
|
|
9660
9660
|
var _a2, _b;
|
|
9661
|
-
const e2 = [], o2 =
|
|
9661
|
+
const e2 = [], o2 = re2.value || se2.value;
|
|
9662
9662
|
let l2, n3, a2;
|
|
9663
|
-
"handle" === ((_a2 = t2.draggable) == null ? void 0 : _a2.type) && (l2 = { name: "drag-handle", title: t2.draggable.title, width: t2.draggable.width, fixed: t2.draggable.fixed || o2 }, e2.push(l2)), t2.expandable && (n3 = { name: "expand", title: t2.expandable.title, width: t2.expandable.width, fixed: t2.expandable.fixed || o2 }, e2.push(n3)), t2.rowSelection && (a2 = { name: "radio" === t2.rowSelection.type ? "selection-radio" : "selection-checkbox", title: t2.rowSelection.title, width: t2.rowSelection.width, fixed: t2.rowSelection.fixed || o2 }, e2.push(a2)), !
|
|
9663
|
+
"handle" === ((_a2 = t2.draggable) == null ? void 0 : _a2.type) && (l2 = { name: "drag-handle", title: t2.draggable.title, width: t2.draggable.width, fixed: t2.draggable.fixed || o2 }, e2.push(l2)), t2.expandable && (n3 = { name: "expand", title: t2.expandable.title, width: t2.expandable.width, fixed: t2.expandable.fixed || o2 }, e2.push(n3)), t2.rowSelection && (a2 = { name: "radio" === t2.rowSelection.type ? "selection-radio" : "selection-checkbox", title: t2.rowSelection.title, width: t2.rowSelection.width, fixed: t2.rowSelection.fixed || o2 }, e2.push(a2)), !ce2.value && e2.length > 0 && e2[e2.length - 1].fixed && (e2[e2.length - 1].isLastLeftFixed = true);
|
|
9664
9664
|
const r3 = (_b = t2.components) == null ? void 0 : _b.operations;
|
|
9665
9665
|
return u(r3) ? r3({ dragHandle: l2, expand: n3, selection: a2 }) : e2;
|
|
9666
|
-
}),
|
|
9666
|
+
}), Ct2 = e.computed(() => {
|
|
9667
9667
|
var _a2, _b, _c2, _d2;
|
|
9668
|
-
if (
|
|
9668
|
+
if (A2.value.x) {
|
|
9669
9669
|
const e2 = { width: s((_a2 = t2.scroll) == null ? void 0 : _a2.x) ? `${(_b = t2.scroll) == null ? void 0 : _b.x}px` : (_c2 = t2.scroll) == null ? void 0 : _c2.x };
|
|
9670
9670
|
return ((_d2 = t2.scroll) == null ? void 0 : _d2.minWidth) && (e2.minWidth = s(t2.scroll.minWidth) ? `${t2.scroll.minWidth}px` : t2.scroll.minWidth), e2;
|
|
9671
9671
|
}
|
|
9672
|
-
}),
|
|
9672
|
+
}), xt2 = e.computed(() => {
|
|
9673
9673
|
var _a2, _b, _c2, _d2;
|
|
9674
|
-
if (
|
|
9674
|
+
if (A2.value.x && nt2.value.length > 0) {
|
|
9675
9675
|
const e2 = { width: s((_a2 = t2.scroll) == null ? void 0 : _a2.x) ? `${(_b = t2.scroll) == null ? void 0 : _b.x}px` : (_c2 = t2.scroll) == null ? void 0 : _c2.x };
|
|
9676
9676
|
return ((_d2 = t2.scroll) == null ? void 0 : _d2.minWidth) && (e2.minWidth = s(t2.scroll.minWidth) ? `${t2.scroll.minWidth}px` : t2.scroll.minWidth), e2;
|
|
9677
9677
|
}
|
|
9678
9678
|
});
|
|
9679
9679
|
e.provide(hh, e.reactive({ loadMore: h2, addLazyLoadData: (e2, t3) => {
|
|
9680
|
-
e2 && (
|
|
9681
|
-
}, slots: r2, sorter:
|
|
9682
|
-
|
|
9680
|
+
e2 && (Fe2[t3.key] = e2);
|
|
9681
|
+
}, slots: r2, sorter: Ce2, filters: ge2, filterIconAlignLeft: g2, resizingColumn: oe2, checkStrictly: I2, currentAllEnabledRowKeys: Be2, currentSelectedRowKeys: Pe2, addColumn: (e2, t3) => {
|
|
9682
|
+
_2.set(e2, t3);
|
|
9683
9683
|
}, removeColumn: (e2) => {
|
|
9684
|
-
|
|
9685
|
-
}, onSelectAll:
|
|
9686
|
-
const
|
|
9684
|
+
_2.delete(e2);
|
|
9685
|
+
}, onSelectAll: Oe2, onSelect: Ee2, onSelectAllLeafs: Le2, onSorterChange: me2, onFilterChange: pe2, onThMouseDown: ne2 }));
|
|
9686
|
+
const wt2 = e.computed(() => [P2, `${P2}-size-${t2.size}`, { [`${P2}-border`]: L2.value.wrapper, [`${P2}-border-cell`]: L2.value.cell, [`${P2}-border-header-cell`]: !L2.value.cell && L2.value.headerCell, [`${P2}-border-body-cell`]: !L2.value.cell && L2.value.bodyCell, [`${P2}-stripe`]: t2.stripe, [`${P2}-hover`]: t2.hoverable, [`${P2}-dragging`]: We2.dragging, [`${P2}-type-selection`]: Boolean(t2.rowSelection), [`${P2}-empty`]: t2.data && 0 === nt2.value.length, [`${P2}-layout-fixed`]: t2.tableLayoutFixed || A2.value.x || G2.value || ue2.value }]), St2 = e.computed(() => [`${P2}-pagination`, { [`${P2}-pagination-left`]: "tl" === t2.pagePosition || "bl" === t2.pagePosition, [`${P2}-pagination-center`]: "top" === t2.pagePosition || "bottom" === t2.pagePosition, [`${P2}-pagination-right`]: "tr" === t2.pagePosition || "br" === t2.pagePosition, [`${P2}-pagination-top`]: ae2.value }]), Vt2 = e.computed(() => {
|
|
9687
9687
|
const e2 = (() => {
|
|
9688
9688
|
const e3 = [];
|
|
9689
|
-
return
|
|
9689
|
+
return re2.value && e3.push(`${P2}-has-fixed-col-left`), se2.value && e3.push(`${P2}-has-fixed-col-right`), e3;
|
|
9690
9690
|
})();
|
|
9691
|
-
return
|
|
9692
|
-
}),
|
|
9691
|
+
return A2.value.x && e2.push(ct2.value && ut2.value ? `${P2}-scroll-position-both` : ct2.value ? `${P2}-scroll-position-left` : ut2.value ? `${P2}-scroll-position-right` : `${P2}-scroll-position-middle`), G2.value && e2.push(`${P2}-scroll-y`), e2;
|
|
9692
|
+
}), Nt2 = e.computed(() => Boolean(t2.virtualListProps)), Bt2 = e.ref({}), $t2 = () => {
|
|
9693
9693
|
const e2 = {};
|
|
9694
|
-
for (const t3 of Object.keys(
|
|
9695
|
-
e2[t3] =
|
|
9696
|
-
|
|
9697
|
-
},
|
|
9698
|
-
const e2 =
|
|
9699
|
-
|
|
9694
|
+
for (const t3 of Object.keys(R2.value))
|
|
9695
|
+
e2[t3] = R2.value[t3].offsetWidth;
|
|
9696
|
+
Bt2.value = e2;
|
|
9697
|
+
}, zt2 = e.ref(false), Pt2 = () => !!K2.value && K2.value.offsetWidth > K2.value.clientWidth, Et2 = () => {
|
|
9698
|
+
const e2 = Pt2();
|
|
9699
|
+
zt2.value !== e2 && (zt2.value = e2), dt2(), $t2();
|
|
9700
9700
|
};
|
|
9701
9701
|
e.onMounted(() => {
|
|
9702
|
-
|
|
9702
|
+
zt2.value = Pt2(), $t2();
|
|
9703
9703
|
});
|
|
9704
|
-
const
|
|
9704
|
+
const Lt2 = e.computed(() => a(t2.loading) ? t2.loading : { loading: t2.loading }), Ot2 = () => e.createVNode(lh, { empty: true }, { default: () => [e.createVNode(xh, { colSpan: ee2.value.length + bt2.value.length }, { default: () => {
|
|
9705
9705
|
var _a2, _b, _c2, _d2, _e3;
|
|
9706
|
-
return [(_e3 = (_d2 = (_a2 = r2.empty) == null ? void 0 : _a2.call(r2)) != null ? _d2 : (_c2 =
|
|
9707
|
-
} })] }),
|
|
9708
|
-
if (
|
|
9709
|
-
return { width: `${
|
|
9710
|
-
},
|
|
9711
|
-
return n3 = o2, a2 = l2, e.createVNode(lh, { key: `table-summary-${a2}`, class: [`${
|
|
9706
|
+
return [(_e3 = (_d2 = (_a2 = r2.empty) == null ? void 0 : _a2.call(r2)) != null ? _d2 : (_c2 = E2 == null ? void 0 : (_b = E2.slots).empty) == null ? void 0 : _c2.call(_b, { component: "table" })) != null ? _e3 : e.createVNode(Fo, null, null)];
|
|
9707
|
+
} })] }), Mt2 = e.computed(() => [].concat(bt2.value, ee2.value)), It2 = e.computed(() => t2.spanAll ? Mt2.value : ee2.value), { tableSpan: jt2, removedCells: Tt2 } = Bh({ spanMethod: w2, data: nt2, columns: It2 }), { tableSpan: Dt2, removedCells: Rt2 } = Bh({ spanMethod: N2, data: it2, columns: Mt2 }), Ft2 = (e2) => {
|
|
9708
|
+
if (Nt2.value && e2 && Bt2.value[e2])
|
|
9709
|
+
return { width: `${Bt2.value[e2]}px` };
|
|
9710
|
+
}, Ht2 = () => it2.value && it2.value.length > 0 ? e.createVNode("tfoot", null, [it2.value.map((o2, l2) => {
|
|
9711
|
+
return n3 = o2, a2 = l2, e.createVNode(lh, { key: `table-summary-${a2}`, class: [`${P2}-tr-summary`, u(t2.rowClass) ? t2.rowClass(n3.raw, a2) : t2.rowClass], onClick: (e2) => ft2(n3, e2) }, { default: () => [bt2.value.map((t3, o3) => {
|
|
9712
9712
|
var _a2;
|
|
9713
|
-
const l3 = `${a2}-${o3}-${n3.key}`, [r3, i2] = (_a2 =
|
|
9714
|
-
if (
|
|
9713
|
+
const l3 = `${a2}-${o3}-${n3.key}`, [r3, i2] = (_a2 = Dt2.value[l3]) != null ? _a2 : [1, 1];
|
|
9714
|
+
if (Rt2.value.includes(l3))
|
|
9715
9715
|
return null;
|
|
9716
|
-
const s2 =
|
|
9717
|
-
return e.createVNode(Sh, { style: s2, operationColumn: t3, operations:
|
|
9718
|
-
}),
|
|
9716
|
+
const s2 = Ft2(t3.name);
|
|
9717
|
+
return e.createVNode(Sh, { style: s2, operationColumn: t3, operations: bt2.value, record: n3, rowSpan: r3, colSpan: i2, summary: true }, null);
|
|
9718
|
+
}), ee2.value.map((t3, o3) => {
|
|
9719
9719
|
var _a2;
|
|
9720
|
-
const l3 = `${a2}-${
|
|
9721
|
-
if (
|
|
9720
|
+
const l3 = `${a2}-${bt2.value.length + o3}-${n3.key}`, [i2, s2] = (_a2 = Dt2.value[l3]) != null ? _a2 : [1, 1];
|
|
9721
|
+
if (Rt2.value.includes(l3))
|
|
9722
9722
|
return null;
|
|
9723
|
-
const c2 =
|
|
9724
|
-
return e.createVNode(xh, { key: `td-${l3}`, style: c2, rowIndex: a2, record: n3, column: t3, operations:
|
|
9723
|
+
const c2 = Ft2(t3.dataIndex);
|
|
9724
|
+
return e.createVNode(xh, { key: `td-${l3}`, style: c2, rowIndex: a2, record: n3, column: t3, operations: bt2.value, dataColumns: ee2.value, rowSpan: i2, colSpan: s2, summary: true, onClick: (e2) => vt2(n3, t3, e2), onDblclick: (e2) => yt2(n3, t3, e2), onMouseenter: (e2) => ht2(n3, t3, e2), onMouseleave: (e2) => gt2(n3, t3, e2), onContextmenu: (e2) => kt2(n3, t3, e2) }, { td: r2.td, cell: r2["summary-cell"] });
|
|
9725
9725
|
})], tr: r2.tr });
|
|
9726
9726
|
var n3, a2;
|
|
9727
|
-
})]) : null,
|
|
9727
|
+
})]) : null, Wt2 = (o2, l2 = true) => {
|
|
9728
9728
|
var _a2, _b, _c2, _d2, _e3;
|
|
9729
|
-
const n3 = o2.key, a2 =
|
|
9730
|
-
return e.createVNode("button", { type: "button", class: `${
|
|
9731
|
-
|
|
9729
|
+
const n3 = o2.key, a2 = Te2.value.includes(n3);
|
|
9730
|
+
return e.createVNode("button", { type: "button", class: `${P2}-expand-btn`, onClick: (e2) => {
|
|
9731
|
+
Ae2(n3, o2.raw), l2 && e2.stopPropagation();
|
|
9732
9732
|
} }, [(_e3 = (_d2 = (_a2 = r2["expand-icon"]) == null ? void 0 : _a2.call(r2, { expanded: a2, record: o2.raw })) != null ? _d2 : (_c2 = (_b = t2.expandable) == null ? void 0 : _b.icon) == null ? void 0 : _c2.call(_b, a2, o2.raw)) != null ? _e3 : a2 ? e.createVNode(vi, null, null) : e.createVNode(di, null, null)]);
|
|
9733
|
-
},
|
|
9733
|
+
}, Kt2 = (t3, { indentSize: o2, indexPath: l2, allowDrag: n3, expandContent: a2 }) => {
|
|
9734
9734
|
var _a2, _b;
|
|
9735
9735
|
if (t3.hasSubtree)
|
|
9736
|
-
return 0 === ((_a2 = t3.children) == null ? void 0 : _a2.length) && $2.value ?
|
|
9736
|
+
return 0 === ((_a2 = t3.children) == null ? void 0 : _a2.length) && $2.value ? Ot2() : (_b = t3.children) == null ? void 0 : _b.map((e2, t4) => qt2(e2, t4, { indentSize: o2, indexPath: l2, allowDrag: n3 }));
|
|
9737
9737
|
if (a2) {
|
|
9738
|
-
const o3 =
|
|
9738
|
+
const o3 = X2.value;
|
|
9739
9739
|
return e.createVNode(lh, { key: `${t3.key}-expand`, expand: true }, { default: () => {
|
|
9740
|
-
return [e.createVNode(xh, { isFixedExpand:
|
|
9740
|
+
return [e.createVNode(xh, { isFixedExpand: re2.value || se2.value, containerWidth: o3 == null ? void 0 : o3.clientWidth, colSpan: ee2.value.length + bt2.value.length }, (t4 = a2, "function" == typeof t4 || "[object Object]" === Object.prototype.toString.call(t4) && !e.isVNode(t4) ? a2 : { default: () => [a2] }))];
|
|
9741
9741
|
var t4;
|
|
9742
9742
|
} });
|
|
9743
9743
|
}
|
|
9744
9744
|
return null;
|
|
9745
|
-
},
|
|
9745
|
+
}, qt2 = (o2, l2, { indentSize: a2 = 0, indexPath: i2, allowDrag: s2 = true } = {}) => {
|
|
9746
9746
|
var _a2;
|
|
9747
9747
|
const c2 = o2.key, d3 = (i2 != null ? i2 : []).concat(l2), p3 = ((e2) => {
|
|
9748
9748
|
var _a3;
|
|
9749
9749
|
return e2.expand ? u(e2.expand) ? e2.expand() : e2.expand : r2["expand-row"] ? r2["expand-row"]({ record: e2.raw }) : ((_a3 = t2.expandable) == null ? void 0 : _a3.expandedRowRender) ? t2.expandable.expandedRowRender(e2.raw) : void 0;
|
|
9750
|
-
})(o2), m3 =
|
|
9751
|
-
s2 &&
|
|
9750
|
+
})(o2), m3 = Te2.value.includes(c2), f3 = We2.sourceKey === o2.key, v2 = He2.value ? { draggable: s2, onDragstart: (e2) => {
|
|
9751
|
+
s2 && Ke2(e2, o2.key, d3, o2.raw);
|
|
9752
9752
|
}, onDragend: (e2) => {
|
|
9753
|
-
s2 &&
|
|
9754
|
-
} } : {}, h3 =
|
|
9755
|
-
s2 &&
|
|
9753
|
+
s2 && Ue2(e2);
|
|
9754
|
+
} } : {}, h3 = He2.value ? { onDragenter: (e2) => {
|
|
9755
|
+
s2 && qe2(e2, d3);
|
|
9756
9756
|
}, onDragover: (e2) => {
|
|
9757
|
-
s2 &&
|
|
9757
|
+
s2 && Ye2(e2);
|
|
9758
9758
|
}, onDrop: (e2) => {
|
|
9759
|
-
s2 && (
|
|
9759
|
+
s2 && (de2("drag"), Xe2(e2));
|
|
9760
9760
|
} } : {};
|
|
9761
|
-
return e.createVNode(e.Fragment, null, [
|
|
9761
|
+
return e.createVNode(e.Fragment, null, [z2.value && e.createVNode(lh, null, { default: () => {
|
|
9762
|
+
var _a3;
|
|
9763
|
+
return [(_a3 = r2.headerRow) == null ? void 0 : _a3.call(r2, { record: o2.raw, dataColumnLength: ee2.value.length, operationColumnLength: bt2.value.length })];
|
|
9764
|
+
} }), e.createVNode(lh, e.mergeProps({ key: c2, class: [{ [`${P2}-tr-draggable`]: "row" === He2.value, [`${P2}-tr-drag`]: f3 }, u(t2.rowClass) ? t2.rowClass(o2.raw, l2) : t2.rowClass], rowIndex: l2, record: o2, checked: t2.rowSelection && ((_a2 = ze2.value) == null ? void 0 : _a2.includes(c2)), onClick: (e2) => ft2(o2, e2), onDblclick: (e2) => ((e3, t3) => {
|
|
9762
9765
|
n2("rowDblclick", e3.raw, t3);
|
|
9763
9766
|
})(o2, e2), onContextmenu: (e2) => ((e3, t3) => {
|
|
9764
9767
|
n2("rowContextmenu", e3.raw, t3);
|
|
9765
|
-
})(o2, e2) }, "row" ===
|
|
9768
|
+
})(o2, e2) }, "row" === He2.value ? v2 : {}, h3), { default: () => [bt2.value.map((n3, a3) => {
|
|
9766
9769
|
var _a3;
|
|
9767
|
-
const i3 = `${l2}-${a3}-${o2.key}`, [s3, c3] = t2.spanAll ? (_a3 =
|
|
9768
|
-
if (t2.spanAll &&
|
|
9770
|
+
const i3 = `${l2}-${a3}-${o2.key}`, [s3, c3] = t2.spanAll ? (_a3 = jt2.value[i3]) != null ? _a3 : [1, 1] : [1, 1];
|
|
9771
|
+
if (t2.spanAll && Tt2.value.includes(i3))
|
|
9769
9772
|
return null;
|
|
9770
|
-
const u2 =
|
|
9771
|
-
return e.createVNode(Sh, e.mergeProps({ key: `operation-td-${a3}`, style: u2, operationColumn: n3, operations:
|
|
9772
|
-
}),
|
|
9773
|
+
const u2 = Ft2(n3.name);
|
|
9774
|
+
return e.createVNode(Sh, e.mergeProps({ key: `operation-td-${a3}`, style: u2, operationColumn: n3, operations: bt2.value, record: o2, hasExpand: Boolean(p3), selectedRowKeys: Pe2.value, rowSpan: s3, colSpan: c3, renderExpandBtn: Wt2 }, "handle" === He2.value ? v2 : {}), { "drag-handle-icon": r2["drag-handle-icon"] });
|
|
9775
|
+
}), ee2.value.map((n3, i3) => {
|
|
9773
9776
|
var _a3;
|
|
9774
|
-
const s3 = `${l2}-${t2.spanAll ?
|
|
9775
|
-
if (
|
|
9777
|
+
const s3 = `${l2}-${t2.spanAll ? bt2.value.length + i3 : i3}-${o2.key}`, [c3, u2] = (_a3 = jt2.value[s3]) != null ? _a3 : [1, 1];
|
|
9778
|
+
if (Tt2.value.includes(s3))
|
|
9776
9779
|
return null;
|
|
9777
|
-
const d4 = 0 === i3 ? { showExpandBtn: o2.hasSubtree, indentSize: o2.hasSubtree ? a2 - 20 : a2 } : {}, p4 =
|
|
9778
|
-
return e.createVNode(xh, e.mergeProps({ key: `td-${i3}`, style: p4, rowIndex: l2, record: o2, column: n3, operations:
|
|
9779
|
-
})], tr: r2.tr }), m3 &&
|
|
9780
|
-
},
|
|
9781
|
-
const t3 =
|
|
9782
|
-
return e.createVNode(oh, null, { default: () => [
|
|
9783
|
-
},
|
|
9780
|
+
const d4 = 0 === i3 ? { showExpandBtn: o2.hasSubtree, indentSize: o2.hasSubtree ? a2 - 20 : a2 } : {}, p4 = Ft2(n3.dataIndex);
|
|
9781
|
+
return e.createVNode(xh, e.mergeProps({ key: `td-${i3}`, style: p4, rowIndex: l2, record: o2, column: n3, operations: bt2.value, dataColumns: ee2.value, rowSpan: c3, renderExpandBtn: Wt2, colSpan: u2 }, d4, { onClick: (e2) => vt2(o2, n3, e2), onDblclick: (e2) => yt2(o2, n3, e2), onMouseenter: (e2) => ht2(o2, n3, e2), onMouseleave: (e2) => gt2(o2, n3, e2), onContextmenu: (e2) => kt2(o2, n3, e2) }), { td: r2.td });
|
|
9782
|
+
})], tr: r2.tr }), m3 && Kt2(o2, { indentSize: a2 + t2.indentSize, indexPath: d3, allowDrag: s2 && !f3, expandContent: p3 })]);
|
|
9783
|
+
}, Zt2 = () => {
|
|
9784
|
+
const t3 = nt2.value.some((e2) => Boolean(e2.hasSubtree));
|
|
9785
|
+
return e.createVNode(oh, null, { default: () => [nt2.value.length > 0 ? nt2.value.map((e2, o2) => qt2(e2, o2, { indentSize: t3 ? 20 : 0 })) : Ot2()], tbody: r2.tbody });
|
|
9786
|
+
}, Yt2 = () => e.createVNode(th, null, { default: () => [te2.value.map((o2, l2) => e.createVNode(lh, { key: `header-row-${l2}` }, { default: () => [0 === l2 && bt2.value.map((o3, l3) => {
|
|
9784
9787
|
var _a2;
|
|
9785
9788
|
return e.createVNode(wh, { key: `operation-th-${l3}`, ref: (e2) => {
|
|
9786
|
-
(e2 == null ? void 0 : e2.$el) && o3.name && (
|
|
9787
|
-
}, operationColumn: o3, operations:
|
|
9789
|
+
(e2 == null ? void 0 : e2.$el) && o3.name && (R2.value[o3.name] = e2.$el);
|
|
9790
|
+
}, operationColumn: o3, operations: bt2.value, selectAll: Boolean("selection-checkbox" === o3.name && ((_a2 = t2.rowSelection) == null ? void 0 : _a2.showCheckedAll)), rowSpan: te2.value.length }, null);
|
|
9788
9791
|
}), o2.map((l3, a2) => {
|
|
9789
9792
|
const i2 = t2.columnResizable && Boolean(l3.dataIndex) && a2 < o2.length - 1;
|
|
9790
9793
|
return e.createVNode(Ch, { key: `th-${a2}`, ref: (e2) => {
|
|
9791
|
-
(e2 == null ? void 0 : e2.$el) && l3.dataIndex && (
|
|
9792
|
-
}, column: l3, operations:
|
|
9794
|
+
(e2 == null ? void 0 : e2.$el) && l3.dataIndex && (R2.value[l3.dataIndex] = e2.$el);
|
|
9795
|
+
}, column: l3, operations: bt2.value, dataColumns: ee2.value, resizable: i2, onClick: (e2) => ((e3, t3) => {
|
|
9793
9796
|
n2("headerClick", e3, t3);
|
|
9794
9797
|
})(l3, e2) }, { th: r2.th });
|
|
9795
|
-
})] }))], thead: r2.thead }),
|
|
9798
|
+
})] }))], thead: r2.thead }), Ut2 = () => {
|
|
9796
9799
|
var _a2, _b;
|
|
9797
|
-
if (
|
|
9798
|
-
const o2 = s(t2.stickyHeader) ? `${t2.stickyHeader}px` : void 0, l2 = [(_a2 =
|
|
9799
|
-
t2.stickyHeader && l2.push(`${
|
|
9800
|
-
const n3 = { top: o2, ...(_b =
|
|
9801
|
-
return e.createVNode(e.Fragment, null, [t2.showHeader && e.createVNode(a2, e.mergeProps({ ref:
|
|
9800
|
+
if (G2.value) {
|
|
9801
|
+
const o2 = s(t2.stickyHeader) ? `${t2.stickyHeader}px` : void 0, l2 = [(_a2 = T2.value) == null ? void 0 : _a2.outerClass];
|
|
9802
|
+
t2.stickyHeader && l2.push(`${P2}-header-sticky`);
|
|
9803
|
+
const n3 = { top: o2, ...(_b = T2.value) == null ? void 0 : _b.outerStyle }, a2 = j2.value ? Yo : "div";
|
|
9804
|
+
return e.createVNode(e.Fragment, null, [t2.showHeader && e.createVNode(a2, e.mergeProps({ ref: Y2, class: [`${P2}-header`, { [`${P2}-header-sticky`]: t2.stickyHeader && !j2.value }], style: { overflowY: zt2.value ? "scroll" : void 0, top: j2.value ? void 0 : o2 } }, B2.value ? { hide: 0 !== nt2.value.length, disableVertical: true, ...T2.value, outerClass: l2, outerStyle: n3 } : void 0), { default: () => [e.createVNode("table", { class: `${P2}-element`, style: Ct2.value, cellpadding: 0, cellspacing: 0 }, [e.createVNode(eh, { dataColumns: ee2.value, operations: bt2.value, columnWidth: le2 }, null), Yt2()])] }), e.createVNode(ie, { onResize: Et2 }, { default: () => {
|
|
9802
9805
|
var _a3, _b2;
|
|
9803
|
-
return [
|
|
9804
|
-
(e2 == null ? void 0 : e2.$el) && (
|
|
9805
|
-
}, class: `${
|
|
9806
|
-
} }),
|
|
9806
|
+
return [Nt2.value && nt2.value.length ? e.createVNode(zl, e.mergeProps({ ref: (e2) => {
|
|
9807
|
+
(e2 == null ? void 0 : e2.$el) && (K2.value = e2.$el);
|
|
9808
|
+
}, class: `${P2}-body`, data: nt2.value, itemKey: "_key", component: { list: "table", content: "tbody" }, listAttrs: { class: `${P2}-element`, style: xt2.value }, paddingPosition: "list", height: "auto" }, t2.virtualListProps, { onScroll: mt2 }), { item: ({ item: e2, index: t3 }) => qt2(e2, t3) }) : e.createVNode(a2, e.mergeProps({ ref: W2, class: `${P2}-body`, style: { maxHeight: s((_a3 = t2.scroll) == null ? void 0 : _a3.y) ? `${(_b2 = t2.scroll) == null ? void 0 : _b2.y}px` : "100%" } }, B2.value ? { outerStyle: { display: "flex", minHeight: "0" }, ...T2.value } : void 0, { onScroll: mt2 }), { default: () => [e.createVNode("table", { class: `${P2}-element`, style: xt2.value, cellpadding: 0, cellspacing: 0 }, [0 !== nt2.value.length && e.createVNode(eh, { dataColumns: ee2.value, operations: bt2.value, columnWidth: le2 }, null), Zt2()])] })];
|
|
9809
|
+
} }), it2.value && it2.value.length > 0 && e.createVNode("div", { ref: D2, class: `${P2}-tfoot`, style: { overflowY: zt2.value ? "scroll" : "hidden" } }, [e.createVNode("table", { class: `${P2}-element`, style: xt2.value, cellpadding: 0, cellspacing: 0 }, [e.createVNode(eh, { dataColumns: ee2.value, operations: bt2.value, columnWidth: le2 }, null), Ht2()])])]);
|
|
9807
9810
|
}
|
|
9808
|
-
return e.createVNode(ie, { onResize: () =>
|
|
9809
|
-
},
|
|
9811
|
+
return e.createVNode(ie, { onResize: () => dt2() }, { default: () => [e.createVNode("table", { class: `${P2}-element`, cellpadding: 0, cellspacing: 0, style: xt2.value }, [e.createVNode(eh, { dataColumns: ee2.value, operations: bt2.value, columnWidth: le2 }, null), t2.showHeader && Yt2(), Zt2(), it2.value && it2.value.length > 0 && Ht2()])] });
|
|
9812
|
+
}, Xt2 = (o2) => {
|
|
9810
9813
|
var _a2;
|
|
9811
|
-
const l2 = ((_a2 = t2.scroll) == null ? void 0 : _a2.maxHeight) ? { maxHeight: t2.scroll.maxHeight } : void 0, n3 =
|
|
9812
|
-
return e.createVNode(e.Fragment, null, [e.createVNode("div", { class: [`${
|
|
9813
|
-
},
|
|
9814
|
+
const l2 = ((_a2 = t2.scroll) == null ? void 0 : _a2.maxHeight) ? { maxHeight: t2.scroll.maxHeight } : void 0, n3 = j2.value ? Yo : "div";
|
|
9815
|
+
return e.createVNode(e.Fragment, null, [e.createVNode("div", { class: [`${P2}-container`, Vt2.value] }, [e.createVNode(n3, e.mergeProps({ ref: F2, class: [`${P2}-content`, { [`${P2}-content-scroll-x`]: !G2.value }], style: l2 }, B2.value ? { outerStyle: { height: "100%" }, ...T2.value } : void 0, { onScroll: pt2 }), { default: () => [o2 ? e.createVNode("table", { class: `${P2}-element`, cellpadding: 0, cellspacing: 0 }, [o2()]) : Ut2()] })]), r2.footer && e.createVNode("div", { class: `${P2}-footer` }, [r2.footer()])]);
|
|
9816
|
+
}, Gt2 = () => {
|
|
9814
9817
|
var _a2, _b;
|
|
9815
9818
|
const o2 = a(t2.pagination) ? At(t2.pagination, ["current", "pageSize", "defaultCurrent", "defaultPageSize"]) : {};
|
|
9816
|
-
return e.createVNode("div", { class:
|
|
9817
|
-
|
|
9819
|
+
return e.createVNode("div", { class: St2.value }, [(_a2 = r2["pagination-left"]) == null ? void 0 : _a2.call(r2), e.createVNode($p, e.mergeProps({ total: _e2.value.length, current: Je2.value, pageSize: et2.value, onChange: (e2) => {
|
|
9820
|
+
tt2(e2), de2("pagination");
|
|
9818
9821
|
}, onPageSizeChange: (e2) => {
|
|
9819
|
-
|
|
9822
|
+
ot2(e2), de2("pagination");
|
|
9820
9823
|
} }, o2), null), (_b = r2["pagination-right"]) == null ? void 0 : _b.call(r2)]);
|
|
9821
|
-
},
|
|
9824
|
+
}, _t2 = e.computed(() => {
|
|
9822
9825
|
var _a2, _b;
|
|
9823
9826
|
if (i((_a2 = t2.scroll) == null ? void 0 : _a2.y))
|
|
9824
9827
|
return { height: (_b = t2.scroll) == null ? void 0 : _b.y };
|
|
9825
9828
|
});
|
|
9826
9829
|
return { render: () => {
|
|
9827
9830
|
var _a2;
|
|
9828
|
-
return r2.default ? e.createVNode("div", { class:
|
|
9829
|
-
}, selfExpand:
|
|
9831
|
+
return r2.default ? e.createVNode("div", { class: wt2.value }, [Xt2(r2.default)]) : (O2.value = (_a2 = r2.columns) == null ? void 0 : _a2.call(r2), e.createVNode("div", { class: wt2.value, style: _t2.value }, [O2.value, e.createVNode(Ko, Lt2.value, { default: () => [false !== t2.pagination && (nt2.value.length > 0 || Qe2.value.length > 0) && ae2.value && Gt2(), Xt2(), false !== t2.pagination && (nt2.value.length > 0 || Qe2.value.length > 0) && !ae2.value && Gt2()] })]));
|
|
9832
|
+
}, selfExpand: De2, selfExpandAll: Re2, selfSelect: Me2, selfSelectAll: Ie2, selfResetFilters: ye2, selfClearFilters: ke2, selfResetSorters: xe2, selfClearSorters: we2 };
|
|
9830
9833
|
}, methods: { selectAll(e2) {
|
|
9831
9834
|
return this.selfSelectAll(e2);
|
|
9832
9835
|
}, select(e2, t2) {
|