btxui 1.0.34 → 1.0.36
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.js +560 -134
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle,
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, toDisplayString, renderList, createSlots, onBeforeMount, KeepAlive } from "vue";
|
|
2
2
|
const prestyles = {
|
|
3
3
|
//预置样式-----------------------------------------------------------------------------------
|
|
4
4
|
// 文本对齐
|
|
@@ -98,9 +98,10 @@ const prestyles = {
|
|
|
98
98
|
"bg-fixed": `background-attachment: scroll;`,
|
|
99
99
|
// 圆角
|
|
100
100
|
"round": `border-radius: 50%;`,
|
|
101
|
-
"round-lg": `
|
|
101
|
+
"round-lg": `border-radius: 24px;`,
|
|
102
102
|
"round-md": `border-radius: 10px;`,
|
|
103
103
|
"round-sm": `border-radius: 4px;`,
|
|
104
|
+
"round-none": `border-radius: 0px;`,
|
|
104
105
|
"round-t": `border-bottom-right-radius: 0; border-bottom-left-radius: 0;`,
|
|
105
106
|
"round-b": `border-top-right-radius: 0; border-top-left-radius: 0;`,
|
|
106
107
|
"round-l": `border-top-right-radius: 0; border-bottom-right-radius: 0;`,
|
|
@@ -112,7 +113,10 @@ const prestyles = {
|
|
|
112
113
|
"solid-r": `border-right-style: solid;`,
|
|
113
114
|
"solid-t": `border-top-style: solid;`,
|
|
114
115
|
"solid-b": `border-bottom-style: solid;`,
|
|
115
|
-
"solid-none": `border-style: none;`,
|
|
116
|
+
"solid-l-none": `border-left-style: none;`,
|
|
117
|
+
"solid-r-none": `border-right-style: none;`,
|
|
118
|
+
"solid-t-none": `border-top-style: none;`,
|
|
119
|
+
"solid-b-none": `border-bottom-style: none;`,
|
|
116
120
|
"dashed-l": `border-left-style: dashed;`,
|
|
117
121
|
"dashed-r": `border-right-style: dashed;`,
|
|
118
122
|
"dashed-t": `border-top-style: dashed;`,
|
|
@@ -531,7 +535,7 @@ var md5$1 = {
|
|
|
531
535
|
})(md5$1);
|
|
532
536
|
const md5 = md5Exports;
|
|
533
537
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
534
|
-
const _sfc_main$
|
|
538
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
535
539
|
__name: "b-style",
|
|
536
540
|
props: {
|
|
537
541
|
class: {},
|
|
@@ -657,7 +661,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
657
661
|
const combineStyles = (_class) => {
|
|
658
662
|
if (!_class)
|
|
659
663
|
return "";
|
|
660
|
-
const combineStyle = _class.split(" ").reduce((total, rule) => {
|
|
664
|
+
const combineStyle = _class.trim().split(" ").reduce((total, rule) => {
|
|
661
665
|
const validateRule = parseStyle(rule);
|
|
662
666
|
if (!validateRule)
|
|
663
667
|
return "";
|
|
@@ -703,12 +707,32 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
703
707
|
if (props.active)
|
|
704
708
|
appendStyle(compSelector, props.active);
|
|
705
709
|
};
|
|
710
|
+
const dealRule = (baseSelector, state, stateStyles) => {
|
|
711
|
+
appendStyle(`${baseSelector}[state="${state}"]`, stateStyles);
|
|
712
|
+
};
|
|
713
|
+
const aniStates = reactive({
|
|
714
|
+
res: {},
|
|
715
|
+
str: ""
|
|
716
|
+
});
|
|
717
|
+
const dealClassToggle = (state, ani) => {
|
|
718
|
+
aniStates.res[state] = ani;
|
|
719
|
+
};
|
|
706
720
|
const genStateStyles = (baseSelector) => {
|
|
707
721
|
if (!props.states)
|
|
708
722
|
return;
|
|
709
723
|
Object.keys(props.states).forEach((state) => {
|
|
710
|
-
|
|
724
|
+
if (props.states) {
|
|
725
|
+
const stateStyles = props.states[state];
|
|
726
|
+
if (typeof stateStyles === "string") {
|
|
727
|
+
dealRule(baseSelector, state, stateStyles);
|
|
728
|
+
} else {
|
|
729
|
+
const { class: styles2, ani } = stateStyles;
|
|
730
|
+
dealRule(baseSelector, state, styles2);
|
|
731
|
+
dealClassToggle(state, ani);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
711
734
|
});
|
|
735
|
+
aniStates.str = Object.keys(aniStates.res).length === 0 ? "" : JSON.stringify(aniStates.res);
|
|
712
736
|
};
|
|
713
737
|
const genExtraStyles = (baseSelector) => {
|
|
714
738
|
if (!props.extraClass)
|
|
@@ -735,28 +759,27 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
735
759
|
onMounted(() => {
|
|
736
760
|
if (props.matrix)
|
|
737
761
|
matrix();
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
setStyle();
|
|
748
|
-
}
|
|
762
|
+
initStyle();
|
|
763
|
+
parseStyles(props.class);
|
|
764
|
+
const compSelector = combineClassName(props.class, props.cname ?? "");
|
|
765
|
+
genFocusStyles(`${compSelector}[focus='true']:focus`);
|
|
766
|
+
genHoverStyles(`${compSelector}[hover='true']:hover`);
|
|
767
|
+
genActiveStyles(`${compSelector}[active='true']:active`);
|
|
768
|
+
genStateStyles(compSelector);
|
|
769
|
+
genExtraStyles(compSelector);
|
|
770
|
+
setStyle();
|
|
749
771
|
});
|
|
750
772
|
return (_ctx, _cache) => {
|
|
751
773
|
return renderSlot(_ctx.$slots, "className", {
|
|
774
|
+
aniStates: aniStates.str || null,
|
|
752
775
|
className: className.value,
|
|
753
776
|
matrixStyle: matrixStyle.value
|
|
754
777
|
});
|
|
755
778
|
};
|
|
756
779
|
}
|
|
757
780
|
});
|
|
758
|
-
const _hoisted_1$
|
|
759
|
-
const _sfc_main$
|
|
781
|
+
const _hoisted_1$b = ["data-ani-states", "state"];
|
|
782
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
760
783
|
__name: "b-view",
|
|
761
784
|
props: {
|
|
762
785
|
class: {},
|
|
@@ -766,11 +789,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
766
789
|
matrix: {},
|
|
767
790
|
cname: {}
|
|
768
791
|
},
|
|
769
|
-
|
|
792
|
+
emits: ["on_aniEnd"],
|
|
793
|
+
setup(__props, { emit }) {
|
|
770
794
|
const props = __props;
|
|
795
|
+
const $el = ref();
|
|
796
|
+
const state = computed(() => props.state);
|
|
797
|
+
let lastAni;
|
|
798
|
+
watch(state, (val, old) => {
|
|
799
|
+
if (val == null || val == void 0 || !$el.value.dataset.aniStates)
|
|
800
|
+
return;
|
|
801
|
+
const aniStates = JSON.parse($el.value.dataset.aniStates);
|
|
802
|
+
if (aniStates[val]) {
|
|
803
|
+
if (old != null || old != void 0)
|
|
804
|
+
$el.value.classList.remove(aniStates[old]);
|
|
805
|
+
$el.value.classList.add("ani-fast", aniStates[val]);
|
|
806
|
+
lastAni = aniStates[val];
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
const aniEnd = (e) => {
|
|
810
|
+
$el.value.classList.remove(lastAni);
|
|
811
|
+
emit("on_aniEnd", e);
|
|
812
|
+
};
|
|
771
813
|
const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
|
|
772
814
|
return (_ctx, _cache) => {
|
|
773
|
-
return openBlock(), createBlock(_sfc_main$
|
|
815
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
774
816
|
class: normalizeClass(_ctx.class),
|
|
775
817
|
cname: _ctx.cname,
|
|
776
818
|
states: _ctx.states,
|
|
@@ -778,20 +820,24 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
778
820
|
}, {
|
|
779
821
|
className: withCtx((scope) => [
|
|
780
822
|
createElementVNode("div", {
|
|
823
|
+
ref_key: "$el",
|
|
824
|
+
ref: $el,
|
|
825
|
+
onAnimationend: aniEnd,
|
|
781
826
|
class: normalizeClass(scope.className),
|
|
782
|
-
|
|
827
|
+
"data-ani-states": scope.aniStates,
|
|
828
|
+
state: state.value,
|
|
783
829
|
style: normalizeStyle({ ...bgStyle.value, ...scope.matrixStyle })
|
|
784
830
|
}, [
|
|
785
831
|
renderSlot(_ctx.$slots, "default")
|
|
786
|
-
],
|
|
832
|
+
], 46, _hoisted_1$b)
|
|
787
833
|
]),
|
|
788
834
|
_: 3
|
|
789
835
|
}, 8, ["class", "cname", "states", "matrix"]);
|
|
790
836
|
};
|
|
791
837
|
}
|
|
792
838
|
});
|
|
793
|
-
const _hoisted_1$
|
|
794
|
-
const _sfc_main$
|
|
839
|
+
const _hoisted_1$a = ["state"];
|
|
840
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
795
841
|
__name: "b-text",
|
|
796
842
|
props: {
|
|
797
843
|
class: {},
|
|
@@ -801,7 +847,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
801
847
|
},
|
|
802
848
|
setup(__props) {
|
|
803
849
|
return (_ctx, _cache) => {
|
|
804
|
-
return openBlock(), createBlock(_sfc_main$
|
|
850
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
805
851
|
class: normalizeClass(_ctx.class),
|
|
806
852
|
states: _ctx.states,
|
|
807
853
|
cname: _ctx.cname
|
|
@@ -812,46 +858,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
812
858
|
state: _ctx.state
|
|
813
859
|
}, [
|
|
814
860
|
renderSlot(_ctx.$slots, "default")
|
|
815
|
-
], 10, _hoisted_1$
|
|
861
|
+
], 10, _hoisted_1$a)
|
|
816
862
|
]),
|
|
817
863
|
_: 3
|
|
818
864
|
}, 8, ["class", "states", "cname"]);
|
|
819
865
|
};
|
|
820
866
|
}
|
|
821
867
|
});
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
* (c) 2023 Eduardo San Martin Morote
|
|
825
|
-
* @license MIT
|
|
826
|
-
*/
|
|
827
|
-
var NavigationType;
|
|
828
|
-
(function(NavigationType2) {
|
|
829
|
-
NavigationType2["pop"] = "pop";
|
|
830
|
-
NavigationType2["push"] = "push";
|
|
831
|
-
})(NavigationType || (NavigationType = {}));
|
|
832
|
-
var NavigationDirection;
|
|
833
|
-
(function(NavigationDirection2) {
|
|
834
|
-
NavigationDirection2["back"] = "back";
|
|
835
|
-
NavigationDirection2["forward"] = "forward";
|
|
836
|
-
NavigationDirection2["unknown"] = "";
|
|
837
|
-
})(NavigationDirection || (NavigationDirection = {}));
|
|
838
|
-
Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
|
|
839
|
-
var NavigationFailureType;
|
|
840
|
-
(function(NavigationFailureType2) {
|
|
841
|
-
NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
|
|
842
|
-
NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
|
|
843
|
-
NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
|
|
844
|
-
})(NavigationFailureType || (NavigationFailureType = {}));
|
|
845
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
|
|
846
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
|
|
847
|
-
const routerKey = Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
|
|
848
|
-
Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
|
|
849
|
-
Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
850
|
-
function useRouter() {
|
|
851
|
-
return inject(routerKey);
|
|
852
|
-
}
|
|
853
|
-
const _hoisted_1$8 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
854
|
-
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
868
|
+
const _hoisted_1$9 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
869
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
855
870
|
__name: "b-hot",
|
|
856
871
|
props: {
|
|
857
872
|
link: {},
|
|
@@ -887,7 +902,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
887
902
|
return link;
|
|
888
903
|
});
|
|
889
904
|
const cursor = computed(() => props.forbid ? "" : "pointer");
|
|
890
|
-
const router = useRouter();
|
|
891
905
|
const click = (e) => {
|
|
892
906
|
if (props.anchor) {
|
|
893
907
|
const $section = document.querySelector(props.anchor);
|
|
@@ -898,7 +912,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
898
912
|
}
|
|
899
913
|
if (routeLink) {
|
|
900
914
|
e.preventDefault();
|
|
901
|
-
|
|
915
|
+
proxy.$router.push(routeLink);
|
|
902
916
|
}
|
|
903
917
|
!props.forbid && emit("on_click", e);
|
|
904
918
|
};
|
|
@@ -919,7 +933,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
919
933
|
$anchor.value.download = props.download;
|
|
920
934
|
});
|
|
921
935
|
return (_ctx, _cache) => {
|
|
922
|
-
return openBlock(), createBlock(_sfc_main$
|
|
936
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
923
937
|
class: normalizeClass(_ctx.class),
|
|
924
938
|
states: _ctx.states,
|
|
925
939
|
hover: _ctx.hover,
|
|
@@ -947,19 +961,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
947
961
|
href: url.value
|
|
948
962
|
}, [
|
|
949
963
|
renderSlot(_ctx.$slots, "default")
|
|
950
|
-
], 46, _hoisted_1$
|
|
964
|
+
], 46, _hoisted_1$9)
|
|
951
965
|
]),
|
|
952
966
|
_: 3
|
|
953
967
|
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
954
968
|
};
|
|
955
969
|
}
|
|
956
970
|
});
|
|
957
|
-
const _hoisted_1$
|
|
958
|
-
const _sfc_main$
|
|
971
|
+
const _hoisted_1$8 = ["src", "state", "alt"];
|
|
972
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
959
973
|
__name: "b-img",
|
|
960
974
|
props: {
|
|
961
975
|
img: {},
|
|
962
976
|
class: {},
|
|
977
|
+
state: {},
|
|
978
|
+
states: {},
|
|
963
979
|
defaultSrc: {},
|
|
964
980
|
alt: {},
|
|
965
981
|
matrix: {},
|
|
@@ -985,35 +1001,37 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
985
1001
|
setSrc();
|
|
986
1002
|
});
|
|
987
1003
|
return (_ctx, _cache) => {
|
|
988
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1004
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
989
1005
|
class: normalizeClass(_ctx.class),
|
|
990
1006
|
cname: _ctx.cname,
|
|
1007
|
+
states: _ctx.states,
|
|
991
1008
|
matrix: _ctx.matrix
|
|
992
1009
|
}, {
|
|
993
1010
|
className: withCtx((scope) => [
|
|
994
1011
|
createElementVNode("img", {
|
|
995
1012
|
src: src.value,
|
|
996
1013
|
class: normalizeClass(scope.className),
|
|
1014
|
+
state: _ctx.state,
|
|
997
1015
|
style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
|
|
998
1016
|
alt: _ctx.alt
|
|
999
|
-
}, null, 14, _hoisted_1$
|
|
1017
|
+
}, null, 14, _hoisted_1$8)
|
|
1000
1018
|
]),
|
|
1001
1019
|
_: 1
|
|
1002
|
-
}, 8, ["class", "cname", "matrix"]);
|
|
1020
|
+
}, 8, ["class", "cname", "states", "matrix"]);
|
|
1003
1021
|
};
|
|
1004
1022
|
}
|
|
1005
1023
|
});
|
|
1006
|
-
const _sfc_main$
|
|
1024
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1007
1025
|
__name: "ani-success",
|
|
1008
1026
|
setup(__props) {
|
|
1009
1027
|
return (_ctx, _cache) => {
|
|
1010
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1028
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1011
1029
|
class: "flex-5",
|
|
1012
1030
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
1013
1031
|
}, {
|
|
1014
1032
|
default: withCtx(() => [
|
|
1015
|
-
createVNode(_sfc_main$
|
|
1016
|
-
createVNode(_sfc_main$
|
|
1033
|
+
createVNode(_sfc_main$l, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
1034
|
+
createVNode(_sfc_main$l, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
1017
1035
|
]),
|
|
1018
1036
|
_: 1
|
|
1019
1037
|
});
|
|
@@ -1029,7 +1047,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1029
1047
|
}
|
|
1030
1048
|
return target;
|
|
1031
1049
|
};
|
|
1032
|
-
const _sfc_main$
|
|
1050
|
+
const _sfc_main$h = {};
|
|
1033
1051
|
function _sfc_render$2(_ctx, _cache) {
|
|
1034
1052
|
const _component_b_text = resolveComponent("b-text");
|
|
1035
1053
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1041,9 +1059,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
1041
1059
|
_: 1
|
|
1042
1060
|
});
|
|
1043
1061
|
}
|
|
1044
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1062
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$2]]);
|
|
1045
1063
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
1046
|
-
const _sfc_main$
|
|
1064
|
+
const _sfc_main$g = {};
|
|
1047
1065
|
function _sfc_render$1(_ctx, _cache) {
|
|
1048
1066
|
const _component_b_text = resolveComponent("b-text");
|
|
1049
1067
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1058,9 +1076,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
1058
1076
|
_: 1
|
|
1059
1077
|
});
|
|
1060
1078
|
}
|
|
1061
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1079
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$1]]);
|
|
1062
1080
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
1063
|
-
const _sfc_main$
|
|
1081
|
+
const _sfc_main$f = {};
|
|
1064
1082
|
function _sfc_render(_ctx, _cache) {
|
|
1065
1083
|
const _component_b_view = resolveComponent("b-view");
|
|
1066
1084
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -1070,9 +1088,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
1070
1088
|
_: 1
|
|
1071
1089
|
});
|
|
1072
1090
|
}
|
|
1073
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1074
|
-
const _hoisted_1$
|
|
1075
|
-
const _sfc_main$
|
|
1091
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
1092
|
+
const _hoisted_1$7 = ["state"];
|
|
1093
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1076
1094
|
__name: "b-icon",
|
|
1077
1095
|
props: {
|
|
1078
1096
|
icon: {},
|
|
@@ -1084,19 +1102,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1084
1102
|
setup(__props) {
|
|
1085
1103
|
const props = __props;
|
|
1086
1104
|
return (_ctx, _cache) => {
|
|
1087
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1105
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1088
1106
|
class: normalizeClass(_ctx.class),
|
|
1089
1107
|
states: _ctx.states,
|
|
1090
1108
|
cname: _ctx.cname
|
|
1091
1109
|
}, {
|
|
1092
1110
|
className: withCtx((scope) => [
|
|
1093
1111
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1094
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
1112
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$i, { key: "success" })) : createCommentVNode("", true),
|
|
1095
1113
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1096
1114
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1097
1115
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1098
1116
|
], 64)) : createCommentVNode("", true),
|
|
1099
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
1117
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1100
1118
|
key: 1,
|
|
1101
1119
|
"bg-img": _ctx.icon,
|
|
1102
1120
|
states: _ctx.states,
|
|
@@ -1106,15 +1124,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1106
1124
|
key: 2,
|
|
1107
1125
|
class: normalizeClass(`ico-${props.icon} ${scope.className}`),
|
|
1108
1126
|
state: _ctx.state
|
|
1109
|
-
}, null, 10, _hoisted_1$
|
|
1127
|
+
}, null, 10, _hoisted_1$7))
|
|
1110
1128
|
]),
|
|
1111
1129
|
_: 1
|
|
1112
1130
|
}, 8, ["class", "states", "cname"]);
|
|
1113
1131
|
};
|
|
1114
1132
|
}
|
|
1115
1133
|
});
|
|
1116
|
-
const _hoisted_1$
|
|
1117
|
-
const _sfc_main$
|
|
1134
|
+
const _hoisted_1$6 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
|
|
1135
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1118
1136
|
__name: "b-input",
|
|
1119
1137
|
props: {
|
|
1120
1138
|
type: {},
|
|
@@ -1190,7 +1208,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1190
1208
|
check
|
|
1191
1209
|
});
|
|
1192
1210
|
return (_ctx, _cache) => {
|
|
1193
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1211
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1194
1212
|
class: normalizeClass(_ctx.class),
|
|
1195
1213
|
focus: _ctx.focus,
|
|
1196
1214
|
states: _ctx.states,
|
|
@@ -1212,7 +1230,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1212
1230
|
maxlength: _ctx.maxlength,
|
|
1213
1231
|
readonly: _ctx.readonly,
|
|
1214
1232
|
autocomplete: "off"
|
|
1215
|
-
}, null, 42, _hoisted_1$
|
|
1233
|
+
}, null, 42, _hoisted_1$6), [
|
|
1216
1234
|
[vModelDynamic, val.value]
|
|
1217
1235
|
])
|
|
1218
1236
|
]),
|
|
@@ -1221,8 +1239,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1221
1239
|
};
|
|
1222
1240
|
}
|
|
1223
1241
|
});
|
|
1224
|
-
const _hoisted_1$
|
|
1225
|
-
const _sfc_main$
|
|
1242
|
+
const _hoisted_1$5 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1243
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1226
1244
|
__name: "b-textarea",
|
|
1227
1245
|
props: {
|
|
1228
1246
|
text: {},
|
|
@@ -1246,7 +1264,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1246
1264
|
emit("update:text", formatText(val.value));
|
|
1247
1265
|
};
|
|
1248
1266
|
return (_ctx, _cache) => {
|
|
1249
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1267
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1250
1268
|
class: normalizeClass(_ctx.class),
|
|
1251
1269
|
focus: _ctx.focus,
|
|
1252
1270
|
states: _ctx.states,
|
|
@@ -1267,7 +1285,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1267
1285
|
maxlength: _ctx.maxlength,
|
|
1268
1286
|
readonly: _ctx.readonly,
|
|
1269
1287
|
rows: _ctx.rows || 7
|
|
1270
|
-
}, null, 42, _hoisted_1$
|
|
1288
|
+
}, null, 42, _hoisted_1$5), [
|
|
1271
1289
|
[vModelText, val.value]
|
|
1272
1290
|
])
|
|
1273
1291
|
]),
|
|
@@ -1276,8 +1294,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1276
1294
|
};
|
|
1277
1295
|
}
|
|
1278
1296
|
});
|
|
1279
|
-
const _hoisted_1$
|
|
1280
|
-
const _sfc_main$
|
|
1297
|
+
const _hoisted_1$4 = ["muted", "src", "autoplay", "loop"];
|
|
1298
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1281
1299
|
__name: "b-video",
|
|
1282
1300
|
props: {
|
|
1283
1301
|
video: {},
|
|
@@ -1289,7 +1307,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1289
1307
|
setup(__props) {
|
|
1290
1308
|
const $video = ref();
|
|
1291
1309
|
return (_ctx, _cache) => {
|
|
1292
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1310
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1293
1311
|
class: normalizeClass(_ctx.class),
|
|
1294
1312
|
cname: _ctx.cname
|
|
1295
1313
|
}, {
|
|
@@ -1302,16 +1320,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1302
1320
|
src: _ctx.video,
|
|
1303
1321
|
autoplay: _ctx.autoPlay,
|
|
1304
1322
|
loop: _ctx.loop
|
|
1305
|
-
}, null, 10, _hoisted_1$
|
|
1323
|
+
}, null, 10, _hoisted_1$4)
|
|
1306
1324
|
]),
|
|
1307
1325
|
_: 1
|
|
1308
1326
|
}, 8, ["class", "cname"]);
|
|
1309
1327
|
};
|
|
1310
1328
|
}
|
|
1311
1329
|
});
|
|
1312
|
-
const _hoisted_1$
|
|
1330
|
+
const _hoisted_1$3 = ["state"];
|
|
1313
1331
|
const tolerance = 2;
|
|
1314
|
-
const _sfc_main$
|
|
1332
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1315
1333
|
__name: "b-list",
|
|
1316
1334
|
props: {
|
|
1317
1335
|
scroll: {},
|
|
@@ -1361,7 +1379,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1361
1379
|
watchPos();
|
|
1362
1380
|
});
|
|
1363
1381
|
return (_ctx, _cache) => {
|
|
1364
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1382
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1365
1383
|
class: normalizeClass(_ctx.class),
|
|
1366
1384
|
states: _ctx.states,
|
|
1367
1385
|
cname: _ctx.cname
|
|
@@ -1381,15 +1399,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1381
1399
|
}, [
|
|
1382
1400
|
renderSlot(_ctx.$slots, "default")
|
|
1383
1401
|
], 38)
|
|
1384
|
-
], 10, _hoisted_1$
|
|
1402
|
+
], 10, _hoisted_1$3)
|
|
1385
1403
|
]),
|
|
1386
1404
|
_: 3
|
|
1387
1405
|
}, 8, ["class", "states", "cname"]);
|
|
1388
1406
|
};
|
|
1389
1407
|
}
|
|
1390
1408
|
});
|
|
1391
|
-
const _hoisted_1$
|
|
1392
|
-
const _sfc_main$
|
|
1409
|
+
const _hoisted_1$2 = ["state", "draggable"];
|
|
1410
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1393
1411
|
__name: "b-drag",
|
|
1394
1412
|
props: {
|
|
1395
1413
|
class: {},
|
|
@@ -1499,7 +1517,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1499
1517
|
bindEvent();
|
|
1500
1518
|
});
|
|
1501
1519
|
return (_ctx, _cache) => {
|
|
1502
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1520
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1503
1521
|
class: normalizeClass(_ctx.class),
|
|
1504
1522
|
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
|
|
1505
1523
|
cname: _ctx.cname
|
|
@@ -1521,15 +1539,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1521
1539
|
draggable: _ctx.dragStart ? true : false
|
|
1522
1540
|
}, [
|
|
1523
1541
|
renderSlot(_ctx.$slots, "default")
|
|
1524
|
-
], 14, _hoisted_1$
|
|
1542
|
+
], 14, _hoisted_1$2)
|
|
1525
1543
|
]),
|
|
1526
1544
|
_: 3
|
|
1527
1545
|
}, 8, ["class", "states", "cname"]);
|
|
1528
1546
|
};
|
|
1529
1547
|
}
|
|
1530
1548
|
});
|
|
1531
|
-
const _hoisted_1 = ["src"];
|
|
1532
|
-
const _sfc_main$
|
|
1549
|
+
const _hoisted_1$1 = ["src"];
|
|
1550
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1533
1551
|
__name: "b-webview",
|
|
1534
1552
|
props: {
|
|
1535
1553
|
src: {},
|
|
@@ -1538,7 +1556,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1538
1556
|
},
|
|
1539
1557
|
setup(__props) {
|
|
1540
1558
|
return (_ctx, _cache) => {
|
|
1541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1559
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1542
1560
|
class: normalizeClass(_ctx.class),
|
|
1543
1561
|
cname: _ctx.cname
|
|
1544
1562
|
}, {
|
|
@@ -1547,14 +1565,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1547
1565
|
class: normalizeClass(scope.className),
|
|
1548
1566
|
frameborder: "0",
|
|
1549
1567
|
src: _ctx.src
|
|
1550
|
-
}, null, 10, _hoisted_1)
|
|
1568
|
+
}, null, 10, _hoisted_1$1)
|
|
1551
1569
|
]),
|
|
1552
1570
|
_: 1
|
|
1553
1571
|
}, 8, ["class", "cname"]);
|
|
1554
1572
|
};
|
|
1555
1573
|
}
|
|
1556
1574
|
});
|
|
1557
|
-
const _sfc_main$
|
|
1575
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1558
1576
|
__name: "b-row",
|
|
1559
1577
|
props: {
|
|
1560
1578
|
class: {},
|
|
@@ -1571,7 +1589,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1571
1589
|
});
|
|
1572
1590
|
const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
1573
1591
|
return (_ctx, _cache) => {
|
|
1574
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1592
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps({ class: combClass.value }, _ctx.viewData, {
|
|
1575
1593
|
extraClass: {
|
|
1576
1594
|
selector: ">",
|
|
1577
1595
|
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
@@ -1585,7 +1603,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1585
1603
|
};
|
|
1586
1604
|
}
|
|
1587
1605
|
});
|
|
1588
|
-
const _sfc_main$
|
|
1606
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1589
1607
|
__name: "b-col",
|
|
1590
1608
|
props: {
|
|
1591
1609
|
span: {},
|
|
@@ -1595,9 +1613,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1595
1613
|
},
|
|
1596
1614
|
setup(__props) {
|
|
1597
1615
|
const props = __props;
|
|
1598
|
-
const combClass = ref(`${props.class} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1616
|
+
const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1599
1617
|
return (_ctx, _cache) => {
|
|
1600
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1618
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps({ class: combClass.value }, _ctx.viewData), {
|
|
1601
1619
|
default: withCtx(() => [
|
|
1602
1620
|
renderSlot(_ctx.$slots, "default")
|
|
1603
1621
|
]),
|
|
@@ -1606,7 +1624,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1606
1624
|
};
|
|
1607
1625
|
}
|
|
1608
1626
|
});
|
|
1609
|
-
const _sfc_main$
|
|
1627
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1610
1628
|
__name: "btn-wid",
|
|
1611
1629
|
props: {
|
|
1612
1630
|
btnText: {},
|
|
@@ -1653,13 +1671,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1653
1671
|
};
|
|
1654
1672
|
});
|
|
1655
1673
|
return (_ctx, _cache) => {
|
|
1656
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1674
|
+
return openBlock(), createBlock(_sfc_main$k, mergeProps(_ctx.hotData, {
|
|
1657
1675
|
class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${_ctx.btnRound ? "round-lg" : "round-sm"} ${_ctx.btnWidth ? "lw-" + _ctx.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
|
|
1658
1676
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1659
1677
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1660
1678
|
}), {
|
|
1661
1679
|
default: withCtx(() => [
|
|
1662
|
-
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$
|
|
1680
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$e, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1663
1681
|
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1664
1682
|
]),
|
|
1665
1683
|
_: 1
|
|
@@ -1667,6 +1685,410 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1667
1685
|
};
|
|
1668
1686
|
}
|
|
1669
1687
|
});
|
|
1688
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1689
|
+
__name: "checkbox-wid",
|
|
1690
|
+
props: {
|
|
1691
|
+
selected: { type: Boolean },
|
|
1692
|
+
value: {},
|
|
1693
|
+
class: {},
|
|
1694
|
+
actClass: {},
|
|
1695
|
+
actColor: {},
|
|
1696
|
+
label: {}
|
|
1697
|
+
},
|
|
1698
|
+
emits: ["update:selected", "change"],
|
|
1699
|
+
setup(__props, { emit }) {
|
|
1700
|
+
const props = __props;
|
|
1701
|
+
const combClass = ref(`flex-4 bg-color-neutral round-sm pad-4-px ${props.class ?? ""}`);
|
|
1702
|
+
const combActClass = ref(`color-blue ${props.actClass ?? ""}`);
|
|
1703
|
+
const label = computed(() => {
|
|
1704
|
+
const label2 = props.label;
|
|
1705
|
+
if (!label2)
|
|
1706
|
+
return null;
|
|
1707
|
+
return Array.isArray(label2) ? label2 : [label2, label2];
|
|
1708
|
+
});
|
|
1709
|
+
const selected = computed(() => props.selected);
|
|
1710
|
+
const toggle = () => {
|
|
1711
|
+
const state = !selected.value;
|
|
1712
|
+
emit("update:selected", state);
|
|
1713
|
+
emit("change", props.value, state);
|
|
1714
|
+
};
|
|
1715
|
+
return (_ctx, _cache) => {
|
|
1716
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
1717
|
+
class: normalizeClass(combClass.value),
|
|
1718
|
+
hover: "alpha-d9",
|
|
1719
|
+
state: selected.value ? "act" : "",
|
|
1720
|
+
states: { act: combActClass.value },
|
|
1721
|
+
cname: combClass.value + combActClass.value,
|
|
1722
|
+
onOn_click: toggle
|
|
1723
|
+
}, {
|
|
1724
|
+
default: withCtx(() => [
|
|
1725
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1726
|
+
state: selected.value ? "act" : ""
|
|
1727
|
+
}, () => {
|
|
1728
|
+
var _a, _b;
|
|
1729
|
+
return [
|
|
1730
|
+
createVNode(_sfc_main$m, {
|
|
1731
|
+
class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
|
|
1732
|
+
state: selected.value ? "act" : "",
|
|
1733
|
+
cname: combClass.value + combActClass.value,
|
|
1734
|
+
states: {
|
|
1735
|
+
act: `bg-color-${_ctx.actColor ? ((_a = _ctx.actColor) == null ? void 0 : _a.bg) ?? "blue" : "blue"} color-${_ctx.actColor ? ((_b = _ctx.actColor) == null ? void 0 : _b.icon) ?? "light" : "light"}`
|
|
1736
|
+
}
|
|
1737
|
+
}, {
|
|
1738
|
+
default: withCtx(() => [
|
|
1739
|
+
createVNode(_sfc_main$e, {
|
|
1740
|
+
icon: "success",
|
|
1741
|
+
class: "alpha-d3",
|
|
1742
|
+
state: selected.value ? "act" : "",
|
|
1743
|
+
states: {
|
|
1744
|
+
act: "alpha-1"
|
|
1745
|
+
}
|
|
1746
|
+
}, null, 8, ["state"])
|
|
1747
|
+
]),
|
|
1748
|
+
_: 1
|
|
1749
|
+
}, 8, ["state", "cname", "states"])
|
|
1750
|
+
];
|
|
1751
|
+
}),
|
|
1752
|
+
label.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1753
|
+
key: 0,
|
|
1754
|
+
class: "pad-h-1 ellipsis"
|
|
1755
|
+
}, {
|
|
1756
|
+
default: withCtx(() => [
|
|
1757
|
+
createTextVNode(toDisplayString(selected.value ? label.value[1] : label.value[0]), 1)
|
|
1758
|
+
]),
|
|
1759
|
+
_: 1
|
|
1760
|
+
})) : createCommentVNode("", true)
|
|
1761
|
+
]),
|
|
1762
|
+
_: 3
|
|
1763
|
+
}, 8, ["class", "state", "states", "cname"]);
|
|
1764
|
+
};
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1767
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1768
|
+
__name: "checkbox-group-wid",
|
|
1769
|
+
props: {
|
|
1770
|
+
options: {},
|
|
1771
|
+
selected: {},
|
|
1772
|
+
class: {},
|
|
1773
|
+
title: {},
|
|
1774
|
+
span: {}
|
|
1775
|
+
},
|
|
1776
|
+
emits: ["update:selected", "change"],
|
|
1777
|
+
setup(__props, { emit }) {
|
|
1778
|
+
const props = __props;
|
|
1779
|
+
const checkboxData = computed(() => {
|
|
1780
|
+
return props.options.map((opt) => {
|
|
1781
|
+
var _a;
|
|
1782
|
+
return {
|
|
1783
|
+
...opt,
|
|
1784
|
+
checkboxData: {
|
|
1785
|
+
...opt == null ? void 0 : opt.checkboxData,
|
|
1786
|
+
class: ((_a = opt == null ? void 0 : opt.checkboxData) == null ? void 0 : _a.class) ?? "bg-color-none mrg-r-1d5"
|
|
1787
|
+
},
|
|
1788
|
+
selected: props.selected.includes(opt.value)
|
|
1789
|
+
};
|
|
1790
|
+
});
|
|
1791
|
+
});
|
|
1792
|
+
const change = (value, state) => {
|
|
1793
|
+
const selected = [...props.selected];
|
|
1794
|
+
if (state && !selected.includes(value))
|
|
1795
|
+
selected.push(value);
|
|
1796
|
+
if (!state && selected.includes(value))
|
|
1797
|
+
selected.splice(selected.findIndex((val) => val === value), 1);
|
|
1798
|
+
emit("update:selected", selected);
|
|
1799
|
+
emit("change", selected.map((value2) => {
|
|
1800
|
+
var _a;
|
|
1801
|
+
return {
|
|
1802
|
+
label: (_a = props.options.find((opt) => opt.value === value2)) == null ? void 0 : _a.label,
|
|
1803
|
+
value: value2
|
|
1804
|
+
};
|
|
1805
|
+
}));
|
|
1806
|
+
};
|
|
1807
|
+
return (_ctx, _cache) => {
|
|
1808
|
+
const _component_b_col = resolveComponent("b-col");
|
|
1809
|
+
const _component_b_row = resolveComponent("b-row");
|
|
1810
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1811
|
+
class: normalizeClass(_ctx.class)
|
|
1812
|
+
}, {
|
|
1813
|
+
default: withCtx(() => [
|
|
1814
|
+
_ctx.title ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1815
|
+
key: 0,
|
|
1816
|
+
class: "mrg-b-1"
|
|
1817
|
+
}, {
|
|
1818
|
+
default: withCtx(() => [
|
|
1819
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
1820
|
+
]),
|
|
1821
|
+
_: 1
|
|
1822
|
+
})) : createCommentVNode("", true),
|
|
1823
|
+
createVNode(_component_b_row, null, {
|
|
1824
|
+
default: withCtx(() => [
|
|
1825
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(checkboxData.value, (item, i) => {
|
|
1826
|
+
return openBlock(), createBlock(_component_b_col, {
|
|
1827
|
+
class: "flex-4",
|
|
1828
|
+
span: _ctx.span,
|
|
1829
|
+
key: i
|
|
1830
|
+
}, {
|
|
1831
|
+
default: withCtx(() => [
|
|
1832
|
+
createVNode(_sfc_main$4, mergeProps({
|
|
1833
|
+
onChange: change,
|
|
1834
|
+
label: item.label,
|
|
1835
|
+
value: item.value
|
|
1836
|
+
}, item.checkboxData, {
|
|
1837
|
+
selected: item.selected,
|
|
1838
|
+
"onUpdate:selected": ($event) => item.selected = $event
|
|
1839
|
+
}), createSlots({ _: 2 }, [
|
|
1840
|
+
_ctx.$slots.default ? {
|
|
1841
|
+
name: "default",
|
|
1842
|
+
fn: withCtx((scope) => [
|
|
1843
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1844
|
+
state: scope.state
|
|
1845
|
+
})
|
|
1846
|
+
]),
|
|
1847
|
+
key: "0"
|
|
1848
|
+
} : void 0,
|
|
1849
|
+
_ctx.$slots[item.value] ? {
|
|
1850
|
+
name: "default",
|
|
1851
|
+
fn: withCtx((scope) => [
|
|
1852
|
+
renderSlot(_ctx.$slots, item.value, {
|
|
1853
|
+
state: scope.state
|
|
1854
|
+
})
|
|
1855
|
+
]),
|
|
1856
|
+
key: "1"
|
|
1857
|
+
} : void 0
|
|
1858
|
+
]), 1040, ["label", "value", "selected", "onUpdate:selected"])
|
|
1859
|
+
]),
|
|
1860
|
+
_: 2
|
|
1861
|
+
}, 1032, ["span"]);
|
|
1862
|
+
}), 128))
|
|
1863
|
+
]),
|
|
1864
|
+
_: 3
|
|
1865
|
+
})
|
|
1866
|
+
]),
|
|
1867
|
+
_: 3
|
|
1868
|
+
}, 8, ["class"]);
|
|
1869
|
+
};
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1873
|
+
__name: "radio-group-wid",
|
|
1874
|
+
props: {
|
|
1875
|
+
options: {},
|
|
1876
|
+
selected: {},
|
|
1877
|
+
class: {},
|
|
1878
|
+
title: {},
|
|
1879
|
+
span: {},
|
|
1880
|
+
regular: { type: Boolean }
|
|
1881
|
+
},
|
|
1882
|
+
emits: ["update:selected", "change"],
|
|
1883
|
+
setup(__props, { emit }) {
|
|
1884
|
+
const props = __props;
|
|
1885
|
+
const selected = computed(() => [props.selected]);
|
|
1886
|
+
const change = (selected2) => {
|
|
1887
|
+
const values = selected2.map((item) => item.value);
|
|
1888
|
+
if (values.length === 2)
|
|
1889
|
+
emit("update:selected", values[1]);
|
|
1890
|
+
emit("change", values);
|
|
1891
|
+
};
|
|
1892
|
+
const slots = ref([]);
|
|
1893
|
+
onMounted(() => {
|
|
1894
|
+
var _a;
|
|
1895
|
+
slots.value = Object.keys(((_a = getCurrentInstance()) == null ? void 0 : _a.slots) ?? []);
|
|
1896
|
+
});
|
|
1897
|
+
return (_ctx, _cache) => {
|
|
1898
|
+
const _component_b_view = resolveComponent("b-view");
|
|
1899
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
|
1900
|
+
span: _ctx.span,
|
|
1901
|
+
title: _ctx.title,
|
|
1902
|
+
class: normalizeClass(_ctx.class),
|
|
1903
|
+
selected: selected.value,
|
|
1904
|
+
options: _ctx.options,
|
|
1905
|
+
onChange: change
|
|
1906
|
+
}, createSlots({ _: 2 }, [
|
|
1907
|
+
_ctx.regular ? {
|
|
1908
|
+
name: "default",
|
|
1909
|
+
fn: withCtx((scope) => [
|
|
1910
|
+
createVNode(_component_b_view, { class: "h-24-px w-24-px round-lg pad-d5 bg-color-neutral" }, {
|
|
1911
|
+
default: withCtx(() => [
|
|
1912
|
+
createVNode(_component_b_view, {
|
|
1913
|
+
class: "max round-lg bg-color-C99999944",
|
|
1914
|
+
state: scope.state,
|
|
1915
|
+
states: {
|
|
1916
|
+
act: "bg-color-blue"
|
|
1917
|
+
}
|
|
1918
|
+
}, null, 8, ["state"])
|
|
1919
|
+
]),
|
|
1920
|
+
_: 2
|
|
1921
|
+
}, 1024)
|
|
1922
|
+
]),
|
|
1923
|
+
key: "0"
|
|
1924
|
+
} : void 0,
|
|
1925
|
+
renderList(slots.value, (slotName) => {
|
|
1926
|
+
return {
|
|
1927
|
+
name: slotName,
|
|
1928
|
+
fn: withCtx((scope) => [
|
|
1929
|
+
renderSlot(_ctx.$slots, slotName, {
|
|
1930
|
+
state: scope.state
|
|
1931
|
+
})
|
|
1932
|
+
])
|
|
1933
|
+
};
|
|
1934
|
+
})
|
|
1935
|
+
]), 1032, ["span", "title", "class", "selected", "options"]);
|
|
1936
|
+
};
|
|
1937
|
+
}
|
|
1938
|
+
});
|
|
1939
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
1940
|
+
const _hoisted_2 = ["innerHTML"];
|
|
1941
|
+
const _hoisted_3 = ["innerHTML"];
|
|
1942
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1943
|
+
__name: "tabs-wid",
|
|
1944
|
+
props: {
|
|
1945
|
+
options: {},
|
|
1946
|
+
selected: {},
|
|
1947
|
+
title: {},
|
|
1948
|
+
color: {},
|
|
1949
|
+
tabStyle: {},
|
|
1950
|
+
smooth: { type: Boolean },
|
|
1951
|
+
noDataNotic: {}
|
|
1952
|
+
},
|
|
1953
|
+
emits: ["update:selected", "change"],
|
|
1954
|
+
setup(__props, { emit }) {
|
|
1955
|
+
const props = __props;
|
|
1956
|
+
const tabConts = reactive({});
|
|
1957
|
+
const color = computed(() => props.color ?? "blue");
|
|
1958
|
+
const tabOrder = reactive({});
|
|
1959
|
+
const contLine = ref(false);
|
|
1960
|
+
const options = computed(() => {
|
|
1961
|
+
return props.options.map((opt, i) => {
|
|
1962
|
+
const { label, value, cont } = opt;
|
|
1963
|
+
let checkboxData = opt.checkboxData;
|
|
1964
|
+
tabConts[value] = cont;
|
|
1965
|
+
tabOrder[value] = i;
|
|
1966
|
+
if (!checkboxData) {
|
|
1967
|
+
contLine.value = true;
|
|
1968
|
+
checkboxData = {
|
|
1969
|
+
class: "round-none solid-b line-neutral thick-1 pad-b-1 bg-color-none rel",
|
|
1970
|
+
actClass: `color-${color.value}`
|
|
1971
|
+
};
|
|
1972
|
+
if (props.tabStyle === "grid") {
|
|
1973
|
+
contLine.value = false;
|
|
1974
|
+
checkboxData = {
|
|
1975
|
+
class: "round-none thick-1 solid line-neutral bg-color-none",
|
|
1976
|
+
actClass: `line-${color.value} color-${color.value}`
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
if (props.tabStyle === "card") {
|
|
1980
|
+
checkboxData = {
|
|
1981
|
+
class: "round-sm round-t thick-1 solid line-neutral bg-color-neutral rel mrg-r-4-px",
|
|
1982
|
+
actClass: `bg-color-none solid-b-none t-f1-px color-${color.value}`
|
|
1983
|
+
};
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
return { label, value, checkboxData };
|
|
1987
|
+
});
|
|
1988
|
+
});
|
|
1989
|
+
const contArea = computed(() => props.options.findIndex((opt) => opt.cont) > -1);
|
|
1990
|
+
const selected = ref(props.selected);
|
|
1991
|
+
const flipDir = ref("");
|
|
1992
|
+
watch(selected, (val, oldVal) => {
|
|
1993
|
+
flipDir.value = tabOrder[val] > tabOrder[oldVal] ? "right-to-left" : "left-to-right";
|
|
1994
|
+
emit("update:selected", val);
|
|
1995
|
+
emit("change", {
|
|
1996
|
+
cur: val,
|
|
1997
|
+
old: oldVal,
|
|
1998
|
+
dir: tabOrder[val] > tabOrder[oldVal] ? 1 : 0,
|
|
1999
|
+
aniClass: `ani-${flipDir.value}`
|
|
2000
|
+
});
|
|
2001
|
+
});
|
|
2002
|
+
const slots = ref([]);
|
|
2003
|
+
onBeforeMount(() => {
|
|
2004
|
+
var _a;
|
|
2005
|
+
slots.value = Object.keys(((_a = getCurrentInstance()) == null ? void 0 : _a.slots) ?? []);
|
|
2006
|
+
});
|
|
2007
|
+
return (_ctx, _cache) => {
|
|
2008
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
2009
|
+
createVNode(_sfc_main$m, { class: "flex-7" }, {
|
|
2010
|
+
default: withCtx(() => [
|
|
2011
|
+
createVNode(_sfc_main$2, {
|
|
2012
|
+
options: options.value,
|
|
2013
|
+
title: _ctx.title,
|
|
2014
|
+
selected: selected.value,
|
|
2015
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => selected.value = $event)
|
|
2016
|
+
}, createSlots({ _: 2 }, [
|
|
2017
|
+
slots.value.length === 0 && _ctx.tabStyle === "grid" ? {
|
|
2018
|
+
name: "default",
|
|
2019
|
+
fn: withCtx((scope) => [
|
|
2020
|
+
_hoisted_1
|
|
2021
|
+
]),
|
|
2022
|
+
key: "0"
|
|
2023
|
+
} : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
|
|
2024
|
+
name: "default",
|
|
2025
|
+
fn: withCtx((scope) => [
|
|
2026
|
+
createVNode(_sfc_main$m, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
|
|
2027
|
+
]),
|
|
2028
|
+
key: "1"
|
|
2029
|
+
} : slots.value.length === 0 ? {
|
|
2030
|
+
name: "default",
|
|
2031
|
+
fn: withCtx((scope) => [
|
|
2032
|
+
createVNode(_sfc_main$m, {
|
|
2033
|
+
class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
|
|
2034
|
+
state: scope.state,
|
|
2035
|
+
states: {
|
|
2036
|
+
act: `bg-color-${color.value}`
|
|
2037
|
+
}
|
|
2038
|
+
}, null, 8, ["state", "states"])
|
|
2039
|
+
]),
|
|
2040
|
+
key: "2"
|
|
2041
|
+
} : void 0,
|
|
2042
|
+
renderList(slots.value, (slotName) => {
|
|
2043
|
+
return {
|
|
2044
|
+
name: slotName,
|
|
2045
|
+
fn: withCtx((scope) => [
|
|
2046
|
+
renderSlot(_ctx.$slots, slotName, {
|
|
2047
|
+
state: scope.state
|
|
2048
|
+
})
|
|
2049
|
+
])
|
|
2050
|
+
};
|
|
2051
|
+
})
|
|
2052
|
+
]), 1032, ["options", "title", "selected"]),
|
|
2053
|
+
contLine.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2054
|
+
key: 0,
|
|
2055
|
+
class: "grow-1 h-1-px bg-color-neutral"
|
|
2056
|
+
})) : createCommentVNode("", true)
|
|
2057
|
+
]),
|
|
2058
|
+
_: 3
|
|
2059
|
+
}),
|
|
2060
|
+
contArea.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2061
|
+
key: 0,
|
|
2062
|
+
class: "pad-v-1d5 over-hide"
|
|
2063
|
+
}, {
|
|
2064
|
+
default: withCtx(() => [
|
|
2065
|
+
selected.value ? (openBlock(), createBlock(_sfc_main$m, { key: 0 }, {
|
|
2066
|
+
default: withCtx(() => [
|
|
2067
|
+
createElementVNode("div", {
|
|
2068
|
+
innerHTML: tabConts[selected.value],
|
|
2069
|
+
class: normalizeClass(_ctx.smooth ? `ani-fast ani-${flipDir.value}` : ""),
|
|
2070
|
+
onAnimationend: _cache[1] || (_cache[1] = ($event) => flipDir.value = "")
|
|
2071
|
+
}, null, 42, _hoisted_2)
|
|
2072
|
+
]),
|
|
2073
|
+
_: 1
|
|
2074
|
+
})) : (openBlock(), createBlock(_sfc_main$m, {
|
|
2075
|
+
key: 1,
|
|
2076
|
+
class: "alpha-d5"
|
|
2077
|
+
}, {
|
|
2078
|
+
default: withCtx(() => [
|
|
2079
|
+
createElementVNode("div", {
|
|
2080
|
+
innerHTML: _ctx.noDataNotic ?? "暂未选择标签"
|
|
2081
|
+
}, null, 8, _hoisted_3)
|
|
2082
|
+
]),
|
|
2083
|
+
_: 1
|
|
2084
|
+
}))
|
|
2085
|
+
]),
|
|
2086
|
+
_: 1
|
|
2087
|
+
})) : createCommentVNode("", true)
|
|
2088
|
+
], 64);
|
|
2089
|
+
};
|
|
2090
|
+
}
|
|
2091
|
+
});
|
|
1670
2092
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1671
2093
|
__name: "app-wid",
|
|
1672
2094
|
props: {
|
|
@@ -1691,15 +2113,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1691
2113
|
return (_ctx, _cache) => {
|
|
1692
2114
|
var _a;
|
|
1693
2115
|
const _component_router_view = resolveComponent("router-view");
|
|
1694
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2116
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1695
2117
|
class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
1696
2118
|
}, {
|
|
1697
2119
|
default: withCtx(() => {
|
|
1698
2120
|
var _a2;
|
|
1699
2121
|
return [
|
|
1700
|
-
createVNode(_sfc_main$
|
|
2122
|
+
createVNode(_sfc_main$m, { class: "rel grow-1" }, {
|
|
1701
2123
|
default: withCtx(() => [
|
|
1702
|
-
createVNode(_sfc_main$
|
|
2124
|
+
createVNode(_sfc_main$a, {
|
|
1703
2125
|
scroll: { y: "auto", x: "hidden" },
|
|
1704
2126
|
class: "abs max"
|
|
1705
2127
|
}, {
|
|
@@ -1713,32 +2135,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1713
2135
|
]),
|
|
1714
2136
|
_: 1
|
|
1715
2137
|
}),
|
|
1716
|
-
createVNode(_sfc_main$
|
|
2138
|
+
createVNode(_sfc_main$m, {
|
|
1717
2139
|
class: normalizeClass(`pcenter flex-around ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
|
|
1718
2140
|
}, {
|
|
1719
2141
|
default: withCtx(() => [
|
|
1720
2142
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
1721
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2143
|
+
return openBlock(), createBlock(_sfc_main$k, mergeProps({ key: i }, nav.hotData, {
|
|
1722
2144
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
|
|
1723
2145
|
class: "flex rel pad-v-4-px max-h"
|
|
1724
2146
|
}), {
|
|
1725
2147
|
default: withCtx(() => {
|
|
1726
2148
|
var _a3, _b, _c, _d, _e, _f;
|
|
1727
2149
|
return [
|
|
1728
|
-
nav.main ? (openBlock(), createBlock(_sfc_main$
|
|
2150
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1729
2151
|
key: 0,
|
|
1730
2152
|
class: "rel w-5"
|
|
1731
2153
|
}, {
|
|
1732
2154
|
default: withCtx(() => {
|
|
1733
2155
|
var _a4, _b2, _c2, _d2;
|
|
1734
2156
|
return [
|
|
1735
|
-
createVNode(_sfc_main$
|
|
2157
|
+
createVNode(_sfc_main$e, mergeProps(nav.iconData, {
|
|
1736
2158
|
class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 flex-5 round fsize-1d7 line-${((_b2 = (_a4 = _ctx.colors) == null ? void 0 : _a4.center) == null ? void 0 : _b2.line) || "neutral"} bg-color-${((_d2 = (_c2 = _ctx.colors) == null ? void 0 : _c2.center) == null ? void 0 : _d2.bg) || "dgray"}`
|
|
1737
2159
|
}), null, 16, ["class"])
|
|
1738
2160
|
];
|
|
1739
2161
|
}),
|
|
1740
2162
|
_: 2
|
|
1741
|
-
}, 1024)) : (openBlock(), createBlock(_sfc_main$
|
|
2163
|
+
}, 1024)) : (openBlock(), createBlock(_sfc_main$m, {
|
|
1742
2164
|
key: 1,
|
|
1743
2165
|
class: normalizeClass(`flex-column flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
|
|
1744
2166
|
cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
|
|
@@ -1748,7 +2170,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1748
2170
|
}
|
|
1749
2171
|
}, {
|
|
1750
2172
|
default: withCtx(() => [
|
|
1751
|
-
createVNode(_sfc_main$
|
|
2173
|
+
createVNode(_sfc_main$e, mergeProps(nav.iconData, {
|
|
1752
2174
|
cname: nav.act,
|
|
1753
2175
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
1754
2176
|
states: {
|
|
@@ -1756,7 +2178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1756
2178
|
},
|
|
1757
2179
|
class: "w-2d7 h-2d7 trans-fast fsize-1d7"
|
|
1758
2180
|
}), null, 16, ["cname", "state", "states"]),
|
|
1759
|
-
nav.text ? (openBlock(), createBlock(_sfc_main$
|
|
2181
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$l, {
|
|
1760
2182
|
key: 0,
|
|
1761
2183
|
class: "fsize-d8"
|
|
1762
2184
|
}, {
|
|
@@ -1784,18 +2206,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1784
2206
|
}
|
|
1785
2207
|
});
|
|
1786
2208
|
const initGlobalComponents = [
|
|
2209
|
+
_sfc_main$n,
|
|
2210
|
+
_sfc_main$m,
|
|
2211
|
+
_sfc_main$l,
|
|
2212
|
+
_sfc_main$k,
|
|
1787
2213
|
_sfc_main$j,
|
|
1788
|
-
_sfc_main$
|
|
1789
|
-
_sfc_main$
|
|
1790
|
-
_sfc_main$g,
|
|
1791
|
-
_sfc_main$f,
|
|
2214
|
+
_sfc_main$e,
|
|
2215
|
+
_sfc_main$b,
|
|
1792
2216
|
_sfc_main$a,
|
|
2217
|
+
_sfc_main$8,
|
|
2218
|
+
_sfc_main$d,
|
|
2219
|
+
_sfc_main$9,
|
|
2220
|
+
_sfc_main$c,
|
|
1793
2221
|
_sfc_main$7,
|
|
1794
2222
|
_sfc_main$6,
|
|
1795
|
-
_sfc_main$4,
|
|
1796
|
-
_sfc_main$9,
|
|
1797
2223
|
_sfc_main$5,
|
|
1798
|
-
_sfc_main$
|
|
2224
|
+
_sfc_main$4,
|
|
1799
2225
|
_sfc_main$3,
|
|
1800
2226
|
_sfc_main$2,
|
|
1801
2227
|
_sfc_main$1,
|