ninemoon-ui 0.1.11 → 0.1.12
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/dist/js/index/index.js
CHANGED
|
@@ -1012,7 +1012,6 @@ const createLoadingDirective = (options) => {
|
|
|
1012
1012
|
const checkEdges = (el, edge) => {
|
|
1013
1013
|
const rect = el.getBoundingClientRect();
|
|
1014
1014
|
const windowHeight = window.innerHeight;
|
|
1015
|
-
console.log(rect.bottom, rect.top, windowHeight);
|
|
1016
1015
|
const threshold = config.threshold;
|
|
1017
1016
|
switch (edge) {
|
|
1018
1017
|
case "top":
|
|
@@ -65,13 +65,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
const emit = __emit;
|
|
66
66
|
const size = computed({
|
|
67
67
|
set(num) {
|
|
68
|
-
emit("size-change", num);
|
|
69
68
|
emit("update:activeSize", num);
|
|
69
|
+
emit("size-change", num);
|
|
70
70
|
},
|
|
71
71
|
get() {
|
|
72
72
|
return props.activeSize;
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
+
const currentPage = computed({
|
|
76
|
+
set(num) {
|
|
77
|
+
emit("update:currentPage", num);
|
|
78
|
+
emit("current-change", num);
|
|
79
|
+
},
|
|
80
|
+
get() {
|
|
81
|
+
return props.currentPage;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
75
84
|
const maxPage = computed(() => {
|
|
76
85
|
return Math.ceil(props.total / size.value);
|
|
77
86
|
});
|
|
@@ -93,15 +102,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
93
102
|
return true;
|
|
94
103
|
}
|
|
95
104
|
});
|
|
96
|
-
const currentPage = computed({
|
|
97
|
-
set(num) {
|
|
98
|
-
emit("current-change", num);
|
|
99
|
-
emit("update:currentPage", num);
|
|
100
|
-
},
|
|
101
|
-
get() {
|
|
102
|
-
return props.currentPage;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
105
|
const firstBtnDisable = computed(() => {
|
|
106
106
|
return currentPage.value === 1;
|
|
107
107
|
});
|