3h1-ui 3.0.0-next.21 → 3.0.0-next.23
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 +18 -16
- package/es/style.css +4 -4
- package/lib/index.js +18 -16
- package/lib/style.css +4 -4
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -30823,6 +30823,10 @@ const shyTableBasicProps = reactive({
|
|
|
30823
30823
|
type: Boolean,
|
|
30824
30824
|
default: true
|
|
30825
30825
|
},
|
|
30826
|
+
isShowFooterSettings: {
|
|
30827
|
+
type: Boolean,
|
|
30828
|
+
default: true
|
|
30829
|
+
},
|
|
30826
30830
|
isShowFooter: {
|
|
30827
30831
|
type: Boolean,
|
|
30828
30832
|
default: true
|
|
@@ -34423,9 +34427,11 @@ function usePagination(refProps) {
|
|
|
34423
34427
|
const getPaginationInfo = computed(() => {
|
|
34424
34428
|
const {
|
|
34425
34429
|
pagination,
|
|
34426
|
-
isShowPagination
|
|
34430
|
+
isShowPagination,
|
|
34431
|
+
isShowFooterSettings
|
|
34427
34432
|
} = unref(refProps);
|
|
34428
34433
|
return {
|
|
34434
|
+
isShowFooterSettings,
|
|
34429
34435
|
isShowPagination,
|
|
34430
34436
|
current: 1,
|
|
34431
34437
|
pageSize: PAGE_SIZE,
|
|
@@ -36760,7 +36766,6 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
36760
36766
|
const {
|
|
36761
36767
|
isShowFooter,
|
|
36762
36768
|
resizeHeightOffset,
|
|
36763
|
-
pagination,
|
|
36764
36769
|
maxHeight,
|
|
36765
36770
|
isCanResizeParent,
|
|
36766
36771
|
useSearchForm
|
|
@@ -36821,7 +36826,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
36821
36826
|
}
|
|
36822
36827
|
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - footerHeight - tableHeaderHeight - headerHeight;
|
|
36823
36828
|
height = height > maxHeight ? maxHeight : height;
|
|
36824
|
-
height = Math.floor(height);
|
|
36829
|
+
height = Math.floor(height + 2);
|
|
36825
36830
|
setHeight(height);
|
|
36826
36831
|
bodyEl.style.height = `${height}px`;
|
|
36827
36832
|
}
|
|
@@ -37250,9 +37255,8 @@ const tableFooter = "";
|
|
|
37250
37255
|
const ShyTableFooter = /* @__PURE__ */ defineComponent({
|
|
37251
37256
|
emits: ["pageChange"],
|
|
37252
37257
|
props: {
|
|
37253
|
-
|
|
37254
|
-
type: Boolean
|
|
37255
|
-
default: true
|
|
37258
|
+
isShowFooterSettings: {
|
|
37259
|
+
type: Boolean
|
|
37256
37260
|
},
|
|
37257
37261
|
isShowPagination: {
|
|
37258
37262
|
type: Boolean
|
|
@@ -37293,9 +37297,7 @@ const ShyTableFooter = /* @__PURE__ */ defineComponent({
|
|
|
37293
37297
|
return () => {
|
|
37294
37298
|
const isShowSettings = () => {
|
|
37295
37299
|
var _a2;
|
|
37296
|
-
return props2.
|
|
37297
|
-
"class": `${prefixCls2}-settings`
|
|
37298
|
-
}, [createVNode("div", {
|
|
37300
|
+
return props2.isShowFooterSettings ? createVNode(Fragment, null, [createVNode("div", {
|
|
37299
37301
|
"class": `${prefixCls2}-count-box`
|
|
37300
37302
|
}, [getSelectTotal.value]), createVNode("div", {
|
|
37301
37303
|
"class": `${prefixCls2}-settings-box`
|
|
@@ -37308,7 +37310,9 @@ const ShyTableFooter = /* @__PURE__ */ defineComponent({
|
|
|
37308
37310
|
};
|
|
37309
37311
|
return createVNode("div", {
|
|
37310
37312
|
"class": prefixCls2
|
|
37311
|
-
}, [
|
|
37313
|
+
}, [createVNode("div", {
|
|
37314
|
+
"class": `${prefixCls2}-settings`
|
|
37315
|
+
}, [isShowSettings()]), isShowPagination()]);
|
|
37312
37316
|
};
|
|
37313
37317
|
}
|
|
37314
37318
|
});
|
|
@@ -37426,7 +37430,6 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
37426
37430
|
}, emit);
|
|
37427
37431
|
const {
|
|
37428
37432
|
schemasAdvancedSearch,
|
|
37429
|
-
// schemasAdvancedSearchString,
|
|
37430
37433
|
schemasAdvancedSearchGlobal,
|
|
37431
37434
|
isVisibleAdvancedSearch,
|
|
37432
37435
|
openAdvancedSearch,
|
|
@@ -37608,8 +37611,9 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
37608
37611
|
}, null) : null;
|
|
37609
37612
|
};
|
|
37610
37613
|
const isShowSummary = () => {
|
|
37614
|
+
var _a2, _b;
|
|
37611
37615
|
let _slot2;
|
|
37612
|
-
return getProps.value.showSummaryTotal ? createVNode(TableSummary, null, {
|
|
37616
|
+
return ((_a2 = getDataSourceRef.value) == null ? void 0 : _a2.length) && ((_b = getProps.value) == null ? void 0 : _b.showSummaryTotal) ? createVNode(TableSummary, null, {
|
|
37613
37617
|
default: () => [createVNode(TableSummaryRow, null, _isSlot(_slot2 = getColumnsSummary.value.map((item, index2) => {
|
|
37614
37618
|
if (index2 === 0)
|
|
37615
37619
|
return createVNode(TableSummaryCell, {
|
|
@@ -37634,6 +37638,7 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
37634
37638
|
};
|
|
37635
37639
|
const isShowFooter = () => {
|
|
37636
37640
|
return getBindValues.value.isShowFooter ? createVNode(ShyTableFooter, {
|
|
37641
|
+
"isShowFooterSettings": getBindValues.value.isShowFooterSettings,
|
|
37637
37642
|
"isShowPagination": getBindValues.value.isShowPagination,
|
|
37638
37643
|
"pagination": getPaginationInfo.value,
|
|
37639
37644
|
"onPageChange": handlePageChange
|
|
@@ -37661,10 +37666,7 @@ const ShyTable = /* @__PURE__ */ defineComponent({
|
|
|
37661
37666
|
};
|
|
37662
37667
|
const emptyText = () => {
|
|
37663
37668
|
return createVNode("div", {
|
|
37664
|
-
"class": "flex justify-center items-center"
|
|
37665
|
-
"style": {
|
|
37666
|
-
height: `${getScrollRef.value.y - 41 - (getProps.value.showSummaryTotal ? 47 : 0)}px`
|
|
37667
|
-
}
|
|
37669
|
+
"class": "flex justify-center items-center"
|
|
37668
37670
|
}, [createVNode(Empty$3, null, null)]);
|
|
37669
37671
|
};
|
|
37670
37672
|
return createVNode("div", {
|
package/es/style.css
CHANGED
|
@@ -847,22 +847,22 @@ mark {
|
|
|
847
847
|
background-color: var(--gray-0);
|
|
848
848
|
transition: background-color outline-width ease-in-out 0.3s;
|
|
849
849
|
}
|
|
850
|
-
:is(.ant-table-body)::-webkit-scrollbar {
|
|
850
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar {
|
|
851
851
|
position: absolute;
|
|
852
852
|
height: 10px;
|
|
853
853
|
width: 10px;
|
|
854
854
|
}
|
|
855
|
-
:is(.ant-table-body)::-webkit-scrollbar-thumb {
|
|
855
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb {
|
|
856
856
|
box-shadow: inset 0 0 10px 10px var(--gray-2);
|
|
857
857
|
border: solid 2px transparent;
|
|
858
858
|
background-color: transparent;
|
|
859
859
|
border-radius: 10px;
|
|
860
860
|
}
|
|
861
|
-
:is(.ant-table-body)::-webkit-scrollbar-thumb:active, :is(.ant-table-body)::-webkit-scrollbar-thumb:hover {
|
|
861
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb:active, :is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb:hover {
|
|
862
862
|
box-shadow: inset 0 0 10px 10px var(--gray-3);
|
|
863
863
|
background-color: transparent;
|
|
864
864
|
}
|
|
865
|
-
:is(.ant-table-body)::-webkit-scrollbar-track {
|
|
865
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-track {
|
|
866
866
|
border-radius: 10px;
|
|
867
867
|
border: solid 2px transparent;
|
|
868
868
|
background: transparent;
|
package/lib/index.js
CHANGED
|
@@ -30847,6 +30847,10 @@ const shyTableBasicProps = vue.reactive({
|
|
|
30847
30847
|
type: Boolean,
|
|
30848
30848
|
default: true
|
|
30849
30849
|
},
|
|
30850
|
+
isShowFooterSettings: {
|
|
30851
|
+
type: Boolean,
|
|
30852
|
+
default: true
|
|
30853
|
+
},
|
|
30850
30854
|
isShowFooter: {
|
|
30851
30855
|
type: Boolean,
|
|
30852
30856
|
default: true
|
|
@@ -34447,9 +34451,11 @@ function usePagination(refProps) {
|
|
|
34447
34451
|
const getPaginationInfo = vue.computed(() => {
|
|
34448
34452
|
const {
|
|
34449
34453
|
pagination,
|
|
34450
|
-
isShowPagination
|
|
34454
|
+
isShowPagination,
|
|
34455
|
+
isShowFooterSettings
|
|
34451
34456
|
} = vue.unref(refProps);
|
|
34452
34457
|
return {
|
|
34458
|
+
isShowFooterSettings,
|
|
34453
34459
|
isShowPagination,
|
|
34454
34460
|
current: 1,
|
|
34455
34461
|
pageSize: PAGE_SIZE,
|
|
@@ -36784,7 +36790,6 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
36784
36790
|
const {
|
|
36785
36791
|
isShowFooter,
|
|
36786
36792
|
resizeHeightOffset,
|
|
36787
|
-
pagination,
|
|
36788
36793
|
maxHeight,
|
|
36789
36794
|
isCanResizeParent,
|
|
36790
36795
|
useSearchForm
|
|
@@ -36845,7 +36850,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
36845
36850
|
}
|
|
36846
36851
|
let height = bottomIncludeBody - (resizeHeightOffset || 0) - paddingHeight - footerHeight - tableHeaderHeight - headerHeight;
|
|
36847
36852
|
height = height > maxHeight ? maxHeight : height;
|
|
36848
|
-
height = Math.floor(height);
|
|
36853
|
+
height = Math.floor(height + 2);
|
|
36849
36854
|
setHeight(height);
|
|
36850
36855
|
bodyEl.style.height = `${height}px`;
|
|
36851
36856
|
}
|
|
@@ -37274,9 +37279,8 @@ const tableFooter = "";
|
|
|
37274
37279
|
const ShyTableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
37275
37280
|
emits: ["pageChange"],
|
|
37276
37281
|
props: {
|
|
37277
|
-
|
|
37278
|
-
type: Boolean
|
|
37279
|
-
default: true
|
|
37282
|
+
isShowFooterSettings: {
|
|
37283
|
+
type: Boolean
|
|
37280
37284
|
},
|
|
37281
37285
|
isShowPagination: {
|
|
37282
37286
|
type: Boolean
|
|
@@ -37317,9 +37321,7 @@ const ShyTableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
37317
37321
|
return () => {
|
|
37318
37322
|
const isShowSettings = () => {
|
|
37319
37323
|
var _a2;
|
|
37320
|
-
return props2.
|
|
37321
|
-
"class": `${prefixCls2}-settings`
|
|
37322
|
-
}, [vue.createVNode("div", {
|
|
37324
|
+
return props2.isShowFooterSettings ? vue.createVNode(vue.Fragment, null, [vue.createVNode("div", {
|
|
37323
37325
|
"class": `${prefixCls2}-count-box`
|
|
37324
37326
|
}, [getSelectTotal.value]), vue.createVNode("div", {
|
|
37325
37327
|
"class": `${prefixCls2}-settings-box`
|
|
@@ -37332,7 +37334,9 @@ const ShyTableFooter = /* @__PURE__ */ vue.defineComponent({
|
|
|
37332
37334
|
};
|
|
37333
37335
|
return vue.createVNode("div", {
|
|
37334
37336
|
"class": prefixCls2
|
|
37335
|
-
}, [
|
|
37337
|
+
}, [vue.createVNode("div", {
|
|
37338
|
+
"class": `${prefixCls2}-settings`
|
|
37339
|
+
}, [isShowSettings()]), isShowPagination()]);
|
|
37336
37340
|
};
|
|
37337
37341
|
}
|
|
37338
37342
|
});
|
|
@@ -37450,7 +37454,6 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
37450
37454
|
}, emit);
|
|
37451
37455
|
const {
|
|
37452
37456
|
schemasAdvancedSearch,
|
|
37453
|
-
// schemasAdvancedSearchString,
|
|
37454
37457
|
schemasAdvancedSearchGlobal,
|
|
37455
37458
|
isVisibleAdvancedSearch,
|
|
37456
37459
|
openAdvancedSearch,
|
|
@@ -37632,8 +37635,9 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
37632
37635
|
}, null) : null;
|
|
37633
37636
|
};
|
|
37634
37637
|
const isShowSummary = () => {
|
|
37638
|
+
var _a2, _b;
|
|
37635
37639
|
let _slot2;
|
|
37636
|
-
return getProps.value.showSummaryTotal ? vue.createVNode(antDesignVue.TableSummary, null, {
|
|
37640
|
+
return ((_a2 = getDataSourceRef.value) == null ? void 0 : _a2.length) && ((_b = getProps.value) == null ? void 0 : _b.showSummaryTotal) ? vue.createVNode(antDesignVue.TableSummary, null, {
|
|
37637
37641
|
default: () => [vue.createVNode(antDesignVue.TableSummaryRow, null, _isSlot(_slot2 = getColumnsSummary.value.map((item, index2) => {
|
|
37638
37642
|
if (index2 === 0)
|
|
37639
37643
|
return vue.createVNode(antDesignVue.TableSummaryCell, {
|
|
@@ -37658,6 +37662,7 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
37658
37662
|
};
|
|
37659
37663
|
const isShowFooter = () => {
|
|
37660
37664
|
return getBindValues.value.isShowFooter ? vue.createVNode(ShyTableFooter, {
|
|
37665
|
+
"isShowFooterSettings": getBindValues.value.isShowFooterSettings,
|
|
37661
37666
|
"isShowPagination": getBindValues.value.isShowPagination,
|
|
37662
37667
|
"pagination": getPaginationInfo.value,
|
|
37663
37668
|
"onPageChange": handlePageChange
|
|
@@ -37685,10 +37690,7 @@ const ShyTable = /* @__PURE__ */ vue.defineComponent({
|
|
|
37685
37690
|
};
|
|
37686
37691
|
const emptyText = () => {
|
|
37687
37692
|
return vue.createVNode("div", {
|
|
37688
|
-
"class": "flex justify-center items-center"
|
|
37689
|
-
"style": {
|
|
37690
|
-
height: `${getScrollRef.value.y - 41 - (getProps.value.showSummaryTotal ? 47 : 0)}px`
|
|
37691
|
-
}
|
|
37693
|
+
"class": "flex justify-center items-center"
|
|
37692
37694
|
}, [vue.createVNode(antDesignVue.Empty, null, null)]);
|
|
37693
37695
|
};
|
|
37694
37696
|
return vue.createVNode("div", {
|
package/lib/style.css
CHANGED
|
@@ -847,22 +847,22 @@ mark {
|
|
|
847
847
|
background-color: var(--gray-0);
|
|
848
848
|
transition: background-color outline-width ease-in-out 0.3s;
|
|
849
849
|
}
|
|
850
|
-
:is(.ant-table-body)::-webkit-scrollbar {
|
|
850
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar {
|
|
851
851
|
position: absolute;
|
|
852
852
|
height: 10px;
|
|
853
853
|
width: 10px;
|
|
854
854
|
}
|
|
855
|
-
:is(.ant-table-body)::-webkit-scrollbar-thumb {
|
|
855
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb {
|
|
856
856
|
box-shadow: inset 0 0 10px 10px var(--gray-2);
|
|
857
857
|
border: solid 2px transparent;
|
|
858
858
|
background-color: transparent;
|
|
859
859
|
border-radius: 10px;
|
|
860
860
|
}
|
|
861
|
-
:is(.ant-table-body)::-webkit-scrollbar-thumb:active, :is(.ant-table-body)::-webkit-scrollbar-thumb:hover {
|
|
861
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb:active, :is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-thumb:hover {
|
|
862
862
|
box-shadow: inset 0 0 10px 10px var(--gray-3);
|
|
863
863
|
background-color: transparent;
|
|
864
864
|
}
|
|
865
|
-
:is(.ant-table-body)::-webkit-scrollbar-track {
|
|
865
|
+
:is(.ant-table-body, .ant-table-content)::-webkit-scrollbar-track {
|
|
866
866
|
border-radius: 10px;
|
|
867
867
|
border: solid 2px transparent;
|
|
868
868
|
background: transparent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue-json-pretty": "^2.2.3",
|
|
30
30
|
"vxe-table": "^4.3.6",
|
|
31
31
|
"xe-utils": "^3.5.7",
|
|
32
|
+
"@shy-plugins/use": "1.0.0-next.1",
|
|
32
33
|
"@shy-plugins/tinymce": "^1.0.6",
|
|
33
|
-
"@shy-plugins/utils": "1.0.0-next.1"
|
|
34
|
-
"@shy-plugins/use": "1.0.0-next.1"
|
|
34
|
+
"@shy-plugins/utils": "1.0.0-next.1"
|
|
35
35
|
},
|
|
36
36
|
"types": "es/ui/index.d.ts",
|
|
37
37
|
"devDependencies": {
|