3h1-ui 1.0.128 → 1.0.129
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 -6
- package/lib/index.js +18 -6
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -6098,7 +6098,6 @@ const _sfc_main$H = defineComponent({
|
|
|
6098
6098
|
);
|
|
6099
6099
|
});
|
|
6100
6100
|
const getPreIcon = computed(() => {
|
|
6101
|
-
console.log("getSubmitBtnOptions.value", getSubmitBtnOptions.value);
|
|
6102
6101
|
if (getSubmitBtnOptions.value.loading) {
|
|
6103
6102
|
return void 0;
|
|
6104
6103
|
} else {
|
|
@@ -6107,7 +6106,6 @@ const _sfc_main$H = defineComponent({
|
|
|
6107
6106
|
});
|
|
6108
6107
|
watchEffect(() => {
|
|
6109
6108
|
getPreIcon.value;
|
|
6110
|
-
console.log(" getPreIcon.value", getPreIcon.value);
|
|
6111
6109
|
});
|
|
6112
6110
|
return {
|
|
6113
6111
|
actionColOpt,
|
|
@@ -11325,7 +11323,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
11325
11323
|
!tableEl.classList.contains("hide-scrollbar-x") && tableEl.classList.add("hide-scrollbar-x");
|
|
11326
11324
|
}
|
|
11327
11325
|
bodyEl.style.height = "unset";
|
|
11328
|
-
if (!unref(getCanResize) || !unref(tableData)
|
|
11326
|
+
if (!unref(getCanResize) || !unref(tableData))
|
|
11329
11327
|
return;
|
|
11330
11328
|
await nextTick();
|
|
11331
11329
|
const headEl = tableEl.querySelector(".ant-table-thead ");
|
|
@@ -11333,7 +11331,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
11333
11331
|
return;
|
|
11334
11332
|
let paddingHeight = 32;
|
|
11335
11333
|
let paginationHeight = 2;
|
|
11336
|
-
if (!isBoolean(pagination)) {
|
|
11334
|
+
if (!isBoolean(pagination) && tableData.length !== 0) {
|
|
11337
11335
|
paginationEl = tableEl.querySelector(".ant-pagination");
|
|
11338
11336
|
if (paginationEl) {
|
|
11339
11337
|
const offsetHeight = paginationEl.offsetHeight;
|
|
@@ -12598,7 +12596,8 @@ const _sfc_main$h = defineComponent({
|
|
|
12598
12596
|
components: {
|
|
12599
12597
|
Table: Table$1,
|
|
12600
12598
|
BasicForm,
|
|
12601
|
-
HeaderCell
|
|
12599
|
+
HeaderCell,
|
|
12600
|
+
Empty
|
|
12602
12601
|
},
|
|
12603
12602
|
props: basicProps$1,
|
|
12604
12603
|
emits: [
|
|
@@ -12822,6 +12821,9 @@ const _sfc_main$h = defineComponent({
|
|
|
12822
12821
|
const handleResizeColumn = (w, col) => {
|
|
12823
12822
|
col.width = w;
|
|
12824
12823
|
};
|
|
12824
|
+
const getHeight = computed(() => {
|
|
12825
|
+
return unref(getScrollRef);
|
|
12826
|
+
});
|
|
12825
12827
|
return {
|
|
12826
12828
|
formRef,
|
|
12827
12829
|
tableElRef,
|
|
@@ -12840,7 +12842,8 @@ const _sfc_main$h = defineComponent({
|
|
|
12840
12842
|
getFormSlotKeys,
|
|
12841
12843
|
getWrapperClass,
|
|
12842
12844
|
columns: getViewColumns,
|
|
12843
|
-
handleResizeColumn
|
|
12845
|
+
handleResizeColumn,
|
|
12846
|
+
getHeight
|
|
12844
12847
|
};
|
|
12845
12848
|
}
|
|
12846
12849
|
});
|
|
@@ -12848,6 +12851,7 @@ const _hoisted_1$8 = { class: "shy-page" };
|
|
|
12848
12851
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12849
12852
|
const _component_BasicForm = resolveComponent("BasicForm");
|
|
12850
12853
|
const _component_HeaderCell = resolveComponent("HeaderCell");
|
|
12854
|
+
const _component_Empty = resolveComponent("Empty");
|
|
12851
12855
|
const _component_Table = resolveComponent("Table");
|
|
12852
12856
|
return openBlock(), createElementBlock("div", {
|
|
12853
12857
|
ref: "wrapRef",
|
|
@@ -12882,6 +12886,14 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12882
12886
|
headerCell: withCtx(({ column }) => [
|
|
12883
12887
|
createVNode(_component_HeaderCell, { column }, null, 8, ["column"])
|
|
12884
12888
|
]),
|
|
12889
|
+
emptyText: withCtx(() => [
|
|
12890
|
+
createElementVNode("div", {
|
|
12891
|
+
class: "flex justify-center items-center",
|
|
12892
|
+
style: normalizeStyle({ height: `${_ctx.getHeight.y - 40}px` })
|
|
12893
|
+
}, [
|
|
12894
|
+
createVNode(_component_Empty)
|
|
12895
|
+
], 4)
|
|
12896
|
+
]),
|
|
12885
12897
|
bodyCell: withCtx((data) => [
|
|
12886
12898
|
renderSlot(_ctx.$slots, "bodyCell", normalizeProps(guardReactiveProps(data || {})))
|
|
12887
12899
|
]),
|
package/lib/index.js
CHANGED
|
@@ -6103,7 +6103,6 @@ const _sfc_main$H = vue.defineComponent({
|
|
|
6103
6103
|
);
|
|
6104
6104
|
});
|
|
6105
6105
|
const getPreIcon = vue.computed(() => {
|
|
6106
|
-
console.log("getSubmitBtnOptions.value", getSubmitBtnOptions.value);
|
|
6107
6106
|
if (getSubmitBtnOptions.value.loading) {
|
|
6108
6107
|
return void 0;
|
|
6109
6108
|
} else {
|
|
@@ -6112,7 +6111,6 @@ const _sfc_main$H = vue.defineComponent({
|
|
|
6112
6111
|
});
|
|
6113
6112
|
vue.watchEffect(() => {
|
|
6114
6113
|
getPreIcon.value;
|
|
6115
|
-
console.log(" getPreIcon.value", getPreIcon.value);
|
|
6116
6114
|
});
|
|
6117
6115
|
return {
|
|
6118
6116
|
actionColOpt,
|
|
@@ -11330,7 +11328,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
11330
11328
|
!tableEl.classList.contains("hide-scrollbar-x") && tableEl.classList.add("hide-scrollbar-x");
|
|
11331
11329
|
}
|
|
11332
11330
|
bodyEl.style.height = "unset";
|
|
11333
|
-
if (!vue.unref(getCanResize) || !vue.unref(tableData)
|
|
11331
|
+
if (!vue.unref(getCanResize) || !vue.unref(tableData))
|
|
11334
11332
|
return;
|
|
11335
11333
|
await vue.nextTick();
|
|
11336
11334
|
const headEl = tableEl.querySelector(".ant-table-thead ");
|
|
@@ -11338,7 +11336,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
11338
11336
|
return;
|
|
11339
11337
|
let paddingHeight = 32;
|
|
11340
11338
|
let paginationHeight = 2;
|
|
11341
|
-
if (!utils.isBoolean(pagination)) {
|
|
11339
|
+
if (!utils.isBoolean(pagination) && tableData.length !== 0) {
|
|
11342
11340
|
paginationEl = tableEl.querySelector(".ant-pagination");
|
|
11343
11341
|
if (paginationEl) {
|
|
11344
11342
|
const offsetHeight = paginationEl.offsetHeight;
|
|
@@ -12603,7 +12601,8 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
12603
12601
|
components: {
|
|
12604
12602
|
Table: antDesignVue.Table,
|
|
12605
12603
|
BasicForm,
|
|
12606
|
-
HeaderCell
|
|
12604
|
+
HeaderCell,
|
|
12605
|
+
Empty: antDesignVue.Empty
|
|
12607
12606
|
},
|
|
12608
12607
|
props: basicProps$1,
|
|
12609
12608
|
emits: [
|
|
@@ -12827,6 +12826,9 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
12827
12826
|
const handleResizeColumn = (w, col) => {
|
|
12828
12827
|
col.width = w;
|
|
12829
12828
|
};
|
|
12829
|
+
const getHeight = vue.computed(() => {
|
|
12830
|
+
return vue.unref(getScrollRef);
|
|
12831
|
+
});
|
|
12830
12832
|
return {
|
|
12831
12833
|
formRef,
|
|
12832
12834
|
tableElRef,
|
|
@@ -12845,7 +12847,8 @@ const _sfc_main$h = vue.defineComponent({
|
|
|
12845
12847
|
getFormSlotKeys,
|
|
12846
12848
|
getWrapperClass,
|
|
12847
12849
|
columns: getViewColumns,
|
|
12848
|
-
handleResizeColumn
|
|
12850
|
+
handleResizeColumn,
|
|
12851
|
+
getHeight
|
|
12849
12852
|
};
|
|
12850
12853
|
}
|
|
12851
12854
|
});
|
|
@@ -12853,6 +12856,7 @@ const _hoisted_1$8 = { class: "shy-page" };
|
|
|
12853
12856
|
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12854
12857
|
const _component_BasicForm = vue.resolveComponent("BasicForm");
|
|
12855
12858
|
const _component_HeaderCell = vue.resolveComponent("HeaderCell");
|
|
12859
|
+
const _component_Empty = vue.resolveComponent("Empty");
|
|
12856
12860
|
const _component_Table = vue.resolveComponent("Table");
|
|
12857
12861
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
12858
12862
|
ref: "wrapRef",
|
|
@@ -12887,6 +12891,14 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12887
12891
|
headerCell: vue.withCtx(({ column }) => [
|
|
12888
12892
|
vue.createVNode(_component_HeaderCell, { column }, null, 8, ["column"])
|
|
12889
12893
|
]),
|
|
12894
|
+
emptyText: vue.withCtx(() => [
|
|
12895
|
+
vue.createElementVNode("div", {
|
|
12896
|
+
class: "flex justify-center items-center",
|
|
12897
|
+
style: vue.normalizeStyle({ height: `${_ctx.getHeight.y - 40}px` })
|
|
12898
|
+
}, [
|
|
12899
|
+
vue.createVNode(_component_Empty)
|
|
12900
|
+
], 4)
|
|
12901
|
+
]),
|
|
12890
12902
|
bodyCell: vue.withCtx((data) => [
|
|
12891
12903
|
vue.renderSlot(_ctx.$slots, "bodyCell", vue.normalizeProps(vue.guardReactiveProps(data || {})))
|
|
12892
12904
|
]),
|