btxui 1.0.34 → 1.0.35
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 +546 -90
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +2 -2
- 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, inject, getCurrentInstance, withModifiers,
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, inject, 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,11 +707,27 @@ 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
|
+
const dealClassToggle = (state, ani) => {
|
|
715
|
+
aniStates[state] = ani;
|
|
716
|
+
};
|
|
706
717
|
const genStateStyles = (baseSelector) => {
|
|
707
718
|
if (!props.states)
|
|
708
719
|
return;
|
|
709
720
|
Object.keys(props.states).forEach((state) => {
|
|
710
|
-
|
|
721
|
+
if (props.states) {
|
|
722
|
+
const stateStyles = props.states[state];
|
|
723
|
+
if (typeof stateStyles === "string") {
|
|
724
|
+
dealRule(baseSelector, state, stateStyles);
|
|
725
|
+
} else {
|
|
726
|
+
const { class: styles2, ani } = stateStyles;
|
|
727
|
+
dealRule(baseSelector, state, styles2);
|
|
728
|
+
dealClassToggle(state, ani);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
711
731
|
});
|
|
712
732
|
};
|
|
713
733
|
const genExtraStyles = (baseSelector) => {
|
|
@@ -749,14 +769,15 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
749
769
|
});
|
|
750
770
|
return (_ctx, _cache) => {
|
|
751
771
|
return renderSlot(_ctx.$slots, "className", {
|
|
772
|
+
aniStates: JSON.stringify(aniStates),
|
|
752
773
|
className: className.value,
|
|
753
774
|
matrixStyle: matrixStyle.value
|
|
754
775
|
});
|
|
755
776
|
};
|
|
756
777
|
}
|
|
757
778
|
});
|
|
758
|
-
const _hoisted_1$
|
|
759
|
-
const _sfc_main$
|
|
779
|
+
const _hoisted_1$b = ["data-ani-states", "state"];
|
|
780
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
760
781
|
__name: "b-view",
|
|
761
782
|
props: {
|
|
762
783
|
class: {},
|
|
@@ -766,11 +787,30 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
766
787
|
matrix: {},
|
|
767
788
|
cname: {}
|
|
768
789
|
},
|
|
769
|
-
|
|
790
|
+
emits: ["on_aniEnd"],
|
|
791
|
+
setup(__props, { emit }) {
|
|
770
792
|
const props = __props;
|
|
793
|
+
const $el = ref();
|
|
794
|
+
const state = computed(() => props.state);
|
|
795
|
+
let lastAni;
|
|
796
|
+
watch(state, (val, old) => {
|
|
797
|
+
if (val == null || val == void 0)
|
|
798
|
+
return;
|
|
799
|
+
const aniStates = JSON.parse($el.value.dataset.aniStates);
|
|
800
|
+
if (aniStates[val]) {
|
|
801
|
+
if (old != null || old != void 0)
|
|
802
|
+
$el.value.classList.remove(aniStates[old]);
|
|
803
|
+
$el.value.classList.add("ani-fast", aniStates[val]);
|
|
804
|
+
lastAni = aniStates[val];
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
const aniEnd = (e) => {
|
|
808
|
+
$el.value.classList.remove(lastAni);
|
|
809
|
+
emit("on_aniEnd", e);
|
|
810
|
+
};
|
|
771
811
|
const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
|
|
772
812
|
return (_ctx, _cache) => {
|
|
773
|
-
return openBlock(), createBlock(_sfc_main$
|
|
813
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
774
814
|
class: normalizeClass(_ctx.class),
|
|
775
815
|
cname: _ctx.cname,
|
|
776
816
|
states: _ctx.states,
|
|
@@ -778,20 +818,24 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
778
818
|
}, {
|
|
779
819
|
className: withCtx((scope) => [
|
|
780
820
|
createElementVNode("div", {
|
|
821
|
+
ref_key: "$el",
|
|
822
|
+
ref: $el,
|
|
823
|
+
onAnimationend: aniEnd,
|
|
781
824
|
class: normalizeClass(scope.className),
|
|
782
|
-
|
|
825
|
+
"data-ani-states": scope.aniStates,
|
|
826
|
+
state: state.value,
|
|
783
827
|
style: normalizeStyle({ ...bgStyle.value, ...scope.matrixStyle })
|
|
784
828
|
}, [
|
|
785
829
|
renderSlot(_ctx.$slots, "default")
|
|
786
|
-
],
|
|
830
|
+
], 46, _hoisted_1$b)
|
|
787
831
|
]),
|
|
788
832
|
_: 3
|
|
789
833
|
}, 8, ["class", "cname", "states", "matrix"]);
|
|
790
834
|
};
|
|
791
835
|
}
|
|
792
836
|
});
|
|
793
|
-
const _hoisted_1$
|
|
794
|
-
const _sfc_main$
|
|
837
|
+
const _hoisted_1$a = ["state"];
|
|
838
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
795
839
|
__name: "b-text",
|
|
796
840
|
props: {
|
|
797
841
|
class: {},
|
|
@@ -801,7 +845,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
801
845
|
},
|
|
802
846
|
setup(__props) {
|
|
803
847
|
return (_ctx, _cache) => {
|
|
804
|
-
return openBlock(), createBlock(_sfc_main$
|
|
848
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
805
849
|
class: normalizeClass(_ctx.class),
|
|
806
850
|
states: _ctx.states,
|
|
807
851
|
cname: _ctx.cname
|
|
@@ -812,7 +856,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
812
856
|
state: _ctx.state
|
|
813
857
|
}, [
|
|
814
858
|
renderSlot(_ctx.$slots, "default")
|
|
815
|
-
], 10, _hoisted_1$
|
|
859
|
+
], 10, _hoisted_1$a)
|
|
816
860
|
]),
|
|
817
861
|
_: 3
|
|
818
862
|
}, 8, ["class", "states", "cname"]);
|
|
@@ -850,8 +894,8 @@ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
|
850
894
|
function useRouter() {
|
|
851
895
|
return inject(routerKey);
|
|
852
896
|
}
|
|
853
|
-
const _hoisted_1$
|
|
854
|
-
const _sfc_main$
|
|
897
|
+
const _hoisted_1$9 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
898
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
855
899
|
__name: "b-hot",
|
|
856
900
|
props: {
|
|
857
901
|
link: {},
|
|
@@ -919,7 +963,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
919
963
|
$anchor.value.download = props.download;
|
|
920
964
|
});
|
|
921
965
|
return (_ctx, _cache) => {
|
|
922
|
-
return openBlock(), createBlock(_sfc_main$
|
|
966
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
923
967
|
class: normalizeClass(_ctx.class),
|
|
924
968
|
states: _ctx.states,
|
|
925
969
|
hover: _ctx.hover,
|
|
@@ -947,19 +991,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
947
991
|
href: url.value
|
|
948
992
|
}, [
|
|
949
993
|
renderSlot(_ctx.$slots, "default")
|
|
950
|
-
], 46, _hoisted_1$
|
|
994
|
+
], 46, _hoisted_1$9)
|
|
951
995
|
]),
|
|
952
996
|
_: 3
|
|
953
997
|
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
954
998
|
};
|
|
955
999
|
}
|
|
956
1000
|
});
|
|
957
|
-
const _hoisted_1$
|
|
958
|
-
const _sfc_main$
|
|
1001
|
+
const _hoisted_1$8 = ["src", "state", "alt"];
|
|
1002
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
959
1003
|
__name: "b-img",
|
|
960
1004
|
props: {
|
|
961
1005
|
img: {},
|
|
962
1006
|
class: {},
|
|
1007
|
+
state: {},
|
|
1008
|
+
states: {},
|
|
963
1009
|
defaultSrc: {},
|
|
964
1010
|
alt: {},
|
|
965
1011
|
matrix: {},
|
|
@@ -985,35 +1031,37 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
985
1031
|
setSrc();
|
|
986
1032
|
});
|
|
987
1033
|
return (_ctx, _cache) => {
|
|
988
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1034
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
989
1035
|
class: normalizeClass(_ctx.class),
|
|
990
1036
|
cname: _ctx.cname,
|
|
1037
|
+
states: _ctx.states,
|
|
991
1038
|
matrix: _ctx.matrix
|
|
992
1039
|
}, {
|
|
993
1040
|
className: withCtx((scope) => [
|
|
994
1041
|
createElementVNode("img", {
|
|
995
1042
|
src: src.value,
|
|
996
1043
|
class: normalizeClass(scope.className),
|
|
1044
|
+
state: _ctx.state,
|
|
997
1045
|
style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
|
|
998
1046
|
alt: _ctx.alt
|
|
999
|
-
}, null, 14, _hoisted_1$
|
|
1047
|
+
}, null, 14, _hoisted_1$8)
|
|
1000
1048
|
]),
|
|
1001
1049
|
_: 1
|
|
1002
|
-
}, 8, ["class", "cname", "matrix"]);
|
|
1050
|
+
}, 8, ["class", "cname", "states", "matrix"]);
|
|
1003
1051
|
};
|
|
1004
1052
|
}
|
|
1005
1053
|
});
|
|
1006
|
-
const _sfc_main$
|
|
1054
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1007
1055
|
__name: "ani-success",
|
|
1008
1056
|
setup(__props) {
|
|
1009
1057
|
return (_ctx, _cache) => {
|
|
1010
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1058
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1011
1059
|
class: "flex-5",
|
|
1012
1060
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
1013
1061
|
}, {
|
|
1014
1062
|
default: withCtx(() => [
|
|
1015
|
-
createVNode(_sfc_main$
|
|
1016
|
-
createVNode(_sfc_main$
|
|
1063
|
+
createVNode(_sfc_main$l, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
1064
|
+
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
1065
|
]),
|
|
1018
1066
|
_: 1
|
|
1019
1067
|
});
|
|
@@ -1029,7 +1077,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1029
1077
|
}
|
|
1030
1078
|
return target;
|
|
1031
1079
|
};
|
|
1032
|
-
const _sfc_main$
|
|
1080
|
+
const _sfc_main$h = {};
|
|
1033
1081
|
function _sfc_render$2(_ctx, _cache) {
|
|
1034
1082
|
const _component_b_text = resolveComponent("b-text");
|
|
1035
1083
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1041,9 +1089,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
1041
1089
|
_: 1
|
|
1042
1090
|
});
|
|
1043
1091
|
}
|
|
1044
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1092
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$2]]);
|
|
1045
1093
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
1046
|
-
const _sfc_main$
|
|
1094
|
+
const _sfc_main$g = {};
|
|
1047
1095
|
function _sfc_render$1(_ctx, _cache) {
|
|
1048
1096
|
const _component_b_text = resolveComponent("b-text");
|
|
1049
1097
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1058,9 +1106,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
1058
1106
|
_: 1
|
|
1059
1107
|
});
|
|
1060
1108
|
}
|
|
1061
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1109
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$1]]);
|
|
1062
1110
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
1063
|
-
const _sfc_main$
|
|
1111
|
+
const _sfc_main$f = {};
|
|
1064
1112
|
function _sfc_render(_ctx, _cache) {
|
|
1065
1113
|
const _component_b_view = resolveComponent("b-view");
|
|
1066
1114
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -1070,9 +1118,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
1070
1118
|
_: 1
|
|
1071
1119
|
});
|
|
1072
1120
|
}
|
|
1073
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1074
|
-
const _hoisted_1$
|
|
1075
|
-
const _sfc_main$
|
|
1121
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render]]);
|
|
1122
|
+
const _hoisted_1$7 = ["state"];
|
|
1123
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1076
1124
|
__name: "b-icon",
|
|
1077
1125
|
props: {
|
|
1078
1126
|
icon: {},
|
|
@@ -1084,19 +1132,19 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1084
1132
|
setup(__props) {
|
|
1085
1133
|
const props = __props;
|
|
1086
1134
|
return (_ctx, _cache) => {
|
|
1087
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1135
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1088
1136
|
class: normalizeClass(_ctx.class),
|
|
1089
1137
|
states: _ctx.states,
|
|
1090
1138
|
cname: _ctx.cname
|
|
1091
1139
|
}, {
|
|
1092
1140
|
className: withCtx((scope) => [
|
|
1093
1141
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1094
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
1142
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$i, { key: "success" })) : createCommentVNode("", true),
|
|
1095
1143
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1096
1144
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1097
1145
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1098
1146
|
], 64)) : createCommentVNode("", true),
|
|
1099
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
1147
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1100
1148
|
key: 1,
|
|
1101
1149
|
"bg-img": _ctx.icon,
|
|
1102
1150
|
states: _ctx.states,
|
|
@@ -1106,15 +1154,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1106
1154
|
key: 2,
|
|
1107
1155
|
class: normalizeClass(`ico-${props.icon} ${scope.className}`),
|
|
1108
1156
|
state: _ctx.state
|
|
1109
|
-
}, null, 10, _hoisted_1$
|
|
1157
|
+
}, null, 10, _hoisted_1$7))
|
|
1110
1158
|
]),
|
|
1111
1159
|
_: 1
|
|
1112
1160
|
}, 8, ["class", "states", "cname"]);
|
|
1113
1161
|
};
|
|
1114
1162
|
}
|
|
1115
1163
|
});
|
|
1116
|
-
const _hoisted_1$
|
|
1117
|
-
const _sfc_main$
|
|
1164
|
+
const _hoisted_1$6 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
|
|
1165
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1118
1166
|
__name: "b-input",
|
|
1119
1167
|
props: {
|
|
1120
1168
|
type: {},
|
|
@@ -1190,7 +1238,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1190
1238
|
check
|
|
1191
1239
|
});
|
|
1192
1240
|
return (_ctx, _cache) => {
|
|
1193
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1241
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1194
1242
|
class: normalizeClass(_ctx.class),
|
|
1195
1243
|
focus: _ctx.focus,
|
|
1196
1244
|
states: _ctx.states,
|
|
@@ -1212,7 +1260,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1212
1260
|
maxlength: _ctx.maxlength,
|
|
1213
1261
|
readonly: _ctx.readonly,
|
|
1214
1262
|
autocomplete: "off"
|
|
1215
|
-
}, null, 42, _hoisted_1$
|
|
1263
|
+
}, null, 42, _hoisted_1$6), [
|
|
1216
1264
|
[vModelDynamic, val.value]
|
|
1217
1265
|
])
|
|
1218
1266
|
]),
|
|
@@ -1221,8 +1269,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1221
1269
|
};
|
|
1222
1270
|
}
|
|
1223
1271
|
});
|
|
1224
|
-
const _hoisted_1$
|
|
1225
|
-
const _sfc_main$
|
|
1272
|
+
const _hoisted_1$5 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1273
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1226
1274
|
__name: "b-textarea",
|
|
1227
1275
|
props: {
|
|
1228
1276
|
text: {},
|
|
@@ -1246,7 +1294,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1246
1294
|
emit("update:text", formatText(val.value));
|
|
1247
1295
|
};
|
|
1248
1296
|
return (_ctx, _cache) => {
|
|
1249
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1297
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1250
1298
|
class: normalizeClass(_ctx.class),
|
|
1251
1299
|
focus: _ctx.focus,
|
|
1252
1300
|
states: _ctx.states,
|
|
@@ -1267,7 +1315,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1267
1315
|
maxlength: _ctx.maxlength,
|
|
1268
1316
|
readonly: _ctx.readonly,
|
|
1269
1317
|
rows: _ctx.rows || 7
|
|
1270
|
-
}, null, 42, _hoisted_1$
|
|
1318
|
+
}, null, 42, _hoisted_1$5), [
|
|
1271
1319
|
[vModelText, val.value]
|
|
1272
1320
|
])
|
|
1273
1321
|
]),
|
|
@@ -1276,8 +1324,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1276
1324
|
};
|
|
1277
1325
|
}
|
|
1278
1326
|
});
|
|
1279
|
-
const _hoisted_1$
|
|
1280
|
-
const _sfc_main$
|
|
1327
|
+
const _hoisted_1$4 = ["muted", "src", "autoplay", "loop"];
|
|
1328
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1281
1329
|
__name: "b-video",
|
|
1282
1330
|
props: {
|
|
1283
1331
|
video: {},
|
|
@@ -1289,7 +1337,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1289
1337
|
setup(__props) {
|
|
1290
1338
|
const $video = ref();
|
|
1291
1339
|
return (_ctx, _cache) => {
|
|
1292
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1340
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1293
1341
|
class: normalizeClass(_ctx.class),
|
|
1294
1342
|
cname: _ctx.cname
|
|
1295
1343
|
}, {
|
|
@@ -1302,16 +1350,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1302
1350
|
src: _ctx.video,
|
|
1303
1351
|
autoplay: _ctx.autoPlay,
|
|
1304
1352
|
loop: _ctx.loop
|
|
1305
|
-
}, null, 10, _hoisted_1$
|
|
1353
|
+
}, null, 10, _hoisted_1$4)
|
|
1306
1354
|
]),
|
|
1307
1355
|
_: 1
|
|
1308
1356
|
}, 8, ["class", "cname"]);
|
|
1309
1357
|
};
|
|
1310
1358
|
}
|
|
1311
1359
|
});
|
|
1312
|
-
const _hoisted_1$
|
|
1360
|
+
const _hoisted_1$3 = ["state"];
|
|
1313
1361
|
const tolerance = 2;
|
|
1314
|
-
const _sfc_main$
|
|
1362
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1315
1363
|
__name: "b-list",
|
|
1316
1364
|
props: {
|
|
1317
1365
|
scroll: {},
|
|
@@ -1361,7 +1409,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1361
1409
|
watchPos();
|
|
1362
1410
|
});
|
|
1363
1411
|
return (_ctx, _cache) => {
|
|
1364
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1412
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1365
1413
|
class: normalizeClass(_ctx.class),
|
|
1366
1414
|
states: _ctx.states,
|
|
1367
1415
|
cname: _ctx.cname
|
|
@@ -1381,15 +1429,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1381
1429
|
}, [
|
|
1382
1430
|
renderSlot(_ctx.$slots, "default")
|
|
1383
1431
|
], 38)
|
|
1384
|
-
], 10, _hoisted_1$
|
|
1432
|
+
], 10, _hoisted_1$3)
|
|
1385
1433
|
]),
|
|
1386
1434
|
_: 3
|
|
1387
1435
|
}, 8, ["class", "states", "cname"]);
|
|
1388
1436
|
};
|
|
1389
1437
|
}
|
|
1390
1438
|
});
|
|
1391
|
-
const _hoisted_1$
|
|
1392
|
-
const _sfc_main$
|
|
1439
|
+
const _hoisted_1$2 = ["state", "draggable"];
|
|
1440
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1393
1441
|
__name: "b-drag",
|
|
1394
1442
|
props: {
|
|
1395
1443
|
class: {},
|
|
@@ -1499,7 +1547,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1499
1547
|
bindEvent();
|
|
1500
1548
|
});
|
|
1501
1549
|
return (_ctx, _cache) => {
|
|
1502
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1550
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1503
1551
|
class: normalizeClass(_ctx.class),
|
|
1504
1552
|
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
|
|
1505
1553
|
cname: _ctx.cname
|
|
@@ -1521,15 +1569,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1521
1569
|
draggable: _ctx.dragStart ? true : false
|
|
1522
1570
|
}, [
|
|
1523
1571
|
renderSlot(_ctx.$slots, "default")
|
|
1524
|
-
], 14, _hoisted_1$
|
|
1572
|
+
], 14, _hoisted_1$2)
|
|
1525
1573
|
]),
|
|
1526
1574
|
_: 3
|
|
1527
1575
|
}, 8, ["class", "states", "cname"]);
|
|
1528
1576
|
};
|
|
1529
1577
|
}
|
|
1530
1578
|
});
|
|
1531
|
-
const _hoisted_1 = ["src"];
|
|
1532
|
-
const _sfc_main$
|
|
1579
|
+
const _hoisted_1$1 = ["src"];
|
|
1580
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1533
1581
|
__name: "b-webview",
|
|
1534
1582
|
props: {
|
|
1535
1583
|
src: {},
|
|
@@ -1538,7 +1586,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1538
1586
|
},
|
|
1539
1587
|
setup(__props) {
|
|
1540
1588
|
return (_ctx, _cache) => {
|
|
1541
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1589
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
1542
1590
|
class: normalizeClass(_ctx.class),
|
|
1543
1591
|
cname: _ctx.cname
|
|
1544
1592
|
}, {
|
|
@@ -1547,14 +1595,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1547
1595
|
class: normalizeClass(scope.className),
|
|
1548
1596
|
frameborder: "0",
|
|
1549
1597
|
src: _ctx.src
|
|
1550
|
-
}, null, 10, _hoisted_1)
|
|
1598
|
+
}, null, 10, _hoisted_1$1)
|
|
1551
1599
|
]),
|
|
1552
1600
|
_: 1
|
|
1553
1601
|
}, 8, ["class", "cname"]);
|
|
1554
1602
|
};
|
|
1555
1603
|
}
|
|
1556
1604
|
});
|
|
1557
|
-
const _sfc_main$
|
|
1605
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1558
1606
|
__name: "b-row",
|
|
1559
1607
|
props: {
|
|
1560
1608
|
class: {},
|
|
@@ -1571,7 +1619,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1571
1619
|
});
|
|
1572
1620
|
const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
1573
1621
|
return (_ctx, _cache) => {
|
|
1574
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1622
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps({ class: combClass.value }, _ctx.viewData, {
|
|
1575
1623
|
extraClass: {
|
|
1576
1624
|
selector: ">",
|
|
1577
1625
|
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
@@ -1585,7 +1633,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1585
1633
|
};
|
|
1586
1634
|
}
|
|
1587
1635
|
});
|
|
1588
|
-
const _sfc_main$
|
|
1636
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1589
1637
|
__name: "b-col",
|
|
1590
1638
|
props: {
|
|
1591
1639
|
span: {},
|
|
@@ -1595,9 +1643,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1595
1643
|
},
|
|
1596
1644
|
setup(__props) {
|
|
1597
1645
|
const props = __props;
|
|
1598
|
-
const combClass = ref(`${props.class} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1646
|
+
const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1599
1647
|
return (_ctx, _cache) => {
|
|
1600
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1648
|
+
return openBlock(), createBlock(_sfc_main$m, mergeProps({ class: combClass.value }, _ctx.viewData), {
|
|
1601
1649
|
default: withCtx(() => [
|
|
1602
1650
|
renderSlot(_ctx.$slots, "default")
|
|
1603
1651
|
]),
|
|
@@ -1606,7 +1654,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1606
1654
|
};
|
|
1607
1655
|
}
|
|
1608
1656
|
});
|
|
1609
|
-
const _sfc_main$
|
|
1657
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1610
1658
|
__name: "btn-wid",
|
|
1611
1659
|
props: {
|
|
1612
1660
|
btnText: {},
|
|
@@ -1653,13 +1701,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1653
1701
|
};
|
|
1654
1702
|
});
|
|
1655
1703
|
return (_ctx, _cache) => {
|
|
1656
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1704
|
+
return openBlock(), createBlock(_sfc_main$k, mergeProps(_ctx.hotData, {
|
|
1657
1705
|
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
1706
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1659
1707
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1660
1708
|
}), {
|
|
1661
1709
|
default: withCtx(() => [
|
|
1662
|
-
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$
|
|
1710
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$e, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1663
1711
|
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1664
1712
|
]),
|
|
1665
1713
|
_: 1
|
|
@@ -1667,6 +1715,410 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1667
1715
|
};
|
|
1668
1716
|
}
|
|
1669
1717
|
});
|
|
1718
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1719
|
+
__name: "checkbox-wid",
|
|
1720
|
+
props: {
|
|
1721
|
+
selected: { type: Boolean },
|
|
1722
|
+
value: {},
|
|
1723
|
+
class: {},
|
|
1724
|
+
actClass: {},
|
|
1725
|
+
actColor: {},
|
|
1726
|
+
label: {}
|
|
1727
|
+
},
|
|
1728
|
+
emits: ["update:selected", "change"],
|
|
1729
|
+
setup(__props, { emit }) {
|
|
1730
|
+
const props = __props;
|
|
1731
|
+
const combClass = ref(`flex-4 bg-color-neutral round-sm pad-4-px ${props.class ?? ""}`);
|
|
1732
|
+
const combActClass = ref(`color-blue ${props.actClass ?? ""}`);
|
|
1733
|
+
const label = computed(() => {
|
|
1734
|
+
const label2 = props.label;
|
|
1735
|
+
if (!label2)
|
|
1736
|
+
return null;
|
|
1737
|
+
return Array.isArray(label2) ? label2 : [label2, label2];
|
|
1738
|
+
});
|
|
1739
|
+
const selected = computed(() => props.selected);
|
|
1740
|
+
const toggle = () => {
|
|
1741
|
+
const state = !selected.value;
|
|
1742
|
+
emit("update:selected", state);
|
|
1743
|
+
emit("change", props.value, state);
|
|
1744
|
+
};
|
|
1745
|
+
return (_ctx, _cache) => {
|
|
1746
|
+
return openBlock(), createBlock(_sfc_main$k, {
|
|
1747
|
+
class: normalizeClass(combClass.value),
|
|
1748
|
+
hover: "alpha-d9",
|
|
1749
|
+
state: selected.value ? "act" : "",
|
|
1750
|
+
states: { act: combActClass.value },
|
|
1751
|
+
cname: combClass.value + combActClass.value,
|
|
1752
|
+
onOn_click: toggle
|
|
1753
|
+
}, {
|
|
1754
|
+
default: withCtx(() => [
|
|
1755
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1756
|
+
state: selected.value ? "act" : ""
|
|
1757
|
+
}, () => {
|
|
1758
|
+
var _a, _b;
|
|
1759
|
+
return [
|
|
1760
|
+
createVNode(_sfc_main$m, {
|
|
1761
|
+
class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
|
|
1762
|
+
state: selected.value ? "act" : "",
|
|
1763
|
+
cname: combClass.value + combActClass.value,
|
|
1764
|
+
states: {
|
|
1765
|
+
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"}`
|
|
1766
|
+
}
|
|
1767
|
+
}, {
|
|
1768
|
+
default: withCtx(() => [
|
|
1769
|
+
createVNode(_sfc_main$e, {
|
|
1770
|
+
icon: "success",
|
|
1771
|
+
class: "alpha-d3",
|
|
1772
|
+
state: selected.value ? "act" : "",
|
|
1773
|
+
states: {
|
|
1774
|
+
act: "alpha-1"
|
|
1775
|
+
}
|
|
1776
|
+
}, null, 8, ["state"])
|
|
1777
|
+
]),
|
|
1778
|
+
_: 1
|
|
1779
|
+
}, 8, ["state", "cname", "states"])
|
|
1780
|
+
];
|
|
1781
|
+
}),
|
|
1782
|
+
label.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1783
|
+
key: 0,
|
|
1784
|
+
class: "pad-h-1 ellipsis"
|
|
1785
|
+
}, {
|
|
1786
|
+
default: withCtx(() => [
|
|
1787
|
+
createTextVNode(toDisplayString(selected.value ? label.value[1] : label.value[0]), 1)
|
|
1788
|
+
]),
|
|
1789
|
+
_: 1
|
|
1790
|
+
})) : createCommentVNode("", true)
|
|
1791
|
+
]),
|
|
1792
|
+
_: 3
|
|
1793
|
+
}, 8, ["class", "state", "states", "cname"]);
|
|
1794
|
+
};
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1798
|
+
__name: "checkbox-group-wid",
|
|
1799
|
+
props: {
|
|
1800
|
+
options: {},
|
|
1801
|
+
selected: {},
|
|
1802
|
+
class: {},
|
|
1803
|
+
title: {},
|
|
1804
|
+
span: {}
|
|
1805
|
+
},
|
|
1806
|
+
emits: ["update:selected", "change"],
|
|
1807
|
+
setup(__props, { emit }) {
|
|
1808
|
+
const props = __props;
|
|
1809
|
+
const checkboxData = computed(() => {
|
|
1810
|
+
return props.options.map((opt) => {
|
|
1811
|
+
var _a;
|
|
1812
|
+
return {
|
|
1813
|
+
...opt,
|
|
1814
|
+
checkboxData: {
|
|
1815
|
+
...opt == null ? void 0 : opt.checkboxData,
|
|
1816
|
+
class: ((_a = opt == null ? void 0 : opt.checkboxData) == null ? void 0 : _a.class) ?? "bg-color-none mrg-r-1d5"
|
|
1817
|
+
},
|
|
1818
|
+
selected: props.selected.includes(opt.value)
|
|
1819
|
+
};
|
|
1820
|
+
});
|
|
1821
|
+
});
|
|
1822
|
+
const change = (value, state) => {
|
|
1823
|
+
const selected = [...props.selected];
|
|
1824
|
+
if (state && !selected.includes(value))
|
|
1825
|
+
selected.push(value);
|
|
1826
|
+
if (!state && selected.includes(value))
|
|
1827
|
+
selected.splice(selected.findIndex((val) => val === value), 1);
|
|
1828
|
+
emit("update:selected", selected);
|
|
1829
|
+
emit("change", selected.map((value2) => {
|
|
1830
|
+
var _a;
|
|
1831
|
+
return {
|
|
1832
|
+
label: (_a = props.options.find((opt) => opt.value === value2)) == null ? void 0 : _a.label,
|
|
1833
|
+
value: value2
|
|
1834
|
+
};
|
|
1835
|
+
}));
|
|
1836
|
+
};
|
|
1837
|
+
return (_ctx, _cache) => {
|
|
1838
|
+
const _component_b_col = resolveComponent("b-col");
|
|
1839
|
+
const _component_b_row = resolveComponent("b-row");
|
|
1840
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1841
|
+
class: normalizeClass(_ctx.class)
|
|
1842
|
+
}, {
|
|
1843
|
+
default: withCtx(() => [
|
|
1844
|
+
_ctx.title ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1845
|
+
key: 0,
|
|
1846
|
+
class: "mrg-b-1"
|
|
1847
|
+
}, {
|
|
1848
|
+
default: withCtx(() => [
|
|
1849
|
+
createTextVNode(toDisplayString(_ctx.title), 1)
|
|
1850
|
+
]),
|
|
1851
|
+
_: 1
|
|
1852
|
+
})) : createCommentVNode("", true),
|
|
1853
|
+
createVNode(_component_b_row, null, {
|
|
1854
|
+
default: withCtx(() => [
|
|
1855
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(checkboxData.value, (item, i) => {
|
|
1856
|
+
return openBlock(), createBlock(_component_b_col, {
|
|
1857
|
+
class: "flex-4",
|
|
1858
|
+
span: _ctx.span,
|
|
1859
|
+
key: i
|
|
1860
|
+
}, {
|
|
1861
|
+
default: withCtx(() => [
|
|
1862
|
+
createVNode(_sfc_main$4, mergeProps({
|
|
1863
|
+
onChange: change,
|
|
1864
|
+
label: item.label,
|
|
1865
|
+
value: item.value
|
|
1866
|
+
}, item.checkboxData, {
|
|
1867
|
+
selected: item.selected,
|
|
1868
|
+
"onUpdate:selected": ($event) => item.selected = $event
|
|
1869
|
+
}), createSlots({ _: 2 }, [
|
|
1870
|
+
_ctx.$slots.default ? {
|
|
1871
|
+
name: "default",
|
|
1872
|
+
fn: withCtx((scope) => [
|
|
1873
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1874
|
+
state: scope.state
|
|
1875
|
+
})
|
|
1876
|
+
]),
|
|
1877
|
+
key: "0"
|
|
1878
|
+
} : void 0,
|
|
1879
|
+
_ctx.$slots[item.value] ? {
|
|
1880
|
+
name: "default",
|
|
1881
|
+
fn: withCtx((scope) => [
|
|
1882
|
+
renderSlot(_ctx.$slots, item.value, {
|
|
1883
|
+
state: scope.state
|
|
1884
|
+
})
|
|
1885
|
+
]),
|
|
1886
|
+
key: "1"
|
|
1887
|
+
} : void 0
|
|
1888
|
+
]), 1040, ["label", "value", "selected", "onUpdate:selected"])
|
|
1889
|
+
]),
|
|
1890
|
+
_: 2
|
|
1891
|
+
}, 1032, ["span"]);
|
|
1892
|
+
}), 128))
|
|
1893
|
+
]),
|
|
1894
|
+
_: 3
|
|
1895
|
+
})
|
|
1896
|
+
]),
|
|
1897
|
+
_: 3
|
|
1898
|
+
}, 8, ["class"]);
|
|
1899
|
+
};
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1903
|
+
__name: "radio-group-wid",
|
|
1904
|
+
props: {
|
|
1905
|
+
options: {},
|
|
1906
|
+
selected: {},
|
|
1907
|
+
class: {},
|
|
1908
|
+
title: {},
|
|
1909
|
+
span: {},
|
|
1910
|
+
regular: { type: Boolean }
|
|
1911
|
+
},
|
|
1912
|
+
emits: ["update:selected", "change"],
|
|
1913
|
+
setup(__props, { emit }) {
|
|
1914
|
+
const props = __props;
|
|
1915
|
+
const selected = computed(() => [props.selected]);
|
|
1916
|
+
const change = (selected2) => {
|
|
1917
|
+
const values = selected2.map((item) => item.value);
|
|
1918
|
+
if (values.length === 2)
|
|
1919
|
+
emit("update:selected", values[1]);
|
|
1920
|
+
emit("change", values);
|
|
1921
|
+
};
|
|
1922
|
+
const slots = ref([]);
|
|
1923
|
+
onMounted(() => {
|
|
1924
|
+
var _a;
|
|
1925
|
+
slots.value = Object.keys(((_a = getCurrentInstance()) == null ? void 0 : _a.slots) ?? []);
|
|
1926
|
+
});
|
|
1927
|
+
return (_ctx, _cache) => {
|
|
1928
|
+
const _component_b_view = resolveComponent("b-view");
|
|
1929
|
+
return openBlock(), createBlock(_sfc_main$3, {
|
|
1930
|
+
span: _ctx.span,
|
|
1931
|
+
title: _ctx.title,
|
|
1932
|
+
class: normalizeClass(_ctx.class),
|
|
1933
|
+
selected: selected.value,
|
|
1934
|
+
options: _ctx.options,
|
|
1935
|
+
onChange: change
|
|
1936
|
+
}, createSlots({ _: 2 }, [
|
|
1937
|
+
_ctx.regular ? {
|
|
1938
|
+
name: "default",
|
|
1939
|
+
fn: withCtx((scope) => [
|
|
1940
|
+
createVNode(_component_b_view, { class: "h-24-px w-24-px round-lg pad-d5 bg-color-neutral" }, {
|
|
1941
|
+
default: withCtx(() => [
|
|
1942
|
+
createVNode(_component_b_view, {
|
|
1943
|
+
class: "max round-lg bg-color-C99999944",
|
|
1944
|
+
state: scope.state,
|
|
1945
|
+
states: {
|
|
1946
|
+
act: "bg-color-blue"
|
|
1947
|
+
}
|
|
1948
|
+
}, null, 8, ["state"])
|
|
1949
|
+
]),
|
|
1950
|
+
_: 2
|
|
1951
|
+
}, 1024)
|
|
1952
|
+
]),
|
|
1953
|
+
key: "0"
|
|
1954
|
+
} : void 0,
|
|
1955
|
+
renderList(slots.value, (slotName) => {
|
|
1956
|
+
return {
|
|
1957
|
+
name: slotName,
|
|
1958
|
+
fn: withCtx((scope) => [
|
|
1959
|
+
renderSlot(_ctx.$slots, slotName, {
|
|
1960
|
+
state: scope.state
|
|
1961
|
+
})
|
|
1962
|
+
])
|
|
1963
|
+
};
|
|
1964
|
+
})
|
|
1965
|
+
]), 1032, ["span", "title", "class", "selected", "options"]);
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
});
|
|
1969
|
+
const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
|
|
1970
|
+
const _hoisted_2 = ["innerHTML"];
|
|
1971
|
+
const _hoisted_3 = ["innerHTML"];
|
|
1972
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1973
|
+
__name: "tabs-wid",
|
|
1974
|
+
props: {
|
|
1975
|
+
options: {},
|
|
1976
|
+
selected: {},
|
|
1977
|
+
title: {},
|
|
1978
|
+
color: {},
|
|
1979
|
+
tabStyle: {},
|
|
1980
|
+
smooth: { type: Boolean },
|
|
1981
|
+
noDataNotic: {}
|
|
1982
|
+
},
|
|
1983
|
+
emits: ["update:selected", "change"],
|
|
1984
|
+
setup(__props, { emit }) {
|
|
1985
|
+
const props = __props;
|
|
1986
|
+
const tabConts = reactive({});
|
|
1987
|
+
const color = computed(() => props.color ?? "blue");
|
|
1988
|
+
const tabOrder = reactive({});
|
|
1989
|
+
const contLine = ref(false);
|
|
1990
|
+
const options = computed(() => {
|
|
1991
|
+
return props.options.map((opt, i) => {
|
|
1992
|
+
const { label, value, cont } = opt;
|
|
1993
|
+
let checkboxData = opt.checkboxData;
|
|
1994
|
+
tabConts[value] = cont;
|
|
1995
|
+
tabOrder[value] = i;
|
|
1996
|
+
if (!checkboxData) {
|
|
1997
|
+
contLine.value = true;
|
|
1998
|
+
checkboxData = {
|
|
1999
|
+
class: "round-none solid-b line-neutral thick-1 pad-b-1 bg-color-none rel",
|
|
2000
|
+
actClass: `color-${color.value}`
|
|
2001
|
+
};
|
|
2002
|
+
if (props.tabStyle === "grid") {
|
|
2003
|
+
contLine.value = false;
|
|
2004
|
+
checkboxData = {
|
|
2005
|
+
class: "round-none thick-1 solid line-neutral bg-color-none",
|
|
2006
|
+
actClass: `line-${color.value} color-${color.value}`
|
|
2007
|
+
};
|
|
2008
|
+
}
|
|
2009
|
+
if (props.tabStyle === "card") {
|
|
2010
|
+
checkboxData = {
|
|
2011
|
+
class: "round-sm round-t thick-1 solid line-neutral bg-color-neutral rel mrg-r-4-px",
|
|
2012
|
+
actClass: `bg-color-none solid-b-none t-f1-px color-${color.value}`
|
|
2013
|
+
};
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
return { label, value, checkboxData };
|
|
2017
|
+
});
|
|
2018
|
+
});
|
|
2019
|
+
const contArea = computed(() => props.options.findIndex((opt) => opt.cont) > -1);
|
|
2020
|
+
const selected = ref(props.selected);
|
|
2021
|
+
const flipDir = ref("");
|
|
2022
|
+
watch(selected, (val, oldVal) => {
|
|
2023
|
+
flipDir.value = tabOrder[val] > tabOrder[oldVal] ? "right-to-left" : "left-to-right";
|
|
2024
|
+
emit("update:selected", val);
|
|
2025
|
+
emit("change", {
|
|
2026
|
+
cur: val,
|
|
2027
|
+
old: oldVal,
|
|
2028
|
+
dir: tabOrder[val] > tabOrder[oldVal] ? 1 : 0,
|
|
2029
|
+
aniClass: `ani-${flipDir.value}`
|
|
2030
|
+
});
|
|
2031
|
+
});
|
|
2032
|
+
const slots = ref([]);
|
|
2033
|
+
onBeforeMount(() => {
|
|
2034
|
+
var _a;
|
|
2035
|
+
slots.value = Object.keys(((_a = getCurrentInstance()) == null ? void 0 : _a.slots) ?? []);
|
|
2036
|
+
});
|
|
2037
|
+
return (_ctx, _cache) => {
|
|
2038
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
2039
|
+
createVNode(_sfc_main$m, { class: "flex-7" }, {
|
|
2040
|
+
default: withCtx(() => [
|
|
2041
|
+
createVNode(_sfc_main$2, {
|
|
2042
|
+
options: options.value,
|
|
2043
|
+
title: _ctx.title,
|
|
2044
|
+
selected: selected.value,
|
|
2045
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => selected.value = $event)
|
|
2046
|
+
}, createSlots({ _: 2 }, [
|
|
2047
|
+
slots.value.length === 0 && _ctx.tabStyle === "grid" ? {
|
|
2048
|
+
name: "default",
|
|
2049
|
+
fn: withCtx((scope) => [
|
|
2050
|
+
_hoisted_1
|
|
2051
|
+
]),
|
|
2052
|
+
key: "0"
|
|
2053
|
+
} : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
|
|
2054
|
+
name: "default",
|
|
2055
|
+
fn: withCtx((scope) => [
|
|
2056
|
+
createVNode(_sfc_main$m, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
|
|
2057
|
+
]),
|
|
2058
|
+
key: "1"
|
|
2059
|
+
} : slots.value.length === 0 ? {
|
|
2060
|
+
name: "default",
|
|
2061
|
+
fn: withCtx((scope) => [
|
|
2062
|
+
createVNode(_sfc_main$m, {
|
|
2063
|
+
class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
|
|
2064
|
+
state: scope.state,
|
|
2065
|
+
states: {
|
|
2066
|
+
act: `bg-color-${color.value}`
|
|
2067
|
+
}
|
|
2068
|
+
}, null, 8, ["state", "states"])
|
|
2069
|
+
]),
|
|
2070
|
+
key: "2"
|
|
2071
|
+
} : void 0,
|
|
2072
|
+
renderList(slots.value, (slotName) => {
|
|
2073
|
+
return {
|
|
2074
|
+
name: slotName,
|
|
2075
|
+
fn: withCtx((scope) => [
|
|
2076
|
+
renderSlot(_ctx.$slots, slotName, {
|
|
2077
|
+
state: scope.state
|
|
2078
|
+
})
|
|
2079
|
+
])
|
|
2080
|
+
};
|
|
2081
|
+
})
|
|
2082
|
+
]), 1032, ["options", "title", "selected"]),
|
|
2083
|
+
contLine.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2084
|
+
key: 0,
|
|
2085
|
+
class: "grow-1 h-1-px bg-color-neutral"
|
|
2086
|
+
})) : createCommentVNode("", true)
|
|
2087
|
+
]),
|
|
2088
|
+
_: 3
|
|
2089
|
+
}),
|
|
2090
|
+
contArea.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
2091
|
+
key: 0,
|
|
2092
|
+
class: "pad-v-1d5 over-hide"
|
|
2093
|
+
}, {
|
|
2094
|
+
default: withCtx(() => [
|
|
2095
|
+
selected.value ? (openBlock(), createBlock(_sfc_main$m, { key: 0 }, {
|
|
2096
|
+
default: withCtx(() => [
|
|
2097
|
+
createElementVNode("div", {
|
|
2098
|
+
innerHTML: tabConts[selected.value],
|
|
2099
|
+
class: normalizeClass(_ctx.smooth ? `ani-fast ani-${flipDir.value}` : ""),
|
|
2100
|
+
onAnimationend: _cache[1] || (_cache[1] = ($event) => flipDir.value = "")
|
|
2101
|
+
}, null, 42, _hoisted_2)
|
|
2102
|
+
]),
|
|
2103
|
+
_: 1
|
|
2104
|
+
})) : (openBlock(), createBlock(_sfc_main$m, {
|
|
2105
|
+
key: 1,
|
|
2106
|
+
class: "alpha-d5"
|
|
2107
|
+
}, {
|
|
2108
|
+
default: withCtx(() => [
|
|
2109
|
+
createElementVNode("div", {
|
|
2110
|
+
innerHTML: _ctx.noDataNotic ?? "暂未选择标签"
|
|
2111
|
+
}, null, 8, _hoisted_3)
|
|
2112
|
+
]),
|
|
2113
|
+
_: 1
|
|
2114
|
+
}))
|
|
2115
|
+
]),
|
|
2116
|
+
_: 1
|
|
2117
|
+
})) : createCommentVNode("", true)
|
|
2118
|
+
], 64);
|
|
2119
|
+
};
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
1670
2122
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1671
2123
|
__name: "app-wid",
|
|
1672
2124
|
props: {
|
|
@@ -1691,15 +2143,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1691
2143
|
return (_ctx, _cache) => {
|
|
1692
2144
|
var _a;
|
|
1693
2145
|
const _component_router_view = resolveComponent("router-view");
|
|
1694
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2146
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
1695
2147
|
class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
1696
2148
|
}, {
|
|
1697
2149
|
default: withCtx(() => {
|
|
1698
2150
|
var _a2;
|
|
1699
2151
|
return [
|
|
1700
|
-
createVNode(_sfc_main$
|
|
2152
|
+
createVNode(_sfc_main$m, { class: "rel grow-1" }, {
|
|
1701
2153
|
default: withCtx(() => [
|
|
1702
|
-
createVNode(_sfc_main$
|
|
2154
|
+
createVNode(_sfc_main$a, {
|
|
1703
2155
|
scroll: { y: "auto", x: "hidden" },
|
|
1704
2156
|
class: "abs max"
|
|
1705
2157
|
}, {
|
|
@@ -1713,32 +2165,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1713
2165
|
]),
|
|
1714
2166
|
_: 1
|
|
1715
2167
|
}),
|
|
1716
|
-
createVNode(_sfc_main$
|
|
2168
|
+
createVNode(_sfc_main$m, {
|
|
1717
2169
|
class: normalizeClass(`pcenter flex-around ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
|
|
1718
2170
|
}, {
|
|
1719
2171
|
default: withCtx(() => [
|
|
1720
2172
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
1721
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2173
|
+
return openBlock(), createBlock(_sfc_main$k, mergeProps({ key: i }, nav.hotData, {
|
|
1722
2174
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
|
|
1723
2175
|
class: "flex rel pad-v-4-px max-h"
|
|
1724
2176
|
}), {
|
|
1725
2177
|
default: withCtx(() => {
|
|
1726
2178
|
var _a3, _b, _c, _d, _e, _f;
|
|
1727
2179
|
return [
|
|
1728
|
-
nav.main ? (openBlock(), createBlock(_sfc_main$
|
|
2180
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$m, {
|
|
1729
2181
|
key: 0,
|
|
1730
2182
|
class: "rel w-5"
|
|
1731
2183
|
}, {
|
|
1732
2184
|
default: withCtx(() => {
|
|
1733
2185
|
var _a4, _b2, _c2, _d2;
|
|
1734
2186
|
return [
|
|
1735
|
-
createVNode(_sfc_main$
|
|
2187
|
+
createVNode(_sfc_main$e, mergeProps(nav.iconData, {
|
|
1736
2188
|
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
2189
|
}), null, 16, ["class"])
|
|
1738
2190
|
];
|
|
1739
2191
|
}),
|
|
1740
2192
|
_: 2
|
|
1741
|
-
}, 1024)) : (openBlock(), createBlock(_sfc_main$
|
|
2193
|
+
}, 1024)) : (openBlock(), createBlock(_sfc_main$m, {
|
|
1742
2194
|
key: 1,
|
|
1743
2195
|
class: normalizeClass(`flex-column flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
|
|
1744
2196
|
cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
|
|
@@ -1748,7 +2200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1748
2200
|
}
|
|
1749
2201
|
}, {
|
|
1750
2202
|
default: withCtx(() => [
|
|
1751
|
-
createVNode(_sfc_main$
|
|
2203
|
+
createVNode(_sfc_main$e, mergeProps(nav.iconData, {
|
|
1752
2204
|
cname: nav.act,
|
|
1753
2205
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
1754
2206
|
states: {
|
|
@@ -1756,7 +2208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1756
2208
|
},
|
|
1757
2209
|
class: "w-2d7 h-2d7 trans-fast fsize-1d7"
|
|
1758
2210
|
}), null, 16, ["cname", "state", "states"]),
|
|
1759
|
-
nav.text ? (openBlock(), createBlock(_sfc_main$
|
|
2211
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$l, {
|
|
1760
2212
|
key: 0,
|
|
1761
2213
|
class: "fsize-d8"
|
|
1762
2214
|
}, {
|
|
@@ -1784,18 +2236,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1784
2236
|
}
|
|
1785
2237
|
});
|
|
1786
2238
|
const initGlobalComponents = [
|
|
2239
|
+
_sfc_main$n,
|
|
2240
|
+
_sfc_main$m,
|
|
2241
|
+
_sfc_main$l,
|
|
2242
|
+
_sfc_main$k,
|
|
1787
2243
|
_sfc_main$j,
|
|
1788
|
-
_sfc_main$
|
|
1789
|
-
_sfc_main$
|
|
1790
|
-
_sfc_main$g,
|
|
1791
|
-
_sfc_main$f,
|
|
2244
|
+
_sfc_main$e,
|
|
2245
|
+
_sfc_main$b,
|
|
1792
2246
|
_sfc_main$a,
|
|
2247
|
+
_sfc_main$8,
|
|
2248
|
+
_sfc_main$d,
|
|
2249
|
+
_sfc_main$9,
|
|
2250
|
+
_sfc_main$c,
|
|
1793
2251
|
_sfc_main$7,
|
|
1794
2252
|
_sfc_main$6,
|
|
1795
|
-
_sfc_main$4,
|
|
1796
|
-
_sfc_main$9,
|
|
1797
2253
|
_sfc_main$5,
|
|
1798
|
-
_sfc_main$
|
|
2254
|
+
_sfc_main$4,
|
|
1799
2255
|
_sfc_main$3,
|
|
1800
2256
|
_sfc_main$2,
|
|
1801
2257
|
_sfc_main$1,
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;","no-wrap":"flex-wrap: no-wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;","col-1":"flex-basis: 8.333%;","col-2":"flex-basis: 16.667%;","col-3":"flex-basis: 25%;","col-4":"flex-basis: 33.333%;","col-5":"flex-basis: 41.667%;","col-6":"flex-basis: 50%;","col-7":"flex-basis: 58.333%;","col-8":"flex-basis: 66.667%;","col-9":"flex-basis: 75%;","col-10":"flex-basis: 83.333%;","col-11":"flex-basis: 91.667%;","col-12":"flex-basis: 100%;","offset-1":"margin-left: 8.333%;","offset-2":"margin-left: 16.667%;","offset-3":"margin-left: 25%;","offset-4":"margin-left: 33.333%;","offset-5":"margin-left: 41.667%;","offset-6":"margin-left: 50%;","offset-7":"margin-left: 58.333%;","offset-8":"margin-left: 66.667%;","offset-9":"margin-left: 75%;","offset-10":"margin-left: 83.333%;","offset-11":"margin-left: 91.667%;","offset-12":"margin-left: 100%;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%;",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-lg":"borderRadius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","solid-none":"border-style: none;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;",shadow:"box-shadow: 0 4px 17px;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}},o={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}};var a,r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};a={get exports(){return n},set exports(e){n=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,r,n,l){return t((s=t(t(o,e),t(r,l)))<<(c=n)|s>>>32-c,a);var s,c}function r(e,t,a,r,n,l,s){return o(t&a|~t&r,e,t,n,l,s)}function n(e,t,a,r,n,l,s){return o(t&r|a&~r,e,t,n,l,s)}function l(e,t,a,r,n,l,s){return o(t^a^r,e,t,n,l,s)}function s(e,t,a,r,n,l,s){return o(a^(t|~r),e,t,n,l,s)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,g=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=g,p=r(p,m,f,g,e[a],7,-680876936),g=r(g,p,m,f,e[a+1],12,-389564586),f=r(f,g,p,m,e[a+2],17,606105819),m=r(m,f,g,p,e[a+3],22,-1044525330),p=r(p,m,f,g,e[a+4],7,-176418897),g=r(g,p,m,f,e[a+5],12,1200080426),f=r(f,g,p,m,e[a+6],17,-1473231341),m=r(m,f,g,p,e[a+7],22,-45705983),p=r(p,m,f,g,e[a+8],7,1770035416),g=r(g,p,m,f,e[a+9],12,-1958414417),f=r(f,g,p,m,e[a+10],17,-42063),m=r(m,f,g,p,e[a+11],22,-1990404162),p=r(p,m,f,g,e[a+12],7,1804603682),g=r(g,p,m,f,e[a+13],12,-40341101),f=r(f,g,p,m,e[a+14],17,-1502002290),p=n(p,m=r(m,f,g,p,e[a+15],22,1236535329),f,g,e[a+1],5,-165796510),g=n(g,p,m,f,e[a+6],9,-1069501632),f=n(f,g,p,m,e[a+11],14,643717713),m=n(m,f,g,p,e[a],20,-373897302),p=n(p,m,f,g,e[a+5],5,-701558691),g=n(g,p,m,f,e[a+10],9,38016083),f=n(f,g,p,m,e[a+15],14,-660478335),m=n(m,f,g,p,e[a+4],20,-405537848),p=n(p,m,f,g,e[a+9],5,568446438),g=n(g,p,m,f,e[a+14],9,-1019803690),f=n(f,g,p,m,e[a+3],14,-187363961),m=n(m,f,g,p,e[a+8],20,1163531501),p=n(p,m,f,g,e[a+13],5,-1444681467),g=n(g,p,m,f,e[a+2],9,-51403784),f=n(f,g,p,m,e[a+7],14,1735328473),p=l(p,m=n(m,f,g,p,e[a+12],20,-1926607734),f,g,e[a+5],4,-378558),g=l(g,p,m,f,e[a+8],11,-2022574463),f=l(f,g,p,m,e[a+11],16,1839030562),m=l(m,f,g,p,e[a+14],23,-35309556),p=l(p,m,f,g,e[a+1],4,-1530992060),g=l(g,p,m,f,e[a+4],11,1272893353),f=l(f,g,p,m,e[a+7],16,-155497632),m=l(m,f,g,p,e[a+10],23,-1094730640),p=l(p,m,f,g,e[a+13],4,681279174),g=l(g,p,m,f,e[a],11,-358537222),f=l(f,g,p,m,e[a+3],16,-722521979),m=l(m,f,g,p,e[a+6],23,76029189),p=l(p,m,f,g,e[a+9],4,-640364487),g=l(g,p,m,f,e[a+12],11,-421815835),f=l(f,g,p,m,e[a+15],16,530742520),p=s(p,m=l(m,f,g,p,e[a+2],23,-995338651),f,g,e[a],6,-198630844),g=s(g,p,m,f,e[a+7],10,1126891415),f=s(f,g,p,m,e[a+14],15,-1416354905),m=s(m,f,g,p,e[a+5],21,-57434055),p=s(p,m,f,g,e[a+12],6,1700485571),g=s(g,p,m,f,e[a+3],10,-1894986606),f=s(f,g,p,m,e[a+10],15,-1051523),m=s(m,f,g,p,e[a+1],21,-2054922799),p=s(p,m,f,g,e[a+8],6,1873313359),g=s(g,p,m,f,e[a+15],10,-30611744),f=s(f,g,p,m,e[a+6],15,-1560198380),m=s(m,f,g,p,e[a+13],21,1309151649),p=s(p,m,f,g,e[a+4],6,-145523070),g=s(g,p,m,f,e[a+11],10,-1120210379),f=s(f,g,p,m,e[a+2],15,718787259),m=s(m,f,g,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),g=t(g,u);return[p,m,f,g]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",r="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),r+=a.charAt(t>>>4&15)+a.charAt(15&t);return r}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,r=d(e),n=[],l=[];for(n[15]=l[15]=void 0,r.length>16&&(r=c(r,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^r[o],l[o]=1549556828^r[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(l.concat(a),640))}(p(e),p(t))}function g(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=g:e.md5=g}(r);const l=n,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(a){const r=a,n=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.reactive({}),u=e=>{if(o.colors[e])return o.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]})`}return!1},p=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t})(e);if(!1!==t)return t;const o=u(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...r]=t;return`${o}-gradient(${a}deg,${r.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=(e,t,o)=>{let a=t??o;return"auto"===e&&(a=""),"P"===a&&(a="%"),a??""},f=e=>{if(!e)return"";return e.split(" ").reduce(((e,o)=>{const a=(e=>{let o=t[e];if(o)return o;const a=e.split("-"),r={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[n,l,s,c]=a;if(o=t[n],o){let e=p(l);if(e)return`${o.pro}: ${e}${m(e,s,o.unit)}`;if(e=p(s),e){const t=r[l];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${m(e,c,o.unit)};`})),a}return`${o.pro}-${l}: ${e}${m(e,c,o.unit)}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},g=(e,t)=>{if(!i.value.includes(e)){const o=f(t);if(!o)return;i.value.push(e),d[e]=o}},h=e.ref();return e.onMounted((()=>{if(r.matrix&&(()=>{var e,t,o,a,n,l,s,c;const i=(null==(e=r.matrix)?void 0:e.translate)?`translate(${null==(t=r.matrix)?void 0:t.translate})`:"",d=(null==(o=r.matrix)?void 0:o.scale)?`scale(${null==(a=r.matrix)?void 0:a.scale})`:"",u=(null==(n=r.matrix)?void 0:n.rotate)?`rotate(${null==(l=r.matrix)?void 0:l.rotate})`:"",p=(null==(s=r.matrix)?void 0:s.skew)?`skew(${null==(c=r.matrix)?void 0:c.skew})`:"";h.value=r.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),r.class){(()=>{let e=document.head.querySelector(`#${s}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",s),document.head.appendChild(e)),n.value=e})(),(t=r.class)&&t.split(" ").forEach((e=>{g(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${l(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(r.class,r.cname??"");(e=>{r.focus&&g(e,r.focus)})(`${o}[focus='true']:focus`),(e=>{r.hover&&g(e,r.hover)})(`${o}[hover='true']:hover`),(e=>{r.active&&g(e,r.active)})(`${o}[active='true']:active`),e=o,r.states&&Object.keys(r.states).forEach((t=>{g(`${e}[state="${t}"]`,r.states[t])})),(e=>{if(!r.extraClass)return;const{selector:t,value:o}=r.extraClass;g(`${e}${t}*`,o)})(o),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:c.value,matrixStyle:h.value})}}),i=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{}},setup(t){const o=t,a=e.computed((()=>o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle({...a.value,...o.matrixStyle})},[e.renderSlot(t.$slots,"default")],14,i)])),_:3},8,["class","cname","states","matrix"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;","no-wrap":"flex-wrap: no-wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;","flex-column":"display: flex; flex-direction: column;","flex-between":"display: flex; justify-content: space-between; align-items: center;","flex-around":"display: flex; justify-content: space-around; align-items: center;","col-1":"flex-basis: 8.333%;","col-2":"flex-basis: 16.667%;","col-3":"flex-basis: 25%;","col-4":"flex-basis: 33.333%;","col-5":"flex-basis: 41.667%;","col-6":"flex-basis: 50%;","col-7":"flex-basis: 58.333%;","col-8":"flex-basis: 66.667%;","col-9":"flex-basis: 75%;","col-10":"flex-basis: 83.333%;","col-11":"flex-basis: 91.667%;","col-12":"flex-basis: 100%;","offset-1":"margin-left: 8.333%;","offset-2":"margin-left: 16.667%;","offset-3":"margin-left: 25%;","offset-4":"margin-left: 33.333%;","offset-5":"margin-left: 41.667%;","offset-6":"margin-left: 50%;","offset-7":"margin-left: 58.333%;","offset-8":"margin-left: 66.667%;","offset-9":"margin-left: 75%;","offset-10":"margin-left: 83.333%;","offset-11":"margin-left: 91.667%;","offset-12":"margin-left: 100%;","flex-1":"display: flex; justify-content: flex-start; align-items: flex-start;","flex-2":"display: flex; justify-content: center; align-items: flex-start;","flex-3":"display: flex; justify-content: flex-end; align-items: flex-start;","flex-4":"display: flex; justify-content: flex-start; align-items: center","flex-5":"display: flex; justify-content: center; align-items: center;","flex-6":"display: flex; justify-content: flex-end; align-items: center;","flex-7":"display: flex; justify-content: flex-start; align-items: flex-end;","flex-8":"display: flex; justify-content: center; align-items: flex-end;","flex-9":"display: flex; justify-content: flex-end; align-items: flex-end;","max-h":"height: 100%;","max-w":"width: 100%;",max:"height: 100%; width: 100%;","max-fixed":"height: 100%; width: 100%; position: fixed; left: 0; top: 0;","max-screen":"height: 100vh; width: 100%;",item:{breakInside:"avoid",mozPageBreakInside:"avoid",webkitColumnBreakInside:"avoid"},fixed:"position: fixed;",rel:"position: relative;",abs:"position: absolute;","over-hide":"overflow: hidden;","over-show":"overflow: visible;","over-scroll":"overflow: auto;",brepeat:"background-repeat: repeat;","brepeat-x":"background-repeat: repeat-x;","brepeat-y":"background-repeat: repeat-y;","bsize-cover":"background-size: cover;","bsize-contain":"background-size: contain;","bsize-max":"background-size: 100% 100%;","bsize-max-h":"background-size: auto 100%;","bsize-max-w":"background-size: 100% auto;","bpos-1":"background-position: left top;","bpos-2":"background-position: center top;","bpos-3":"background-position: right top;","bpos-4":"background-position: left center;","bpos-5":"background-position: center center;","bpos-6":"background-position: right center;","bpos-7":"background-position: left bottom;","bpos-8":"background-position: center bottom;","bpos-9":"background-position: right bottom;","bg-fixed":"background-attachment: scroll;",round:"border-radius: 50%;","round-lg":"border-radius: 24px;","round-md":"border-radius: 10px;","round-sm":"border-radius: 4px;","round-none":"border-radius: 0px;","round-t":"border-bottom-right-radius: 0; border-bottom-left-radius: 0;","round-b":"border-top-right-radius: 0; border-top-left-radius: 0;","round-l":"border-top-right-radius: 0; border-bottom-right-radius: 0;","round-r":"border-top-left-radius: 0; border-bottom-left-radius: 0;",solid:"border-style: solid;",dashed:"border-style: dashed;","solid-l":"border-left-style: solid;","solid-r":"border-right-style: solid;","solid-t":"border-top-style: solid;","solid-b":"border-bottom-style: solid;","solid-l-none":"border-left-style: none;","solid-r-none":"border-right-style: none;","solid-t-none":"border-top-style: none;","solid-b-none":"border-bottom-style: none;","dashed-l":"border-left-style: dashed;","dashed-r":"border-right-style: dashed;","dashed-t":"border-top-style: dashed;","dashed-b":"border-bottom-style: dashed;","line-outside":"background-clip: padding-box;",shadow:"box-shadow: 0 4px 17px;","shadow-sm":"box-shadow: 0 2px 4px;","shadow-lg":"box-shadow: 0 14px 40px;","shadow-relief":"box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);",trans:"transition: all .7s;","trans-fast":"transition: all .4s;","trans-slow":"transition: all 1.4s;","trans-no":"transition: none;","blur-no":"filter: blur(0px);","blur-sm":"filter: blur(2px);","blur-md":"filter: blur(7px);","blur-lg":"filter: blur(17px);","dark-no":"filter: brightness(100%);","dark-sm":"filter: brightness(80%);","dark-md":"filter: brightness(50%);","dark-lg":"filter: brightness(20%);","gray-no":"filter: grayscale(0%);","gray-sm":"filter: grayscale(40%);","gray-md":"filter: grayscale(70%);","gray-lg":"filter: grayscale(100%);","bg-none":"pointerEvents: none;","bg-use":"pointerEvents: auto;","touch-none":"touchAction: none;",ellipsis:"overflow: hidden; text-overflow: ellipsis; white-space: nowrap;","text-line":"textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);","alpha-0":"opacity: 0; visibility: hidden;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},bsize:{pro:"background-size",unit:"%"},bpos:{pro:"background-position",unit:"%"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}},o={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}};var a,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n={};a={get exports(){return n},set exports(e){n=e}},function(e){function t(e,t){var o=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(o>>16)<<16|65535&o}function o(e,o,a,l,n,s){return t((r=t(t(o,e),t(l,s)))<<(c=n)|r>>>32-c,a);var r,c}function l(e,t,a,l,n,s,r){return o(t&a|~t&l,e,t,n,s,r)}function n(e,t,a,l,n,s,r){return o(t&l|a&~l,e,t,n,s,r)}function s(e,t,a,l,n,s,r){return o(t^a^l,e,t,n,s,r)}function r(e,t,a,l,n,s,r){return o(a^(t|~l),e,t,n,s,r)}function c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,v=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=v,p=l(p,m,f,v,e[a],7,-680876936),v=l(v,p,m,f,e[a+1],12,-389564586),f=l(f,v,p,m,e[a+2],17,606105819),m=l(m,f,v,p,e[a+3],22,-1044525330),p=l(p,m,f,v,e[a+4],7,-176418897),v=l(v,p,m,f,e[a+5],12,1200080426),f=l(f,v,p,m,e[a+6],17,-1473231341),m=l(m,f,v,p,e[a+7],22,-45705983),p=l(p,m,f,v,e[a+8],7,1770035416),v=l(v,p,m,f,e[a+9],12,-1958414417),f=l(f,v,p,m,e[a+10],17,-42063),m=l(m,f,v,p,e[a+11],22,-1990404162),p=l(p,m,f,v,e[a+12],7,1804603682),v=l(v,p,m,f,e[a+13],12,-40341101),f=l(f,v,p,m,e[a+14],17,-1502002290),p=n(p,m=l(m,f,v,p,e[a+15],22,1236535329),f,v,e[a+1],5,-165796510),v=n(v,p,m,f,e[a+6],9,-1069501632),f=n(f,v,p,m,e[a+11],14,643717713),m=n(m,f,v,p,e[a],20,-373897302),p=n(p,m,f,v,e[a+5],5,-701558691),v=n(v,p,m,f,e[a+10],9,38016083),f=n(f,v,p,m,e[a+15],14,-660478335),m=n(m,f,v,p,e[a+4],20,-405537848),p=n(p,m,f,v,e[a+9],5,568446438),v=n(v,p,m,f,e[a+14],9,-1019803690),f=n(f,v,p,m,e[a+3],14,-187363961),m=n(m,f,v,p,e[a+8],20,1163531501),p=n(p,m,f,v,e[a+13],5,-1444681467),v=n(v,p,m,f,e[a+2],9,-51403784),f=n(f,v,p,m,e[a+7],14,1735328473),p=s(p,m=n(m,f,v,p,e[a+12],20,-1926607734),f,v,e[a+5],4,-378558),v=s(v,p,m,f,e[a+8],11,-2022574463),f=s(f,v,p,m,e[a+11],16,1839030562),m=s(m,f,v,p,e[a+14],23,-35309556),p=s(p,m,f,v,e[a+1],4,-1530992060),v=s(v,p,m,f,e[a+4],11,1272893353),f=s(f,v,p,m,e[a+7],16,-155497632),m=s(m,f,v,p,e[a+10],23,-1094730640),p=s(p,m,f,v,e[a+13],4,681279174),v=s(v,p,m,f,e[a],11,-358537222),f=s(f,v,p,m,e[a+3],16,-722521979),m=s(m,f,v,p,e[a+6],23,76029189),p=s(p,m,f,v,e[a+9],4,-640364487),v=s(v,p,m,f,e[a+12],11,-421815835),f=s(f,v,p,m,e[a+15],16,530742520),p=r(p,m=s(m,f,v,p,e[a+2],23,-995338651),f,v,e[a],6,-198630844),v=r(v,p,m,f,e[a+7],10,1126891415),f=r(f,v,p,m,e[a+14],15,-1416354905),m=r(m,f,v,p,e[a+5],21,-57434055),p=r(p,m,f,v,e[a+12],6,1700485571),v=r(v,p,m,f,e[a+3],10,-1894986606),f=r(f,v,p,m,e[a+10],15,-1051523),m=r(m,f,v,p,e[a+1],21,-2054922799),p=r(p,m,f,v,e[a+8],6,1873313359),v=r(v,p,m,f,e[a+15],10,-30611744),f=r(f,v,p,m,e[a+6],15,-1560198380),m=r(m,f,v,p,e[a+13],21,1309151649),p=r(p,m,f,v,e[a+4],6,-145523070),v=r(v,p,m,f,e[a+11],10,-1120210379),f=r(f,v,p,m,e[a+2],15,718787259),m=r(m,f,v,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),v=t(v,u);return[p,m,f,v]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",l="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),l+=a.charAt(t>>>4&15)+a.charAt(15&t);return l}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,l=d(e),n=[],s=[];for(n[15]=s[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],s[o]=1549556828^l[o];return a=c(n.concat(d(t)),512+8*t.length),i(c(s.concat(a),640))}(p(e),p(t))}function v(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=v:e.md5=v}(l);const s=n,r="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},extraClass:{},cname:{}},setup(a){const l=a,n=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of n.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.reactive({}),u=e=>{if(o.colors[e])return o.colors[e];if(e&&0===e.search("C"))return`#${e.substr(1)}`;if(e&&0===e.search("rgb")){const t=e.split("_");return`${t[0]}(${t[1]},${t[2]},${t[3]})`}return!1},p=e=>{if(!e)return!1;if(0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e.toString();return"f"===t[0]&&(t=`-${t.substr(1)}`),/^-?\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t})(e);if(!1!==t)return t;const o=u(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...l]=t;return`${o}-gradient(${a}deg,${l.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=(e,t,o)=>{let a=t??o;return"auto"===e&&(a=""),"P"===a&&(a="%"),a??""},f=e=>{if(!e)return"";return e.trim().split(" ").reduce(((e,o)=>{const a=(e=>{let o=t[e];if(o)return o;const a=e.split("-"),l={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"],x:["x"],y:["y"]};let[n,s,r,c]=a;if(o=t[n],o){let e=p(s);if(e)return`${o.pro}: ${e}${m(e,r,o.unit)}`;if(e=p(r),e){const t=l[s];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${m(e,c,o.unit)};`})),a}return`${o.pro}-${s}: ${e}${m(e,c,o.unit)}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},v=(e,t)=>{if(!i.value.includes(e)){const o=f(t);if(!o)return;i.value.push(e),d[e]=o}},h=(e,t,o)=>{v(`${e}[state="${t}"]`,o)},g=e.reactive({}),b=e=>{l.states&&Object.keys(l.states).forEach((t=>{if(l.states){const o=l.states[t];if("string"==typeof o)h(e,t,o);else{const{class:a,ani:l}=o;h(e,t,a),((e,t)=>{g[e]=t})(t,l)}}}))},x=e.ref();return e.onMounted((()=>{if(l.matrix&&(()=>{var e,t,o,a,n,s,r,c;const i=(null==(e=l.matrix)?void 0:e.translate)?`translate(${null==(t=l.matrix)?void 0:t.translate})`:"",d=(null==(o=l.matrix)?void 0:o.scale)?`scale(${null==(a=l.matrix)?void 0:a.scale})`:"",u=(null==(n=l.matrix)?void 0:n.rotate)?`rotate(${null==(s=l.matrix)?void 0:s.rotate})`:"",p=(null==(r=l.matrix)?void 0:r.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";x.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),l.class){(()=>{let e=document.head.querySelector(`#${r}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",r),document.head.appendChild(e)),n.value=e})(),(e=l.class)&&e.split(" ").forEach((e=>{v(e,e)}));const t=((e,t)=>{const o=e.split(" ").sort(),a=`B-${s(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(l.class,l.cname??"");(e=>{l.focus&&v(e,l.focus)})(`${t}[focus='true']:focus`),(e=>{l.hover&&v(e,l.hover)})(`${t}[hover='true']:hover`),(e=>{l.active&&v(e,l.active)})(`${t}[active='true']:active`),b(t),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.extraClass;v(`${e}${t}*`,o)})(t),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))}var e})),(t,o)=>e.renderSlot(t.$slots,"className",{aniStates:JSON.stringify(g),className:c.value,matrixStyle:x.value})}}),i=["data-ani-states","state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{},states:{},bgImg:{},matrix:{},cname:{}},emits:["on_aniEnd"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.computed((()=>a.state));let s;e.watch(n,((e,t)=>{if(null==e||null==e)return;const o=JSON.parse(l.value.dataset.aniStates);o[e]&&(null==t&&null==t||l.value.classList.remove(o[t]),l.value.classList.add("ani-fast",o[e]),s=o[e])}));const r=e=>{l.value.classList.remove(s),o("on_aniEnd",e)},d=e.computed((()=>a.bgImg?{backgroundImage:`url(${a.bgImg})`}:{}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("div",{ref_key:"$el",ref:l,onAnimationend:r,class:e.normalizeClass(o.className),"data-ani-states":o.aniStates,state:n.value,style:e.normalizeStyle({...d.value,...o.matrixStyle})},[e.renderSlot(t.$slots,"default")],46,i)])),_:3},8,["class","cname","states","matrix"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))});
|
|
2
2
|
/*!
|
|
3
3
|
* vue-router v4.2.4
|
|
4
4
|
* (c) 2023 Eduardo San Martin Morote
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
var m,f,g,h,v,b;(f=m||(m={})).pop="pop",f.push="push",(h=g||(g={})).back="back",h.forward="forward",h.unknown="",Symbol("production"!==process.env.NODE_ENV?"navigation failure":""),(b=v||(v={}))[b.aborted=4]="aborted",b[b.cancelled=8]="cancelled",b[b.duplicated=16]="duplicated",Symbol("production"!==process.env.NODE_ENV?"router view location matched":""),Symbol("production"!==process.env.NODE_ENV?"router view depth":"");const x=Symbol("production"!==process.env.NODE_ENV?"router":"");Symbol("production"!==process.env.NODE_ENV?"route location":""),Symbol("production"!==process.env.NODE_ENV?"router view location":"");const y=["onClick","onDblclick","target","hover","state","active","href"],k=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,{proxy:r}=e.getCurrentInstance(),n=e.ref(),l=e.ref("");let s;const i=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(l.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(s=e),e)})),d=e.computed((()=>a.forbid?"":"pointer")),u=e.inject(x),p=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}s&&(e.preventDefault(),(u??r.$router).push(s)),!a.forbid&&o("on_click",e)},m=e=>{!a.forbid&&o("on_dblclick",e)},f=e=>{o("on_enter",e)},g=e=>{o("on_move",e)},h=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:f,onTouchstart:f,onMousemove:g,onTouchmove:g,onMouseleave:h,onTouchend:h,onClick:e.withModifiers(p,["stop"]),onDblclick:e.withModifiers(m,["stop"]),target:l.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:i.value},[e.renderSlot(t.$slots,"default")],46,y)])),_:3},8,["class","states","hover","active","cname"]))}}),w=["src","alt"],_=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,r=e.computed((()=>a.img)),n=e.ref(""),l=()=>{a.defaultSrc&&(n.value=a.defaultSrc);const e=new Image;e.onload=()=>{n.value=a.img,o("on_load")},e.src=a.img};return e.watch(r,l),e.onMounted((()=>{l()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,w)])),_:1},8,["class","cname","matrix"]))}}),C=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),$=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o};const B=$({},[["render",function(t,o){const a=e.resolveComponent("b-text"),r=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(r,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const N=$({},[["render",function(t,o){const a=e.resolveComponent("b-text"),r=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(r,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const z=$({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),V=["state"],S=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(C,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(B,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(N,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(z,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,V))])),_:1},8,["class","states","cname"]))}}),E=["type","name","focus","state","placeholder","maxlength","readonly"],D=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{}},emits:["update:text","on_focus","on_blur","on_change"],setup(t,{expose:o,emit:a}){const r=t,n=e.ref(r.text),l={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},s=()=>{var e;a("update:text",null==(e=n.value)?void 0:e.trim())},i=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(r.rule){const e=l[r.rule.type],t=e?e.regexp:r.rule.type;return{name:r.name,notic:r.rule.notic?r.rule.notic:e?e.notic:`${r.name}格式有误!`,pass:t.test(n.value)}}return!0};return o({check:u}),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(a.className),type:t.type,onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:d,onChange:i,onInput:s,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,E),[[e.vModelDynamic,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),j=["name","focus","state","placeholder","maxlength","readonly","rows"],T=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(t,{emit:o}){const a=t,r=e.ref(a.text),n=()=>{o("update:text",r.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>r.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,j),[[e.vModelText,r.value]])])),_:1},8,["class","focus","states","cname"]))}}),M=["muted","src","autoplay","loop"],O=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,M)])),_:1},8,["class","cname"]))}}),I=["state"],P=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const r=t,n=e.ref(),l=e.computed((()=>r.scrollType?`${r.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0}}),e.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,r=o-s.x,n=t-s.y;let l;Math.abs(r)>=Math.abs(n)?(e.stopPropagation(),l=r>=0?"l2r":"r2l"):l=n>=0?"t2b":"b2t",s.x=o,s.y=t,a("on_scroll",{dir:l,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:n,class:e.normalizeClass(l.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,I)])),_:3},8,["class","states","cname"]))}}),A=["state","draggable"],R=e.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(t,{emit:o}){const a=t,r=e.ref(),n=e.ref(""),l=e.ref(!1),s=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),n.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),l.value=!0},p=e=>{o("on_drag_end",e),l.value=!1,n.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},f=e=>{o("on_drag_leave",e),n.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const v=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=r.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.children,(e=>{e!==r.value&&(e.style.pointerEvents="none")})),b.width=r.value.offsetWidth,b.height=r.value.offsetHeight),n.value="dragStart",s.value=!0,v.x=e.offsetX,v.y=e.offsetY,r.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-v.x,a=e.offsetY-v.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,h.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,h.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{s.value&&(n.value="",s.value=!1,v.x=0,v.y=0,r.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=r.value;a.freeDrag?(e.onmousedown=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=g)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:l.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:r,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,A)])),_:3},8,["class","states","cname"]))}}),W=["src"],q=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,W)])),_:1},8,["class","cname"]))}),F=e.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(t){const o=t,a=e.computed((()=>{if(!o.gap)return["0","0"];const e=o.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),r=e.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:r.value},t.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class","extraClass"]))}}),H=e.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(t){const o=t,a=e.ref(`${o.class} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:a.value},t.viewData),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class"]))}}),U=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},r=e.computed((()=>{var e,t,r,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(r=null==o?void 0:o.btnColor)?void 0:r.normal)?void 0:n.line)||"none"}`,bg:a("normal","lgray")}})),n=e.computed((()=>{var e,t,r,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(r=null==o?void 0:o.btnColor)?void 0:r.hover)?void 0:n.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),l=e.computed((()=>{var e,t,r,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(r=null==o?void 0:o.btnColor)?void 0:r.active)?void 0:n.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(k,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.btnWidth:""} ${r.value.bg} ${r.value.text} ${r.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${l.value.text} ${l.value.bg} ${l.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(S,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),X=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),r=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var n;const l=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max flex-column color-light select-none bg-color-${(null==(n=t.colors)?void 0:n.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(P,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(l)],1024)):(e.openBlock(),e.createBlock(l,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter flex-around ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"}`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,((o,r)=>(e.openBlock(),e.createBlock(k,e.mergeProps({key:r},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"flex rel pad-v-4-px max-h"}),{default:e.withCtx((()=>{var r,n,l,s,c,i;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:"rel w-5"},{default:e.withCtx((()=>{var a,r,n,l;return[e.createVNode(S,e.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 flex-5 round fsize-1d7 line-${(null==(r=null==(a=t.colors)?void 0:a.center)?void 0:r.line)||"neutral"} bg-color-${(null==(l=null==(n=t.colors)?void 0:n.center)?void 0:l.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 color-${(null==(n=null==(r=t.colors)?void 0:r.text)?void 0:n.normal)||"mgray"}`),cname:(null==(s=null==(l=t.colors)?void 0:l.text)?void 0:s.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(S,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16,["cname","state","states"]),o.text?(e.openBlock(),e.createBlock(p,{key:0,class:"fsize-d8"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),L=[c,d,p,k,_,S,O,P,q,D,R,T,F,H,U,X];return{name:"btxui",install(e,t){L.forEach((t=>{e.component(t.__name,t)})),t&&Object.keys(t).forEach((o=>{e.config.globalProperties[`$${o}`]=t[o]}))}}}));
|
|
7
|
+
var m,f,v,h,g,b;(f=m||(m={})).pop="pop",f.push="push",(h=v||(v={})).back="back",h.forward="forward",h.unknown="",Symbol("production"!==process.env.NODE_ENV?"navigation failure":""),(b=g||(g={}))[b.aborted=4]="aborted",b[b.cancelled=8]="cancelled",b[b.duplicated=16]="duplicated",Symbol("production"!==process.env.NODE_ENV?"router view location matched":""),Symbol("production"!==process.env.NODE_ENV?"router view depth":"");const x=Symbol("production"!==process.env.NODE_ENV?"router":"");Symbol("production"!==process.env.NODE_ENV?"route location":""),Symbol("production"!==process.env.NODE_ENV?"router view location":"");const y=["onClick","onDblclick","target","hover","state","active","href"],k=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,{proxy:l}=e.getCurrentInstance(),n=e.ref(),s=e.ref("");let r;const i=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(s.value="_blank",e):(0===e.search(/^(tel|mailto):/)||"/"===e[0]&&(r=e),e)})),d=e.computed((()=>a.forbid?"":"pointer")),u=e.inject(x),p=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}r&&(e.preventDefault(),(u??l.$router).push(r)),!a.forbid&&o("on_click",e)},m=e=>{!a.forbid&&o("on_dblclick",e)},f=e=>{o("on_enter",e)},v=e=>{o("on_move",e)},h=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${d.value};`),ref_key:"$anchor",ref:n,onMouseenter:f,onTouchstart:f,onMousemove:v,onTouchmove:v,onMouseleave:h,onTouchend:h,onClick:e.withModifiers(p,["stop"]),onDblclick:e.withModifiers(m,["stop"]),target:s.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:i.value},[e.renderSlot(t.$slots,"default")],46,y)])),_:3},8,["class","states","hover","active","cname"]))}}),w=["src","state","alt"],_=e.defineComponent({__name:"b-img",props:{img:{},class:{},state:{},states:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.img)),n=e.ref(""),s=()=>{a.defaultSrc&&(n.value=a.defaultSrc);const e=new Image;e.onload=()=>{n.value=a.img,o("on_load")},e.src=a.img};return e.watch(l,s),e.onMounted((()=>{s()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,w)])),_:1},8,["class","cname","states","matrix"]))}}),C=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),$=(e,t)=>{const o=e.__vccOpts||e;for(const[a,l]of t)o[a]=l;return o};const B=$({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const N=$({},[["render",function(t,o){const a=e.resolveComponent("b-text"),l=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(l,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const V=$({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),S=["state"],z=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(C,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(B,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(N,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(V,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(d,{key:1,"bg-img":t.icon,states:t.states,class:e.normalizeClass(t.class),state:t.state},null,8,["bg-img","states","class","state"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`),state:t.state},null,10,S))])),_:1},8,["class","states","cname"]))}}),D=["type","name","focus","state","placeholder","maxlength","readonly"],E=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{}},emits:["update:text","on_focus","on_blur","on_change"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(l.text),s={required:{regexp:/[\w\.\-_\u4e00-\u9fa5]+/,notic:"输入内容为空!"},tel:{regexp:/^1[3-9]\d{9}$/,notic:"手机号格式有误!"},email:{regexp:/^[\w\.]+@(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"邮箱格式有误!"},url:{regexp:/^((http|https):\/\/)?(wwww\.)?(\w+\.)+(com|net|org|wiki|cn|cc)$/,notic:"url 格式有误!"},uname:{regexp:/^[\w_]+$/,notic:"请输入英文字母、数字或下划线!"},zh:{regexp:/^[\u4e00-\u9fa5]+$/,notic:"请输入中文字符!"},uid:{regexp:/^\d{15}(\d{2}[0-9x])?$/i,notic:"身份证号输入有误!"}},r=()=>{var e;a("update:text",null==(e=n.value)?void 0:e.trim())},i=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(l.rule){const e=s[l.rule.type],t=e?e.regexp:l.rule.type;return{name:l.name,notic:l.rule.notic?l.rule.notic:e?e.notic:`${l.name}格式有误!`,pass:t.test(n.value)}}return!0};return o({check:u}),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("input",{class:e.normalizeClass(a.className),type:t.type,onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:d,onChange:i,onInput:r,"onUpdate:modelValue":o[1]||(o[1]=e=>n.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,D),[[e.vModelDynamic,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),j=["name","focus","state","placeholder","maxlength","readonly","rows"],T=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(t,{emit:o}){const a=t,l=e.ref(a.text),n=()=>{o("update:text",l.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput:n,"onUpdate:modelValue":o[3]||(o[3]=e=>l.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,rows:t.rows||7},null,42,j),[[e.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),M=["muted","src","autoplay","loop"],O=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,M)])),_:1},8,["class","cname"]))}}),I=["state"],A=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const l=t,n=e.ref(),s=e.computed((()=>l.scrollType?`${l.scrollType}-scroll`:"thin-scroll"));let r={x:0,y:0};return o({reset:()=>{n.value.scrollTop=0}}),e.onMounted((()=>{n.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,l=o-r.x,n=t-r.y;let s;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),s=l>=0?"l2r":"r2l"):s=n>=0?"t2b":"b2t",r.x=o,r.y=t,a("on_scroll",{dir:s,left:o,top:t}),0===t&&a("on_to_top",e),t>=e.target.scrollHeight-e.target.clientHeight-2&&a("on_to_bottom",e)}})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),state:t.state},[e.createElementVNode("div",{ref_key:"$list",ref:n,class:e.normalizeClass(s.value),style:e.normalizeStyle(`overflow-x: ${t.scroll.x}; overflow-y: ${t.scroll.y}; width: 100%; height: 100%;`),onTouchmove:o[0]||(o[0]=e.withModifiers((()=>{}),["stop"]))},[e.renderSlot(t.$slots,"default")],38)],10,I)])),_:3},8,["class","states","cname"]))}}),P=["state","draggable"],L=e.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean},cname:{}},emits:["on_drag_start","on_drag_end","on_drag_over","on_drag_leave","on_drop","on_move"],setup(t,{emit:o}){const a=t,l=e.ref(),n=e.ref(""),s=e.ref(!1),r=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),n.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),s.value=!0},p=e=>{o("on_drag_end",e),s.value=!1,n.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},f=e=>{o("on_drag_leave",e),n.value=""},v=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const g=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=l.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.children,(e=>{e!==l.value&&(e.style.pointerEvents="none")})),b.width=l.value.offsetWidth,b.height=l.value.offsetHeight),n.value="dragStart",r.value=!0,g.x=e.offsetX,g.y=e.offsetY,l.value.style.pointerEvents="none"},y=e=>{if(!r.value)return;const t=e.offsetX-g.x,a=e.offsetY-g.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,h.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,h.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{r.value&&(n.value="",r.value=!1,g.x=0,g.y=0,l.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=l.value;a.freeDrag?(e.onmousedown=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=v)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:s.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:l,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,P)])),_:3},8,["class","states","cname"]))}}),H=["src"],U=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,H)])),_:1},8,["class","cname"]))}),F=e.defineComponent({__name:"b-row",props:{class:{},gap:{},viewData:{}},setup(t){const o=t,a=e.computed((()=>{if(!o.gap)return["0","0"];const e=o.gap;return(Array.isArray(e)&&2===e.length?e:[e,e]).map((e=>(e/2).toString().replace(".","d")))})),l=e.ref(`${o.class} flex pad-h-${a.value[0]} pad-v-${a.value[1]}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:l.value},t.viewData,{extraClass:{selector:">",value:`pad-h-${a.value[0]} pad-v-${a.value[1]}`}}),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class","extraClass"]))}}),W=e.defineComponent({__name:"b-col",props:{span:{},offset:{},class:{},viewData:{}},setup(t){const o=t,a=e.ref(`${o.class??""} ${o.span?"col-"+o.span:""} ${o.offset?"offset-"+o.offset:""}`);return(t,o)=>(e.openBlock(),e.createBlock(d,e.mergeProps({class:a.value},t.viewData),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),_:3},16,["class"]))}}),q=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},l=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.normal)?void 0:t.text)||"C777"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.normal)?void 0:n.line)||"none"}`,bg:a("normal","lgray")}})),n=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.hover)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.hover)?void 0:n.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),s=e.computed((()=>{var e,t,l,n;return{text:`color-${(null==(t=null==(e=null==o?void 0:o.btnColor)?void 0:e.active)?void 0:t.text)||"dgray"}`,line:`line-${(null==(n=null==(l=null==o?void 0:o.btnColor)?void 0:l.active)?void 0:n.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(k,e.mergeProps(t.hotData,{class:`flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${t.btnRound?"round-lg":"round-sm"} ${t.btnWidth?"lw-"+t.btnWidth:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${s.value.text} ${s.value.bg} ${s.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(z,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}}),R=e.defineComponent({__name:"checkbox-wid",props:{selected:{type:Boolean},value:{},class:{},actClass:{},actColor:{},label:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.ref(`flex-4 bg-color-neutral round-sm pad-4-px ${a.class??""}`),n=e.ref(`color-blue ${a.actClass??""}`),s=e.computed((()=>{const e=a.label;return e?Array.isArray(e)?e:[e,e]:null})),r=e.computed((()=>a.selected)),c=()=>{const e=!r.value;o("update:selected",e),o("change",a.value,e)};return(t,o)=>(e.openBlock(),e.createBlock(k,{class:e.normalizeClass(l.value),hover:"alpha-d9",state:r.value?"act":"",states:{act:n.value},cname:l.value+n.value,onOn_click:c},{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default",{state:r.value?"act":""},(()=>{var o,a;return[e.createVNode(d,{class:"w-24-px h-24-px bg-color-neutral round-sm flex-5",state:r.value?"act":"",cname:l.value+n.value,states:{act:`bg-color-${t.actColor?(null==(o=t.actColor)?void 0:o.bg)??"blue":"blue"} color-${t.actColor?(null==(a=t.actColor)?void 0:a.icon)??"light":"light"}`}},{default:e.withCtx((()=>[e.createVNode(z,{icon:"success",class:"alpha-d3",state:r.value?"act":"",states:{act:"alpha-1"}},null,8,["state"])])),_:1},8,["state","cname","states"])]})),s.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-h-1 ellipsis"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(r.value?s.value[1]:s.value[0]),1)])),_:1})):e.createCommentVNode("",!0)])),_:3},8,["class","state","states","cname"]))}}),J=e.defineComponent({__name:"checkbox-group-wid",props:{options:{},selected:{},class:{},title:{},span:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.options.map((e=>{var t;return{...e,checkboxData:{...null==e?void 0:e.checkboxData,class:(null==(t=null==e?void 0:e.checkboxData)?void 0:t.class)??"bg-color-none mrg-r-1d5"},selected:a.selected.includes(e.value)}})))),n=(e,t)=>{const l=[...a.selected];t&&!l.includes(e)&&l.push(e),!t&&l.includes(e)&&l.splice(l.findIndex((t=>t===e)),1),o("update:selected",l),o("change",l.map((e=>{var t;return{label:null==(t=a.options.find((t=>t.value===e)))?void 0:t.label,value:e}})))};return(t,o)=>{const a=e.resolveComponent("b-col"),s=e.resolveComponent("b-row");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(t.class)},{default:e.withCtx((()=>[t.title?(e.openBlock(),e.createBlock(d,{key:0,class:"mrg-b-1"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(t.title),1)])),_:1})):e.createCommentVNode("",!0),e.createVNode(s,null,{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(a,{class:"flex-4",span:t.span,key:l},{default:e.withCtx((()=>[e.createVNode(R,e.mergeProps({onChange:n,label:o.label,value:o.value},o.checkboxData,{selected:o.selected,"onUpdate:selected":e=>o.selected=e}),e.createSlots({_:2},[t.$slots.default?{name:"default",fn:e.withCtx((o=>[e.renderSlot(t.$slots,"default",{state:o.state})])),key:"0"}:void 0,t.$slots[o.value]?{name:"default",fn:e.withCtx((a=>[e.renderSlot(t.$slots,o.value,{state:a.state})])),key:"1"}:void 0]),1040,["label","value","selected","onUpdate:selected"])])),_:2},1032,["span"])))),128))])),_:3})])),_:3},8,["class"])}}}),X=e.defineComponent({__name:"radio-group-wid",props:{options:{},selected:{},class:{},title:{},span:{},regular:{type:Boolean}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.computed((()=>[a.selected])),n=e=>{const t=e.map((e=>e.value));2===t.length&&o("update:selected",t[1]),o("change",t)},s=e.ref([]);return e.onMounted((()=>{var t;s.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>{const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(J,{span:t.span,title:t.title,class:e.normalizeClass(t.class),selected:l.value,options:t.options,onChange:n},e.createSlots({_:2},[t.regular?{name:"default",fn:e.withCtx((t=>[e.createVNode(a,{class:"h-24-px w-24-px round-lg pad-d5 bg-color-neutral"},{default:e.withCtx((()=>[e.createVNode(a,{class:"max round-lg bg-color-C99999944",state:t.state,states:{act:"bg-color-blue"}},null,8,["state"])])),_:2},1024)])),key:"0"}:void 0,e.renderList(s.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["span","title","class","selected","options"])}}}),Y=e.createElementVNode("span",null,null,-1),G=["innerHTML"],K=["innerHTML"],Q=e.defineComponent({__name:"tabs-wid",props:{options:{},selected:{},title:{},color:{},tabStyle:{},smooth:{type:Boolean},noDataNotic:{}},emits:["update:selected","change"],setup(t,{emit:o}){const a=t,l=e.reactive({}),n=e.computed((()=>a.color??"blue")),s=e.reactive({}),r=e.ref(!1),c=e.computed((()=>a.options.map(((e,t)=>{const{label:o,value:c,cont:i}=e;let d=e.checkboxData;return l[c]=i,s[c]=t,d||(r.value=!0,d={class:"round-none solid-b line-neutral thick-1 pad-b-1 bg-color-none rel",actClass:`color-${n.value}`},"grid"===a.tabStyle&&(r.value=!1,d={class:"round-none thick-1 solid line-neutral bg-color-none",actClass:`line-${n.value} color-${n.value}`}),"card"===a.tabStyle&&(d={class:"round-sm round-t thick-1 solid line-neutral bg-color-neutral rel mrg-r-4-px",actClass:`bg-color-none solid-b-none t-f1-px color-${n.value}`})),{label:o,value:c,checkboxData:d}})))),i=e.computed((()=>a.options.findIndex((e=>e.cont))>-1)),u=e.ref(a.selected),p=e.ref("");e.watch(u,((e,t)=>{p.value=s[e]>s[t]?"right-to-left":"left-to-right",o("update:selected",e),o("change",{cur:e,old:t,dir:s[e]>s[t]?1:0,aniClass:`ani-${p.value}`})}));const m=e.ref([]);return e.onBeforeMount((()=>{var t;m.value=Object.keys((null==(t=e.getCurrentInstance())?void 0:t.slots)??[])})),(t,o)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{class:"flex-7"},{default:e.withCtx((()=>[e.createVNode(X,{options:c.value,title:t.title,selected:u.value,"onUpdate:selected":o[0]||(o[0]=e=>u.value=e)},e.createSlots({_:2},[0===m.value.length&&"grid"===t.tabStyle?{name:"default",fn:e.withCtx((e=>[Y])),key:"0"}:0===m.value.length&&"card"===t.tabStyle?{name:"default",fn:e.withCtx((t=>[e.createVNode(d,{class:"w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs"})])),key:"1"}:0===m.value.length?{name:"default",fn:e.withCtx((t=>[e.createVNode(d,{class:e.normalizeClass("max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs"),state:t.state,states:{act:`bg-color-${n.value}`}},null,8,["state","states"])])),key:"2"}:void 0,e.renderList(m.value,(o=>({name:o,fn:e.withCtx((a=>[e.renderSlot(t.$slots,o,{state:a.state})]))})))]),1032,["options","title","selected"]),r.value?(e.openBlock(),e.createBlock(d,{key:0,class:"grow-1 h-1-px bg-color-neutral"})):e.createCommentVNode("",!0)])),_:3}),i.value?(e.openBlock(),e.createBlock(d,{key:0,class:"pad-v-1d5 over-hide"},{default:e.withCtx((()=>[u.value?(e.openBlock(),e.createBlock(d,{key:0},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:l[u.value],class:e.normalizeClass(t.smooth?`ani-fast ani-${p.value}`:""),onAnimationend:o[1]||(o[1]=e=>p.value="")},null,42,G)])),_:1})):(e.openBlock(),e.createBlock(d,{key:1,class:"alpha-d5"},{default:e.withCtx((()=>[e.createElementVNode("div",{innerHTML:t.noDataNotic??"暂未选择标签"},null,8,K)])),_:1}))])),_:1})):e.createCommentVNode("",!0)],64))}}),Z=e.defineComponent({__name:"app-wid",props:{path:{},spread:{},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.computed((()=>o.path)),l=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var n;const s=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max flex-column color-light select-none bg-color-${(null==(n=t.colors)?void 0:n.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(A,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(s)],1024)):(e.openBlock(),e.createBlock(s,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter flex-around ${t.round?"round-md round-t":""} bg-color-${(null==(o=t.colors)?void 0:o.bar)||"dark"}`)},{default:e.withCtx((()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,((o,l)=>(e.openBlock(),e.createBlock(k,e.mergeProps({key:l},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"flex rel pad-v-4-px max-h"}),{default:e.withCtx((()=>{var l,n,s,r,c,i;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:"rel w-5"},{default:e.withCtx((()=>{var a,l,n,s;return[e.createVNode(z,e.mergeProps(o.iconData,{class:`abs flex-5 solid t-f1d4 thick-2 w-5 h-5 flex-5 round fsize-1d7 line-${(null==(l=null==(a=t.colors)?void 0:a.center)?void 0:l.line)||"neutral"} bg-color-${(null==(s=null==(n=t.colors)?void 0:n.center)?void 0:s.bg)||"dgray"}`}),null,16,["class"])]})),_:2},1024)):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 color-${(null==(n=null==(l=t.colors)?void 0:l.text)?void 0:n.normal)||"mgray"}`),cname:(null==(r=null==(s=t.colors)?void 0:s.text)?void 0:r.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(z,e.mergeProps(o.iconData,{cname:o.act,state:a.value===o.hotData.link?"act":"",states:{act:o.act??""},class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16,["cname","state","states"]),o.text?(e.openBlock(),e.createBlock(p,{key:0,class:"fsize-d8"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),ee=[c,d,p,k,_,z,O,A,U,E,L,T,F,W,q,R,J,X,Q,Z];return{name:"btxui",install(e,t){ee.forEach((t=>{e.component(t.__name,t)})),t&&Object.keys(t).forEach((o=>{e.config.globalProperties[`$${o}`]=t[o]}))}}}));
|