3h1-ui 2.14.96 → 2.14.98
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 +3 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -4124,6 +4124,7 @@ const _sfc_main$1q = defineComponent({
|
|
|
4124
4124
|
console.warn(error2);
|
|
4125
4125
|
} finally {
|
|
4126
4126
|
loading.value = false;
|
|
4127
|
+
isFirstLoad.value = false;
|
|
4127
4128
|
}
|
|
4128
4129
|
}
|
|
4129
4130
|
async function handleFetch(visible) {
|
|
@@ -14806,7 +14807,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
14806
14807
|
return `${index2 + 1}`;
|
|
14807
14808
|
}
|
|
14808
14809
|
const { current = 1, pageSize = PAGE_SIZE } = getPagination;
|
|
14809
|
-
return ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1;
|
|
14810
|
+
return h("div", { class: "ant-table-cell-index full cursor-pointer" }, ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1);
|
|
14810
14811
|
},
|
|
14811
14812
|
...isFixedLeft ? {
|
|
14812
14813
|
fixed: "left"
|
|
@@ -15631,6 +15632,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
15631
15632
|
return;
|
|
15632
15633
|
new Sortablejs(bodyEl2, {
|
|
15633
15634
|
ghostClass: "bg-gray-100",
|
|
15635
|
+
handle: ".ant-table-cell .ant-table-cell-index",
|
|
15634
15636
|
draggable: ".ant-table-row"
|
|
15635
15637
|
});
|
|
15636
15638
|
});
|
package/lib/index.js
CHANGED
|
@@ -4148,6 +4148,7 @@ const _sfc_main$1q = vue.defineComponent({
|
|
|
4148
4148
|
console.warn(error2);
|
|
4149
4149
|
} finally {
|
|
4150
4150
|
loading.value = false;
|
|
4151
|
+
isFirstLoad.value = false;
|
|
4151
4152
|
}
|
|
4152
4153
|
}
|
|
4153
4154
|
async function handleFetch(visible) {
|
|
@@ -14830,7 +14831,7 @@ function handleIndexColumn(propsRef, getPaginationRef, columns) {
|
|
|
14830
14831
|
return `${index2 + 1}`;
|
|
14831
14832
|
}
|
|
14832
14833
|
const { current = 1, pageSize = PAGE_SIZE } = getPagination;
|
|
14833
|
-
return ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1;
|
|
14834
|
+
return vue.h("div", { class: "ant-table-cell-index full cursor-pointer" }, ((current < 1 ? 1 : current) - 1) * pageSize + index2 + 1);
|
|
14834
14835
|
},
|
|
14835
14836
|
...isFixedLeft ? {
|
|
14836
14837
|
fixed: "left"
|
|
@@ -15655,6 +15656,7 @@ function useTableScroll(propsRef, tableElRef, columnsRef, rowSelectionRef, getDa
|
|
|
15655
15656
|
return;
|
|
15656
15657
|
new Sortablejs(bodyEl2, {
|
|
15657
15658
|
ghostClass: "bg-gray-100",
|
|
15659
|
+
handle: ".ant-table-cell .ant-table-cell-index",
|
|
15658
15660
|
draggable: ".ant-table-row"
|
|
15659
15661
|
});
|
|
15660
15662
|
});
|