ninemoon-ui 0.0.13 → 0.0.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.
- package/dist/index.es.js +21 -21
- package/dist/index.umd.js +7 -8
- package/dist/js/image/image.js +2 -2
- package/dist/js/index/index.js +27 -26
- package/dist/js/popover/popover.js +0 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { I, x, N, O, D, C, q, s, L, f, h, p, j, J, v, M, z, w, y, A, B, H, K, k, l, P, m, n, F, G, Q, E, i } from "./js/index/index.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
I as LibAlert,
|
|
5
|
+
x as LibBadge,
|
|
6
|
+
N as LibCarousel,
|
|
7
|
+
O as LibCarouselItem,
|
|
8
|
+
D as LibCheckBox,
|
|
9
|
+
C as LibCheckGroup,
|
|
10
10
|
q as LibDatePicker,
|
|
11
11
|
s as LibDatePickerRange,
|
|
12
12
|
L as LibDialog,
|
|
@@ -14,24 +14,24 @@ export {
|
|
|
14
14
|
h as LibFormLabel,
|
|
15
15
|
p as LibImage,
|
|
16
16
|
j as LibInput,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
J as LibLoad,
|
|
18
|
+
v as LibMenu,
|
|
19
19
|
M as LibMessage,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
z as LibNumberInput,
|
|
21
|
+
w as LibPagination,
|
|
22
|
+
y as LibPopover,
|
|
23
|
+
A as LibRadioBox,
|
|
24
|
+
B as LibRadioGroup,
|
|
25
|
+
H as LibScrollBar,
|
|
26
|
+
K as LibScrollLoad,
|
|
27
27
|
k as LibSelect,
|
|
28
28
|
l as LibSelectOption,
|
|
29
|
-
|
|
29
|
+
P as LibSwitch,
|
|
30
30
|
m as LibTable,
|
|
31
31
|
n as LibTableItem,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
F as LibTabs,
|
|
33
|
+
G as LibTabsPane,
|
|
34
|
+
Q as LibTree,
|
|
35
|
+
E as LibUpload,
|
|
36
36
|
i as default
|
|
37
37
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1845,7 +1845,7 @@
|
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
1847
|
const { left: baseLeft, right, bottom, top: baseTop, width: baseWidth, height: baseHeight } = baseDom.getBoundingClientRect();
|
|
1848
|
-
const { height: aimHeight, width: aimWidth } = aimDom.getBoundingClientRect();
|
|
1848
|
+
const { height: aimHeight, width: aimWidth, top: aimTop } = aimDom.getBoundingClientRect();
|
|
1849
1849
|
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
1850
1850
|
const scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
|
1851
1851
|
switch (set == null ? void 0 : set.position) {
|
|
@@ -1861,7 +1861,7 @@
|
|
|
1861
1861
|
break;
|
|
1862
1862
|
case "centerleft":
|
|
1863
1863
|
case "centerright":
|
|
1864
|
-
top = scrollTop + baseTop + (
|
|
1864
|
+
top = scrollTop + baseTop + (baseHeight - aimHeight) / 2;
|
|
1865
1865
|
arrowtop = aimHeight / 2 - 5;
|
|
1866
1866
|
break;
|
|
1867
1867
|
}
|
|
@@ -1890,7 +1890,7 @@
|
|
|
1890
1890
|
arrowleft = -5;
|
|
1891
1891
|
break;
|
|
1892
1892
|
}
|
|
1893
|
-
if (top + aimHeight + 10 > window.innerHeight) {
|
|
1893
|
+
if (top + aimHeight + 10 > scrollTop + window.innerHeight) {
|
|
1894
1894
|
switch (set == null ? void 0 : set.position) {
|
|
1895
1895
|
case "bottommiddle":
|
|
1896
1896
|
case "bottomleft":
|
|
@@ -1901,11 +1901,11 @@
|
|
|
1901
1901
|
case "centerleft":
|
|
1902
1902
|
case "centerright":
|
|
1903
1903
|
top = scrollTop + window.innerHeight - aimHeight - 10;
|
|
1904
|
-
arrowtop = baseTop + baseHeight / 2 - 10;
|
|
1904
|
+
arrowtop = baseTop - aimTop + baseHeight / 2 - 10;
|
|
1905
1905
|
break;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
if (top < 0) {
|
|
1908
|
+
if (top - scrollTop < 0) {
|
|
1909
1909
|
switch (set == null ? void 0 : set.position) {
|
|
1910
1910
|
case "topmiddle":
|
|
1911
1911
|
case "topleft":
|
|
@@ -1915,7 +1915,7 @@
|
|
|
1915
1915
|
break;
|
|
1916
1916
|
case "centerleft":
|
|
1917
1917
|
case "centerright":
|
|
1918
|
-
top = 10;
|
|
1918
|
+
top = 10 + scrollTop;
|
|
1919
1919
|
arrowtop = baseTop + baseHeight / 2 - 10;
|
|
1920
1920
|
break;
|
|
1921
1921
|
}
|
|
@@ -3060,7 +3060,7 @@
|
|
|
3060
3060
|
mouseX = e.pageX;
|
|
3061
3061
|
mouseY = e.pageY;
|
|
3062
3062
|
ImgIsMoving.value = true;
|
|
3063
|
-
el._vueMove_ =
|
|
3063
|
+
el._vueMove_ = throttle(setMoveHandle, 60);
|
|
3064
3064
|
window.addEventListener("mousemove", el._vueMove_);
|
|
3065
3065
|
}
|
|
3066
3066
|
function upHandle() {
|
|
@@ -4732,7 +4732,6 @@
|
|
|
4732
4732
|
}
|
|
4733
4733
|
};
|
|
4734
4734
|
const closeCenter = () => {
|
|
4735
|
-
console.log(1111);
|
|
4736
4735
|
if (props.beforeHidden) {
|
|
4737
4736
|
props.beforeHidden(hideHandle);
|
|
4738
4737
|
} else {
|
package/dist/js/image/image.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, openBlock, createElementBlock, Fragment, createElementVNode, createCommentVNode, renderSlot, createBlock, Teleport, createVNode, Transition, withCtx, withDirectives, withModifiers, normalizeStyle, normalizeClass, nextTick } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { t as throttle } from "../index/index.js";
|
|
3
3
|
const _hoisted_1 = { class: "tdd-relative tdd-inline-block tdd-h-full tdd-w-full" };
|
|
4
4
|
const _hoisted_2 = ["src"];
|
|
5
5
|
const _hoisted_3 = /* @__PURE__ */ createElementVNode("svg", {
|
|
@@ -109,7 +109,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
109
109
|
mouseX = e.pageX;
|
|
110
110
|
mouseY = e.pageY;
|
|
111
111
|
ImgIsMoving.value = true;
|
|
112
|
-
el._vueMove_ =
|
|
112
|
+
el._vueMove_ = throttle(setMoveHandle, 60);
|
|
113
113
|
window.addEventListener("mousemove", el._vueMove_);
|
|
114
114
|
}
|
|
115
115
|
function upHandle() {
|
package/dist/js/index/index.js
CHANGED
|
@@ -575,7 +575,7 @@ const usePotion = (baseDom, aimDom, set) => {
|
|
|
575
575
|
};
|
|
576
576
|
}
|
|
577
577
|
const { left: baseLeft, right, bottom, top: baseTop, width: baseWidth, height: baseHeight } = baseDom.getBoundingClientRect();
|
|
578
|
-
const { height: aimHeight, width: aimWidth } = aimDom.getBoundingClientRect();
|
|
578
|
+
const { height: aimHeight, width: aimWidth, top: aimTop } = aimDom.getBoundingClientRect();
|
|
579
579
|
const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
|
580
580
|
const scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
|
581
581
|
switch (set == null ? void 0 : set.position) {
|
|
@@ -591,7 +591,7 @@ const usePotion = (baseDom, aimDom, set) => {
|
|
|
591
591
|
break;
|
|
592
592
|
case "centerleft":
|
|
593
593
|
case "centerright":
|
|
594
|
-
top = scrollTop + baseTop + (
|
|
594
|
+
top = scrollTop + baseTop + (baseHeight - aimHeight) / 2;
|
|
595
595
|
arrowtop = aimHeight / 2 - 5;
|
|
596
596
|
break;
|
|
597
597
|
}
|
|
@@ -620,7 +620,7 @@ const usePotion = (baseDom, aimDom, set) => {
|
|
|
620
620
|
arrowleft = -5;
|
|
621
621
|
break;
|
|
622
622
|
}
|
|
623
|
-
if (top + aimHeight + 10 > window.innerHeight) {
|
|
623
|
+
if (top + aimHeight + 10 > scrollTop + window.innerHeight) {
|
|
624
624
|
switch (set == null ? void 0 : set.position) {
|
|
625
625
|
case "bottommiddle":
|
|
626
626
|
case "bottomleft":
|
|
@@ -631,11 +631,11 @@ const usePotion = (baseDom, aimDom, set) => {
|
|
|
631
631
|
case "centerleft":
|
|
632
632
|
case "centerright":
|
|
633
633
|
top = scrollTop + window.innerHeight - aimHeight - 10;
|
|
634
|
-
arrowtop = baseTop + baseHeight / 2 - 10;
|
|
634
|
+
arrowtop = baseTop - aimTop + baseHeight / 2 - 10;
|
|
635
635
|
break;
|
|
636
636
|
}
|
|
637
637
|
}
|
|
638
|
-
if (top < 0) {
|
|
638
|
+
if (top - scrollTop < 0) {
|
|
639
639
|
switch (set == null ? void 0 : set.position) {
|
|
640
640
|
case "topmiddle":
|
|
641
641
|
case "topleft":
|
|
@@ -645,7 +645,7 @@ const usePotion = (baseDom, aimDom, set) => {
|
|
|
645
645
|
break;
|
|
646
646
|
case "centerleft":
|
|
647
647
|
case "centerright":
|
|
648
|
-
top = 10;
|
|
648
|
+
top = 10 + scrollTop;
|
|
649
649
|
arrowtop = baseTop + baseHeight / 2 - 10;
|
|
650
650
|
break;
|
|
651
651
|
}
|
|
@@ -825,22 +825,23 @@ const index = {
|
|
|
825
825
|
}
|
|
826
826
|
};
|
|
827
827
|
export {
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
828
|
+
LibRadioBox as A,
|
|
829
|
+
LibRadioGroup as B,
|
|
830
|
+
LibCheckGroup as C,
|
|
831
|
+
LibCheckBox as D,
|
|
832
|
+
LibUpload as E,
|
|
833
|
+
LibTabs as F,
|
|
834
|
+
LibTabsPane as G,
|
|
835
|
+
LibScrollBar as H,
|
|
836
|
+
AlertCom as I,
|
|
837
|
+
LibLoad as J,
|
|
838
|
+
scrolllead as K,
|
|
839
839
|
LibDialog as L,
|
|
840
840
|
MessageCom as M,
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
841
|
+
LibCarousel as N,
|
|
842
|
+
LibCarouselItem as O,
|
|
843
|
+
LibSwitch as P,
|
|
844
|
+
LibTree as Q,
|
|
844
845
|
off as a,
|
|
845
846
|
getScrollWidth as b,
|
|
846
847
|
createAndAppendElementWithId as c,
|
|
@@ -860,11 +861,11 @@ export {
|
|
|
860
861
|
LibDatePicker as q,
|
|
861
862
|
removeResizeListener as r,
|
|
862
863
|
LibDatePickerRange as s,
|
|
863
|
-
|
|
864
|
+
throttle as t,
|
|
864
865
|
usePotion as u,
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
866
|
+
LibMenu as v,
|
|
867
|
+
LibPagination as w,
|
|
868
|
+
LibBadge as x,
|
|
869
|
+
LibPopover as y,
|
|
870
|
+
LibNumberInput as z
|
|
870
871
|
};
|