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.
- package/dist/css/style.css +0 -4
- package/dist/js/index/index.js +0 -1
- package/dist/js/pagination/pagination.js +10 -10
- package/dist/js/tabs/tabs.js +14 -22
- package/package.json +1 -1
package/dist/css/style.css
CHANGED
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
|
});
|
package/dist/js/tabs/tabs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
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(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
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
|
])
|