ninemoon-ui 0.1.10 → 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.
@@ -79,11 +79,7 @@
79
79
  opacity: 0;
80
80
  }
81
81
  .ETab {
82
- display: flex;
83
82
  width: 100%;
84
- min-width: -moz-max-content;
85
- min-width: max-content;
86
- flex-wrap: nowrap;
87
83
  --tw-text-opacity: 1;
88
84
  color: rgb(102 102 102 / var(--tw-text-opacity, 1))
89
85
  }
@@ -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
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent, defineAsyncComponent, computed, ref, reactive, useSlots, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, normalizeStyle, createCommentVNode, h, normalizeClass, withDirectives, vShow } from "vue";
1
+ import { defineComponent, computed, ref, reactive, useSlots, onMounted, onUnmounted, openBlock, createElementBlock, createVNode, createElementVNode, normalizeStyle, createCommentVNode, h, normalizeClass, withDirectives, vShow } from "vue";
2
2
  import { S as ShapeFlags } from "../shapeFlag/shapeFlag.js";
3
3
  const _hoisted_1 = { class: "relative w-full overflow-hidden" };
4
4
  const _hoisted_2 = {
@@ -14,9 +14,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  },
15
15
  emits: ["update:active"],
16
16
  setup(__props, { emit: __emit }) {
17
- const LibScrollBar = defineAsyncComponent(
18
- () => import("../scrollBar/scrollBar.js")
19
- );
20
17
  const props = __props;
21
18
  const showBaseline = computed(() => props.type === "line");
22
19
  const emit = __emit;
@@ -153,24 +150,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
153
150
  });
154
151
  return (_ctx, _cache) => {
155
152
  return openBlock(), createElementBlock("div", _hoisted_1, [
156
- createVNode(unref(LibScrollBar), null, {
157
- default: withCtx(() => [
158
- createVNode(renderBar, {
159
- ref_key: "observerRef",
160
- ref: observerRef
161
- }, null, 512),
162
- showBaseline.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
163
- createElementVNode("div", {
164
- class: "absolute bottom-0 border-t-2 border-solid border-blue-brand transition",
165
- style: normalizeStyle({
166
- transform: `translateX(${indicatorPos.left}px`,
167
- width: `${indicatorPos.width}px`
168
- })
169
- }, null, 4)
170
- ])) : createCommentVNode("", true)
171
- ]),
172
- _: 1
173
- }),
153
+ createVNode(renderBar, {
154
+ ref_key: "observerRef",
155
+ ref: observerRef
156
+ }, null, 512),
157
+ showBaseline.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
158
+ createElementVNode("div", {
159
+ class: "absolute bottom-0 border-t-2 border-solid border-blue-brand transition",
160
+ style: normalizeStyle({
161
+ transform: `translateX(${indicatorPos.left}px`,
162
+ width: `${indicatorPos.width}px`
163
+ })
164
+ }, null, 4)
165
+ ])) : createCommentVNode("", true),
174
166
  createElementVNode("div", _hoisted_3, [
175
167
  createVNode(renderContent)
176
168
  ])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ninemoon-ui",
3
3
  "private": false,
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "author": "zhuboy",
6
6
  "keywords": [
7
7
  "vue3",