3h1-ui 3.0.0-next.8 → 3.0.0-next.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/es/index.js +141 -89
- package/es/style.css +114 -137
- package/lib/index.js +141 -89
- package/lib/style.css +8531 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8432,8 +8432,12 @@ const basicProps$7 = Object.assign({}, modalProps, {
|
|
|
8432
8432
|
keyboard: { type: Boolean, default: true },
|
|
8433
8433
|
maskStyle: Object,
|
|
8434
8434
|
okType: { type: String, default: "primary" },
|
|
8435
|
-
okButtonProps:
|
|
8436
|
-
|
|
8435
|
+
okButtonProps: {
|
|
8436
|
+
type: Object
|
|
8437
|
+
},
|
|
8438
|
+
cancelButtonProps: {
|
|
8439
|
+
type: Object
|
|
8440
|
+
},
|
|
8437
8441
|
title: { type: String },
|
|
8438
8442
|
visible: { type: Boolean },
|
|
8439
8443
|
width: [String, Number],
|
|
@@ -9074,6 +9078,9 @@ const _sfc_main$1e = vue.defineComponent({
|
|
|
9074
9078
|
name: "BasicModalFooter",
|
|
9075
9079
|
props: basicProps$7,
|
|
9076
9080
|
emits: ["ok", "cancel"],
|
|
9081
|
+
components: {
|
|
9082
|
+
Button: antDesignVue.Button
|
|
9083
|
+
},
|
|
9077
9084
|
setup(_, { emit }) {
|
|
9078
9085
|
function handleOk(e) {
|
|
9079
9086
|
emit("ok", e);
|
|
@@ -9085,17 +9092,17 @@ const _sfc_main$1e = vue.defineComponent({
|
|
|
9085
9092
|
}
|
|
9086
9093
|
});
|
|
9087
9094
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9088
|
-
const
|
|
9095
|
+
const _component_Button = vue.resolveComponent("Button");
|
|
9089
9096
|
return vue.openBlock(), vue.createElementBlock("div", null, [
|
|
9090
9097
|
vue.renderSlot(_ctx.$slots, "insertFooter"),
|
|
9091
|
-
_ctx.showCancelBtn ? (vue.openBlock(), vue.createBlock(
|
|
9098
|
+
_ctx.showCancelBtn ? (vue.openBlock(), vue.createBlock(_component_Button, vue.mergeProps({ key: 0 }, _ctx.cancelButtonProps, { onClick: _ctx.handleCancel }), {
|
|
9092
9099
|
default: vue.withCtx(() => [
|
|
9093
9100
|
vue.createTextVNode(vue.toDisplayString(_ctx.cancelText), 1)
|
|
9094
9101
|
]),
|
|
9095
9102
|
_: 1
|
|
9096
9103
|
}, 16, ["onClick"])) : vue.createCommentVNode("", true),
|
|
9097
9104
|
vue.renderSlot(_ctx.$slots, "centerFooter"),
|
|
9098
|
-
_ctx.showOkBtn ? (vue.openBlock(), vue.createBlock(
|
|
9105
|
+
_ctx.showOkBtn ? (vue.openBlock(), vue.createBlock(_component_Button, vue.mergeProps({
|
|
9099
9106
|
key: 1,
|
|
9100
9107
|
type: _ctx.okType,
|
|
9101
9108
|
onClick: _ctx.handleOk,
|
|
@@ -9328,7 +9335,7 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9328
9335
|
"register",
|
|
9329
9336
|
"update:visible"
|
|
9330
9337
|
],
|
|
9331
|
-
setup(props2, { emit, attrs }) {
|
|
9338
|
+
setup(props2, { emit, attrs, slots }) {
|
|
9332
9339
|
const visibleRef = vue.ref(false);
|
|
9333
9340
|
const propsRef = vue.ref(null);
|
|
9334
9341
|
const modalWrapperRef = vue.ref(null);
|
|
@@ -9352,7 +9359,8 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9352
9359
|
const getMergeProps = vue.computed(() => {
|
|
9353
9360
|
return {
|
|
9354
9361
|
...props2,
|
|
9355
|
-
...vue.unref(propsRef)
|
|
9362
|
+
...vue.unref(propsRef),
|
|
9363
|
+
wrapClassName: `${props2.wrapClassName || ""} ${prefixCls2}`
|
|
9356
9364
|
};
|
|
9357
9365
|
});
|
|
9358
9366
|
const { handleFullScreen, getWrapClassName, fullScreenRef } = useFullScreen(
|
|
@@ -9387,6 +9395,17 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9387
9395
|
}
|
|
9388
9396
|
return omit$1(attr, "title");
|
|
9389
9397
|
});
|
|
9398
|
+
const omitBindValue = vue.computed(() => {
|
|
9399
|
+
return omit$1(
|
|
9400
|
+
getProps.value.wrapperProps,
|
|
9401
|
+
"visible",
|
|
9402
|
+
"height",
|
|
9403
|
+
"modalFooterHeight"
|
|
9404
|
+
);
|
|
9405
|
+
});
|
|
9406
|
+
const omitSlotKeys = vue.computed(() => {
|
|
9407
|
+
return Object.keys(omit$1(slots, ["default"]));
|
|
9408
|
+
});
|
|
9390
9409
|
const getWrapperHeight = vue.computed(() => {
|
|
9391
9410
|
if (vue.unref(fullScreenRef))
|
|
9392
9411
|
return void 0;
|
|
@@ -9399,8 +9418,10 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9399
9418
|
vue.watch(
|
|
9400
9419
|
() => vue.unref(visibleRef),
|
|
9401
9420
|
(v) => {
|
|
9421
|
+
var _a2;
|
|
9402
9422
|
emit("visible-change", v);
|
|
9403
9423
|
emit("update:visible", v);
|
|
9424
|
+
instance && ((_a2 = modalMethods.emitVisible) == null ? void 0 : _a2.call(modalMethods, v, instance.uid));
|
|
9404
9425
|
vue.nextTick(() => {
|
|
9405
9426
|
if (props2.scrollTop && v && vue.unref(modalWrapperRef)) {
|
|
9406
9427
|
vue.unref(modalWrapperRef).scrollTop();
|
|
@@ -9451,6 +9472,7 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9451
9472
|
handleFullScreen(e);
|
|
9452
9473
|
}
|
|
9453
9474
|
return {
|
|
9475
|
+
prefixCls: prefixCls2,
|
|
9454
9476
|
handleCancel,
|
|
9455
9477
|
getBindValue,
|
|
9456
9478
|
getProps,
|
|
@@ -9459,7 +9481,9 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9459
9481
|
getMergeProps,
|
|
9460
9482
|
handleOk,
|
|
9461
9483
|
visibleRef,
|
|
9462
|
-
|
|
9484
|
+
omitBindValue,
|
|
9485
|
+
omitSlotKeys,
|
|
9486
|
+
// omit,
|
|
9463
9487
|
modalWrapperRef,
|
|
9464
9488
|
handleExtHeight,
|
|
9465
9489
|
handleHeightChange,
|
|
@@ -9468,33 +9492,30 @@ const _sfc_main$1a = vue.defineComponent({
|
|
|
9468
9492
|
};
|
|
9469
9493
|
}
|
|
9470
9494
|
});
|
|
9495
|
+
const BasicModal_vue_vue_type_style_index_0_lang = "";
|
|
9471
9496
|
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9472
9497
|
const _component_ModalClose = vue.resolveComponent("ModalClose");
|
|
9473
9498
|
const _component_ModalHeader = vue.resolveComponent("ModalHeader");
|
|
9474
9499
|
const _component_ModalFooter = vue.resolveComponent("ModalFooter");
|
|
9475
9500
|
const _component_ModalWrapper = vue.resolveComponent("ModalWrapper");
|
|
9476
9501
|
const _component_Modal = vue.resolveComponent("Modal");
|
|
9477
|
-
return vue.openBlock(), vue.createBlock(_component_Modal, vue.mergeProps(
|
|
9502
|
+
return vue.openBlock(), vue.createBlock(_component_Modal, vue.mergeProps(_ctx.getBindValue, { onCancel: _ctx.handleCancel }), vue.createSlots({
|
|
9478
9503
|
default: vue.withCtx(() => [
|
|
9479
|
-
vue.createVNode(_component_ModalWrapper, vue.mergeProps(
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
_ctx.
|
|
9493
|
-
|
|
9494
|
-
onExtHeight: _ctx.handleExtHeight,
|
|
9495
|
-
onHeightChange: _ctx.handleHeightChange
|
|
9496
|
-
}
|
|
9497
|
-
), {
|
|
9504
|
+
vue.createVNode(_component_ModalWrapper, vue.mergeProps({
|
|
9505
|
+
useWrapper: _ctx.getProps.useWrapper,
|
|
9506
|
+
footerOffset: _ctx.wrapperFooterOffset,
|
|
9507
|
+
fullScreen: _ctx.fullScreenRef,
|
|
9508
|
+
ref: "modalWrapperRef",
|
|
9509
|
+
loading: _ctx.getProps.loading,
|
|
9510
|
+
"loading-tip": _ctx.getProps.loadingTip,
|
|
9511
|
+
minHeight: _ctx.getProps.minHeight,
|
|
9512
|
+
height: _ctx.getWrapperHeight,
|
|
9513
|
+
visible: _ctx.visibleRef,
|
|
9514
|
+
modalFooterHeight: _ctx.footer !== void 0 && !_ctx.footer ? 0 : void 0
|
|
9515
|
+
}, _ctx.omitBindValue, {
|
|
9516
|
+
onExtHeight: _ctx.handleExtHeight,
|
|
9517
|
+
onHeightChange: _ctx.handleHeightChange
|
|
9518
|
+
}), {
|
|
9498
9519
|
default: vue.withCtx(() => [
|
|
9499
9520
|
vue.renderSlot(_ctx.$slots, "default")
|
|
9500
9521
|
]),
|
|
@@ -9545,7 +9566,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9545
9566
|
]),
|
|
9546
9567
|
key: "2"
|
|
9547
9568
|
} : void 0,
|
|
9548
|
-
vue.renderList(
|
|
9569
|
+
vue.renderList(_ctx.omitSlotKeys, (item) => {
|
|
9549
9570
|
return {
|
|
9550
9571
|
name: item,
|
|
9551
9572
|
fn: vue.withCtx((data) => [
|
|
@@ -14622,7 +14643,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
|
|
|
14622
14643
|
}
|
|
14623
14644
|
});
|
|
14624
14645
|
const HeaderCell_vue_vue_type_style_index_0_lang$1 = "";
|
|
14625
|
-
function itemRender
|
|
14646
|
+
function itemRender({
|
|
14626
14647
|
page,
|
|
14627
14648
|
type,
|
|
14628
14649
|
originalElement
|
|
@@ -14660,7 +14681,7 @@ function usePagination$2(refProps) {
|
|
|
14660
14681
|
showTotal: (total) => `共 ${total} 条数据`,
|
|
14661
14682
|
showSizeChanger: true,
|
|
14662
14683
|
pageSizeOptions: PAGE_SIZE_OPTIONS$1,
|
|
14663
|
-
itemRender
|
|
14684
|
+
itemRender,
|
|
14664
14685
|
showQuickJumper: true,
|
|
14665
14686
|
...utils.isBoolean(pagination) ? {} : pagination,
|
|
14666
14687
|
...vue.unref(configRef)
|
|
@@ -17753,14 +17774,14 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17753
17774
|
scroll: _ctx.scroll
|
|
17754
17775
|
}, null, 8, ["dataSource", "rowKey", "columns", "scroll"])) : vue.createCommentVNode("", true);
|
|
17755
17776
|
}
|
|
17756
|
-
const TableFooter = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$u]]);
|
|
17777
|
+
const TableFooter$1 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$u]]);
|
|
17757
17778
|
function useTableFooter(propsRef, scrollRef, tableElRef, getDataSourceRef) {
|
|
17758
17779
|
const getIsEmptyData = vue.computed(() => {
|
|
17759
17780
|
return (vue.unref(getDataSourceRef) || []).length === 0;
|
|
17760
17781
|
});
|
|
17761
17782
|
const getFooterProps = vue.computed(() => {
|
|
17762
17783
|
const { summaryFunc, showSummary, summaryData } = vue.unref(propsRef);
|
|
17763
|
-
return showSummary && !vue.unref(getIsEmptyData) ? () => vue.h(TableFooter, { summaryFunc, summaryData, scroll: vue.unref(scrollRef) }) : void 0;
|
|
17784
|
+
return showSummary && !vue.unref(getIsEmptyData) ? () => vue.h(TableFooter$1, { summaryFunc, summaryData, scroll: vue.unref(scrollRef) }) : void 0;
|
|
17764
17785
|
});
|
|
17765
17786
|
vue.watchEffect(() => {
|
|
17766
17787
|
handleSummary();
|
|
@@ -19842,7 +19863,9 @@ const _sfc_main$v = vue.defineComponent({
|
|
|
19842
19863
|
() => visibleRef.value,
|
|
19843
19864
|
(visible) => {
|
|
19844
19865
|
vue.nextTick(() => {
|
|
19866
|
+
var _a2;
|
|
19845
19867
|
emit("visible-change", visible);
|
|
19868
|
+
instance && ((_a2 = drawerInstance.emitVisible) == null ? void 0 : _a2.call(drawerInstance, visible, instance.uid));
|
|
19846
19869
|
});
|
|
19847
19870
|
}
|
|
19848
19871
|
);
|
|
@@ -30696,6 +30719,13 @@ const setConstConfig = (config) => {
|
|
|
30696
30719
|
DEFAULT_ALIGN = config.align;
|
|
30697
30720
|
};
|
|
30698
30721
|
const basicProps = vue.reactive({
|
|
30722
|
+
isShowPagination: {
|
|
30723
|
+
type: Boolean
|
|
30724
|
+
},
|
|
30725
|
+
isShowFooter: {
|
|
30726
|
+
type: Boolean,
|
|
30727
|
+
default: true
|
|
30728
|
+
},
|
|
30699
30729
|
clickToRowSelect: { type: Boolean, default: true },
|
|
30700
30730
|
isTreeTable: Boolean,
|
|
30701
30731
|
tableSetting: {
|
|
@@ -30862,7 +30892,7 @@ const basicProps = vue.reactive({
|
|
|
30862
30892
|
default: DEFAULT_SIZE
|
|
30863
30893
|
}
|
|
30864
30894
|
});
|
|
30865
|
-
vue.reactive({
|
|
30895
|
+
const paginationProps = vue.reactive({
|
|
30866
30896
|
type: Object,
|
|
30867
30897
|
default: () => {
|
|
30868
30898
|
return {
|
|
@@ -30949,18 +30979,6 @@ function useLoading(props2) {
|
|
|
30949
30979
|
}
|
|
30950
30980
|
return { getLoading, setLoading };
|
|
30951
30981
|
}
|
|
30952
|
-
function itemRender({
|
|
30953
|
-
page,
|
|
30954
|
-
type,
|
|
30955
|
-
originalElement
|
|
30956
|
-
}) {
|
|
30957
|
-
if (type === "prev") {
|
|
30958
|
-
return page === 0 ? null : vue.createVNode(LeftOutlined$1, null, null);
|
|
30959
|
-
} else if (type === "next") {
|
|
30960
|
-
return page === 1 ? null : vue.createVNode(RightOutlined$1, null, null);
|
|
30961
|
-
}
|
|
30962
|
-
return originalElement;
|
|
30963
|
-
}
|
|
30964
30982
|
function usePagination(refProps) {
|
|
30965
30983
|
const configRef = vue.ref({});
|
|
30966
30984
|
const show = vue.ref(true);
|
|
@@ -30976,9 +30994,6 @@ function usePagination(refProps) {
|
|
|
30976
30994
|
const {
|
|
30977
30995
|
pagination
|
|
30978
30996
|
} = vue.unref(refProps);
|
|
30979
|
-
if (!vue.unref(show) || utils.isBoolean(pagination) && !pagination) {
|
|
30980
|
-
return false;
|
|
30981
|
-
}
|
|
30982
30997
|
return {
|
|
30983
30998
|
current: 1,
|
|
30984
30999
|
pageSize: PAGE_SIZE,
|
|
@@ -30987,7 +31002,7 @@ function usePagination(refProps) {
|
|
|
30987
31002
|
showTotal: (total) => `共 ${total} 条数据`,
|
|
30988
31003
|
showSizeChanger: true,
|
|
30989
31004
|
pageSizeOptions: PAGE_SIZE_OPTIONS,
|
|
30990
|
-
itemRender,
|
|
31005
|
+
// itemRender: itemRender,
|
|
30991
31006
|
showQuickJumper: true,
|
|
30992
31007
|
...utils.isBoolean(pagination) ? {} : pagination,
|
|
30993
31008
|
...vue.unref(configRef)
|
|
@@ -31163,7 +31178,7 @@ function useDataSource(propsRef, {
|
|
|
31163
31178
|
}
|
|
31164
31179
|
);
|
|
31165
31180
|
let oldSortInfoRef;
|
|
31166
|
-
function handleTableChange(pagination, filters, sorter) {
|
|
31181
|
+
function handleTableChange(pagination, filters, sorter, extra) {
|
|
31167
31182
|
const isChangeSorter = !eq(oldSortInfoRef, sorter.order);
|
|
31168
31183
|
const { clearSelectOnPageChange, sortFn, filterFn } = vue.unref(propsRef);
|
|
31169
31184
|
if (clearSelectOnPageChange) {
|
|
@@ -33407,12 +33422,11 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33407
33422
|
tableHeightRef.value = height;
|
|
33408
33423
|
(_a2 = modalFn == null ? void 0 : modalFn.redoModalHeight) == null ? void 0 : _a2.call(modalFn);
|
|
33409
33424
|
}
|
|
33410
|
-
let paginationEl;
|
|
33411
|
-
let footerEl;
|
|
33412
33425
|
let bodyEl;
|
|
33413
33426
|
async function calcTableHeight() {
|
|
33414
33427
|
var _a2, _b, _c;
|
|
33415
33428
|
const {
|
|
33429
|
+
isShowFooter,
|
|
33416
33430
|
resizeHeightOffset,
|
|
33417
33431
|
pagination,
|
|
33418
33432
|
maxHeight,
|
|
@@ -33451,27 +33465,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33451
33465
|
if (!headEl)
|
|
33452
33466
|
return;
|
|
33453
33467
|
let paddingHeight = propsRef.value.useTableWrapper ? 20 : 10;
|
|
33454
|
-
let
|
|
33455
|
-
if (!!utils.isBoolean(pagination) && tableData.length !== 0) {
|
|
33456
|
-
paginationEl = tableEl.querySelector(".ant-pagination");
|
|
33457
|
-
if (paginationEl) {
|
|
33458
|
-
const offsetHeight = paginationEl.offsetHeight;
|
|
33459
|
-
paginationHeight += offsetHeight || 0;
|
|
33460
|
-
} else {
|
|
33461
|
-
paginationHeight += 24;
|
|
33462
|
-
}
|
|
33463
|
-
} else {
|
|
33464
|
-
paginationHeight = 0;
|
|
33465
|
-
}
|
|
33466
|
-
let footerHeight = 0;
|
|
33467
|
-
if (!utils.isBoolean(pagination)) {
|
|
33468
|
-
if (!footerEl) {
|
|
33469
|
-
footerEl = tableEl.querySelector(".ant-table-footer");
|
|
33470
|
-
} else {
|
|
33471
|
-
const offsetHeight = footerEl.offsetHeight;
|
|
33472
|
-
footerHeight += offsetHeight || 0;
|
|
33473
|
-
}
|
|
33474
|
-
}
|
|
33468
|
+
let footerHeight = isShowFooter ? 24 : 0;
|
|
33475
33469
|
let headerHeight = 0;
|
|
33476
33470
|
if (headEl) {
|
|
33477
33471
|
headerHeight = headEl.offsetHeight + 1;
|
|
@@ -33497,7 +33491,8 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33497
33491
|
} else {
|
|
33498
33492
|
bottomIncludeBody = utils.getViewportOffset(headEl).bottomIncludeBody;
|
|
33499
33493
|
}
|
|
33500
|
-
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - paginationHeight -
|
|
33494
|
+
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - // paginationHeight -
|
|
33495
|
+
footerHeight - headerHeight;
|
|
33501
33496
|
height = height > maxHeight ? maxHeight : height;
|
|
33502
33497
|
height = Math.floor(height);
|
|
33503
33498
|
setHeight(height);
|
|
@@ -33924,6 +33919,56 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33924
33919
|
}
|
|
33925
33920
|
});
|
|
33926
33921
|
const HeaderCell_vue_vue_type_style_index_0_lang = "";
|
|
33922
|
+
const tableFooter = "";
|
|
33923
|
+
const TableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
33924
|
+
emits: ["pageChange"],
|
|
33925
|
+
props: {
|
|
33926
|
+
isShowSettings: {
|
|
33927
|
+
type: Boolean,
|
|
33928
|
+
default: true
|
|
33929
|
+
},
|
|
33930
|
+
isShowPagination: {
|
|
33931
|
+
type: Boolean
|
|
33932
|
+
},
|
|
33933
|
+
pagination: paginationProps
|
|
33934
|
+
},
|
|
33935
|
+
setup(props2, {
|
|
33936
|
+
emit
|
|
33937
|
+
}) {
|
|
33938
|
+
const {
|
|
33939
|
+
prefixCls: prefixCls2
|
|
33940
|
+
} = use.useDesign("table-footer");
|
|
33941
|
+
const {
|
|
33942
|
+
getSelectRowKeys
|
|
33943
|
+
} = useTableContext();
|
|
33944
|
+
const getSelectTotal = vue.computed(() => {
|
|
33945
|
+
var _a2;
|
|
33946
|
+
return `已选择${(_a2 = getSelectRowKeys()) == null ? void 0 : _a2.length}条`;
|
|
33947
|
+
});
|
|
33948
|
+
const handlePageChange = (current, pageSize) => {
|
|
33949
|
+
emit("pageChange", {
|
|
33950
|
+
current,
|
|
33951
|
+
pageSize
|
|
33952
|
+
});
|
|
33953
|
+
};
|
|
33954
|
+
return () => {
|
|
33955
|
+
const isShowSettings = () => {
|
|
33956
|
+
return props2.isShowSettings ? vue.createVNode("div", {
|
|
33957
|
+
"class": `${prefixCls2}-settings`
|
|
33958
|
+
}, [vue.createVNode("div", {
|
|
33959
|
+
"class": `${prefixCls2}-count-box`
|
|
33960
|
+
}, [getSelectTotal.value]), vue.createVNode("div", {
|
|
33961
|
+
"class": `${prefixCls2}-setting-box`
|
|
33962
|
+
}, null)]) : null;
|
|
33963
|
+
};
|
|
33964
|
+
return vue.createVNode("div", {
|
|
33965
|
+
"class": prefixCls2
|
|
33966
|
+
}, [isShowSettings(), vue.createVNode(antDesignVue.Pagination, vue.mergeProps(props2.pagination, {
|
|
33967
|
+
"onChange": handlePageChange
|
|
33968
|
+
}), null)]);
|
|
33969
|
+
};
|
|
33970
|
+
}
|
|
33971
|
+
});
|
|
33927
33972
|
function _isSlot(s) {
|
|
33928
33973
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
33929
33974
|
}
|
|
@@ -33939,7 +33984,7 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
33939
33984
|
}) {
|
|
33940
33985
|
const {
|
|
33941
33986
|
prefixCls: prefixCls2
|
|
33942
|
-
} = use.useDesign("
|
|
33987
|
+
} = use.useDesign("table");
|
|
33943
33988
|
const getWrapperClass = vue.computed(() => {
|
|
33944
33989
|
return [prefixCls2, attrs.class, {
|
|
33945
33990
|
[`${prefixCls2}-form-container`]: props2.useSearchForm,
|
|
@@ -33974,14 +34019,14 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
33974
34019
|
tableLayout: "fixed",
|
|
33975
34020
|
rowSelection: vue.unref(getRowSelectionRef),
|
|
33976
34021
|
rowKey: vue.unref(getRowKey),
|
|
33977
|
-
// // @ts-ignore
|
|
33978
34022
|
columns: vue.toRaw(vue.unref(getViewColumns)),
|
|
33979
|
-
pagination:
|
|
34023
|
+
// pagination: toRaw(unref(getPaginationInfo)),
|
|
33980
34024
|
dataSource,
|
|
33981
34025
|
// footer: unref(getFooterProps),
|
|
33982
34026
|
...vue.unref(getExpandOption),
|
|
33983
34027
|
// 默认项
|
|
33984
|
-
showSorterTooltip: false
|
|
34028
|
+
showSorterTooltip: false,
|
|
34029
|
+
pagination: false
|
|
33985
34030
|
};
|
|
33986
34031
|
propsData = omit$1(propsData, ["class", "onChange"]);
|
|
33987
34032
|
return propsData;
|
|
@@ -34141,14 +34186,6 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
34141
34186
|
setCurSearchParams,
|
|
34142
34187
|
getCurSearchParams
|
|
34143
34188
|
});
|
|
34144
|
-
function handleTableChange(...args) {
|
|
34145
|
-
onTableChange.call(void 0, ...args);
|
|
34146
|
-
emit("change", ...args);
|
|
34147
|
-
const {
|
|
34148
|
-
onChange
|
|
34149
|
-
} = vue.unref(getProps);
|
|
34150
|
-
onChange && isFunction$2(onChange) && onChange.call(void 0, ...args);
|
|
34151
|
-
}
|
|
34152
34189
|
const {
|
|
34153
34190
|
getFormProps,
|
|
34154
34191
|
replaceFormSlotKey,
|
|
@@ -34180,6 +34217,14 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
34180
34217
|
function getCurSearchParams() {
|
|
34181
34218
|
return getCurSearchParamsHooks();
|
|
34182
34219
|
}
|
|
34220
|
+
function handleTableChange(...args) {
|
|
34221
|
+
onTableChange.call(void 0, ...args);
|
|
34222
|
+
emit("change", ...args);
|
|
34223
|
+
const {
|
|
34224
|
+
onChange
|
|
34225
|
+
} = vue.unref(getProps);
|
|
34226
|
+
onChange && isFunction$2(onChange) && onChange.call(void 0, ...args);
|
|
34227
|
+
}
|
|
34183
34228
|
expose(tableAction2);
|
|
34184
34229
|
emit("register", tableAction2, formActions);
|
|
34185
34230
|
return () => {
|
|
@@ -34236,6 +34281,13 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
34236
34281
|
})]
|
|
34237
34282
|
}) : null;
|
|
34238
34283
|
};
|
|
34284
|
+
const isShowFooter = () => {
|
|
34285
|
+
return getBindValues.value.isShowFooter ? vue.createVNode(TableFooter, {
|
|
34286
|
+
"isShowPagination": getBindValues.value.isShowPagination,
|
|
34287
|
+
"pagination": getPaginationInfo.value,
|
|
34288
|
+
"onPageChange": setPagination
|
|
34289
|
+
}, null) : null;
|
|
34290
|
+
};
|
|
34239
34291
|
const handleResizeColumn = (w, col) => {
|
|
34240
34292
|
col.width = w;
|
|
34241
34293
|
};
|
|
@@ -34254,7 +34306,7 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
34254
34306
|
emptyText: () => vue.createVNode("div", {
|
|
34255
34307
|
"class": "flex justify-center items-center",
|
|
34256
34308
|
"style": {
|
|
34257
|
-
height: `${getScrollRef.value.y - 41}px`
|
|
34309
|
+
height: `${getScrollRef.value.y - 41 - (getProps.value.showSummaryTotal ? 47 : 0)}px`
|
|
34258
34310
|
}
|
|
34259
34311
|
}, [vue.createVNode(antDesignVue.Empty, null, null)]),
|
|
34260
34312
|
bodyCell: (data) => {
|
|
@@ -34271,7 +34323,7 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
34271
34323
|
}
|
|
34272
34324
|
};
|
|
34273
34325
|
}, {})
|
|
34274
|
-
})]);
|
|
34326
|
+
}), isShowFooter()]);
|
|
34275
34327
|
};
|
|
34276
34328
|
}
|
|
34277
34329
|
});
|