ninemoon-ui 0.0.20 → 0.0.22
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.css +0 -11
- package/dist/index.umd.js +8 -21
- package/dist/js/carousel/carousel.js +6 -8
- package/dist/js/form/form.js +2 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -102,9 +102,6 @@
|
|
|
102
102
|
.tdd-top-4 {
|
|
103
103
|
top: 1rem;
|
|
104
104
|
}
|
|
105
|
-
.-tdd-z-10 {
|
|
106
|
-
z-index: -10;
|
|
107
|
-
}
|
|
108
105
|
.tdd-z-10 {
|
|
109
106
|
z-index: 10;
|
|
110
107
|
}
|
|
@@ -437,9 +434,6 @@
|
|
|
437
434
|
.tdd-rounded-full {
|
|
438
435
|
border-radius: 9999px;
|
|
439
436
|
}
|
|
440
|
-
.tdd-rounded-lg {
|
|
441
|
-
border-radius: 0.5rem;
|
|
442
|
-
}
|
|
443
437
|
.tdd-rounded-sm {
|
|
444
438
|
border-radius: 0.125rem;
|
|
445
439
|
}
|
|
@@ -746,11 +740,6 @@
|
|
|
746
740
|
.tdd-opacity-0 {
|
|
747
741
|
opacity: 0;
|
|
748
742
|
}
|
|
749
|
-
.tdd-shadow-tddimgshadow {
|
|
750
|
-
--tw-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.08);;
|
|
751
|
-
--tw-shadow-colored: 0px 1px 8px 1px var(--tw-shadow-color);
|
|
752
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
753
|
-
}
|
|
754
743
|
.tdd-outline-none {
|
|
755
744
|
outline: 2px solid transparent;
|
|
756
745
|
outline-offset: 2px;
|
package/dist/index.umd.js
CHANGED
|
@@ -107,9 +107,6 @@
|
|
|
107
107
|
.tdd-top-4 {
|
|
108
108
|
top: 1rem;
|
|
109
109
|
}
|
|
110
|
-
.-tdd-z-10 {
|
|
111
|
-
z-index: -10;
|
|
112
|
-
}
|
|
113
110
|
.tdd-z-10 {
|
|
114
111
|
z-index: 10;
|
|
115
112
|
}
|
|
@@ -442,9 +439,6 @@
|
|
|
442
439
|
.tdd-rounded-full {
|
|
443
440
|
border-radius: 9999px;
|
|
444
441
|
}
|
|
445
|
-
.tdd-rounded-lg {
|
|
446
|
-
border-radius: 0.5rem;
|
|
447
|
-
}
|
|
448
442
|
.tdd-rounded-sm {
|
|
449
443
|
border-radius: 0.125rem;
|
|
450
444
|
}
|
|
@@ -751,11 +745,6 @@
|
|
|
751
745
|
.tdd-opacity-0 {
|
|
752
746
|
opacity: 0;
|
|
753
747
|
}
|
|
754
|
-
.tdd-shadow-tddimgshadow {
|
|
755
|
-
--tw-shadow: 0px 1px 8px 1px rgba(0, 0, 0, 0.08);;
|
|
756
|
-
--tw-shadow-colored: 0px 1px 8px 1px var(--tw-shadow-color);
|
|
757
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
758
|
-
}
|
|
759
748
|
.tdd-outline-none {
|
|
760
749
|
outline: 2px solid transparent;
|
|
761
750
|
outline-offset: 2px;
|
|
@@ -2261,14 +2250,14 @@
|
|
|
2261
2250
|
};
|
|
2262
2251
|
const validate = async (callBack) => {
|
|
2263
2252
|
let passflag = true;
|
|
2264
|
-
checkList.value
|
|
2253
|
+
for (const rule of checkList.value) {
|
|
2265
2254
|
await rule.fc((msg) => {
|
|
2266
2255
|
if (msg !== null && msg !== void 0) {
|
|
2267
2256
|
passflag = false;
|
|
2268
2257
|
console.warn(msg);
|
|
2269
2258
|
}
|
|
2270
2259
|
});
|
|
2271
|
-
}
|
|
2260
|
+
}
|
|
2272
2261
|
if (passflag === true) {
|
|
2273
2262
|
callBack(passflag);
|
|
2274
2263
|
}
|
|
@@ -5668,15 +5657,13 @@
|
|
|
5668
5657
|
const bodyHandle = (MySlot, d) => {
|
|
5669
5658
|
let between = d - activeIndex.value;
|
|
5670
5659
|
let transformNum = 0;
|
|
5671
|
-
if (
|
|
5672
|
-
|
|
5673
|
-
transformNum = -translatexNum.value;
|
|
5674
|
-
} else {
|
|
5675
|
-
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
5676
|
-
}
|
|
5660
|
+
if (totalLen.value <= 2) {
|
|
5661
|
+
transformNum = Math.abs(between * translatexNum.value);
|
|
5677
5662
|
} else {
|
|
5678
|
-
if (activeIndex.value === 0 && d == totalLen.value - 1
|
|
5663
|
+
if (activeIndex.value === 0 && d == totalLen.value - 1) {
|
|
5679
5664
|
transformNum = -translatexNum.value;
|
|
5665
|
+
} else if (between < -1) {
|
|
5666
|
+
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
5680
5667
|
} else {
|
|
5681
5668
|
transformNum = between * translatexNum.value;
|
|
5682
5669
|
}
|
|
@@ -5684,7 +5671,7 @@
|
|
|
5684
5671
|
return vue.h(
|
|
5685
5672
|
"div",
|
|
5686
5673
|
{
|
|
5687
|
-
class: vue.normalizeClass(["carouselBody", [activeIndex.value === d ? "
|
|
5674
|
+
class: vue.normalizeClass(["carouselBody", [activeIndex.value === d ? "" : "tdd-opacity-0"]]),
|
|
5688
5675
|
style: {
|
|
5689
5676
|
transform: `translateX(${transformNum}px)`
|
|
5690
5677
|
}
|
|
@@ -45,15 +45,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
const bodyHandle = (MySlot, d) => {
|
|
46
46
|
let between = d - activeIndex.value;
|
|
47
47
|
let transformNum = 0;
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
transformNum = -translatexNum.value;
|
|
51
|
-
} else {
|
|
52
|
-
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
53
|
-
}
|
|
48
|
+
if (totalLen.value <= 2) {
|
|
49
|
+
transformNum = Math.abs(between * translatexNum.value);
|
|
54
50
|
} else {
|
|
55
|
-
if (activeIndex.value === 0 && d == totalLen.value - 1
|
|
51
|
+
if (activeIndex.value === 0 && d == totalLen.value - 1) {
|
|
56
52
|
transformNum = -translatexNum.value;
|
|
53
|
+
} else if (between < -1) {
|
|
54
|
+
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
57
55
|
} else {
|
|
58
56
|
transformNum = between * translatexNum.value;
|
|
59
57
|
}
|
|
@@ -61,7 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
59
|
return h(
|
|
62
60
|
"div",
|
|
63
61
|
{
|
|
64
|
-
class: normalizeClass(["carouselBody", [activeIndex.value === d ? "
|
|
62
|
+
class: normalizeClass(["carouselBody", [activeIndex.value === d ? "" : "tdd-opacity-0"]]),
|
|
65
63
|
style: {
|
|
66
64
|
transform: `translateX(${transformNum}px)`
|
|
67
65
|
}
|
package/dist/js/form/form.js
CHANGED
|
@@ -24,14 +24,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
};
|
|
25
25
|
const validate = async (callBack) => {
|
|
26
26
|
let passflag = true;
|
|
27
|
-
checkList.value
|
|
27
|
+
for (const rule of checkList.value) {
|
|
28
28
|
await rule.fc((msg) => {
|
|
29
29
|
if (msg !== null && msg !== void 0) {
|
|
30
30
|
passflag = false;
|
|
31
31
|
console.warn(msg);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
|
-
}
|
|
34
|
+
}
|
|
35
35
|
if (passflag === true) {
|
|
36
36
|
callBack(passflag);
|
|
37
37
|
}
|