ninemoon-ui 0.0.7 → 0.0.9
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/components/table/tableItem.vue.d.ts +2 -2
- package/dist/components/tabs/tabs.vue.d.ts +3 -8
- package/dist/index.css +13 -0
- package/dist/index.d.ts +7 -12
- package/dist/index.umd.js +386 -435
- package/dist/js/carousel/carousel.js +50 -69
- package/dist/js/check/checkgroup.js +36 -59
- package/dist/js/date/datepickerRange.js +18 -2
- package/dist/js/dialog/dialog.js +2 -2
- package/dist/js/image/image.js +2 -2
- package/dist/js/index/index.js +4 -4
- package/dist/js/numberInput/numberinput.js +15 -30
- package/dist/js/pagination/pagination.js +14 -28
- package/dist/js/radio/radiogroup.js +37 -68
- package/dist/js/select/select.js +30 -42
- package/dist/js/table/table.js +89 -67
- package/dist/js/tabs/tabs.js +78 -64
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -354,6 +354,9 @@
|
|
|
354
354
|
.tdd-items-center {
|
|
355
355
|
align-items: center;
|
|
356
356
|
}
|
|
357
|
+
.tdd-justify-end {
|
|
358
|
+
justify-content: flex-end;
|
|
359
|
+
}
|
|
357
360
|
.tdd-justify-center {
|
|
358
361
|
justify-content: center;
|
|
359
362
|
}
|
|
@@ -637,6 +640,9 @@
|
|
|
637
640
|
.tdd-pb-9 {
|
|
638
641
|
padding-bottom: 2.25rem;
|
|
639
642
|
}
|
|
643
|
+
.tdd-pt-2 {
|
|
644
|
+
padding-top: 0.5rem;
|
|
645
|
+
}
|
|
640
646
|
.tdd-pt-3 {
|
|
641
647
|
padding-top: 0.75rem;
|
|
642
648
|
}
|
|
@@ -804,6 +810,10 @@
|
|
|
804
810
|
.hover\\:tdd-bg-gray-200:hover {
|
|
805
811
|
--tw-bg-opacity: 1;
|
|
806
812
|
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
|
813
|
+
}
|
|
814
|
+
.hover\\:tdd-text-blue-500:hover {
|
|
815
|
+
--tw-text-opacity: 1;
|
|
816
|
+
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
807
817
|
}
|
|
808
818
|
.hover\\:tdd-text-blue-brand:hover {
|
|
809
819
|
--tw-text-opacity: 1;
|
|
@@ -815,6 +825,9 @@
|
|
|
815
825
|
.focus\\:tdd-outline-none:focus {
|
|
816
826
|
outline: 2px solid transparent;
|
|
817
827
|
outline-offset: 2px;
|
|
828
|
+
}
|
|
829
|
+
.active\\:tdd-to-blue-700:active {
|
|
830
|
+
--tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position);
|
|
818
831
|
}
|
|
819
832
|
.tdd-group:hover .group-hover\\:tdd-flex {
|
|
820
833
|
display: flex;
|
|
@@ -1659,9 +1672,9 @@
|
|
|
1659
1672
|
mounted(el, binding) {
|
|
1660
1673
|
if (binding.value) {
|
|
1661
1674
|
if (binding.modifiers.fullScreen) {
|
|
1662
|
-
appendHandle(el, document.
|
|
1675
|
+
appendHandle(el, document.body);
|
|
1663
1676
|
if (binding.modifiers.lock) {
|
|
1664
|
-
document.
|
|
1677
|
+
document.body.classList.add("tdd-overflow-hidden");
|
|
1665
1678
|
}
|
|
1666
1679
|
} else {
|
|
1667
1680
|
appendHandle(el);
|
|
@@ -1674,9 +1687,9 @@
|
|
|
1674
1687
|
el.instance.loaddingWord = el.getAttribute("loadding-text");
|
|
1675
1688
|
}
|
|
1676
1689
|
if (binding.modifiers.fullScreen) {
|
|
1677
|
-
binding.value ? appendHandle(el, document.
|
|
1690
|
+
binding.value ? appendHandle(el, document.body) : removeHandle(el, document.body);
|
|
1678
1691
|
if (binding.modifiers.lock) {
|
|
1679
|
-
binding.value ? document.
|
|
1692
|
+
binding.value ? document.body.classList.add("tdd-overflow-hidden") : document.body.classList.remove("tdd-overflow-hidden");
|
|
1680
1693
|
}
|
|
1681
1694
|
} else {
|
|
1682
1695
|
binding.value ? appendHandle(el) : removeHandle(el);
|
|
@@ -2008,9 +2021,9 @@
|
|
|
2008
2021
|
(val) => {
|
|
2009
2022
|
if (props.lockScroll) {
|
|
2010
2023
|
if (val === true) {
|
|
2011
|
-
document.
|
|
2024
|
+
document.body.classList.add("tdd-overflow-hidden");
|
|
2012
2025
|
} else {
|
|
2013
|
-
document.
|
|
2026
|
+
document.body.classList.remove("tdd-overflow-hidden");
|
|
2014
2027
|
}
|
|
2015
2028
|
}
|
|
2016
2029
|
}
|
|
@@ -2431,10 +2444,33 @@
|
|
|
2431
2444
|
if (isThis.length > 0) {
|
|
2432
2445
|
return isThis[0].label;
|
|
2433
2446
|
} else {
|
|
2447
|
+
emit("update:modelValue", null);
|
|
2448
|
+
ParentGetChangeHandle && ParentGetChangeHandle(null);
|
|
2449
|
+
emit("change", null);
|
|
2434
2450
|
return null;
|
|
2435
2451
|
}
|
|
2436
2452
|
});
|
|
2437
2453
|
const optionList = vue.ref([]);
|
|
2454
|
+
const optionHandle = (it) => {
|
|
2455
|
+
optionList.value.push({
|
|
2456
|
+
value: it.props.value,
|
|
2457
|
+
label: it.props.label
|
|
2458
|
+
});
|
|
2459
|
+
return vue.h(
|
|
2460
|
+
"div",
|
|
2461
|
+
{
|
|
2462
|
+
class: `label ${props.modelValue === it.props.value ? "labelselect" : ""}`,
|
|
2463
|
+
key: it.props.key,
|
|
2464
|
+
onClick: () => {
|
|
2465
|
+
emit("update:modelValue", it.props.value);
|
|
2466
|
+
ParentGetChangeHandle && ParentGetChangeHandle(it.props.value);
|
|
2467
|
+
emit("change", it.props.value);
|
|
2468
|
+
showOption.value = false;
|
|
2469
|
+
}
|
|
2470
|
+
},
|
|
2471
|
+
it.children || it.props.label
|
|
2472
|
+
);
|
|
2473
|
+
};
|
|
2438
2474
|
const renderOption = () => {
|
|
2439
2475
|
return vue.h(
|
|
2440
2476
|
"div",
|
|
@@ -2442,53 +2478,18 @@
|
|
|
2442
2478
|
class: "selectOption"
|
|
2443
2479
|
},
|
|
2444
2480
|
slots.default().map((i, j) => {
|
|
2445
|
-
if (i.
|
|
2446
|
-
return
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
});
|
|
2451
|
-
return vue.h(
|
|
2452
|
-
"div",
|
|
2453
|
-
{
|
|
2454
|
-
class: `label ${props.modelValue === it.props.value ? "labelselect" : ""}`,
|
|
2455
|
-
key: `${j}-${k}`,
|
|
2456
|
-
onClick: () => {
|
|
2457
|
-
emit("update:modelValue", it.props.value);
|
|
2458
|
-
showOption.value = false;
|
|
2459
|
-
}
|
|
2460
|
-
},
|
|
2461
|
-
it.children || it.props.label
|
|
2462
|
-
);
|
|
2481
|
+
if (typeof i.children == "string")
|
|
2482
|
+
return null;
|
|
2483
|
+
if (Array.isArray(i.children)) {
|
|
2484
|
+
return i.children.map((it) => {
|
|
2485
|
+
return optionHandle(it);
|
|
2463
2486
|
});
|
|
2464
2487
|
} else {
|
|
2465
|
-
|
|
2466
|
-
value: i.props.value,
|
|
2467
|
-
label: i.props.label
|
|
2468
|
-
});
|
|
2469
|
-
return vue.h(
|
|
2470
|
-
"div",
|
|
2471
|
-
{
|
|
2472
|
-
class: `label ${props.modelValue === i.props.value ? "labelselect" : ""}`,
|
|
2473
|
-
key: j,
|
|
2474
|
-
onClick: () => {
|
|
2475
|
-
emit("update:modelValue", i.props.value);
|
|
2476
|
-
showOption.value = false;
|
|
2477
|
-
}
|
|
2478
|
-
},
|
|
2479
|
-
i.children || i.props.label
|
|
2480
|
-
);
|
|
2488
|
+
return optionHandle(i);
|
|
2481
2489
|
}
|
|
2482
2490
|
})
|
|
2483
2491
|
);
|
|
2484
2492
|
};
|
|
2485
|
-
vue.watch(
|
|
2486
|
-
() => props.modelValue,
|
|
2487
|
-
(n) => {
|
|
2488
|
-
ParentGetChangeHandle && ParentGetChangeHandle(n);
|
|
2489
|
-
emit("change", n);
|
|
2490
|
-
}
|
|
2491
|
-
);
|
|
2492
2493
|
return (_ctx, _cache) => {
|
|
2493
2494
|
return vue.openBlock(), vue.createBlock(vue.unref(Pop), {
|
|
2494
2495
|
trigger: "native",
|
|
@@ -2569,47 +2570,62 @@
|
|
|
2569
2570
|
"colgroup",
|
|
2570
2571
|
null,
|
|
2571
2572
|
slots.default().map((it, _index) => {
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2573
|
+
if (typeof it.children == "string")
|
|
2574
|
+
return null;
|
|
2575
|
+
if (Array.isArray(it.children)) {
|
|
2576
|
+
return it.children.map((itt, _i) => colitemHandle(itt));
|
|
2577
|
+
} else {
|
|
2578
|
+
return colitemHandle(it);
|
|
2579
|
+
}
|
|
2576
2580
|
})
|
|
2577
2581
|
);
|
|
2578
2582
|
};
|
|
2583
|
+
const colitemHandle = (it) => {
|
|
2584
|
+
var _a;
|
|
2585
|
+
return vue.h("col", {
|
|
2586
|
+
width: ((_a = it.props) == null ? void 0 : _a.width) || null
|
|
2587
|
+
});
|
|
2588
|
+
};
|
|
2579
2589
|
const renderHead = () => {
|
|
2580
2590
|
return vue.h(
|
|
2581
2591
|
"thead",
|
|
2582
2592
|
{ class: props.headclass ? `tdd-text-word6 ${props.headclass}` : "tdd-text-word6" },
|
|
2583
|
-
slots.default().map((it
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
{
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
// @ts-ignore
|
|
2594
|
-
it.children.head()
|
|
2595
|
-
) : ((_a = it.props) == null ? void 0 : _a.type) && it.props.type === "selection" ? vue.h(
|
|
2596
|
-
"label",
|
|
2597
|
-
{
|
|
2598
|
-
class: "tdd-px-1 tdd-flex"
|
|
2599
|
-
},
|
|
2600
|
-
vue.withDirectives(
|
|
2601
|
-
vue.h("input", {
|
|
2602
|
-
type: "checkbox",
|
|
2603
|
-
"onUpdate:modelValue": (value) => allSelect.value = value,
|
|
2604
|
-
class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none"
|
|
2605
|
-
}),
|
|
2606
|
-
[[vue.vModelCheckbox, allSelect.value]]
|
|
2607
|
-
)
|
|
2608
|
-
) : it.props.label
|
|
2609
|
-
);
|
|
2593
|
+
slots.default().map((it) => {
|
|
2594
|
+
if (typeof it.children == "string")
|
|
2595
|
+
return null;
|
|
2596
|
+
if (Array.isArray(it.children)) {
|
|
2597
|
+
return it.children.map((itt) => {
|
|
2598
|
+
return headitemHandle(itt);
|
|
2599
|
+
});
|
|
2600
|
+
} else {
|
|
2601
|
+
return headitemHandle(it);
|
|
2602
|
+
}
|
|
2610
2603
|
})
|
|
2611
2604
|
);
|
|
2612
2605
|
};
|
|
2606
|
+
const headitemHandle = (it) => {
|
|
2607
|
+
var _a;
|
|
2608
|
+
return vue.h(
|
|
2609
|
+
"th",
|
|
2610
|
+
{
|
|
2611
|
+
class: "tdd-font-normal tdd-h-10 tdd-border-b "
|
|
2612
|
+
},
|
|
2613
|
+
it.children && it.children.head ? it.children.head() : ((_a = it.props) == null ? void 0 : _a.type) && it.props.type === "selection" ? vue.h(
|
|
2614
|
+
"label",
|
|
2615
|
+
{
|
|
2616
|
+
class: "tdd-px-1 tdd-flex"
|
|
2617
|
+
},
|
|
2618
|
+
vue.withDirectives(
|
|
2619
|
+
vue.h("input", {
|
|
2620
|
+
type: "checkbox",
|
|
2621
|
+
"onUpdate:modelValue": (value) => allSelect.value = value,
|
|
2622
|
+
class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none"
|
|
2623
|
+
}),
|
|
2624
|
+
[[vue.vModelCheckbox, allSelect.value]]
|
|
2625
|
+
)
|
|
2626
|
+
) : it.props.label
|
|
2627
|
+
);
|
|
2628
|
+
};
|
|
2613
2629
|
const allSelect = vue.computed({
|
|
2614
2630
|
set(flag) {
|
|
2615
2631
|
if (flag) {
|
|
@@ -2668,47 +2684,54 @@
|
|
|
2668
2684
|
}, ["stop"])
|
|
2669
2685
|
},
|
|
2670
2686
|
slots.default().map((it, _j) => {
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
{
|
|
2675
|
-
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
class: "tdd-px-1 tdd-flex",
|
|
2681
|
-
for: "checkbox"
|
|
2682
|
-
},
|
|
2683
|
-
vue.withDirectives(
|
|
2684
|
-
vue.h("input", {
|
|
2685
|
-
type: "checkbox",
|
|
2686
|
-
value: i,
|
|
2687
|
-
"onUpdate:modelValue": (value) => {
|
|
2688
|
-
choosed.value = value;
|
|
2689
|
-
},
|
|
2690
|
-
class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none "
|
|
2691
|
-
}),
|
|
2692
|
-
[[vue.vModelCheckbox, choosed.value]]
|
|
2693
|
-
)
|
|
2694
|
-
) : vue.h(
|
|
2695
|
-
"div",
|
|
2696
|
-
null,
|
|
2697
|
-
// @ts-ignore
|
|
2698
|
-
it.children && it.children.default ? (
|
|
2699
|
-
// @ts-ignore
|
|
2700
|
-
it.children.default({
|
|
2701
|
-
row,
|
|
2702
|
-
index: i
|
|
2703
|
-
})
|
|
2704
|
-
) : row[it.props.prop] != null ? row[it.props.prop] : props.whiteword
|
|
2705
|
-
)
|
|
2706
|
-
);
|
|
2687
|
+
if (typeof it.children == "string")
|
|
2688
|
+
return null;
|
|
2689
|
+
if (Array.isArray(it.children)) {
|
|
2690
|
+
return it.children.map((itt) => {
|
|
2691
|
+
return bodyHandle(row, itt, i);
|
|
2692
|
+
});
|
|
2693
|
+
} else {
|
|
2694
|
+
return bodyHandle(row, it, i);
|
|
2695
|
+
}
|
|
2707
2696
|
})
|
|
2708
2697
|
);
|
|
2709
2698
|
})
|
|
2710
2699
|
);
|
|
2711
2700
|
};
|
|
2701
|
+
const bodyHandle = (row, it, i) => {
|
|
2702
|
+
var _a;
|
|
2703
|
+
return vue.h(
|
|
2704
|
+
"td",
|
|
2705
|
+
{
|
|
2706
|
+
class: props.cellclass ? `tdd-text-center tdd-py-2 ${props.cellclass}` : "tdd-text-center tdd-py-2"
|
|
2707
|
+
},
|
|
2708
|
+
((_a = it.props) == null ? void 0 : _a.type) && it.props.type === "selection" ? vue.h(
|
|
2709
|
+
"label",
|
|
2710
|
+
{
|
|
2711
|
+
class: "tdd-px-1 tdd-flex",
|
|
2712
|
+
for: "checkbox"
|
|
2713
|
+
},
|
|
2714
|
+
vue.withDirectives(
|
|
2715
|
+
vue.h("input", {
|
|
2716
|
+
type: "checkbox",
|
|
2717
|
+
value: i,
|
|
2718
|
+
"onUpdate:modelValue": (value) => {
|
|
2719
|
+
choosed.value = value;
|
|
2720
|
+
},
|
|
2721
|
+
class: "tdd-appearance-none form-tick tdd-h-4 tdd-w-4 tdd-border tdd-border-gray-300 tdd-rounded checked:tdd-border-transparent checked:tdd-bg-red-600 tdd-text-red-600 focus:tdd-outline-none "
|
|
2722
|
+
}),
|
|
2723
|
+
[[vue.vModelCheckbox, choosed.value]]
|
|
2724
|
+
)
|
|
2725
|
+
) : vue.h(
|
|
2726
|
+
"div",
|
|
2727
|
+
null,
|
|
2728
|
+
it.children && it.children.default ? it.children.default({
|
|
2729
|
+
row,
|
|
2730
|
+
index: i
|
|
2731
|
+
}) : row[it.props.prop] != null ? row[it.props.prop] : props.whiteword
|
|
2732
|
+
)
|
|
2733
|
+
);
|
|
2734
|
+
};
|
|
2712
2735
|
__expose({
|
|
2713
2736
|
clearSelection,
|
|
2714
2737
|
allSelection,
|
|
@@ -2907,9 +2930,9 @@
|
|
|
2907
2930
|
const showBig = vue.ref(false);
|
|
2908
2931
|
vue.watch(showBig, (val) => {
|
|
2909
2932
|
if (val === true) {
|
|
2910
|
-
document.
|
|
2933
|
+
document.body.classList.add("tdd-overflow-hidden");
|
|
2911
2934
|
} else {
|
|
2912
|
-
document.
|
|
2935
|
+
document.body.classList.remove("tdd-overflow-hidden");
|
|
2913
2936
|
}
|
|
2914
2937
|
});
|
|
2915
2938
|
const showPreview = () => {
|
|
@@ -3529,7 +3552,7 @@
|
|
|
3529
3552
|
key: "daymode"
|
|
3530
3553
|
};
|
|
3531
3554
|
const _hoisted_22 = ["onMouseenter", "onClick"];
|
|
3532
|
-
const _hoisted_23 = { class: "tdd-inline-flex tdd-relative tdd-h-full tdd-w-full tdd-items-center tdd-overflow-hidden tdd-rounded tdd-border tdd-border-solid tdd-px-3" };
|
|
3555
|
+
const _hoisted_23 = { class: "tdd-inline-flex tdd-relative tdd-h-full tdd-w-full tdd-items-center tdd-overflow-hidden tdd-rounded tdd-border tdd-border-solid tdd-px-3 tdd-text-word3" };
|
|
3533
3556
|
const _hoisted_24 = ["value"];
|
|
3534
3557
|
const _hoisted_25 = /* @__PURE__ */ vue.createElementVNode("div", { class: "tdd-mx-2" }, "至", -1);
|
|
3535
3558
|
const _hoisted_26 = ["value"];
|
|
@@ -3542,6 +3565,9 @@
|
|
|
3542
3565
|
setup(__props, { emit }) {
|
|
3543
3566
|
const props = __props;
|
|
3544
3567
|
const Pop = vue.defineAsyncComponent(() => Promise.resolve().then(() => popover));
|
|
3568
|
+
const deleteDateHandle = () => {
|
|
3569
|
+
emit("update:modelValue", [null, null]);
|
|
3570
|
+
};
|
|
3545
3571
|
const date1ChangeHandle = (e) => {
|
|
3546
3572
|
let target = e.target;
|
|
3547
3573
|
let year = new Date(target.value).getFullYear();
|
|
@@ -3550,6 +3576,7 @@
|
|
|
3550
3576
|
emit("update:modelValue", [`${year}-${addZero(month)}-${addZero(day)}`, date2.value]);
|
|
3551
3577
|
};
|
|
3552
3578
|
const date2ChangeHandle = (e) => {
|
|
3579
|
+
debugger;
|
|
3553
3580
|
let target = e.target;
|
|
3554
3581
|
let year = new Date(target.value).getFullYear();
|
|
3555
3582
|
let month = new Date(target.value).getMonth() + 1;
|
|
@@ -3836,7 +3863,7 @@
|
|
|
3836
3863
|
return vue.openBlock(), vue.createBlock(vue.unref(Pop), {
|
|
3837
3864
|
width: "512",
|
|
3838
3865
|
insertClass: "tdd-z-2000 !tdd-p-0",
|
|
3839
|
-
trigger: "
|
|
3866
|
+
trigger: "native",
|
|
3840
3867
|
modelValue: showD.value,
|
|
3841
3868
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => showD.value = $event),
|
|
3842
3869
|
placement: "bottomleft"
|
|
@@ -4002,6 +4029,18 @@
|
|
|
4002
4029
|
], 32)
|
|
4003
4030
|
])
|
|
4004
4031
|
])
|
|
4032
|
+
]),
|
|
4033
|
+
vue.createElementVNode("div", { class: "tdd-flex tdd-justify-end tdd-space-x-2 tdd-text-sm tdd-px-3 tdd-py-1" }, [
|
|
4034
|
+
vue.createElementVNode("button", {
|
|
4035
|
+
type: "button",
|
|
4036
|
+
class: "tdd-text-word3 hover:tdd-text-blue-500 active:tdd-to-blue-700",
|
|
4037
|
+
onClick: deleteDateHandle
|
|
4038
|
+
}, "清空"),
|
|
4039
|
+
vue.createElementVNode("button", {
|
|
4040
|
+
type: "button",
|
|
4041
|
+
class: "tdd-text-word3 hover:tdd-text-blue-500 active:tdd-to-blue-700",
|
|
4042
|
+
onClick: hideDatePick
|
|
4043
|
+
}, "确定")
|
|
4005
4044
|
])
|
|
4006
4045
|
]),
|
|
4007
4046
|
_: 1
|
|
@@ -4082,18 +4121,15 @@
|
|
|
4082
4121
|
class: "tdd-w-4 tdd-h-4 tdd-block tdd-fill-word6",
|
|
4083
4122
|
viewBox: "0 0 1024 1024",
|
|
4084
4123
|
version: "1.1",
|
|
4085
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4086
|
-
"p-id": "669"
|
|
4124
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4087
4125
|
}, [
|
|
4088
4126
|
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4089
4127
|
d: "M842.666667 864c-8.533333 0-14.933333-2.133333-21.333334-8.533333l-341.333333-309.333334c-6.4-6.4-10.666667-14.933333-10.666667-23.466666 0-8.533333 4.266667-17.066667 10.666667-23.466667l341.333333-309.333333c12.8-12.8 34.133333-10.666667 44.8 2.133333 12.8 12.8 10.666667 34.133333-2.133333 44.8L548.266667 522.666667l315.733333 285.866666c12.8 10.666667 14.933333 32 2.133333 44.8-6.4 6.4-14.933333 10.666667-23.466666 10.666667z",
|
|
4090
|
-
fill: "currentColor"
|
|
4091
|
-
"p-id": "670"
|
|
4128
|
+
fill: "currentColor"
|
|
4092
4129
|
}),
|
|
4093
4130
|
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4094
4131
|
d: "M512 864c-8.533333 0-14.933333-2.133333-21.333333-8.533333L149.333333 546.133333c-6.4-6.4-10.666667-14.933333-10.666666-23.466666 0-8.533333 4.266667-17.066667 10.666666-23.466667L490.666667 189.866667c12.8-12.8 34.133333-10.666667 44.8 2.133333 12.8 12.8 10.666667 34.133333-2.133334 44.8L217.6 522.666667 533.333333 808.533333c12.8 12.8 14.933333 32 2.133334 44.8-6.4 6.4-14.933333 10.666667-23.466667 10.666667z",
|
|
4095
|
-
fill: "currentColor"
|
|
4096
|
-
"p-id": "671"
|
|
4132
|
+
fill: "currentColor"
|
|
4097
4133
|
})
|
|
4098
4134
|
], -1);
|
|
4099
4135
|
const _hoisted_5$2 = [
|
|
@@ -4106,23 +4142,19 @@
|
|
|
4106
4142
|
style: { "width": "1em", "height": "1em", "vertical-align": "middle", "fill": "currentColor", "overflow": "hidden" },
|
|
4107
4143
|
viewBox: "0 0 1024 1024",
|
|
4108
4144
|
version: "1.1",
|
|
4109
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4110
|
-
"p-id": "1032"
|
|
4145
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4111
4146
|
};
|
|
4112
4147
|
const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4113
4148
|
d: "M192 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4114
|
-
fill: "currentColor"
|
|
4115
|
-
"p-id": "1033"
|
|
4149
|
+
fill: "currentColor"
|
|
4116
4150
|
}, null, -1);
|
|
4117
4151
|
const _hoisted_9 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4118
4152
|
d: "M512 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4119
|
-
fill: "currentColor"
|
|
4120
|
-
"p-id": "1034"
|
|
4153
|
+
fill: "currentColor"
|
|
4121
4154
|
}, null, -1);
|
|
4122
4155
|
const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4123
4156
|
d: "M832 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4124
|
-
fill: "currentColor"
|
|
4125
|
-
"p-id": "1035"
|
|
4157
|
+
fill: "currentColor"
|
|
4126
4158
|
}, null, -1);
|
|
4127
4159
|
const _hoisted_11 = [
|
|
4128
4160
|
_hoisted_8,
|
|
@@ -4136,23 +4168,19 @@
|
|
|
4136
4168
|
style: { "width": "1em", "height": "1em", "vertical-align": "middle", "fill": "currentColor", "overflow": "hidden" },
|
|
4137
4169
|
viewBox: "0 0 1024 1024",
|
|
4138
4170
|
version: "1.1",
|
|
4139
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4140
|
-
"p-id": "1032"
|
|
4171
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4141
4172
|
};
|
|
4142
4173
|
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4143
4174
|
d: "M192 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4144
|
-
fill: "currentColor"
|
|
4145
|
-
"p-id": "1033"
|
|
4175
|
+
fill: "currentColor"
|
|
4146
4176
|
}, null, -1);
|
|
4147
4177
|
const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4148
4178
|
d: "M512 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4149
|
-
fill: "currentColor"
|
|
4150
|
-
"p-id": "1034"
|
|
4179
|
+
fill: "currentColor"
|
|
4151
4180
|
}, null, -1);
|
|
4152
4181
|
const _hoisted_16 = /* @__PURE__ */ vue.createElementVNode("path", {
|
|
4153
4182
|
d: "M832 512m-64 0a64 64 0 1 0 128 0 64 64 0 1 0-128 0Z",
|
|
4154
|
-
fill: "currentColor"
|
|
4155
|
-
"p-id": "1035"
|
|
4183
|
+
fill: "currentColor"
|
|
4156
4184
|
}, null, -1);
|
|
4157
4185
|
const _hoisted_17 = [
|
|
4158
4186
|
_hoisted_14,
|
|
@@ -4164,18 +4192,15 @@
|
|
|
4164
4192
|
class: "tdd-w-4 tdd-h-4 tdd-block tdd-fill-word6",
|
|
4165
4193
|
viewBox: "0 0 1024 1024",
|
|
4166
4194
|
version: "1.1",
|
|
4167
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4168
|
-
"p-id": "693"
|
|
4195
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4169
4196
|
}, [
|
|
4170
4197
|
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4171
4198
|
d: "M544 522.666667c0-8.533333-4.266667-17.066667-10.666667-23.466667L192 189.866667c-12.8-12.8-34.133333-10.666667-44.8 2.133333-12.8 12.8-10.666667 34.133333 2.133333 44.8l315.733334 285.866667L149.333333 808.533333c-12.8 12.8-14.933333 32-2.133333 44.8 6.4 6.4 14.933333 10.666667 23.466667 10.666667 8.533333 0 14.933333-2.133333 21.333333-8.533333l341.333333-309.333334c6.4-6.4 10.666667-14.933333 10.666667-23.466666z",
|
|
4172
|
-
fill: "currentColor"
|
|
4173
|
-
"p-id": "694"
|
|
4199
|
+
fill: "currentColor"
|
|
4174
4200
|
}),
|
|
4175
4201
|
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4176
4202
|
d: "M864 499.2l-341.333333-309.333333c-12.8-12.8-34.133333-10.666667-44.8 2.133333-12.8 12.8-10.666667 34.133333 2.133333 44.8l315.733333 285.866667-315.733333 285.866666c-12.8 12.8-14.933333 32-2.133333 44.8 6.4 6.4 14.933333 10.666667 23.466666 10.666667 8.533333 0 14.933333-2.133333 21.333334-8.533333l341.333333-309.333334c6.4-6.4 10.666667-14.933333 10.666667-23.466666 0-8.533333-4.266667-17.066667-10.666667-23.466667z",
|
|
4177
|
-
fill: "currentColor"
|
|
4178
|
-
"p-id": "695"
|
|
4203
|
+
fill: "currentColor"
|
|
4179
4204
|
})
|
|
4180
4205
|
], -1);
|
|
4181
4206
|
const _hoisted_20 = [
|
|
@@ -4578,13 +4603,9 @@
|
|
|
4578
4603
|
class: "tdd-h-4 tdd-w-4 tdd-fill-word6 tdd-inline-block",
|
|
4579
4604
|
viewBox: "0 0 1024 1024",
|
|
4580
4605
|
version: "1.1",
|
|
4581
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4582
|
-
"p-id": "1584"
|
|
4606
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4583
4607
|
}, [
|
|
4584
|
-
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4585
|
-
d: "M853.333333 544H170.666667c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32h682.666666c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32z",
|
|
4586
|
-
"p-id": "1585"
|
|
4587
|
-
})
|
|
4608
|
+
/* @__PURE__ */ vue.createElementVNode("path", { d: "M853.333333 544H170.666667c-17.066667 0-32-14.933333-32-32s14.933333-32 32-32h682.666666c17.066667 0 32 14.933333 32 32s-14.933333 32-32 32z" })
|
|
4588
4609
|
], -1);
|
|
4589
4610
|
const _hoisted_4$3 = [
|
|
4590
4611
|
_hoisted_3$5
|
|
@@ -4594,13 +4615,9 @@
|
|
|
4594
4615
|
class: "tdd-h-4 tdd-w-4 tdd-fill-word6 tdd-inline-block",
|
|
4595
4616
|
viewBox: "0 0 1024 1024",
|
|
4596
4617
|
version: "1.1",
|
|
4597
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4598
|
-
"p-id": "532"
|
|
4618
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4599
4619
|
}, [
|
|
4600
|
-
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
4601
|
-
d: "M853.333333 480H544V170.666667c0-17.066667-14.933333-32-32-32s-32 14.933333-32 32v309.333333H170.666667c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h309.333333V853.333333c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V544H853.333333c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32z",
|
|
4602
|
-
"p-id": "533"
|
|
4603
|
-
})
|
|
4620
|
+
/* @__PURE__ */ vue.createElementVNode("path", { d: "M853.333333 480H544V170.666667c0-17.066667-14.933333-32-32-32s-32 14.933333-32 32v309.333333H170.666667c-17.066667 0-32 14.933333-32 32s14.933333 32 32 32h309.333333V853.333333c0 17.066667 14.933333 32 32 32s32-14.933333 32-32V544H853.333333c17.066667 0 32-14.933333 32-32s-14.933333-32-32-32z" })
|
|
4604
4621
|
], -1);
|
|
4605
4622
|
const _hoisted_7 = [
|
|
4606
4623
|
_hoisted_6
|
|
@@ -4619,29 +4636,22 @@
|
|
|
4619
4636
|
emits: ["update:modelValue", "NumChange"],
|
|
4620
4637
|
setup(__props, { emit: emitAct }) {
|
|
4621
4638
|
const props = __props;
|
|
4639
|
+
function updateModelValueAndEmit(value) {
|
|
4640
|
+
const formattedValue = value.toFixed(lastLen.value);
|
|
4641
|
+
emitAct("update:modelValue", Number(formattedValue));
|
|
4642
|
+
emitAct("NumChange", Number(formattedValue));
|
|
4643
|
+
}
|
|
4644
|
+
const lastLen = vue.computed(() => {
|
|
4645
|
+
var _a;
|
|
4646
|
+
return (_a = props.step.toString().split(".")[1]) == null ? void 0 : _a.length;
|
|
4647
|
+
});
|
|
4622
4648
|
const addHandle = () => {
|
|
4623
|
-
var _a, _b;
|
|
4624
|
-
let modelLen = (_a = props.modelValue.toString().split(".")[1]) == null ? void 0 : _a.length;
|
|
4625
|
-
let stepLen = (_b = props.step.toString().split(".")[1]) == null ? void 0 : _b.length;
|
|
4626
|
-
let lastLen = 0;
|
|
4627
|
-
if (modelLen) {
|
|
4628
|
-
lastLen = modelLen > stepLen ? modelLen : stepLen;
|
|
4629
|
-
}
|
|
4630
4649
|
let result = props.modelValue + props.step;
|
|
4631
|
-
|
|
4632
|
-
emitAct("NumChange", Number(result.toFixed(lastLen)));
|
|
4650
|
+
updateModelValueAndEmit(result);
|
|
4633
4651
|
};
|
|
4634
4652
|
const reduceHandle = () => {
|
|
4635
|
-
var _a, _b;
|
|
4636
|
-
let modelLen = (_a = props.modelValue.toString().split(".")[1]) == null ? void 0 : _a.length;
|
|
4637
|
-
let stepLen = (_b = props.step.toString().split(".")[1]) == null ? void 0 : _b.length;
|
|
4638
|
-
let lastLen = 0;
|
|
4639
|
-
if (modelLen) {
|
|
4640
|
-
lastLen = modelLen > stepLen ? modelLen : stepLen;
|
|
4641
|
-
}
|
|
4642
4653
|
let result = props.modelValue - props.step;
|
|
4643
|
-
|
|
4644
|
-
emitAct("NumChange", Number(result.toFixed(lastLen)));
|
|
4654
|
+
updateModelValueAndEmit(result);
|
|
4645
4655
|
};
|
|
4646
4656
|
const inputValue = vue.computed({
|
|
4647
4657
|
get() {
|
|
@@ -4728,80 +4738,49 @@
|
|
|
4728
4738
|
const props = __props;
|
|
4729
4739
|
const ParentGetChangeHandle = vue.inject("changHandle", () => null);
|
|
4730
4740
|
const slots = vue.useSlots();
|
|
4741
|
+
const BoxHandle = (MySlot) => {
|
|
4742
|
+
var _a, _b;
|
|
4743
|
+
return vue.h(
|
|
4744
|
+
"label",
|
|
4745
|
+
{
|
|
4746
|
+
class: "radioGroup " + (((_a = MySlot.props) == null ? void 0 : _a.class) || "") + (props.modelValue == MySlot.props.label ? " tdd-bg-wordblue" : "")
|
|
4747
|
+
},
|
|
4748
|
+
[
|
|
4749
|
+
vue.withDirectives(
|
|
4750
|
+
vue.h("input", {
|
|
4751
|
+
type: "radio",
|
|
4752
|
+
value: MySlot.props.label,
|
|
4753
|
+
"onUpdate:modelValue": (value) => {
|
|
4754
|
+
ParentGetChangeHandle(value);
|
|
4755
|
+
emit("update:modelValue", value);
|
|
4756
|
+
},
|
|
4757
|
+
class: "hiddeninput form-tick" + (props.showinput ? "" : " tdd-hidden")
|
|
4758
|
+
}),
|
|
4759
|
+
[[vue.vModelRadio, props.modelValue]]
|
|
4760
|
+
),
|
|
4761
|
+
vue.h(
|
|
4762
|
+
"span",
|
|
4763
|
+
{
|
|
4764
|
+
class: "tdd-text-sm " + (props.modelValue == MySlot.props.label ? " tdd-text-white" : " tdd-text-word6")
|
|
4765
|
+
},
|
|
4766
|
+
((_b = MySlot.children) == null ? void 0 : _b.default()) || MySlot.props.label
|
|
4767
|
+
)
|
|
4768
|
+
]
|
|
4769
|
+
);
|
|
4770
|
+
};
|
|
4731
4771
|
const renderBoxs = () => {
|
|
4732
4772
|
return vue.h(
|
|
4733
4773
|
"div",
|
|
4734
4774
|
{},
|
|
4735
4775
|
slots.default().map((MySlot) => {
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
"label",
|
|
4743
|
-
{
|
|
4744
|
-
class: "radioGroup " + // @ts-ignore
|
|
4745
|
-
(trueSlot.props.class || "") + // @ts-ignore
|
|
4746
|
-
(props.modelValue == trueSlot.props.label ? " tdd-bg-wordblue" : "")
|
|
4747
|
-
},
|
|
4748
|
-
[
|
|
4749
|
-
vue.withDirectives(
|
|
4750
|
-
vue.h("input", {
|
|
4751
|
-
type: "radio",
|
|
4752
|
-
// @ts-ignore
|
|
4753
|
-
value: trueSlot.props.label,
|
|
4754
|
-
"onUpdate:modelValue": (value) => {
|
|
4755
|
-
ParentGetChangeHandle(value);
|
|
4756
|
-
emit("update:modelValue", value);
|
|
4757
|
-
},
|
|
4758
|
-
class: "hiddeninput form-tick" + // @ts-ignore
|
|
4759
|
-
(props.showinput ? "" : " tdd-hidden")
|
|
4760
|
-
}),
|
|
4761
|
-
[[vue.vModelRadio, props.modelValue]]
|
|
4762
|
-
),
|
|
4763
|
-
vue.h(
|
|
4764
|
-
"span",
|
|
4765
|
-
{
|
|
4766
|
-
class: "tdd-text-sm " + // @ts-ignore
|
|
4767
|
-
(props.modelValue == trueSlot.props.label ? " tdd-text-white" : " tdd-text-word6")
|
|
4768
|
-
},
|
|
4769
|
-
// @ts-ignore
|
|
4770
|
-
((_a2 = trueSlot.children) == null ? void 0 : _a2.default()) || trueSlot.props.label
|
|
4771
|
-
)
|
|
4772
|
-
]
|
|
4773
|
-
);
|
|
4774
|
-
});
|
|
4775
|
-
}
|
|
4776
|
+
if (typeof MySlot.children === "string")
|
|
4777
|
+
return null;
|
|
4778
|
+
if (Array.isArray(MySlot.children)) {
|
|
4779
|
+
return MySlot.children.map((slot) => {
|
|
4780
|
+
return BoxHandle(slot);
|
|
4781
|
+
});
|
|
4776
4782
|
} else {
|
|
4777
|
-
return
|
|
4778
|
-
"label",
|
|
4779
|
-
{
|
|
4780
|
-
class: "radioGroup " + (((_a = MySlot.props) == null ? void 0 : _a.class) || "") + (props.modelValue == MySlot.props.label ? " tdd-bg-wordblue" : "")
|
|
4781
|
-
},
|
|
4782
|
-
[
|
|
4783
|
-
vue.withDirectives(
|
|
4784
|
-
vue.h("input", {
|
|
4785
|
-
type: "radio",
|
|
4786
|
-
value: MySlot.props.label,
|
|
4787
|
-
"onUpdate:modelValue": (value) => {
|
|
4788
|
-
ParentGetChangeHandle(value);
|
|
4789
|
-
emit("update:modelValue", value);
|
|
4790
|
-
},
|
|
4791
|
-
class: "hiddeninput form-tick" + (props.showinput ? "" : " tdd-hidden")
|
|
4792
|
-
}),
|
|
4793
|
-
[[vue.vModelRadio, props.modelValue]]
|
|
4794
|
-
),
|
|
4795
|
-
vue.h(
|
|
4796
|
-
"span",
|
|
4797
|
-
{
|
|
4798
|
-
class: "tdd-text-sm " + (props.modelValue == MySlot.props.label ? " tdd-text-white" : " tdd-text-word6")
|
|
4799
|
-
},
|
|
4800
|
-
// @ts-ignore
|
|
4801
|
-
((_b = MySlot.children) == null ? void 0 : _b.default()) || MySlot.props.label
|
|
4802
|
-
)
|
|
4803
|
-
]
|
|
4804
|
-
);
|
|
4783
|
+
return BoxHandle(MySlot);
|
|
4805
4784
|
}
|
|
4806
4785
|
})
|
|
4807
4786
|
);
|
|
@@ -4843,72 +4822,49 @@
|
|
|
4843
4822
|
const props = __props;
|
|
4844
4823
|
const ParentGetChangeHandle = vue.inject("changHandle", () => null);
|
|
4845
4824
|
const slots = vue.useSlots();
|
|
4825
|
+
const BoxHandle = (MySlot) => {
|
|
4826
|
+
var _a;
|
|
4827
|
+
return vue.h(
|
|
4828
|
+
"label",
|
|
4829
|
+
{
|
|
4830
|
+
class: "checkGroup " + (MySlot.props.class || "") + (props.modelValue.includes(MySlot.props.label) ? " tdd-bg-wordblue" : "")
|
|
4831
|
+
},
|
|
4832
|
+
[
|
|
4833
|
+
vue.withDirectives(
|
|
4834
|
+
vue.h("input", {
|
|
4835
|
+
type: "checkbox",
|
|
4836
|
+
value: MySlot.props.label,
|
|
4837
|
+
"onUpdate:modelValue": (value) => {
|
|
4838
|
+
ParentGetChangeHandle(value);
|
|
4839
|
+
emit("update:modelValue", value);
|
|
4840
|
+
},
|
|
4841
|
+
class: "hiddeninput form-tick" + (props.showinput ? "" : " tdd-hidden")
|
|
4842
|
+
}),
|
|
4843
|
+
[[vue.vModelCheckbox, props.modelValue]]
|
|
4844
|
+
),
|
|
4845
|
+
vue.h(
|
|
4846
|
+
"span",
|
|
4847
|
+
{
|
|
4848
|
+
class: "tdd-text-sm " + (props.modelValue.includes(MySlot.props.label) ? " tdd-text-white" : " tdd-text-word6")
|
|
4849
|
+
},
|
|
4850
|
+
((_a = MySlot.children) == null ? void 0 : _a.default()) || MySlot.props.label
|
|
4851
|
+
)
|
|
4852
|
+
]
|
|
4853
|
+
);
|
|
4854
|
+
};
|
|
4846
4855
|
const renderBoxs = () => {
|
|
4847
4856
|
return vue.h(
|
|
4848
4857
|
"div",
|
|
4849
4858
|
{},
|
|
4850
4859
|
slots.default().map((MySlot) => {
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
return
|
|
4856
|
-
"label",
|
|
4857
|
-
{
|
|
4858
|
-
class: "checkGroup " + (trueSlot.props.class || "") + (props.modelValue.includes(trueSlot.props.label) ? " tdd-bg-wordblue" : "")
|
|
4859
|
-
},
|
|
4860
|
-
[
|
|
4861
|
-
vue.withDirectives(
|
|
4862
|
-
vue.h("input", {
|
|
4863
|
-
type: "checkbox",
|
|
4864
|
-
value: trueSlot.props.label,
|
|
4865
|
-
"onUpdate:modelValue": (value) => {
|
|
4866
|
-
ParentGetChangeHandle(value);
|
|
4867
|
-
emit("update:modelValue", value);
|
|
4868
|
-
},
|
|
4869
|
-
class: "hiddeninput form-tick" + (props.showinput ? "" : " tdd-hidden")
|
|
4870
|
-
}),
|
|
4871
|
-
[[vue.vModelCheckbox, props.modelValue]]
|
|
4872
|
-
),
|
|
4873
|
-
vue.h(
|
|
4874
|
-
"span",
|
|
4875
|
-
{
|
|
4876
|
-
class: "tdd-text-sm " + (props.modelValue.includes(trueSlot.props.label) ? " tdd-text-white" : " tdd-text-word6")
|
|
4877
|
-
},
|
|
4878
|
-
((_a2 = trueSlot.children) == null ? void 0 : _a2.default()) || trueSlot.props.label
|
|
4879
|
-
)
|
|
4880
|
-
]
|
|
4881
|
-
);
|
|
4860
|
+
if (typeof MySlot.children === "string")
|
|
4861
|
+
return null;
|
|
4862
|
+
if (Array.isArray(MySlot.children)) {
|
|
4863
|
+
return MySlot.children.map((slot) => {
|
|
4864
|
+
return BoxHandle(slot);
|
|
4882
4865
|
});
|
|
4883
4866
|
} else {
|
|
4884
|
-
return
|
|
4885
|
-
"label",
|
|
4886
|
-
{
|
|
4887
|
-
class: "checkGroup " + (MySlot.props.class || "") + (props.modelValue.includes(MySlot.props.label) ? " tdd-bg-wordblue" : "")
|
|
4888
|
-
},
|
|
4889
|
-
[
|
|
4890
|
-
vue.withDirectives(
|
|
4891
|
-
vue.h("input", {
|
|
4892
|
-
type: "checkbox",
|
|
4893
|
-
value: MySlot.props.label,
|
|
4894
|
-
"onUpdate:modelValue": (value) => {
|
|
4895
|
-
ParentGetChangeHandle(value);
|
|
4896
|
-
emit("update:modelValue", value);
|
|
4897
|
-
},
|
|
4898
|
-
class: "hiddeninput form-tick" + (props.showinput ? "" : " tdd-hidden")
|
|
4899
|
-
}),
|
|
4900
|
-
[[vue.vModelCheckbox, props.modelValue]]
|
|
4901
|
-
),
|
|
4902
|
-
vue.h(
|
|
4903
|
-
"span",
|
|
4904
|
-
{
|
|
4905
|
-
class: "tdd-text-sm " + (props.modelValue.includes(MySlot.props.label) ? " tdd-text-white" : " tdd-text-word6")
|
|
4906
|
-
},
|
|
4907
|
-
// @ts-ignore
|
|
4908
|
-
((_a = MySlot.children) == null ? void 0 : _a.default()) || MySlot.props.label
|
|
4909
|
-
)
|
|
4910
|
-
]
|
|
4911
|
-
);
|
|
4867
|
+
return BoxHandle(MySlot);
|
|
4912
4868
|
}
|
|
4913
4869
|
})
|
|
4914
4870
|
);
|
|
@@ -5056,23 +5012,39 @@
|
|
|
5056
5012
|
const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
|
|
5057
5013
|
__name: "tabs",
|
|
5058
5014
|
props: {
|
|
5059
|
-
active: {},
|
|
5060
|
-
default: {},
|
|
5015
|
+
active: { default: "" },
|
|
5061
5016
|
type: { default: "line" }
|
|
5062
5017
|
},
|
|
5063
5018
|
emits: ["update:active"],
|
|
5064
5019
|
setup(__props, { emit }) {
|
|
5065
5020
|
const props = __props;
|
|
5066
5021
|
const showBaseline = vue.computed(() => props.type === "line");
|
|
5067
|
-
const currentActive = vue.ref(props.default || "");
|
|
5068
|
-
const activeIndex = vue.ref(0);
|
|
5069
|
-
const arrowNum = vue.ref(8);
|
|
5070
|
-
const arrowWidth = vue.ref(0);
|
|
5071
5022
|
const changeHandle = (name) => {
|
|
5072
5023
|
emit("update:active", name);
|
|
5073
5024
|
};
|
|
5025
|
+
const noactive = vue.ref(props.active === "");
|
|
5026
|
+
const activename = vue.ref("");
|
|
5027
|
+
const currentActive = vue.computed({
|
|
5028
|
+
set(val) {
|
|
5029
|
+
if (noactive.value) {
|
|
5030
|
+
activename.value = val;
|
|
5031
|
+
} else {
|
|
5032
|
+
changeHandle(val);
|
|
5033
|
+
}
|
|
5034
|
+
},
|
|
5035
|
+
get() {
|
|
5036
|
+
if (noactive.value) {
|
|
5037
|
+
return activename.value;
|
|
5038
|
+
} else {
|
|
5039
|
+
return props.active;
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
});
|
|
5043
|
+
const activeIndex = vue.ref(0);
|
|
5044
|
+
const arrowNum = vue.ref(8);
|
|
5045
|
+
const arrowWidth = vue.ref(0);
|
|
5074
5046
|
const slots = vue.useSlots();
|
|
5075
|
-
const renderBtn = (
|
|
5047
|
+
const renderBtn = (node, index2) => {
|
|
5076
5048
|
let btc = [];
|
|
5077
5049
|
let divc = [];
|
|
5078
5050
|
switch (props.type) {
|
|
@@ -5107,17 +5079,15 @@
|
|
|
5107
5079
|
let aim = e.target;
|
|
5108
5080
|
arrowWidth.value = aim.offsetWidth;
|
|
5109
5081
|
arrowNum.value = aim.offsetLeft;
|
|
5110
|
-
|
|
5111
|
-
currentActive.value = name;
|
|
5082
|
+
currentActive.value = node.props.name;
|
|
5112
5083
|
}
|
|
5113
|
-
// key: index,
|
|
5114
5084
|
},
|
|
5115
5085
|
vue.h(
|
|
5116
5086
|
"span",
|
|
5117
5087
|
{
|
|
5118
5088
|
class: divc.join(" ")
|
|
5119
5089
|
},
|
|
5120
|
-
name
|
|
5090
|
+
node.props.name
|
|
5121
5091
|
)
|
|
5122
5092
|
);
|
|
5123
5093
|
};
|
|
@@ -5125,84 +5095,84 @@
|
|
|
5125
5095
|
return vue.h(
|
|
5126
5096
|
"div",
|
|
5127
5097
|
{
|
|
5128
|
-
class: `ETab${props.type === "line" ? " px-2 pt-2" : " ETab_Card"}`
|
|
5098
|
+
class: `ETab${props.type === "line" ? " tdd-px-2 tdd-pt-2" : " ETab_Card"}`
|
|
5129
5099
|
},
|
|
5130
5100
|
slots.default().map((it, index2) => {
|
|
5131
|
-
|
|
5132
|
-
|
|
5101
|
+
if (typeof it.children == "string")
|
|
5102
|
+
return null;
|
|
5103
|
+
if (Array.isArray(it.children)) {
|
|
5133
5104
|
return it.children.map((simple, i) => {
|
|
5134
|
-
return renderBtn(simple
|
|
5105
|
+
return renderBtn(simple, i);
|
|
5135
5106
|
});
|
|
5136
5107
|
} else {
|
|
5137
|
-
return renderBtn(
|
|
5108
|
+
return renderBtn(it, index2);
|
|
5138
5109
|
}
|
|
5139
5110
|
})
|
|
5140
5111
|
);
|
|
5141
5112
|
};
|
|
5113
|
+
const contentHandle = (it, i) => {
|
|
5114
|
+
if (currentActive.value === "") {
|
|
5115
|
+
activeIndex.value = i;
|
|
5116
|
+
currentActive.value = it.props.name;
|
|
5117
|
+
} else if (currentActive.value === it.props.name) {
|
|
5118
|
+
activeIndex.value = i;
|
|
5119
|
+
}
|
|
5120
|
+
return vue.withDirectives(
|
|
5121
|
+
vue.h(it, {
|
|
5122
|
+
key: it.props.name
|
|
5123
|
+
}),
|
|
5124
|
+
[[vue.vShow, currentActive.value === "" || currentActive.value === it.props.name]]
|
|
5125
|
+
);
|
|
5126
|
+
};
|
|
5142
5127
|
const renderContent = () => {
|
|
5128
|
+
let defaultindex = -1;
|
|
5143
5129
|
return vue.h(
|
|
5144
5130
|
"div",
|
|
5145
5131
|
{},
|
|
5146
|
-
slots.default().map((it,
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
} else if (currentActive.value === simple.props.name) {
|
|
5154
|
-
activeIndex.value = i;
|
|
5155
|
-
}
|
|
5156
|
-
return vue.withDirectives(
|
|
5157
|
-
vue.h(simple, {
|
|
5158
|
-
key: simple.props.name
|
|
5159
|
-
}),
|
|
5160
|
-
[[vue.vShow, currentActive.value === "" || currentActive.value === simple.props.name]]
|
|
5161
|
-
);
|
|
5132
|
+
slots.default().map((it, _) => {
|
|
5133
|
+
if (typeof it.children == "string")
|
|
5134
|
+
return null;
|
|
5135
|
+
if (Array.isArray(it.children)) {
|
|
5136
|
+
return it.children.map((itt, _i) => {
|
|
5137
|
+
defaultindex += 1;
|
|
5138
|
+
return contentHandle(itt, defaultindex);
|
|
5162
5139
|
});
|
|
5163
5140
|
} else {
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
currentActive.value = (_a = it.props) == null ? void 0 : _a.name;
|
|
5167
|
-
} else if (currentActive.value === ((_b = it.props) == null ? void 0 : _b.name)) {
|
|
5168
|
-
activeIndex.value = index2;
|
|
5169
|
-
}
|
|
5170
|
-
return vue.withDirectives(
|
|
5171
|
-
vue.h(it, {
|
|
5172
|
-
key: it.props.name
|
|
5173
|
-
}),
|
|
5174
|
-
[[vue.vShow, currentActive.value === "" || currentActive.value === it.props.name]]
|
|
5175
|
-
);
|
|
5141
|
+
defaultindex += 1;
|
|
5142
|
+
return contentHandle(it, defaultindex);
|
|
5176
5143
|
}
|
|
5177
5144
|
})
|
|
5178
5145
|
);
|
|
5179
5146
|
};
|
|
5180
5147
|
const btnBar = vue.ref();
|
|
5181
5148
|
vue.onMounted(() => {
|
|
5182
|
-
if (
|
|
5149
|
+
if (showBaseline.value) {
|
|
5183
5150
|
const aim = btnBar.value.children[activeIndex.value];
|
|
5184
|
-
arrowWidth.value = aim.children[0].innerHTML.length * 14
|
|
5151
|
+
arrowWidth.value = aim.children[0].innerHTML.length * 14;
|
|
5185
5152
|
}
|
|
5186
5153
|
});
|
|
5187
5154
|
return (_ctx, _cache) => {
|
|
5188
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
5189
|
-
vue.
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
vue.
|
|
5155
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
5156
|
+
vue.createTextVNode(vue.toDisplayString(noactive.value) + " ", 1),
|
|
5157
|
+
vue.createElementVNode("div", _hoisted_1$4, [
|
|
5158
|
+
vue.createVNode(renderBar, {
|
|
5159
|
+
ref_key: "btnBar",
|
|
5160
|
+
ref: btnBar
|
|
5161
|
+
}, null, 512),
|
|
5162
|
+
showBaseline.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
|
|
5163
|
+
vue.createElementVNode("div", {
|
|
5164
|
+
class: "tdd-absolute tdd-bottom-0 tdd-border-t-2 tdd-border-solid tdd-border-blue-brand tdd-transition",
|
|
5165
|
+
style: vue.normalizeStyle({
|
|
5166
|
+
transform: `translateX(${arrowNum.value}px`,
|
|
5167
|
+
width: `${arrowWidth.value}px`
|
|
5168
|
+
})
|
|
5169
|
+
}, null, 4)
|
|
5170
|
+
])) : vue.createCommentVNode("", true),
|
|
5171
|
+
vue.createElementVNode("div", _hoisted_3$3, [
|
|
5172
|
+
vue.createVNode(renderContent)
|
|
5173
|
+
])
|
|
5204
5174
|
])
|
|
5205
|
-
]);
|
|
5175
|
+
], 64);
|
|
5206
5176
|
};
|
|
5207
5177
|
}
|
|
5208
5178
|
});
|
|
@@ -5439,13 +5409,9 @@
|
|
|
5439
5409
|
class: "tdd-w-4 tdd-h-4 tdd-fill-white tdd-inline-block",
|
|
5440
5410
|
viewBox: "0 0 1024 1024",
|
|
5441
5411
|
version: "1.1",
|
|
5442
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5443
|
-
"p-id": "613"
|
|
5412
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5444
5413
|
}, [
|
|
5445
|
-
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
5446
|
-
d: "M320 885.333333c-8.533333 0-17.066667-4.266667-23.466667-10.666666-12.8-12.8-10.666667-34.133333 2.133334-44.8L654.933333 512 298.666667 194.133333c-12.8-10.666667-14.933333-32-2.133334-44.8 10.666667-12.8 32-14.933333 44.8-2.133333l384 341.333333c6.4 6.4 10.666667 14.933333 10.666667 23.466667 0 8.533333-4.266667 17.066667-10.666667 23.466667l-384 341.333333c-6.4 6.4-12.8 8.533333-21.333333 8.533333z",
|
|
5447
|
-
"p-id": "614"
|
|
5448
|
-
})
|
|
5414
|
+
/* @__PURE__ */ vue.createElementVNode("path", { d: "M320 885.333333c-8.533333 0-17.066667-4.266667-23.466667-10.666666-12.8-12.8-10.666667-34.133333 2.133334-44.8L654.933333 512 298.666667 194.133333c-12.8-10.666667-14.933333-32-2.133334-44.8 10.666667-12.8 32-14.933333 44.8-2.133333l384 341.333333c6.4 6.4 10.666667 14.933333 10.666667 23.466667 0 8.533333-4.266667 17.066667-10.666667 23.466667l-384 341.333333c-6.4 6.4-12.8 8.533333-21.333333 8.533333z" })
|
|
5449
5415
|
], -1);
|
|
5450
5416
|
const _hoisted_2$2 = [
|
|
5451
5417
|
_hoisted_1$2
|
|
@@ -5454,13 +5420,9 @@
|
|
|
5454
5420
|
class: "tdd-w-4 tdd-h-4 tdd-fill-white tdd-inline-block",
|
|
5455
5421
|
viewBox: "0 0 1024 1024",
|
|
5456
5422
|
version: "1.1",
|
|
5457
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
5458
|
-
"p-id": "613"
|
|
5423
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
5459
5424
|
}, [
|
|
5460
|
-
/* @__PURE__ */ vue.createElementVNode("path", {
|
|
5461
|
-
d: "M320 885.333333c-8.533333 0-17.066667-4.266667-23.466667-10.666666-12.8-12.8-10.666667-34.133333 2.133334-44.8L654.933333 512 298.666667 194.133333c-12.8-10.666667-14.933333-32-2.133334-44.8 10.666667-12.8 32-14.933333 44.8-2.133333l384 341.333333c6.4 6.4 10.666667 14.933333 10.666667 23.466667 0 8.533333-4.266667 17.066667-10.666667 23.466667l-384 341.333333c-6.4 6.4-12.8 8.533333-21.333333 8.533333z",
|
|
5462
|
-
"p-id": "614"
|
|
5463
|
-
})
|
|
5425
|
+
/* @__PURE__ */ vue.createElementVNode("path", { d: "M320 885.333333c-8.533333 0-17.066667-4.266667-23.466667-10.666666-12.8-12.8-10.666667-34.133333 2.133334-44.8L654.933333 512 298.666667 194.133333c-12.8-10.666667-14.933333-32-2.133334-44.8 10.666667-12.8 32-14.933333 44.8-2.133333l384 341.333333c6.4 6.4 10.666667 14.933333 10.666667 23.466667 0 8.533333-4.266667 17.066667-10.666667 23.466667l-384 341.333333c-6.4 6.4-12.8 8.533333-21.333333 8.533333z" })
|
|
5464
5426
|
], -1);
|
|
5465
5427
|
const _hoisted_4$1 = [
|
|
5466
5428
|
_hoisted_3$2
|
|
@@ -5475,68 +5437,57 @@
|
|
|
5475
5437
|
const slots = vue.useSlots();
|
|
5476
5438
|
const activeIndex = vue.ref(0);
|
|
5477
5439
|
const totalLen = vue.computed(() => {
|
|
5478
|
-
|
|
5479
|
-
|
|
5440
|
+
return slots.default().reduce((pre, cur) => {
|
|
5441
|
+
if (typeof cur.children === "string") {
|
|
5442
|
+
return pre;
|
|
5443
|
+
}
|
|
5444
|
+
if (Array.isArray(cur.children)) {
|
|
5445
|
+
return pre += cur.children.length;
|
|
5446
|
+
} else {
|
|
5447
|
+
return pre += 1;
|
|
5448
|
+
}
|
|
5449
|
+
}, 0);
|
|
5450
|
+
});
|
|
5451
|
+
const bodyHandle = (MySlot, d) => {
|
|
5452
|
+
let between = d - activeIndex.value;
|
|
5453
|
+
let transformNum = 0;
|
|
5454
|
+
if (between < 0) {
|
|
5455
|
+
if (between == -1) {
|
|
5456
|
+
transformNum = -translatexNum.value;
|
|
5457
|
+
} else {
|
|
5458
|
+
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
5459
|
+
}
|
|
5480
5460
|
} else {
|
|
5481
|
-
|
|
5461
|
+
if (activeIndex.value === 0 && d == totalLen.value - 1 && totalLen.value != 1) {
|
|
5462
|
+
transformNum = -translatexNum.value;
|
|
5463
|
+
} else {
|
|
5464
|
+
transformNum = between * translatexNum.value;
|
|
5465
|
+
}
|
|
5482
5466
|
}
|
|
5483
|
-
|
|
5467
|
+
return vue.h(
|
|
5468
|
+
"div",
|
|
5469
|
+
{
|
|
5470
|
+
class: "carouselBody " + (activeIndex.value === d ? "tdd-z-10" : "-tdd-z-10"),
|
|
5471
|
+
style: {
|
|
5472
|
+
transform: `translateX(${transformNum}px)`
|
|
5473
|
+
}
|
|
5474
|
+
},
|
|
5475
|
+
vue.h(MySlot)
|
|
5476
|
+
);
|
|
5477
|
+
};
|
|
5484
5478
|
const renderBody = () => {
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
} else {
|
|
5494
|
-
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
5495
|
-
}
|
|
5496
|
-
} else {
|
|
5497
|
-
if (activeIndex.value === 0 && i == totalLen.value - 1 && totalLen.value != 1) {
|
|
5498
|
-
transformNum = -translatexNum.value;
|
|
5499
|
-
} else {
|
|
5500
|
-
transformNum = between * translatexNum.value;
|
|
5501
|
-
}
|
|
5502
|
-
}
|
|
5503
|
-
return vue.h(
|
|
5504
|
-
"div",
|
|
5505
|
-
{
|
|
5506
|
-
class: "carouselBody " + (activeIndex.value === i ? "tdd-z-10" : "-tdd-z-10"),
|
|
5507
|
-
style: {
|
|
5508
|
-
transform: `translateX(${transformNum}px)`
|
|
5509
|
-
}
|
|
5510
|
-
},
|
|
5511
|
-
vue.h(trueSlot)
|
|
5512
|
-
);
|
|
5479
|
+
let indexflag = -1;
|
|
5480
|
+
return slots.default().map((MySlot, _) => {
|
|
5481
|
+
if (typeof MySlot.children == "string")
|
|
5482
|
+
return null;
|
|
5483
|
+
if (Array.isArray(MySlot.children)) {
|
|
5484
|
+
return MySlot.children.map((slot, _2) => {
|
|
5485
|
+
indexflag += 1;
|
|
5486
|
+
return bodyHandle(slot, indexflag);
|
|
5513
5487
|
});
|
|
5514
5488
|
} else {
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
if (between < 0) {
|
|
5518
|
-
if (between == -1) {
|
|
5519
|
-
transformNum = -translatexNum.value;
|
|
5520
|
-
} else {
|
|
5521
|
-
transformNum = (totalLen.value + between) * translatexNum.value;
|
|
5522
|
-
}
|
|
5523
|
-
} else {
|
|
5524
|
-
if (activeIndex.value === 0 && d == totalLen.value - 1 && totalLen.value != 1) {
|
|
5525
|
-
transformNum = -translatexNum.value;
|
|
5526
|
-
} else {
|
|
5527
|
-
transformNum = between * translatexNum.value;
|
|
5528
|
-
}
|
|
5529
|
-
}
|
|
5530
|
-
return vue.h(
|
|
5531
|
-
"div",
|
|
5532
|
-
{
|
|
5533
|
-
class: "carouselBody " + (activeIndex.value === d ? "tdd-z-10" : "-tdd-z-10"),
|
|
5534
|
-
style: {
|
|
5535
|
-
transform: `translateX(${transformNum}px)`
|
|
5536
|
-
}
|
|
5537
|
-
},
|
|
5538
|
-
vue.h(MySlot)
|
|
5539
|
-
);
|
|
5489
|
+
indexflag += 1;
|
|
5490
|
+
return bodyHandle(MySlot, indexflag);
|
|
5540
5491
|
}
|
|
5541
5492
|
});
|
|
5542
5493
|
};
|