btxui 1.0.17 → 1.0.19
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 +211 -83
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- 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, withModifiers, watch, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, toDisplayString } from "vue";
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, withModifiers, watch, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, toDisplayString, KeepAlive, renderList } from "vue";
|
|
2
2
|
const prestyles = {
|
|
3
3
|
//预置样式-----------------------------------------------------------------------------------
|
|
4
4
|
// 文本对齐
|
|
@@ -124,6 +124,7 @@ const prestyles = {
|
|
|
124
124
|
"ellipsis": `overflow: hidden; text-overflow: ellipsis; white-space: nowrap;`,
|
|
125
125
|
"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);`,
|
|
126
126
|
"alpha-0": `opacity: 0; visibility: hidden;`,
|
|
127
|
+
"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;`,
|
|
127
128
|
// 图像布局
|
|
128
129
|
"objfit-fill": `object-fit: fill;`,
|
|
129
130
|
"objfit-cover": `object-fit: cover;`,
|
|
@@ -494,14 +495,15 @@ var md5$1 = {
|
|
|
494
495
|
})(md5$1);
|
|
495
496
|
const md5 = md5Exports;
|
|
496
497
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
497
|
-
const _sfc_main$
|
|
498
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
498
499
|
__name: "b-style",
|
|
499
500
|
props: {
|
|
500
501
|
class: {},
|
|
501
502
|
focus: {},
|
|
502
503
|
hover: {},
|
|
503
504
|
active: {},
|
|
504
|
-
states: {}
|
|
505
|
+
states: {},
|
|
506
|
+
cname: {}
|
|
505
507
|
},
|
|
506
508
|
setup(__props) {
|
|
507
509
|
const props = __props;
|
|
@@ -526,7 +528,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
526
528
|
};
|
|
527
529
|
const styles = reactive({});
|
|
528
530
|
const validNumber = (val) => {
|
|
529
|
-
if (!isNaN(val * 1))
|
|
531
|
+
if (!isNaN(val * 1) || val === "auto")
|
|
530
532
|
return val;
|
|
531
533
|
let num = val;
|
|
532
534
|
if (/^f\d+$/.test(num))
|
|
@@ -608,7 +610,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
608
610
|
const combineStyle = _class.split(" ").reduce((total, rule) => {
|
|
609
611
|
const validateRule = parseStyle(rule);
|
|
610
612
|
if (!validateRule)
|
|
611
|
-
return;
|
|
613
|
+
return "";
|
|
612
614
|
total += `${validateRule};`;
|
|
613
615
|
return total;
|
|
614
616
|
}, "");
|
|
@@ -630,9 +632,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
630
632
|
appendStyle(selector, selector);
|
|
631
633
|
});
|
|
632
634
|
};
|
|
633
|
-
const combineClassName = (_class) => {
|
|
635
|
+
const combineClassName = (_class, key) => {
|
|
634
636
|
const classArr = _class.split(" ").sort();
|
|
635
|
-
const compSelector = `B-${md5(classArr.join("&"))}`;
|
|
637
|
+
const compSelector = `B-${md5(classArr.join("&") + key)}`;
|
|
636
638
|
className.value = `${_class} ${compSelector}`;
|
|
637
639
|
if (!styleMap.value.includes(compSelector)) {
|
|
638
640
|
styleMap.value.push(compSelector);
|
|
@@ -667,7 +669,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
667
669
|
if (props.class) {
|
|
668
670
|
initStyle();
|
|
669
671
|
parseStyles(props.class);
|
|
670
|
-
const compSelector = combineClassName(props.class);
|
|
672
|
+
const compSelector = combineClassName(props.class, props.cname ?? "");
|
|
671
673
|
genFocusStyles(`${compSelector}[focus='true']:focus`);
|
|
672
674
|
genHoverStyles(`${compSelector}[hover='true']:hover`);
|
|
673
675
|
genActiveStyles(`${compSelector}[active='true']:active`);
|
|
@@ -681,14 +683,15 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
681
683
|
}
|
|
682
684
|
});
|
|
683
685
|
const _hoisted_1$9 = ["state"];
|
|
684
|
-
const _sfc_main$
|
|
686
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
685
687
|
__name: "b-view",
|
|
686
688
|
props: {
|
|
687
689
|
class: {},
|
|
688
690
|
state: { type: [String, Boolean] },
|
|
689
691
|
states: {},
|
|
690
692
|
bgImg: {},
|
|
691
|
-
matrix: {}
|
|
693
|
+
matrix: {},
|
|
694
|
+
cname: {}
|
|
692
695
|
},
|
|
693
696
|
setup(__props) {
|
|
694
697
|
const props = __props;
|
|
@@ -708,8 +711,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
708
711
|
};
|
|
709
712
|
});
|
|
710
713
|
return (_ctx, _cache) => {
|
|
711
|
-
return openBlock(), createBlock(_sfc_main$
|
|
714
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
712
715
|
class: normalizeClass(_ctx.class),
|
|
716
|
+
cname: _ctx.cname,
|
|
713
717
|
states: _ctx.states
|
|
714
718
|
}, {
|
|
715
719
|
className: withCtx((scope) => [
|
|
@@ -722,23 +726,25 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
722
726
|
], 14, _hoisted_1$9)
|
|
723
727
|
]),
|
|
724
728
|
_: 3
|
|
725
|
-
}, 8, ["class", "states"]);
|
|
729
|
+
}, 8, ["class", "cname", "states"]);
|
|
726
730
|
};
|
|
727
731
|
}
|
|
728
732
|
});
|
|
729
733
|
const _hoisted_1$8 = ["state"];
|
|
730
|
-
const _sfc_main$
|
|
734
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
731
735
|
__name: "b-text",
|
|
732
736
|
props: {
|
|
733
737
|
class: {},
|
|
734
738
|
state: { type: [String, Boolean] },
|
|
735
|
-
states: {}
|
|
739
|
+
states: {},
|
|
740
|
+
cname: {}
|
|
736
741
|
},
|
|
737
742
|
setup(__props) {
|
|
738
743
|
return (_ctx, _cache) => {
|
|
739
|
-
return openBlock(), createBlock(_sfc_main$
|
|
744
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
740
745
|
class: normalizeClass(_ctx.class),
|
|
741
|
-
states: _ctx.states
|
|
746
|
+
states: _ctx.states,
|
|
747
|
+
cname: _ctx.cname
|
|
742
748
|
}, {
|
|
743
749
|
className: withCtx((scope) => [
|
|
744
750
|
createElementVNode("span", {
|
|
@@ -749,12 +755,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
749
755
|
], 10, _hoisted_1$8)
|
|
750
756
|
]),
|
|
751
757
|
_: 3
|
|
752
|
-
}, 8, ["class", "states"]);
|
|
758
|
+
}, 8, ["class", "states", "cname"]);
|
|
753
759
|
};
|
|
754
760
|
}
|
|
755
761
|
});
|
|
756
762
|
const _hoisted_1$7 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
757
|
-
const _sfc_main$
|
|
763
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
758
764
|
__name: "b-hot",
|
|
759
765
|
props: {
|
|
760
766
|
link: {},
|
|
@@ -765,7 +771,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
765
771
|
active: {},
|
|
766
772
|
forbid: { type: Boolean },
|
|
767
773
|
download: {},
|
|
768
|
-
anchor: {}
|
|
774
|
+
anchor: {},
|
|
775
|
+
cname: {}
|
|
769
776
|
},
|
|
770
777
|
emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick"],
|
|
771
778
|
setup(__props, { emit }) {
|
|
@@ -812,11 +819,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
812
819
|
$anchor.value.download = props.download;
|
|
813
820
|
});
|
|
814
821
|
return (_ctx, _cache) => {
|
|
815
|
-
return openBlock(), createBlock(_sfc_main$
|
|
822
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
816
823
|
class: normalizeClass(_ctx.class),
|
|
817
824
|
states: _ctx.states,
|
|
818
825
|
hover: _ctx.hover,
|
|
819
|
-
active: _ctx.active
|
|
826
|
+
active: _ctx.active,
|
|
827
|
+
cname: _ctx.cname
|
|
820
828
|
}, {
|
|
821
829
|
className: withCtx((scope) => [
|
|
822
830
|
createElementVNode("a", {
|
|
@@ -842,18 +850,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
842
850
|
], 46, _hoisted_1$7)
|
|
843
851
|
]),
|
|
844
852
|
_: 3
|
|
845
|
-
}, 8, ["class", "states", "hover", "active"]);
|
|
853
|
+
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
846
854
|
};
|
|
847
855
|
}
|
|
848
856
|
});
|
|
849
857
|
const _hoisted_1$6 = ["src", "alt"];
|
|
850
|
-
const _sfc_main$
|
|
858
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
851
859
|
__name: "b-img",
|
|
852
860
|
props: {
|
|
853
861
|
img: {},
|
|
854
862
|
class: {},
|
|
855
863
|
defaultSrc: {},
|
|
856
|
-
alt: {}
|
|
864
|
+
alt: {},
|
|
865
|
+
cname: {}
|
|
857
866
|
},
|
|
858
867
|
emits: ["on_load"],
|
|
859
868
|
setup(__props, { emit }) {
|
|
@@ -875,8 +884,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
875
884
|
setSrc();
|
|
876
885
|
});
|
|
877
886
|
return (_ctx, _cache) => {
|
|
878
|
-
return openBlock(), createBlock(_sfc_main$
|
|
879
|
-
class: normalizeClass(_ctx.class)
|
|
887
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
888
|
+
class: normalizeClass(_ctx.class),
|
|
889
|
+
cname: _ctx.cname
|
|
880
890
|
}, {
|
|
881
891
|
className: withCtx((scope) => [
|
|
882
892
|
createElementVNode("img", {
|
|
@@ -887,21 +897,21 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
887
897
|
}, null, 10, _hoisted_1$6)
|
|
888
898
|
]),
|
|
889
899
|
_: 1
|
|
890
|
-
}, 8, ["class"]);
|
|
900
|
+
}, 8, ["class", "cname"]);
|
|
891
901
|
};
|
|
892
902
|
}
|
|
893
903
|
});
|
|
894
|
-
const _sfc_main$
|
|
904
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
895
905
|
__name: "ani-success",
|
|
896
906
|
setup(__props) {
|
|
897
907
|
return (_ctx, _cache) => {
|
|
898
|
-
return openBlock(), createBlock(_sfc_main$
|
|
908
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
899
909
|
class: "flex-5",
|
|
900
910
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
901
911
|
}, {
|
|
902
912
|
default: withCtx(() => [
|
|
903
|
-
createVNode(_sfc_main$
|
|
904
|
-
createVNode(_sfc_main$
|
|
913
|
+
createVNode(_sfc_main$f, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
914
|
+
createVNode(_sfc_main$f, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
905
915
|
]),
|
|
906
916
|
_: 1
|
|
907
917
|
});
|
|
@@ -917,7 +927,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
917
927
|
}
|
|
918
928
|
return target;
|
|
919
929
|
};
|
|
920
|
-
const _sfc_main$
|
|
930
|
+
const _sfc_main$b = {};
|
|
921
931
|
function _sfc_render$2(_ctx, _cache) {
|
|
922
932
|
const _component_b_text = resolveComponent("b-text");
|
|
923
933
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -929,9 +939,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
929
939
|
_: 1
|
|
930
940
|
});
|
|
931
941
|
}
|
|
932
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
942
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$2]]);
|
|
933
943
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
934
|
-
const _sfc_main$
|
|
944
|
+
const _sfc_main$a = {};
|
|
935
945
|
function _sfc_render$1(_ctx, _cache) {
|
|
936
946
|
const _component_b_text = resolveComponent("b-text");
|
|
937
947
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -946,9 +956,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
946
956
|
_: 1
|
|
947
957
|
});
|
|
948
958
|
}
|
|
949
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
959
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$1]]);
|
|
950
960
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
951
|
-
const _sfc_main$
|
|
961
|
+
const _sfc_main$9 = {};
|
|
952
962
|
function _sfc_render(_ctx, _cache) {
|
|
953
963
|
const _component_b_view = resolveComponent("b-view");
|
|
954
964
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -958,27 +968,29 @@ function _sfc_render(_ctx, _cache) {
|
|
|
958
968
|
_: 1
|
|
959
969
|
});
|
|
960
970
|
}
|
|
961
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
962
|
-
const _sfc_main$
|
|
971
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render]]);
|
|
972
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
963
973
|
__name: "b-icon",
|
|
964
974
|
props: {
|
|
965
975
|
icon: {},
|
|
966
|
-
class: {}
|
|
976
|
+
class: {},
|
|
977
|
+
cname: {}
|
|
967
978
|
},
|
|
968
979
|
setup(__props) {
|
|
969
980
|
const props = __props;
|
|
970
981
|
return (_ctx, _cache) => {
|
|
971
|
-
return openBlock(), createBlock(_sfc_main$
|
|
972
|
-
class: normalizeClass(_ctx.class)
|
|
982
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
983
|
+
class: normalizeClass(_ctx.class),
|
|
984
|
+
cname: _ctx.cname
|
|
973
985
|
}, {
|
|
974
986
|
className: withCtx((scope) => [
|
|
975
987
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
976
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
988
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$c, { key: "success" })) : createCommentVNode("", true),
|
|
977
989
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
978
990
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
979
991
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
980
992
|
], 64)) : createCommentVNode("", true),
|
|
981
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
993
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$d, {
|
|
982
994
|
key: 1,
|
|
983
995
|
img: _ctx.icon,
|
|
984
996
|
class: normalizeClass(scope.className)
|
|
@@ -988,12 +1000,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
988
1000
|
}, null, 2))
|
|
989
1001
|
]),
|
|
990
1002
|
_: 1
|
|
991
|
-
}, 8, ["class"]);
|
|
1003
|
+
}, 8, ["class", "cname"]);
|
|
992
1004
|
};
|
|
993
1005
|
}
|
|
994
1006
|
});
|
|
995
1007
|
const _hoisted_1$5 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
|
|
996
|
-
const _sfc_main$
|
|
1008
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
997
1009
|
__name: "b-input",
|
|
998
1010
|
props: {
|
|
999
1011
|
type: {},
|
|
@@ -1006,7 +1018,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1006
1018
|
maxlength: {},
|
|
1007
1019
|
readonly: { type: Boolean },
|
|
1008
1020
|
focus: {},
|
|
1009
|
-
rule: {}
|
|
1021
|
+
rule: {},
|
|
1022
|
+
cname: {}
|
|
1010
1023
|
},
|
|
1011
1024
|
emits: ["update:text", "on_focus", "on_blur", "on_change"],
|
|
1012
1025
|
setup(__props, { expose: __expose, emit }) {
|
|
@@ -1068,10 +1081,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1068
1081
|
check
|
|
1069
1082
|
});
|
|
1070
1083
|
return (_ctx, _cache) => {
|
|
1071
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1084
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1072
1085
|
class: normalizeClass(_ctx.class),
|
|
1073
1086
|
focus: _ctx.focus,
|
|
1074
|
-
states: _ctx.states
|
|
1087
|
+
states: _ctx.states,
|
|
1088
|
+
cname: _ctx.cname
|
|
1075
1089
|
}, {
|
|
1076
1090
|
className: withCtx((scope) => [
|
|
1077
1091
|
withDirectives(createElementVNode("input", {
|
|
@@ -1094,12 +1108,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1094
1108
|
])
|
|
1095
1109
|
]),
|
|
1096
1110
|
_: 1
|
|
1097
|
-
}, 8, ["class", "focus", "states"]);
|
|
1111
|
+
}, 8, ["class", "focus", "states", "cname"]);
|
|
1098
1112
|
};
|
|
1099
1113
|
}
|
|
1100
1114
|
});
|
|
1101
1115
|
const _hoisted_1$4 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1102
|
-
const _sfc_main$
|
|
1116
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1103
1117
|
__name: "b-textarea",
|
|
1104
1118
|
props: {
|
|
1105
1119
|
text: {},
|
|
@@ -1111,7 +1125,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1111
1125
|
placeholder: {},
|
|
1112
1126
|
maxlength: {},
|
|
1113
1127
|
readonly: { type: Boolean },
|
|
1114
|
-
focus: {}
|
|
1128
|
+
focus: {},
|
|
1129
|
+
cname: {}
|
|
1115
1130
|
},
|
|
1116
1131
|
emits: ["on_focus", "on_blur", "on_change", "update:text"],
|
|
1117
1132
|
setup(__props, { emit }) {
|
|
@@ -1122,10 +1137,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1122
1137
|
emit("update:text", formatText(val.value));
|
|
1123
1138
|
};
|
|
1124
1139
|
return (_ctx, _cache) => {
|
|
1125
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1140
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1126
1141
|
class: normalizeClass(_ctx.class),
|
|
1127
1142
|
focus: _ctx.focus,
|
|
1128
|
-
states: _ctx.states
|
|
1143
|
+
states: _ctx.states,
|
|
1144
|
+
cname: _ctx.cname
|
|
1129
1145
|
}, {
|
|
1130
1146
|
className: withCtx((scope) => [
|
|
1131
1147
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -1147,24 +1163,26 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1147
1163
|
])
|
|
1148
1164
|
]),
|
|
1149
1165
|
_: 1
|
|
1150
|
-
}, 8, ["class", "focus", "states"]);
|
|
1166
|
+
}, 8, ["class", "focus", "states", "cname"]);
|
|
1151
1167
|
};
|
|
1152
1168
|
}
|
|
1153
1169
|
});
|
|
1154
1170
|
const _hoisted_1$3 = ["muted", "src", "autoplay", "loop"];
|
|
1155
|
-
const _sfc_main$
|
|
1171
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1156
1172
|
__name: "b-video",
|
|
1157
1173
|
props: {
|
|
1158
1174
|
video: {},
|
|
1159
1175
|
class: {},
|
|
1160
1176
|
autoPlay: { type: Boolean },
|
|
1161
|
-
loop: { type: Boolean }
|
|
1177
|
+
loop: { type: Boolean },
|
|
1178
|
+
cname: {}
|
|
1162
1179
|
},
|
|
1163
1180
|
setup(__props) {
|
|
1164
1181
|
const $video = ref();
|
|
1165
1182
|
return (_ctx, _cache) => {
|
|
1166
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1167
|
-
class: normalizeClass(_ctx.class)
|
|
1183
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1184
|
+
class: normalizeClass(_ctx.class),
|
|
1185
|
+
cname: _ctx.cname
|
|
1168
1186
|
}, {
|
|
1169
1187
|
className: withCtx((scope) => [
|
|
1170
1188
|
createElementVNode("video", {
|
|
@@ -1178,20 +1196,21 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1178
1196
|
}, null, 10, _hoisted_1$3)
|
|
1179
1197
|
]),
|
|
1180
1198
|
_: 1
|
|
1181
|
-
}, 8, ["class"]);
|
|
1199
|
+
}, 8, ["class", "cname"]);
|
|
1182
1200
|
};
|
|
1183
1201
|
}
|
|
1184
1202
|
});
|
|
1185
1203
|
const _hoisted_1$2 = ["state"];
|
|
1186
1204
|
const tolerance = 2;
|
|
1187
|
-
const _sfc_main$
|
|
1205
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1188
1206
|
__name: "b-list",
|
|
1189
1207
|
props: {
|
|
1190
1208
|
scroll: {},
|
|
1191
1209
|
class: {},
|
|
1192
1210
|
state: { type: [String, Boolean] },
|
|
1193
1211
|
states: {},
|
|
1194
|
-
scrollType: {}
|
|
1212
|
+
scrollType: {},
|
|
1213
|
+
cname: {}
|
|
1195
1214
|
},
|
|
1196
1215
|
emits: ["on_scroll", "on_to_top", "on_to_bottom"],
|
|
1197
1216
|
setup(__props, { expose: __expose, emit }) {
|
|
@@ -1233,14 +1252,14 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1233
1252
|
watchPos();
|
|
1234
1253
|
});
|
|
1235
1254
|
return (_ctx, _cache) => {
|
|
1236
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1255
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1237
1256
|
class: normalizeClass(_ctx.class),
|
|
1238
|
-
states: _ctx.states
|
|
1257
|
+
states: _ctx.states,
|
|
1258
|
+
cname: _ctx.cname
|
|
1239
1259
|
}, {
|
|
1240
1260
|
className: withCtx((scope) => [
|
|
1241
1261
|
createElementVNode("div", {
|
|
1242
1262
|
class: normalizeClass(scope.className),
|
|
1243
|
-
style: { "position": "relative" },
|
|
1244
1263
|
state: _ctx.state
|
|
1245
1264
|
}, [
|
|
1246
1265
|
createElementVNode("div", {
|
|
@@ -1256,19 +1275,20 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1256
1275
|
], 10, _hoisted_1$2)
|
|
1257
1276
|
]),
|
|
1258
1277
|
_: 3
|
|
1259
|
-
}, 8, ["class", "states"]);
|
|
1278
|
+
}, 8, ["class", "states", "cname"]);
|
|
1260
1279
|
};
|
|
1261
1280
|
}
|
|
1262
1281
|
});
|
|
1263
1282
|
const _hoisted_1$1 = ["state", "draggable"];
|
|
1264
|
-
const _sfc_main$
|
|
1283
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1265
1284
|
__name: "b-drag",
|
|
1266
1285
|
props: {
|
|
1267
1286
|
class: {},
|
|
1268
1287
|
dataInfo: {},
|
|
1269
1288
|
dragStart: {},
|
|
1270
1289
|
dragOver: {},
|
|
1271
|
-
freeDrag: { type: Boolean }
|
|
1290
|
+
freeDrag: { type: Boolean },
|
|
1291
|
+
cname: {}
|
|
1272
1292
|
},
|
|
1273
1293
|
emits: ["on_drag_start", "on_drag_end", "on_drag_over", "on_drag_leave", "on_drop", "on_move"],
|
|
1274
1294
|
setup(__props, { emit }) {
|
|
@@ -1370,9 +1390,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1370
1390
|
bindEvent();
|
|
1371
1391
|
});
|
|
1372
1392
|
return (_ctx, _cache) => {
|
|
1373
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1393
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1374
1394
|
class: normalizeClass(_ctx.class),
|
|
1375
|
-
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver }
|
|
1395
|
+
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
|
|
1396
|
+
cname: _ctx.cname
|
|
1376
1397
|
}, {
|
|
1377
1398
|
className: withCtx((scope) => [
|
|
1378
1399
|
createElementVNode("div", {
|
|
@@ -1394,21 +1415,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1394
1415
|
], 14, _hoisted_1$1)
|
|
1395
1416
|
]),
|
|
1396
1417
|
_: 3
|
|
1397
|
-
}, 8, ["class", "states"]);
|
|
1418
|
+
}, 8, ["class", "states", "cname"]);
|
|
1398
1419
|
};
|
|
1399
1420
|
}
|
|
1400
1421
|
});
|
|
1401
1422
|
const _hoisted_1 = ["src"];
|
|
1402
|
-
const _sfc_main$
|
|
1423
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1403
1424
|
__name: "b-webview",
|
|
1404
1425
|
props: {
|
|
1405
1426
|
src: {},
|
|
1406
|
-
class: {}
|
|
1427
|
+
class: {},
|
|
1428
|
+
cname: {}
|
|
1407
1429
|
},
|
|
1408
1430
|
setup(__props) {
|
|
1409
1431
|
return (_ctx, _cache) => {
|
|
1410
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1411
|
-
class: normalizeClass(_ctx.class)
|
|
1432
|
+
return openBlock(), createBlock(_sfc_main$h, {
|
|
1433
|
+
class: normalizeClass(_ctx.class),
|
|
1434
|
+
cname: _ctx.cname
|
|
1412
1435
|
}, {
|
|
1413
1436
|
className: withCtx((scope) => [
|
|
1414
1437
|
createElementVNode("iframe", {
|
|
@@ -1418,11 +1441,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1418
1441
|
}, null, 10, _hoisted_1)
|
|
1419
1442
|
]),
|
|
1420
1443
|
_: 1
|
|
1421
|
-
}, 8, ["class"]);
|
|
1444
|
+
}, 8, ["class", "cname"]);
|
|
1422
1445
|
};
|
|
1423
1446
|
}
|
|
1424
1447
|
});
|
|
1425
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1448
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1426
1449
|
__name: "btn-wid",
|
|
1427
1450
|
props: {
|
|
1428
1451
|
btnText: {},
|
|
@@ -1469,13 +1492,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1469
1492
|
};
|
|
1470
1493
|
});
|
|
1471
1494
|
return (_ctx, _cache) => {
|
|
1472
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1495
|
+
return openBlock(), createBlock(_sfc_main$e, mergeProps(_ctx.hotData, {
|
|
1473
1496
|
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`,
|
|
1474
1497
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1475
1498
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1476
1499
|
}), {
|
|
1477
1500
|
default: withCtx(() => [
|
|
1478
|
-
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$
|
|
1501
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1479
1502
|
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1480
1503
|
]),
|
|
1481
1504
|
_: 1
|
|
@@ -1483,19 +1506,124 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1483
1506
|
};
|
|
1484
1507
|
}
|
|
1485
1508
|
});
|
|
1509
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1510
|
+
__name: "app-wid",
|
|
1511
|
+
props: {
|
|
1512
|
+
path: {},
|
|
1513
|
+
spread: {},
|
|
1514
|
+
center: {},
|
|
1515
|
+
colors: {},
|
|
1516
|
+
round: { type: Boolean },
|
|
1517
|
+
keepAlive: { type: Boolean }
|
|
1518
|
+
},
|
|
1519
|
+
emits: ["on_toggle"],
|
|
1520
|
+
setup(__props) {
|
|
1521
|
+
const props = __props;
|
|
1522
|
+
const curRoute = computed(() => props.path);
|
|
1523
|
+
const navs = computed(() => {
|
|
1524
|
+
const spread = [...props.spread];
|
|
1525
|
+
if (props.center) {
|
|
1526
|
+
spread.splice(Math.floor(spread.length / 2), 0, reactive({ ...props.center, main: true }));
|
|
1527
|
+
}
|
|
1528
|
+
return spread;
|
|
1529
|
+
});
|
|
1530
|
+
return (_ctx, _cache) => {
|
|
1531
|
+
var _a;
|
|
1532
|
+
const _component_router_view = resolveComponent("router-view");
|
|
1533
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1534
|
+
class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
1535
|
+
}, {
|
|
1536
|
+
default: withCtx(() => {
|
|
1537
|
+
var _a2;
|
|
1538
|
+
return [
|
|
1539
|
+
createVNode(_sfc_main$g, { class: "rel grow-1" }, {
|
|
1540
|
+
default: withCtx(() => [
|
|
1541
|
+
createVNode(_sfc_main$4, {
|
|
1542
|
+
scroll: { y: "auto", x: "hidden" },
|
|
1543
|
+
class: "abs max"
|
|
1544
|
+
}, {
|
|
1545
|
+
default: withCtx(() => [
|
|
1546
|
+
_ctx.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
|
|
1547
|
+
createVNode(_component_router_view)
|
|
1548
|
+
], 1024)) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
|
|
1549
|
+
]),
|
|
1550
|
+
_: 1
|
|
1551
|
+
})
|
|
1552
|
+
]),
|
|
1553
|
+
_: 1
|
|
1554
|
+
}),
|
|
1555
|
+
createVNode(_sfc_main$g, {
|
|
1556
|
+
class: normalizeClass(`pcenter flex h-4d7 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
|
|
1557
|
+
}, {
|
|
1558
|
+
default: withCtx(() => [
|
|
1559
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
1560
|
+
return openBlock(), createBlock(_sfc_main$e, mergeProps({ key: i }, nav.hotData, {
|
|
1561
|
+
onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
|
|
1562
|
+
class: "grow-1 flex rel pad-v-4-px"
|
|
1563
|
+
}), {
|
|
1564
|
+
default: withCtx(() => {
|
|
1565
|
+
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1566
|
+
return [
|
|
1567
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$g, {
|
|
1568
|
+
key: 0,
|
|
1569
|
+
class: normalizeClass(`rel flex-5 mrg-h-auto solid thick-2 w-5 h-5 round t-f1 line-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.center) == null ? void 0 : _b.line) || "neutral"} bg-color-${((_d = (_c = _ctx.colors) == null ? void 0 : _c.center) == null ? void 0 : _d.bg) || "dgray"}`)
|
|
1570
|
+
}, {
|
|
1571
|
+
default: withCtx(() => [
|
|
1572
|
+
createVNode(_sfc_main$8, mergeProps(nav.iconData, { class: "max flex-5 fsize-1d7" }), null, 16)
|
|
1573
|
+
]),
|
|
1574
|
+
_: 2
|
|
1575
|
+
}, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$g, {
|
|
1576
|
+
key: 1,
|
|
1577
|
+
class: normalizeClass(`flex-column flex-5 max-w color-${((_f = (_e = _ctx.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.normal) || "mgray"}`),
|
|
1578
|
+
cname: ((_h = (_g = _ctx.colors) == null ? void 0 : _g.text) == null ? void 0 : _h.act) || "light",
|
|
1579
|
+
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
1580
|
+
states: {
|
|
1581
|
+
act: `color-${((_j = (_i = _ctx.colors) == null ? void 0 : _i.text) == null ? void 0 : _j.act) || "light"}`
|
|
1582
|
+
}
|
|
1583
|
+
}, {
|
|
1584
|
+
default: withCtx(() => [
|
|
1585
|
+
createVNode(_sfc_main$8, mergeProps(nav.iconData, { class: "w-2d7 h-2d7 trans-fast fsize-1d7" }), null, 16),
|
|
1586
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$f, {
|
|
1587
|
+
key: 0,
|
|
1588
|
+
class: "fsize-d8"
|
|
1589
|
+
}, {
|
|
1590
|
+
default: withCtx(() => [
|
|
1591
|
+
createTextVNode(toDisplayString(nav.text), 1)
|
|
1592
|
+
]),
|
|
1593
|
+
_: 2
|
|
1594
|
+
}, 1024)) : createCommentVNode("", true)
|
|
1595
|
+
]),
|
|
1596
|
+
_: 2
|
|
1597
|
+
}, 1032, ["class", "cname", "state", "states"]))
|
|
1598
|
+
];
|
|
1599
|
+
}),
|
|
1600
|
+
_: 2
|
|
1601
|
+
}, 1040, ["onOn_click"]);
|
|
1602
|
+
}), 128))
|
|
1603
|
+
]),
|
|
1604
|
+
_: 1
|
|
1605
|
+
}, 8, ["class"])
|
|
1606
|
+
];
|
|
1607
|
+
}),
|
|
1608
|
+
_: 1
|
|
1609
|
+
}, 8, ["class"]);
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
});
|
|
1486
1613
|
const initGlobalComponents = [
|
|
1614
|
+
_sfc_main$h,
|
|
1487
1615
|
_sfc_main$g,
|
|
1488
1616
|
_sfc_main$f,
|
|
1489
1617
|
_sfc_main$e,
|
|
1490
1618
|
_sfc_main$d,
|
|
1491
|
-
_sfc_main$
|
|
1492
|
-
_sfc_main$
|
|
1619
|
+
_sfc_main$8,
|
|
1620
|
+
_sfc_main$5,
|
|
1493
1621
|
_sfc_main$4,
|
|
1622
|
+
_sfc_main$2,
|
|
1623
|
+
_sfc_main$7,
|
|
1494
1624
|
_sfc_main$3,
|
|
1495
|
-
_sfc_main$1,
|
|
1496
1625
|
_sfc_main$6,
|
|
1497
|
-
_sfc_main$
|
|
1498
|
-
_sfc_main$5,
|
|
1626
|
+
_sfc_main$1,
|
|
1499
1627
|
_sfc_main
|
|
1500
1628
|
];
|
|
1501
1629
|
const index = {
|
package/dist/index.js.gz
CHANGED
|
Binary file
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
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;",wrap:"flex-wrap: wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch;","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;",grid:"display: flex; flex-wrap: wrap; align-content: flex-start;","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;","bg-repeat":"background-repeat: repeat;","bg-repeat-x":"background-repeat: repeat-x;","bg-repeat-y":"background-repeat: repeat-y;","bg-size-cover":"background-size: cover;","bg-size-contain":"background-size: contain;","bg-size-max":"background-size: 100% 100%;","bg-size-max-h":"background-size: auto 100%;","bg-size-max-w":"background-size: 100% auto;","bg-pos-1":"background-position: left top;","bg-pos-2":"background-position: center top;","bg-pos-3":"background-position: right top;","bg-pos-4":"background-position: left center;","bg-pos-5":"background-position: center center;","bg-pos-6":"background-position: right center;","bg-pos-7":"background-position: left bottom;","bg-pos-8":"background-position: center bottom;","bg-pos-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;","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;","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"},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)))<<(i=n)|s>>>32-i,a);var s,i}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 i(e,o){var a,i,c,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,f=-271733879,m=-1732584194,g=271733878;for(a=0;a<e.length;a+=16)i=p,c=f,d=m,u=g,p=r(p,f,m,g,e[a],7,-680876936),g=r(g,p,f,m,e[a+1],12,-389564586),m=r(m,g,p,f,e[a+2],17,606105819),f=r(f,m,g,p,e[a+3],22,-1044525330),p=r(p,f,m,g,e[a+4],7,-176418897),g=r(g,p,f,m,e[a+5],12,1200080426),m=r(m,g,p,f,e[a+6],17,-1473231341),f=r(f,m,g,p,e[a+7],22,-45705983),p=r(p,f,m,g,e[a+8],7,1770035416),g=r(g,p,f,m,e[a+9],12,-1958414417),m=r(m,g,p,f,e[a+10],17,-42063),f=r(f,m,g,p,e[a+11],22,-1990404162),p=r(p,f,m,g,e[a+12],7,1804603682),g=r(g,p,f,m,e[a+13],12,-40341101),m=r(m,g,p,f,e[a+14],17,-1502002290),p=n(p,f=r(f,m,g,p,e[a+15],22,1236535329),m,g,e[a+1],5,-165796510),g=n(g,p,f,m,e[a+6],9,-1069501632),m=n(m,g,p,f,e[a+11],14,643717713),f=n(f,m,g,p,e[a],20,-373897302),p=n(p,f,m,g,e[a+5],5,-701558691),g=n(g,p,f,m,e[a+10],9,38016083),m=n(m,g,p,f,e[a+15],14,-660478335),f=n(f,m,g,p,e[a+4],20,-405537848),p=n(p,f,m,g,e[a+9],5,568446438),g=n(g,p,f,m,e[a+14],9,-1019803690),m=n(m,g,p,f,e[a+3],14,-187363961),f=n(f,m,g,p,e[a+8],20,1163531501),p=n(p,f,m,g,e[a+13],5,-1444681467),g=n(g,p,f,m,e[a+2],9,-51403784),m=n(m,g,p,f,e[a+7],14,1735328473),p=l(p,f=n(f,m,g,p,e[a+12],20,-1926607734),m,g,e[a+5],4,-378558),g=l(g,p,f,m,e[a+8],11,-2022574463),m=l(m,g,p,f,e[a+11],16,1839030562),f=l(f,m,g,p,e[a+14],23,-35309556),p=l(p,f,m,g,e[a+1],4,-1530992060),g=l(g,p,f,m,e[a+4],11,1272893353),m=l(m,g,p,f,e[a+7],16,-155497632),f=l(f,m,g,p,e[a+10],23,-1094730640),p=l(p,f,m,g,e[a+13],4,681279174),g=l(g,p,f,m,e[a],11,-358537222),m=l(m,g,p,f,e[a+3],16,-722521979),f=l(f,m,g,p,e[a+6],23,76029189),p=l(p,f,m,g,e[a+9],4,-640364487),g=l(g,p,f,m,e[a+12],11,-421815835),m=l(m,g,p,f,e[a+15],16,530742520),p=s(p,f=l(f,m,g,p,e[a+2],23,-995338651),m,g,e[a],6,-198630844),g=s(g,p,f,m,e[a+7],10,1126891415),m=s(m,g,p,f,e[a+14],15,-1416354905),f=s(f,m,g,p,e[a+5],21,-57434055),p=s(p,f,m,g,e[a+12],6,1700485571),g=s(g,p,f,m,e[a+3],10,-1894986606),m=s(m,g,p,f,e[a+10],15,-1051523),f=s(f,m,g,p,e[a+1],21,-2054922799),p=s(p,f,m,g,e[a+8],6,1873313359),g=s(g,p,f,m,e[a+15],10,-30611744),m=s(m,g,p,f,e[a+6],15,-1560198380),f=s(f,m,g,p,e[a+13],21,1309151649),p=s(p,f,m,g,e[a+4],6,-145523070),g=s(g,p,f,m,e[a+11],10,-1120210379),m=s(m,g,p,f,e[a+2],15,718787259),f=s(f,m,g,p,e[a+9],21,-343485551),p=t(p,i),f=t(f,c),m=t(m,d),g=t(g,u);return[p,f,m,g]}function c(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 f(e){return function(e){return c(i(d(e),8*e.length))}(p(e))}function m(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=i(r,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^r[o],l[o]=1549556828^r[o];return a=i(n.concat(d(t)),512+8*t.length),c(i(l.concat(a),640))}(p(e),p(t))}function g(e,t,o){return t?o?m(t,e):u(m(t,e)):o?f(e):u(f(e))}a.exports?a.exports=g:e.md5=g}(r);const l=n,s="BTXUIGlobal",i=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{}},setup(a){const r=a,n=e.ref(),i=e.ref(""),c=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&&0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e))return e;let t=e;return/^f\d+$/.test(t)&&(t=-1*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},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"]};let[n,l,s,i]=a;if(o=t[n],o){let e=p(l);if(e)return`${o.pro}: ${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}${i||o.unit||""};`})),a}return`${o.pro}-${l}: ${e}${i||o.unit||""}`}}})(o);if(a)return e+=`${a};`}),"").replace(/;+/g,";")},m=(e,t)=>{const o=f(t);o&&(c.value.includes(e)||(c.value.push(e),d[e]=o))};return e.onMounted((()=>{if(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=>{m(e,e)}));const o=(e=>{const t=e.split(" ").sort(),o=`B-${l(t.join("&"))}`;return i.value=`${e} ${o}`,c.value.includes(o)||c.value.push(o),o})(r.class);(e=>{r.focus&&m(e,r.focus)})(`${o}[focus='true']:focus`),(e=>{r.hover&&m(e,r.hover)})(`${o}[hover='true']:hover`),(e=>{r.active&&m(e,r.active)})(`${o}[active='true']:active`),e=o,r.states&&Object.keys(r.states).forEach((t=>{m(`${e}[state="${t}"]`,r.states[t])})),Object.keys(d).forEach((e=>{n.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:i.value})}}),c=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{type:[String,Boolean]},states:{},bgImg:{},matrix:{}},setup(t){const o=t,a=e.computed((()=>{var e,t,a,r,n,l,s,i;const c=o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{},d=(null==(e=o.matrix)?void 0:e.translate)?`translate(${null==(t=o.matrix)?void 0:t.translate})`:"",u=(null==(a=o.matrix)?void 0:a.scale)?`scale(${null==(r=o.matrix)?void 0:r.scale})`:"",p=(null==(n=o.matrix)?void 0:n.rotate)?`rotate(${null==(l=o.matrix)?void 0:l.rotate})`:"",f=(null==(s=o.matrix)?void 0:s.skew)?`skew(${null==(i=o.matrix)?void 0:i.skew})`:"";return{...c,...o.matrix?{transform:`${d} ${u} ${p} ${f}`}:{}}}));return(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class),states:t.states},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle(a.value)},[e.renderSlot(t.$slots,"default")],14,c)])),_:3},8,["class","states"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{type:[String,Boolean]},states:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class),states:t.states},{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"]))}),f=["onClick","onDblclick","target","hover","state","active","href"],m=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{type:[String,Boolean]},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,r=e.ref(),n=e.ref(""),l=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(n.value="_blank",e):(e.search(/^(tel|mailto):/),e)})),s=e.computed((()=>a.forbid?"":"pointer")),c=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}!a.forbid&&o("on_click",e)},d=e=>{!a.forbid&&o("on_dblclick",e)},u=e=>{o("on_enter",e)},p=e=>{o("on_move",e)},m=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(r.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${s.value};`),ref_key:"$anchor",ref:r,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:m,onTouchend:m,onClick:e.withModifiers(c,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:n.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:l.value},[e.renderSlot(t.$slots,"default")],46,f)])),_:3},8,["class","states","hover","active"]))}}),g=["src","alt"],h=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{}},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(i,{class:e.normalizeClass(t.class)},{className:e.withCtx((o=>[e.createElementVNode("img",{src:n.value,class:e.normalizeClass(o.className),style:{display:"block"},alt:t.alt},null,10,g)])),_:1},8,["class"]))}}),b=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}))}),v=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o};const x=v({},[["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 y=v({},[["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 w=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})}]]),_=e.defineComponent({__name:"b-icon",props:{icon:{},class:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class)},{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(b,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(w,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(h,{key:1,img:t.icon,class:e.normalizeClass(a.className)},null,8,["img","class"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`)},null,2))])),_:1},8,["class"]))}}),k=["type","name","focus","state","placeholder","maxlength","readonly"],C=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{type:[String,Boolean]},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{}},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())},c=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(i,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states},{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:c,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,k),[[e.vModelDynamic,n.value]])])),_:1},8,["class","focus","states"]))}}),$=["name","focus","state","placeholder","maxlength","readonly","rows"],B=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{type:[String,Boolean]},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{}},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(i,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states},{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,$),[[e.vModelText,r.value]])])),_:1},8,["class","focus","states"]))}}),N=["muted","src","autoplay","loop"],z=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class)},{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,N)])),_:1},8,["class"]))}}),S=["state"],j=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{type:[String,Boolean]},states:{},scrollType:{}},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(i,{class:e.normalizeClass(t.class),states:t.states},{className:e.withCtx((a=>[e.createElementVNode("div",{class:e.normalizeClass(a.className),style:{position:"relative"},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,S)])),_:3},8,["class","states"]))}}),V=["state","draggable"],E=e.defineComponent({__name:"b-drag",props:{class:{},dataInfo:{},dragStart:{},dragOver:{},freeDrag:{type:Boolean}},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),c=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=""},f=e=>{e.preventDefault(),o("on_drag_over",e),n.value="dragOver"},m=e=>{o("on_drag_leave",e),n.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),n.value=""};let h;const b=e.reactive({x:0,y:0}),v=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=r.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=w,h.onmouseup=w,h.ontouchend=w,Array.prototype.forEach.call(h.children,(e=>{e!==r.value&&(e.style.pointerEvents="none")})),v.width=r.value.offsetWidth,v.height=r.value.offsetHeight),n.value="dragStart",s.value=!0,b.x=e.offsetX,b.y=e.offsetY,r.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-b.x,a=e.offsetY-b.y;c.x=Math.max(0,t),c.y=Math.max(0,a),c.x=Math.min(c.x+v.width,h.offsetWidth)-v.width,c.y=Math.min(c.y+v.height,h.offsetHeight)-v.height,o("on_move",c,e)},w=()=>{s.value&&(n.value="",s.value=!1,b.x=0,b.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=f,e.ondragleave=m,e.ondrop=g)})()})),(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver}},{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(${c.x}px, ${c.y}px)`}),ref_key:"$el",ref:r,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,V)])),_:3},8,["class","states"]))}}),T=["src"],D=e.defineComponent({__name:"b-webview",props:{src:{},class:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class)},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,T)])),_:1},8,["class"]))}),M=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(m,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(_,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"]))}}),I=[i,d,p,m,h,_,z,j,D,C,E,B,M];return{name:"btxui",install(e){I.forEach((t=>{e.component(t.__name,t)}))}}}));
|
|
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;",wrap:"flex-wrap: wrap;",flex:"display: flex; justify-content: flex-start; align-items: stretch;","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;",grid:"display: flex; flex-wrap: wrap; align-content: flex-start;","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;","bg-repeat":"background-repeat: repeat;","bg-repeat-x":"background-repeat: repeat-x;","bg-repeat-y":"background-repeat: repeat-y;","bg-size-cover":"background-size: cover;","bg-size-contain":"background-size: contain;","bg-size-max":"background-size: 100% 100%;","bg-size-max-h":"background-size: auto 100%;","bg-size-max-w":"background-size: 100% auto;","bg-pos-1":"background-position: left top;","bg-pos-2":"background-position: center top;","bg-pos-3":"background-position: right top;","bg-pos-4":"background-position: left center;","bg-pos-5":"background-position: center center;","bg-pos-6":"background-position: right center;","bg-pos-7":"background-position: left bottom;","bg-pos-8":"background-position: center bottom;","bg-pos-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;","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"},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,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l={};a={get exports(){return l},set exports(e){l=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,n,l,r){return t((s=t(t(o,e),t(n,r)))<<(c=l)|s>>>32-c,a);var s,c}function n(e,t,a,n,l,r,s){return o(t&a|~t&n,e,t,l,r,s)}function l(e,t,a,n,l,r,s){return o(t&n|a&~n,e,t,l,r,s)}function r(e,t,a,n,l,r,s){return o(t^a^n,e,t,l,r,s)}function s(e,t,a,n,l,r,s){return o(a^(t|~n),e,t,l,r,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=n(p,m,f,g,e[a],7,-680876936),g=n(g,p,m,f,e[a+1],12,-389564586),f=n(f,g,p,m,e[a+2],17,606105819),m=n(m,f,g,p,e[a+3],22,-1044525330),p=n(p,m,f,g,e[a+4],7,-176418897),g=n(g,p,m,f,e[a+5],12,1200080426),f=n(f,g,p,m,e[a+6],17,-1473231341),m=n(m,f,g,p,e[a+7],22,-45705983),p=n(p,m,f,g,e[a+8],7,1770035416),g=n(g,p,m,f,e[a+9],12,-1958414417),f=n(f,g,p,m,e[a+10],17,-42063),m=n(m,f,g,p,e[a+11],22,-1990404162),p=n(p,m,f,g,e[a+12],7,1804603682),g=n(g,p,m,f,e[a+13],12,-40341101),f=n(f,g,p,m,e[a+14],17,-1502002290),p=l(p,m=n(m,f,g,p,e[a+15],22,1236535329),f,g,e[a+1],5,-165796510),g=l(g,p,m,f,e[a+6],9,-1069501632),f=l(f,g,p,m,e[a+11],14,643717713),m=l(m,f,g,p,e[a],20,-373897302),p=l(p,m,f,g,e[a+5],5,-701558691),g=l(g,p,m,f,e[a+10],9,38016083),f=l(f,g,p,m,e[a+15],14,-660478335),m=l(m,f,g,p,e[a+4],20,-405537848),p=l(p,m,f,g,e[a+9],5,568446438),g=l(g,p,m,f,e[a+14],9,-1019803690),f=l(f,g,p,m,e[a+3],14,-187363961),m=l(m,f,g,p,e[a+8],20,1163531501),p=l(p,m,f,g,e[a+13],5,-1444681467),g=l(g,p,m,f,e[a+2],9,-51403784),f=l(f,g,p,m,e[a+7],14,1735328473),p=r(p,m=l(m,f,g,p,e[a+12],20,-1926607734),f,g,e[a+5],4,-378558),g=r(g,p,m,f,e[a+8],11,-2022574463),f=r(f,g,p,m,e[a+11],16,1839030562),m=r(m,f,g,p,e[a+14],23,-35309556),p=r(p,m,f,g,e[a+1],4,-1530992060),g=r(g,p,m,f,e[a+4],11,1272893353),f=r(f,g,p,m,e[a+7],16,-155497632),m=r(m,f,g,p,e[a+10],23,-1094730640),p=r(p,m,f,g,e[a+13],4,681279174),g=r(g,p,m,f,e[a],11,-358537222),f=r(f,g,p,m,e[a+3],16,-722521979),m=r(m,f,g,p,e[a+6],23,76029189),p=r(p,m,f,g,e[a+9],4,-640364487),g=r(g,p,m,f,e[a+12],11,-421815835),f=r(f,g,p,m,e[a+15],16,530742520),p=s(p,m=r(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",n="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),n+=a.charAt(t>>>4&15)+a.charAt(15&t);return n}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,n=d(e),l=[],r=[];for(l[15]=r[15]=void 0,n.length>16&&(n=c(n,8*e.length)),o=0;o<16;o+=1)l[o]=909522486^n[o],r[o]=1549556828^n[o];return a=c(l.concat(d(t)),512+8*t.length),i(c(r.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}(n);const r=l,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},cname:{}},setup(a){const n=a,l=e.ref(),c=e.ref(""),i=e.computed((()=>{const e=[];for(let t of l.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&&0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e;return/^f\d+$/.test(t)&&(t=-1*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,...n]=t;return`${o}-gradient(${a}deg,${n.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=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("-"),n={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"]};let[l,r,s,c]=a;if(o=t[l],o){let e=p(r);if(e)return`${o.pro}: ${e}${s||o.unit||""}`;if(e=p(s),e){const t=n[r];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${c||o.unit||""};`})),a}return`${o.pro}-${r}: ${e}${c||o.unit||""}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},f=(e,t)=>{const o=m(t);o&&(i.value.includes(e)||(i.value.push(e),d[e]=o))};return e.onMounted((()=>{if(n.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)),l.value=e})(),(t=n.class)&&t.split(" ").forEach((e=>{f(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${r(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(n.class,n.cname??"");(e=>{n.focus&&f(e,n.focus)})(`${o}[focus='true']:focus`),(e=>{n.hover&&f(e,n.hover)})(`${o}[hover='true']:hover`),(e=>{n.active&&f(e,n.active)})(`${o}[active='true']:active`),e=o,n.states&&Object.keys(n.states).forEach((t=>{f(`${e}[state="${t}"]`,n.states[t])})),Object.keys(d).forEach((e=>{l.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:c.value})}}),i=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{type:[String,Boolean]},states:{},bgImg:{},matrix:{},cname:{}},setup(t){const o=t,a=e.computed((()=>{var e,t,a,n,l,r,s,c;const i=o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{},d=(null==(e=o.matrix)?void 0:e.translate)?`translate(${null==(t=o.matrix)?void 0:t.translate})`:"",u=(null==(a=o.matrix)?void 0:a.scale)?`scale(${null==(n=o.matrix)?void 0:n.scale})`:"",p=(null==(l=o.matrix)?void 0:l.rotate)?`rotate(${null==(r=o.matrix)?void 0:r.rotate})`:"",m=(null==(s=o.matrix)?void 0:s.skew)?`skew(${null==(c=o.matrix)?void 0:c.skew})`:"";return{...i,...o.matrix?{transform:`${d} ${u} ${p} ${m}`}:{}}}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle(a.value)},[e.renderSlot(t.$slots,"default")],14,i)])),_:3},8,["class","cname","states"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{type:[String,Boolean]},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"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{type:[String,Boolean]},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,n=e.ref(),l=e.ref(""),r=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(l.value="_blank",e):(e.search(/^(tel|mailto):/),e)})),s=e.computed((()=>a.forbid?"":"pointer")),i=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}!a.forbid&&o("on_click",e)},d=e=>{!a.forbid&&o("on_dblclick",e)},u=e=>{o("on_enter",e)},p=e=>{o("on_move",e)},f=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: ${s.value};`),ref_key:"$anchor",ref:n,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:f,onTouchend:f,onClick:e.withModifiers(i,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:l.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:r.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),g=["src","alt"],h=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,n=e.computed((()=>a.img)),l=e.ref(""),r=()=>{a.defaultSrc&&(l.value=a.defaultSrc);const e=new Image;e.onload=()=>{l.value=a.img,o("on_load")},e.src=a.img};return e.watch(n,r),e.onMounted((()=>{r()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("img",{src:l.value,class:e.normalizeClass(o.className),style:{display:"block"},alt:t.alt},null,10,g)])),_:1},8,["class","cname"]))}}),v=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}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o};const x=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{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 y=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{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 k=b({},[["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})}]]),w=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),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(v,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(h,{key:1,img:t.icon,class:e.normalizeClass(a.className)},null,8,["img","class"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`)},null,2))])),_:1},8,["class","cname"]))}}),_=["type","name","focus","state","placeholder","maxlength","readonly"],C=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{type:[String,Boolean]},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 n=t,l=e.ref(n.text),r={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=l.value)?void 0:e.trim())},i=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(n.rule){const e=r[n.rule.type],t=e?e.regexp:n.rule.type;return{name:n.name,notic:n.rule.notic?n.rule.notic:e?e.notic:`${n.name}格式有误!`,pass:t.test(l.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=>l.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.vModelDynamic,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),$=["name","focus","state","placeholder","maxlength","readonly","rows"],B=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{type:[String,Boolean]},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,n=e.ref(a.text),l=()=>{o("update:text",n.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:l,"onUpdate:modelValue":o[3]||(o[3]=e=>n.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,$),[[e.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),N=["muted","src","autoplay","loop"],z=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,N)])),_:1},8,["class","cname"]))}}),V=["state"],S=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{type:[String,Boolean]},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const n=t,l=e.ref(),r=e.computed((()=>n.scrollType?`${n.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{l.value.scrollTop=0}}),e.onMounted((()=>{l.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,n=o-s.x,l=t-s.y;let r;Math.abs(n)>=Math.abs(l)?(e.stopPropagation(),r=n>=0?"l2r":"r2l"):r=l>=0?"t2b":"b2t",s.x=o,s.y=t,a("on_scroll",{dir:r,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:l,class:e.normalizeClass(r.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,V)])),_:3},8,["class","states","cname"]))}}),j=["state","draggable"],E=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,n=e.ref(),l=e.ref(""),r=e.ref(!1),s=e.ref(!1),i=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),l.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),r.value=!0},p=e=>{o("on_drag_end",e),r.value=!1,l.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),l.value="dragOver"},f=e=>{o("on_drag_leave",e),l.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),l.value=""};let h;const v=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=n.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!==n.value&&(e.style.pointerEvents="none")})),b.width=n.value.offsetWidth,b.height=n.value.offsetHeight),l.value="dragStart",s.value=!0,v.x=e.offsetX,v.y=e.offsetY,n.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&&(l.value="",s.value=!1,v.x=0,v.y=0,n.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=n.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:r.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:n,class:e.normalizeClass(o.className),state:l.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,j)])),_:3},8,["class","states","cname"]))}}),D=["src"],T=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,D)])),_:1},8,["class","cname"]))}),M=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}`},n=e.computed((()=>{var e,t,n,l;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==(l=null==(n=null==o?void 0:o.btnColor)?void 0:n.normal)?void 0:l.line)||"none"}`,bg:a("normal","lgray")}})),l=e.computed((()=>{var e,t,n,l;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==(l=null==(n=null==o?void 0:o.btnColor)?void 0:n.hover)?void 0:l.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),r=e.computed((()=>{var e,t,n,l;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==(l=null==(n=null==o?void 0:o.btnColor)?void 0:n.active)?void 0:l.line)||"Cd7d7d7"}`,bg:a("active","Ce7e7e7")}}));return(t,o)=>(e.openBlock(),e.createBlock(f,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:""} ${n.value.bg} ${n.value.text} ${n.value.line} solid`,hover:`${l.value.text} ${l.value.bg} ${l.value.line}`,active:`${r.value.text} ${r.value.bg} ${r.value.line}`}),{default:e.withCtx((()=>[t.iconData?(e.openBlock(),e.createBlock(w,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"]))}}),I=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)),n=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 l;const r=e.resolveComponent("router-view");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(`max flex-column color-light select-none bg-color-${(null==(l=t.colors)?void 0:l.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(S,{scroll:{y:"auto",x:"hidden"},class:"abs max"},{default:e.withCtx((()=>[t.keepAlive?(e.openBlock(),e.createBlock(e.KeepAlive,{key:0},[e.createVNode(r)],1024)):(e.openBlock(),e.createBlock(r,{key:1}))])),_:1})])),_:1}),e.createVNode(d,{class:e.normalizeClass(`pcenter flex h-4d7 ${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(n.value,((o,n)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:n},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"grow-1 flex rel pad-v-4-px"}),{default:e.withCtx((()=>{var n,l,r,s,c,i,u,m,f,g;return[o.main?(e.openBlock(),e.createBlock(d,{key:0,class:e.normalizeClass(`rel flex-5 mrg-h-auto solid thick-2 w-5 h-5 round t-f1 line-${(null==(l=null==(n=t.colors)?void 0:n.center)?void 0:l.line)||"neutral"} bg-color-${(null==(s=null==(r=t.colors)?void 0:r.center)?void 0:s.bg)||"dgray"}`)},{default:e.withCtx((()=>[e.createVNode(w,e.mergeProps(o.iconData,{class:"max flex-5 fsize-1d7"}),null,16)])),_:2},1032,["class"])):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 max-w color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.normal)||"mgray"}`),cname:(null==(m=null==(u=t.colors)?void 0:u.text)?void 0:m.act)||"light",state:a.value===o.hotData.link?"act":"",states:{act:`color-${(null==(g=null==(f=t.colors)?void 0:f.text)?void 0:g.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(w,e.mergeProps(o.iconData,{class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16),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"])}}}),A=[c,d,p,f,h,w,z,S,T,C,E,B,M,I];return{name:"btxui",install(e){A.forEach((t=>{e.component(t.__name,t)}))}}}));
|