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/es/index.js
CHANGED
|
@@ -8408,8 +8408,12 @@ const basicProps$7 = Object.assign({}, modalProps, {
|
|
|
8408
8408
|
keyboard: { type: Boolean, default: true },
|
|
8409
8409
|
maskStyle: Object,
|
|
8410
8410
|
okType: { type: String, default: "primary" },
|
|
8411
|
-
okButtonProps:
|
|
8412
|
-
|
|
8411
|
+
okButtonProps: {
|
|
8412
|
+
type: Object
|
|
8413
|
+
},
|
|
8414
|
+
cancelButtonProps: {
|
|
8415
|
+
type: Object
|
|
8416
|
+
},
|
|
8413
8417
|
title: { type: String },
|
|
8414
8418
|
visible: { type: Boolean },
|
|
8415
8419
|
width: [String, Number],
|
|
@@ -9050,6 +9054,9 @@ const _sfc_main$1e = defineComponent({
|
|
|
9050
9054
|
name: "BasicModalFooter",
|
|
9051
9055
|
props: basicProps$7,
|
|
9052
9056
|
emits: ["ok", "cancel"],
|
|
9057
|
+
components: {
|
|
9058
|
+
Button: Button$1
|
|
9059
|
+
},
|
|
9053
9060
|
setup(_, { emit }) {
|
|
9054
9061
|
function handleOk(e) {
|
|
9055
9062
|
emit("ok", e);
|
|
@@ -9061,17 +9068,17 @@ const _sfc_main$1e = defineComponent({
|
|
|
9061
9068
|
}
|
|
9062
9069
|
});
|
|
9063
9070
|
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9064
|
-
const
|
|
9071
|
+
const _component_Button = resolveComponent("Button");
|
|
9065
9072
|
return openBlock(), createElementBlock("div", null, [
|
|
9066
9073
|
renderSlot(_ctx.$slots, "insertFooter"),
|
|
9067
|
-
_ctx.showCancelBtn ? (openBlock(), createBlock(
|
|
9074
|
+
_ctx.showCancelBtn ? (openBlock(), createBlock(_component_Button, mergeProps({ key: 0 }, _ctx.cancelButtonProps, { onClick: _ctx.handleCancel }), {
|
|
9068
9075
|
default: withCtx(() => [
|
|
9069
9076
|
createTextVNode(toDisplayString(_ctx.cancelText), 1)
|
|
9070
9077
|
]),
|
|
9071
9078
|
_: 1
|
|
9072
9079
|
}, 16, ["onClick"])) : createCommentVNode("", true),
|
|
9073
9080
|
renderSlot(_ctx.$slots, "centerFooter"),
|
|
9074
|
-
_ctx.showOkBtn ? (openBlock(), createBlock(
|
|
9081
|
+
_ctx.showOkBtn ? (openBlock(), createBlock(_component_Button, mergeProps({
|
|
9075
9082
|
key: 1,
|
|
9076
9083
|
type: _ctx.okType,
|
|
9077
9084
|
onClick: _ctx.handleOk,
|
|
@@ -9304,7 +9311,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
9304
9311
|
"register",
|
|
9305
9312
|
"update:visible"
|
|
9306
9313
|
],
|
|
9307
|
-
setup(props2, { emit, attrs }) {
|
|
9314
|
+
setup(props2, { emit, attrs, slots }) {
|
|
9308
9315
|
const visibleRef = ref(false);
|
|
9309
9316
|
const propsRef = ref(null);
|
|
9310
9317
|
const modalWrapperRef = ref(null);
|
|
@@ -9328,7 +9335,8 @@ const _sfc_main$1a = defineComponent({
|
|
|
9328
9335
|
const getMergeProps = computed(() => {
|
|
9329
9336
|
return {
|
|
9330
9337
|
...props2,
|
|
9331
|
-
...unref(propsRef)
|
|
9338
|
+
...unref(propsRef),
|
|
9339
|
+
wrapClassName: `${props2.wrapClassName || ""} ${prefixCls2}`
|
|
9332
9340
|
};
|
|
9333
9341
|
});
|
|
9334
9342
|
const { handleFullScreen, getWrapClassName, fullScreenRef } = useFullScreen(
|
|
@@ -9363,6 +9371,17 @@ const _sfc_main$1a = defineComponent({
|
|
|
9363
9371
|
}
|
|
9364
9372
|
return omit$1(attr, "title");
|
|
9365
9373
|
});
|
|
9374
|
+
const omitBindValue = computed(() => {
|
|
9375
|
+
return omit$1(
|
|
9376
|
+
getProps.value.wrapperProps,
|
|
9377
|
+
"visible",
|
|
9378
|
+
"height",
|
|
9379
|
+
"modalFooterHeight"
|
|
9380
|
+
);
|
|
9381
|
+
});
|
|
9382
|
+
const omitSlotKeys = computed(() => {
|
|
9383
|
+
return Object.keys(omit$1(slots, ["default"]));
|
|
9384
|
+
});
|
|
9366
9385
|
const getWrapperHeight = computed(() => {
|
|
9367
9386
|
if (unref(fullScreenRef))
|
|
9368
9387
|
return void 0;
|
|
@@ -9375,8 +9394,10 @@ const _sfc_main$1a = defineComponent({
|
|
|
9375
9394
|
watch(
|
|
9376
9395
|
() => unref(visibleRef),
|
|
9377
9396
|
(v) => {
|
|
9397
|
+
var _a2;
|
|
9378
9398
|
emit("visible-change", v);
|
|
9379
9399
|
emit("update:visible", v);
|
|
9400
|
+
instance && ((_a2 = modalMethods.emitVisible) == null ? void 0 : _a2.call(modalMethods, v, instance.uid));
|
|
9380
9401
|
nextTick(() => {
|
|
9381
9402
|
if (props2.scrollTop && v && unref(modalWrapperRef)) {
|
|
9382
9403
|
unref(modalWrapperRef).scrollTop();
|
|
@@ -9427,6 +9448,7 @@ const _sfc_main$1a = defineComponent({
|
|
|
9427
9448
|
handleFullScreen(e);
|
|
9428
9449
|
}
|
|
9429
9450
|
return {
|
|
9451
|
+
prefixCls: prefixCls2,
|
|
9430
9452
|
handleCancel,
|
|
9431
9453
|
getBindValue,
|
|
9432
9454
|
getProps,
|
|
@@ -9435,7 +9457,9 @@ const _sfc_main$1a = defineComponent({
|
|
|
9435
9457
|
getMergeProps,
|
|
9436
9458
|
handleOk,
|
|
9437
9459
|
visibleRef,
|
|
9438
|
-
|
|
9460
|
+
omitBindValue,
|
|
9461
|
+
omitSlotKeys,
|
|
9462
|
+
// omit,
|
|
9439
9463
|
modalWrapperRef,
|
|
9440
9464
|
handleExtHeight,
|
|
9441
9465
|
handleHeightChange,
|
|
@@ -9444,33 +9468,30 @@ const _sfc_main$1a = defineComponent({
|
|
|
9444
9468
|
};
|
|
9445
9469
|
}
|
|
9446
9470
|
});
|
|
9471
|
+
const BasicModal_vue_vue_type_style_index_0_lang = "";
|
|
9447
9472
|
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
9448
9473
|
const _component_ModalClose = resolveComponent("ModalClose");
|
|
9449
9474
|
const _component_ModalHeader = resolveComponent("ModalHeader");
|
|
9450
9475
|
const _component_ModalFooter = resolveComponent("ModalFooter");
|
|
9451
9476
|
const _component_ModalWrapper = resolveComponent("ModalWrapper");
|
|
9452
9477
|
const _component_Modal = resolveComponent("Modal");
|
|
9453
|
-
return openBlock(), createBlock(_component_Modal, mergeProps(
|
|
9478
|
+
return openBlock(), createBlock(_component_Modal, mergeProps(_ctx.getBindValue, { onCancel: _ctx.handleCancel }), createSlots({
|
|
9454
9479
|
default: withCtx(() => [
|
|
9455
|
-
createVNode(_component_ModalWrapper, mergeProps(
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9459
|
-
|
|
9460
|
-
|
|
9461
|
-
|
|
9462
|
-
|
|
9463
|
-
|
|
9464
|
-
|
|
9465
|
-
|
|
9466
|
-
|
|
9467
|
-
|
|
9468
|
-
_ctx.
|
|
9469
|
-
|
|
9470
|
-
onExtHeight: _ctx.handleExtHeight,
|
|
9471
|
-
onHeightChange: _ctx.handleHeightChange
|
|
9472
|
-
}
|
|
9473
|
-
), {
|
|
9480
|
+
createVNode(_component_ModalWrapper, mergeProps({
|
|
9481
|
+
useWrapper: _ctx.getProps.useWrapper,
|
|
9482
|
+
footerOffset: _ctx.wrapperFooterOffset,
|
|
9483
|
+
fullScreen: _ctx.fullScreenRef,
|
|
9484
|
+
ref: "modalWrapperRef",
|
|
9485
|
+
loading: _ctx.getProps.loading,
|
|
9486
|
+
"loading-tip": _ctx.getProps.loadingTip,
|
|
9487
|
+
minHeight: _ctx.getProps.minHeight,
|
|
9488
|
+
height: _ctx.getWrapperHeight,
|
|
9489
|
+
visible: _ctx.visibleRef,
|
|
9490
|
+
modalFooterHeight: _ctx.footer !== void 0 && !_ctx.footer ? 0 : void 0
|
|
9491
|
+
}, _ctx.omitBindValue, {
|
|
9492
|
+
onExtHeight: _ctx.handleExtHeight,
|
|
9493
|
+
onHeightChange: _ctx.handleHeightChange
|
|
9494
|
+
}), {
|
|
9474
9495
|
default: withCtx(() => [
|
|
9475
9496
|
renderSlot(_ctx.$slots, "default")
|
|
9476
9497
|
]),
|
|
@@ -9521,7 +9542,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9521
9542
|
]),
|
|
9522
9543
|
key: "2"
|
|
9523
9544
|
} : void 0,
|
|
9524
|
-
renderList(
|
|
9545
|
+
renderList(_ctx.omitSlotKeys, (item) => {
|
|
9525
9546
|
return {
|
|
9526
9547
|
name: item,
|
|
9527
9548
|
fn: withCtx((data) => [
|
|
@@ -14598,7 +14619,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
14598
14619
|
}
|
|
14599
14620
|
});
|
|
14600
14621
|
const HeaderCell_vue_vue_type_style_index_0_lang$1 = "";
|
|
14601
|
-
function itemRender
|
|
14622
|
+
function itemRender({
|
|
14602
14623
|
page,
|
|
14603
14624
|
type,
|
|
14604
14625
|
originalElement
|
|
@@ -14636,7 +14657,7 @@ function usePagination$2(refProps) {
|
|
|
14636
14657
|
showTotal: (total) => `共 ${total} 条数据`,
|
|
14637
14658
|
showSizeChanger: true,
|
|
14638
14659
|
pageSizeOptions: PAGE_SIZE_OPTIONS$1,
|
|
14639
|
-
itemRender
|
|
14660
|
+
itemRender,
|
|
14640
14661
|
showQuickJumper: true,
|
|
14641
14662
|
...isBoolean(pagination) ? {} : pagination,
|
|
14642
14663
|
...unref(configRef)
|
|
@@ -17729,14 +17750,14 @@ function _sfc_render$u(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
17729
17750
|
scroll: _ctx.scroll
|
|
17730
17751
|
}, null, 8, ["dataSource", "rowKey", "columns", "scroll"])) : createCommentVNode("", true);
|
|
17731
17752
|
}
|
|
17732
|
-
const TableFooter = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$u]]);
|
|
17753
|
+
const TableFooter$1 = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$u]]);
|
|
17733
17754
|
function useTableFooter(propsRef, scrollRef, tableElRef, getDataSourceRef) {
|
|
17734
17755
|
const getIsEmptyData = computed(() => {
|
|
17735
17756
|
return (unref(getDataSourceRef) || []).length === 0;
|
|
17736
17757
|
});
|
|
17737
17758
|
const getFooterProps = computed(() => {
|
|
17738
17759
|
const { summaryFunc, showSummary, summaryData } = unref(propsRef);
|
|
17739
|
-
return showSummary && !unref(getIsEmptyData) ? () => h(TableFooter, { summaryFunc, summaryData, scroll: unref(scrollRef) }) : void 0;
|
|
17760
|
+
return showSummary && !unref(getIsEmptyData) ? () => h(TableFooter$1, { summaryFunc, summaryData, scroll: unref(scrollRef) }) : void 0;
|
|
17740
17761
|
});
|
|
17741
17762
|
watchEffect(() => {
|
|
17742
17763
|
handleSummary();
|
|
@@ -19818,7 +19839,9 @@ const _sfc_main$v = defineComponent({
|
|
|
19818
19839
|
() => visibleRef.value,
|
|
19819
19840
|
(visible) => {
|
|
19820
19841
|
nextTick(() => {
|
|
19842
|
+
var _a2;
|
|
19821
19843
|
emit("visible-change", visible);
|
|
19844
|
+
instance && ((_a2 = drawerInstance.emitVisible) == null ? void 0 : _a2.call(drawerInstance, visible, instance.uid));
|
|
19822
19845
|
});
|
|
19823
19846
|
}
|
|
19824
19847
|
);
|
|
@@ -30672,6 +30695,13 @@ const setConstConfig = (config) => {
|
|
|
30672
30695
|
DEFAULT_ALIGN = config.align;
|
|
30673
30696
|
};
|
|
30674
30697
|
const basicProps = reactive({
|
|
30698
|
+
isShowPagination: {
|
|
30699
|
+
type: Boolean
|
|
30700
|
+
},
|
|
30701
|
+
isShowFooter: {
|
|
30702
|
+
type: Boolean,
|
|
30703
|
+
default: true
|
|
30704
|
+
},
|
|
30675
30705
|
clickToRowSelect: { type: Boolean, default: true },
|
|
30676
30706
|
isTreeTable: Boolean,
|
|
30677
30707
|
tableSetting: {
|
|
@@ -30838,7 +30868,7 @@ const basicProps = reactive({
|
|
|
30838
30868
|
default: DEFAULT_SIZE
|
|
30839
30869
|
}
|
|
30840
30870
|
});
|
|
30841
|
-
reactive({
|
|
30871
|
+
const paginationProps = reactive({
|
|
30842
30872
|
type: Object,
|
|
30843
30873
|
default: () => {
|
|
30844
30874
|
return {
|
|
@@ -30925,18 +30955,6 @@ function useLoading(props2) {
|
|
|
30925
30955
|
}
|
|
30926
30956
|
return { getLoading, setLoading };
|
|
30927
30957
|
}
|
|
30928
|
-
function itemRender({
|
|
30929
|
-
page,
|
|
30930
|
-
type,
|
|
30931
|
-
originalElement
|
|
30932
|
-
}) {
|
|
30933
|
-
if (type === "prev") {
|
|
30934
|
-
return page === 0 ? null : createVNode(LeftOutlined$1, null, null);
|
|
30935
|
-
} else if (type === "next") {
|
|
30936
|
-
return page === 1 ? null : createVNode(RightOutlined$1, null, null);
|
|
30937
|
-
}
|
|
30938
|
-
return originalElement;
|
|
30939
|
-
}
|
|
30940
30958
|
function usePagination(refProps) {
|
|
30941
30959
|
const configRef = ref({});
|
|
30942
30960
|
const show = ref(true);
|
|
@@ -30952,9 +30970,6 @@ function usePagination(refProps) {
|
|
|
30952
30970
|
const {
|
|
30953
30971
|
pagination
|
|
30954
30972
|
} = unref(refProps);
|
|
30955
|
-
if (!unref(show) || isBoolean(pagination) && !pagination) {
|
|
30956
|
-
return false;
|
|
30957
|
-
}
|
|
30958
30973
|
return {
|
|
30959
30974
|
current: 1,
|
|
30960
30975
|
pageSize: PAGE_SIZE,
|
|
@@ -30963,7 +30978,7 @@ function usePagination(refProps) {
|
|
|
30963
30978
|
showTotal: (total) => `共 ${total} 条数据`,
|
|
30964
30979
|
showSizeChanger: true,
|
|
30965
30980
|
pageSizeOptions: PAGE_SIZE_OPTIONS,
|
|
30966
|
-
itemRender,
|
|
30981
|
+
// itemRender: itemRender,
|
|
30967
30982
|
showQuickJumper: true,
|
|
30968
30983
|
...isBoolean(pagination) ? {} : pagination,
|
|
30969
30984
|
...unref(configRef)
|
|
@@ -31139,7 +31154,7 @@ function useDataSource(propsRef, {
|
|
|
31139
31154
|
}
|
|
31140
31155
|
);
|
|
31141
31156
|
let oldSortInfoRef;
|
|
31142
|
-
function handleTableChange(pagination, filters, sorter) {
|
|
31157
|
+
function handleTableChange(pagination, filters, sorter, extra) {
|
|
31143
31158
|
const isChangeSorter = !eq(oldSortInfoRef, sorter.order);
|
|
31144
31159
|
const { clearSelectOnPageChange, sortFn, filterFn } = unref(propsRef);
|
|
31145
31160
|
if (clearSelectOnPageChange) {
|
|
@@ -33383,12 +33398,11 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33383
33398
|
tableHeightRef.value = height;
|
|
33384
33399
|
(_a2 = modalFn == null ? void 0 : modalFn.redoModalHeight) == null ? void 0 : _a2.call(modalFn);
|
|
33385
33400
|
}
|
|
33386
|
-
let paginationEl;
|
|
33387
|
-
let footerEl;
|
|
33388
33401
|
let bodyEl;
|
|
33389
33402
|
async function calcTableHeight() {
|
|
33390
33403
|
var _a2, _b, _c;
|
|
33391
33404
|
const {
|
|
33405
|
+
isShowFooter,
|
|
33392
33406
|
resizeHeightOffset,
|
|
33393
33407
|
pagination,
|
|
33394
33408
|
maxHeight,
|
|
@@ -33427,27 +33441,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33427
33441
|
if (!headEl)
|
|
33428
33442
|
return;
|
|
33429
33443
|
let paddingHeight = propsRef.value.useTableWrapper ? 20 : 10;
|
|
33430
|
-
let
|
|
33431
|
-
if (!!isBoolean(pagination) && tableData.length !== 0) {
|
|
33432
|
-
paginationEl = tableEl.querySelector(".ant-pagination");
|
|
33433
|
-
if (paginationEl) {
|
|
33434
|
-
const offsetHeight = paginationEl.offsetHeight;
|
|
33435
|
-
paginationHeight += offsetHeight || 0;
|
|
33436
|
-
} else {
|
|
33437
|
-
paginationHeight += 24;
|
|
33438
|
-
}
|
|
33439
|
-
} else {
|
|
33440
|
-
paginationHeight = 0;
|
|
33441
|
-
}
|
|
33442
|
-
let footerHeight = 0;
|
|
33443
|
-
if (!isBoolean(pagination)) {
|
|
33444
|
-
if (!footerEl) {
|
|
33445
|
-
footerEl = tableEl.querySelector(".ant-table-footer");
|
|
33446
|
-
} else {
|
|
33447
|
-
const offsetHeight = footerEl.offsetHeight;
|
|
33448
|
-
footerHeight += offsetHeight || 0;
|
|
33449
|
-
}
|
|
33450
|
-
}
|
|
33444
|
+
let footerHeight = isShowFooter ? 24 : 0;
|
|
33451
33445
|
let headerHeight = 0;
|
|
33452
33446
|
if (headEl) {
|
|
33453
33447
|
headerHeight = headEl.offsetHeight + 1;
|
|
@@ -33473,7 +33467,8 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
33473
33467
|
} else {
|
|
33474
33468
|
bottomIncludeBody = getViewportOffset(headEl).bottomIncludeBody;
|
|
33475
33469
|
}
|
|
33476
|
-
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - paginationHeight -
|
|
33470
|
+
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - // paginationHeight -
|
|
33471
|
+
footerHeight - headerHeight;
|
|
33477
33472
|
height = height > maxHeight ? maxHeight : height;
|
|
33478
33473
|
height = Math.floor(height);
|
|
33479
33474
|
setHeight(height);
|
|
@@ -33900,6 +33895,56 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33900
33895
|
}
|
|
33901
33896
|
});
|
|
33902
33897
|
const HeaderCell_vue_vue_type_style_index_0_lang = "";
|
|
33898
|
+
const tableFooter = "";
|
|
33899
|
+
const TableFooter = /* @__PURE__ */ defineComponent({
|
|
33900
|
+
emits: ["pageChange"],
|
|
33901
|
+
props: {
|
|
33902
|
+
isShowSettings: {
|
|
33903
|
+
type: Boolean,
|
|
33904
|
+
default: true
|
|
33905
|
+
},
|
|
33906
|
+
isShowPagination: {
|
|
33907
|
+
type: Boolean
|
|
33908
|
+
},
|
|
33909
|
+
pagination: paginationProps
|
|
33910
|
+
},
|
|
33911
|
+
setup(props2, {
|
|
33912
|
+
emit
|
|
33913
|
+
}) {
|
|
33914
|
+
const {
|
|
33915
|
+
prefixCls: prefixCls2
|
|
33916
|
+
} = useDesign$1("table-footer");
|
|
33917
|
+
const {
|
|
33918
|
+
getSelectRowKeys
|
|
33919
|
+
} = useTableContext();
|
|
33920
|
+
const getSelectTotal = computed(() => {
|
|
33921
|
+
var _a2;
|
|
33922
|
+
return `已选择${(_a2 = getSelectRowKeys()) == null ? void 0 : _a2.length}条`;
|
|
33923
|
+
});
|
|
33924
|
+
const handlePageChange = (current, pageSize) => {
|
|
33925
|
+
emit("pageChange", {
|
|
33926
|
+
current,
|
|
33927
|
+
pageSize
|
|
33928
|
+
});
|
|
33929
|
+
};
|
|
33930
|
+
return () => {
|
|
33931
|
+
const isShowSettings = () => {
|
|
33932
|
+
return props2.isShowSettings ? createVNode("div", {
|
|
33933
|
+
"class": `${prefixCls2}-settings`
|
|
33934
|
+
}, [createVNode("div", {
|
|
33935
|
+
"class": `${prefixCls2}-count-box`
|
|
33936
|
+
}, [getSelectTotal.value]), createVNode("div", {
|
|
33937
|
+
"class": `${prefixCls2}-setting-box`
|
|
33938
|
+
}, null)]) : null;
|
|
33939
|
+
};
|
|
33940
|
+
return createVNode("div", {
|
|
33941
|
+
"class": prefixCls2
|
|
33942
|
+
}, [isShowSettings(), createVNode(Pagination$1, mergeProps(props2.pagination, {
|
|
33943
|
+
"onChange": handlePageChange
|
|
33944
|
+
}), null)]);
|
|
33945
|
+
};
|
|
33946
|
+
}
|
|
33947
|
+
});
|
|
33903
33948
|
function _isSlot(s) {
|
|
33904
33949
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
33905
33950
|
}
|
|
@@ -33915,7 +33960,7 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
33915
33960
|
}) {
|
|
33916
33961
|
const {
|
|
33917
33962
|
prefixCls: prefixCls2
|
|
33918
|
-
} = useDesign$1("
|
|
33963
|
+
} = useDesign$1("table");
|
|
33919
33964
|
const getWrapperClass = computed(() => {
|
|
33920
33965
|
return [prefixCls2, attrs.class, {
|
|
33921
33966
|
[`${prefixCls2}-form-container`]: props2.useSearchForm,
|
|
@@ -33950,14 +33995,14 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
33950
33995
|
tableLayout: "fixed",
|
|
33951
33996
|
rowSelection: unref(getRowSelectionRef),
|
|
33952
33997
|
rowKey: unref(getRowKey),
|
|
33953
|
-
// // @ts-ignore
|
|
33954
33998
|
columns: toRaw(unref(getViewColumns)),
|
|
33955
|
-
pagination: toRaw(unref(getPaginationInfo)),
|
|
33999
|
+
// pagination: toRaw(unref(getPaginationInfo)),
|
|
33956
34000
|
dataSource,
|
|
33957
34001
|
// footer: unref(getFooterProps),
|
|
33958
34002
|
...unref(getExpandOption),
|
|
33959
34003
|
// 默认项
|
|
33960
|
-
showSorterTooltip: false
|
|
34004
|
+
showSorterTooltip: false,
|
|
34005
|
+
pagination: false
|
|
33961
34006
|
};
|
|
33962
34007
|
propsData = omit$1(propsData, ["class", "onChange"]);
|
|
33963
34008
|
return propsData;
|
|
@@ -34117,14 +34162,6 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
34117
34162
|
setCurSearchParams,
|
|
34118
34163
|
getCurSearchParams
|
|
34119
34164
|
});
|
|
34120
|
-
function handleTableChange(...args) {
|
|
34121
|
-
onTableChange.call(void 0, ...args);
|
|
34122
|
-
emit("change", ...args);
|
|
34123
|
-
const {
|
|
34124
|
-
onChange
|
|
34125
|
-
} = unref(getProps);
|
|
34126
|
-
onChange && isFunction$2(onChange) && onChange.call(void 0, ...args);
|
|
34127
|
-
}
|
|
34128
34165
|
const {
|
|
34129
34166
|
getFormProps,
|
|
34130
34167
|
replaceFormSlotKey,
|
|
@@ -34156,6 +34193,14 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
34156
34193
|
function getCurSearchParams() {
|
|
34157
34194
|
return getCurSearchParamsHooks();
|
|
34158
34195
|
}
|
|
34196
|
+
function handleTableChange(...args) {
|
|
34197
|
+
onTableChange.call(void 0, ...args);
|
|
34198
|
+
emit("change", ...args);
|
|
34199
|
+
const {
|
|
34200
|
+
onChange
|
|
34201
|
+
} = unref(getProps);
|
|
34202
|
+
onChange && isFunction$2(onChange) && onChange.call(void 0, ...args);
|
|
34203
|
+
}
|
|
34159
34204
|
expose(tableAction2);
|
|
34160
34205
|
emit("register", tableAction2, formActions);
|
|
34161
34206
|
return () => {
|
|
@@ -34212,6 +34257,13 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
34212
34257
|
})]
|
|
34213
34258
|
}) : null;
|
|
34214
34259
|
};
|
|
34260
|
+
const isShowFooter = () => {
|
|
34261
|
+
return getBindValues.value.isShowFooter ? createVNode(TableFooter, {
|
|
34262
|
+
"isShowPagination": getBindValues.value.isShowPagination,
|
|
34263
|
+
"pagination": getPaginationInfo.value,
|
|
34264
|
+
"onPageChange": setPagination
|
|
34265
|
+
}, null) : null;
|
|
34266
|
+
};
|
|
34215
34267
|
const handleResizeColumn = (w, col) => {
|
|
34216
34268
|
col.width = w;
|
|
34217
34269
|
};
|
|
@@ -34230,7 +34282,7 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
34230
34282
|
emptyText: () => createVNode("div", {
|
|
34231
34283
|
"class": "flex justify-center items-center",
|
|
34232
34284
|
"style": {
|
|
34233
|
-
height: `${getScrollRef.value.y - 41}px`
|
|
34285
|
+
height: `${getScrollRef.value.y - 41 - (getProps.value.showSummaryTotal ? 47 : 0)}px`
|
|
34234
34286
|
}
|
|
34235
34287
|
}, [createVNode(Empty$3, null, null)]),
|
|
34236
34288
|
bodyCell: (data) => {
|
|
@@ -34247,7 +34299,7 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
34247
34299
|
}
|
|
34248
34300
|
};
|
|
34249
34301
|
}, {})
|
|
34250
|
-
})]);
|
|
34302
|
+
}), isShowFooter()]);
|
|
34251
34303
|
};
|
|
34252
34304
|
}
|
|
34253
34305
|
});
|