ninemoon-ui 0.1.11 → 0.1.14

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.
@@ -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
  });
@@ -4,13 +4,19 @@ const _hoisted_1 = ["width"];
4
4
  const _hoisted_2 = { key: 0 };
5
5
  const _hoisted_3 = ["colspan"];
6
6
  const _hoisted_4 = { class: "border-b" };
7
- const _hoisted_5 = { key: 0 };
7
+ const _hoisted_5 = {
8
+ key: 0,
9
+ class: "text-center"
10
+ };
8
11
  const _hoisted_6 = {
9
12
  class: "px-1",
10
13
  for: "checkbox"
11
14
  };
12
15
  const _hoisted_7 = ["checked", "onChange"];
13
- const _hoisted_8 = { key: 1 };
16
+ const _hoisted_8 = {
17
+ key: 1,
18
+ class: "text-center"
19
+ };
14
20
  const _hoisted_9 = {
15
21
  key: 1,
16
22
  class: "border-b"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninemoon-ui",
3
3
  "private": false,
4
- "version": "0.1.11",
4
+ "version": "0.1.14",
5
5
  "author": "zhuboy",
6
6
  "keywords": [
7
7
  "vue3",