btxui 1.0.26 → 1.0.27
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 +152 -63
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,12 +14,37 @@ const prestyles = {
|
|
|
14
14
|
"show": `display: block;`,
|
|
15
15
|
"hide": `display: none;`,
|
|
16
16
|
// 布局
|
|
17
|
-
"wrap": `flex-wrap: wrap;`,
|
|
18
|
-
"flex": `display: flex; justify-content: flex-start; align-items: stretch;`,
|
|
17
|
+
"no-wrap": `flex-wrap: no-wrap;`,
|
|
18
|
+
"flex": `display: flex; justify-content: flex-start; align-items: stretch; flex-wrap: wrap; align-content: flex-start;`,
|
|
19
19
|
"flex-column": `display: flex; flex-direction: column;`,
|
|
20
20
|
"flex-between": `display: flex; justify-content: space-between; align-items: center;`,
|
|
21
21
|
"flex-around": `display: flex; justify-content: space-around; align-items: center;`,
|
|
22
|
-
|
|
22
|
+
// 布局 - 栅格
|
|
23
|
+
"col-1": `flex-basis: 8.333%;`,
|
|
24
|
+
"col-2": `flex-basis: 16.667%;`,
|
|
25
|
+
"col-3": `flex-basis: 25%;`,
|
|
26
|
+
"col-4": `flex-basis: 33.333%;`,
|
|
27
|
+
"col-5": `flex-basis: 41.667%;`,
|
|
28
|
+
"col-6": `flex-basis: 50%;`,
|
|
29
|
+
"col-7": `flex-basis: 58.333%;`,
|
|
30
|
+
"col-8": `flex-basis: 66.667%;`,
|
|
31
|
+
"col-9": `flex-basis: 75%;`,
|
|
32
|
+
"col-10": `flex-basis: 83.333%;`,
|
|
33
|
+
"col-11": `flex-basis: 91.667%;`,
|
|
34
|
+
"col-12": `flex-basis: 100%;`,
|
|
35
|
+
// 布局 - 栅格偏移
|
|
36
|
+
"offset-1": `margin-left: 8.333%;`,
|
|
37
|
+
"offset-2": `margin-left: 16.667%;`,
|
|
38
|
+
"offset-3": `margin-left: 25%;`,
|
|
39
|
+
"offset-4": `margin-left: 33.333%;`,
|
|
40
|
+
"offset-5": `margin-left: 41.667%;`,
|
|
41
|
+
"offset-6": `margin-left: 50%;`,
|
|
42
|
+
"offset-7": `margin-left: 58.333%;`,
|
|
43
|
+
"offset-8": `margin-left: 66.667%;`,
|
|
44
|
+
"offset-9": `margin-left: 75%;`,
|
|
45
|
+
"offset-10": `margin-left: 83.333%;`,
|
|
46
|
+
"offset-11": `margin-left: 91.667%;`,
|
|
47
|
+
"offset-12": `margin-left: 100%;`,
|
|
23
48
|
// 布局 - 九宫格
|
|
24
49
|
"flex-1": `display: flex; justify-content: flex-start; align-items: flex-start;`,
|
|
25
50
|
"flex-2": `display: flex; justify-content: center; align-items: flex-start;`,
|
|
@@ -506,7 +531,7 @@ var md5$1 = {
|
|
|
506
531
|
})(md5$1);
|
|
507
532
|
const md5 = md5Exports;
|
|
508
533
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
509
|
-
const _sfc_main$
|
|
534
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
510
535
|
__name: "b-style",
|
|
511
536
|
props: {
|
|
512
537
|
class: {},
|
|
@@ -515,6 +540,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
515
540
|
active: {},
|
|
516
541
|
states: {},
|
|
517
542
|
matrix: {},
|
|
543
|
+
extraClass: {},
|
|
518
544
|
cname: {}
|
|
519
545
|
},
|
|
520
546
|
setup(__props) {
|
|
@@ -584,11 +610,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
584
610
|
return gradient;
|
|
585
611
|
return false;
|
|
586
612
|
};
|
|
587
|
-
const
|
|
588
|
-
|
|
613
|
+
const setUnit = (val, customUnit, Presetunit) => {
|
|
614
|
+
let unit = customUnit ?? Presetunit;
|
|
589
615
|
if (val === "auto")
|
|
590
616
|
unit = "";
|
|
591
|
-
|
|
617
|
+
if (unit === "P")
|
|
618
|
+
unit = "%";
|
|
619
|
+
return unit ?? "";
|
|
592
620
|
};
|
|
593
621
|
const parseStyle = (rule) => {
|
|
594
622
|
let style = prestyles[rule];
|
|
@@ -610,18 +638,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
610
638
|
if (style) {
|
|
611
639
|
let value = validValue(r2);
|
|
612
640
|
if (value)
|
|
613
|
-
return `${style.pro}: ${value}${
|
|
641
|
+
return `${style.pro}: ${value}${setUnit(value, r3, style.unit)}`;
|
|
614
642
|
value = validValue(r3);
|
|
615
643
|
if (value) {
|
|
616
644
|
const dir = dirs[r2];
|
|
617
645
|
if (dir) {
|
|
618
646
|
let dirStyle = "";
|
|
619
647
|
dir.forEach((_dir) => {
|
|
620
|
-
dirStyle += `${style.pro}-${_dir}: ${value}${
|
|
648
|
+
dirStyle += `${style.pro}-${_dir}: ${value}${setUnit(value, r4, style.unit)};`;
|
|
621
649
|
});
|
|
622
650
|
return dirStyle;
|
|
623
651
|
} else {
|
|
624
|
-
return `${style.pro}-${r2}: ${value}${
|
|
652
|
+
return `${style.pro}-${r2}: ${value}${setUnit(value, r4, style.unit)}`;
|
|
625
653
|
}
|
|
626
654
|
}
|
|
627
655
|
}
|
|
@@ -682,6 +710,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
682
710
|
appendStyle(`${baseSelector}[state="${state}"]`, props.states[state]);
|
|
683
711
|
});
|
|
684
712
|
};
|
|
713
|
+
const genExtraStyles = (baseSelector) => {
|
|
714
|
+
if (!props.extraClass)
|
|
715
|
+
return;
|
|
716
|
+
const { selector, value } = props.extraClass;
|
|
717
|
+
appendStyle(`${baseSelector}${selector}*`, value);
|
|
718
|
+
};
|
|
685
719
|
const setStyle = () => {
|
|
686
720
|
Object.keys(styles).forEach((key) => {
|
|
687
721
|
$style.value.sheet.addRule(`.${key}`, styles[key]);
|
|
@@ -709,6 +743,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
709
743
|
genHoverStyles(`${compSelector}[hover='true']:hover`);
|
|
710
744
|
genActiveStyles(`${compSelector}[active='true']:active`);
|
|
711
745
|
genStateStyles(compSelector);
|
|
746
|
+
genExtraStyles(compSelector);
|
|
712
747
|
setStyle();
|
|
713
748
|
}
|
|
714
749
|
});
|
|
@@ -721,7 +756,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
721
756
|
}
|
|
722
757
|
});
|
|
723
758
|
const _hoisted_1$a = ["state"];
|
|
724
|
-
const _sfc_main$
|
|
759
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
725
760
|
__name: "b-view",
|
|
726
761
|
props: {
|
|
727
762
|
class: {},
|
|
@@ -735,7 +770,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
735
770
|
const props = __props;
|
|
736
771
|
const bgStyle = computed(() => props.bgImg ? { backgroundImage: `url(${props.bgImg})` } : {});
|
|
737
772
|
return (_ctx, _cache) => {
|
|
738
|
-
return openBlock(), createBlock(_sfc_main$
|
|
773
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
739
774
|
class: normalizeClass(_ctx.class),
|
|
740
775
|
cname: _ctx.cname,
|
|
741
776
|
states: _ctx.states,
|
|
@@ -756,7 +791,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
756
791
|
}
|
|
757
792
|
});
|
|
758
793
|
const _hoisted_1$9 = ["state"];
|
|
759
|
-
const _sfc_main$
|
|
794
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
760
795
|
__name: "b-text",
|
|
761
796
|
props: {
|
|
762
797
|
class: {},
|
|
@@ -766,7 +801,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
766
801
|
},
|
|
767
802
|
setup(__props) {
|
|
768
803
|
return (_ctx, _cache) => {
|
|
769
|
-
return openBlock(), createBlock(_sfc_main$
|
|
804
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
770
805
|
class: normalizeClass(_ctx.class),
|
|
771
806
|
states: _ctx.states,
|
|
772
807
|
cname: _ctx.cname
|
|
@@ -785,7 +820,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
785
820
|
}
|
|
786
821
|
});
|
|
787
822
|
const _hoisted_1$8 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
788
|
-
const _sfc_main$
|
|
823
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
789
824
|
__name: "b-hot",
|
|
790
825
|
props: {
|
|
791
826
|
link: {},
|
|
@@ -844,7 +879,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
844
879
|
$anchor.value.download = props.download;
|
|
845
880
|
});
|
|
846
881
|
return (_ctx, _cache) => {
|
|
847
|
-
return openBlock(), createBlock(_sfc_main$
|
|
882
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
848
883
|
class: normalizeClass(_ctx.class),
|
|
849
884
|
states: _ctx.states,
|
|
850
885
|
hover: _ctx.hover,
|
|
@@ -880,7 +915,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
880
915
|
}
|
|
881
916
|
});
|
|
882
917
|
const _hoisted_1$7 = ["src", "alt"];
|
|
883
|
-
const _sfc_main$
|
|
918
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
884
919
|
__name: "b-img",
|
|
885
920
|
props: {
|
|
886
921
|
img: {},
|
|
@@ -910,7 +945,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
910
945
|
setSrc();
|
|
911
946
|
});
|
|
912
947
|
return (_ctx, _cache) => {
|
|
913
|
-
return openBlock(), createBlock(_sfc_main$
|
|
948
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
914
949
|
class: normalizeClass(_ctx.class),
|
|
915
950
|
cname: _ctx.cname,
|
|
916
951
|
matrix: _ctx.matrix
|
|
@@ -928,17 +963,17 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
928
963
|
};
|
|
929
964
|
}
|
|
930
965
|
});
|
|
931
|
-
const _sfc_main$
|
|
966
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
932
967
|
__name: "ani-success",
|
|
933
968
|
setup(__props) {
|
|
934
969
|
return (_ctx, _cache) => {
|
|
935
|
-
return openBlock(), createBlock(_sfc_main$
|
|
970
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
936
971
|
class: "flex-5",
|
|
937
972
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
938
973
|
}, {
|
|
939
974
|
default: withCtx(() => [
|
|
940
|
-
createVNode(_sfc_main$
|
|
941
|
-
createVNode(_sfc_main$
|
|
975
|
+
createVNode(_sfc_main$h, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
976
|
+
createVNode(_sfc_main$h, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
942
977
|
]),
|
|
943
978
|
_: 1
|
|
944
979
|
});
|
|
@@ -954,7 +989,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
954
989
|
}
|
|
955
990
|
return target;
|
|
956
991
|
};
|
|
957
|
-
const _sfc_main$
|
|
992
|
+
const _sfc_main$d = {};
|
|
958
993
|
function _sfc_render$2(_ctx, _cache) {
|
|
959
994
|
const _component_b_text = resolveComponent("b-text");
|
|
960
995
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -966,9 +1001,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
966
1001
|
_: 1
|
|
967
1002
|
});
|
|
968
1003
|
}
|
|
969
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1004
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$2]]);
|
|
970
1005
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
971
|
-
const _sfc_main$
|
|
1006
|
+
const _sfc_main$c = {};
|
|
972
1007
|
function _sfc_render$1(_ctx, _cache) {
|
|
973
1008
|
const _component_b_text = resolveComponent("b-text");
|
|
974
1009
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -983,9 +1018,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
983
1018
|
_: 1
|
|
984
1019
|
});
|
|
985
1020
|
}
|
|
986
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1021
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$1]]);
|
|
987
1022
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
988
|
-
const _sfc_main$
|
|
1023
|
+
const _sfc_main$b = {};
|
|
989
1024
|
function _sfc_render(_ctx, _cache) {
|
|
990
1025
|
const _component_b_view = resolveComponent("b-view");
|
|
991
1026
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -995,9 +1030,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
995
1030
|
_: 1
|
|
996
1031
|
});
|
|
997
1032
|
}
|
|
998
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1033
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render]]);
|
|
999
1034
|
const _hoisted_1$6 = ["state"];
|
|
1000
|
-
const _sfc_main$
|
|
1035
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1001
1036
|
__name: "b-icon",
|
|
1002
1037
|
props: {
|
|
1003
1038
|
icon: {},
|
|
@@ -1009,19 +1044,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1009
1044
|
setup(__props) {
|
|
1010
1045
|
const props = __props;
|
|
1011
1046
|
return (_ctx, _cache) => {
|
|
1012
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1047
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1013
1048
|
class: normalizeClass(_ctx.class),
|
|
1014
1049
|
states: _ctx.states,
|
|
1015
1050
|
cname: _ctx.cname
|
|
1016
1051
|
}, {
|
|
1017
1052
|
className: withCtx((scope) => [
|
|
1018
1053
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1019
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
1054
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$e, { key: "success" })) : createCommentVNode("", true),
|
|
1020
1055
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1021
1056
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1022
1057
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1023
1058
|
], 64)) : createCommentVNode("", true),
|
|
1024
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
1059
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$i, {
|
|
1025
1060
|
key: 1,
|
|
1026
1061
|
"bg-img": _ctx.icon,
|
|
1027
1062
|
states: _ctx.states,
|
|
@@ -1039,7 +1074,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1039
1074
|
}
|
|
1040
1075
|
});
|
|
1041
1076
|
const _hoisted_1$5 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
|
|
1042
|
-
const _sfc_main$
|
|
1077
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1043
1078
|
__name: "b-input",
|
|
1044
1079
|
props: {
|
|
1045
1080
|
type: {},
|
|
@@ -1115,7 +1150,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1115
1150
|
check
|
|
1116
1151
|
});
|
|
1117
1152
|
return (_ctx, _cache) => {
|
|
1118
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1153
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1119
1154
|
class: normalizeClass(_ctx.class),
|
|
1120
1155
|
focus: _ctx.focus,
|
|
1121
1156
|
states: _ctx.states,
|
|
@@ -1147,7 +1182,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1147
1182
|
}
|
|
1148
1183
|
});
|
|
1149
1184
|
const _hoisted_1$4 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1150
|
-
const _sfc_main$
|
|
1185
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1151
1186
|
__name: "b-textarea",
|
|
1152
1187
|
props: {
|
|
1153
1188
|
text: {},
|
|
@@ -1171,7 +1206,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1171
1206
|
emit("update:text", formatText(val.value));
|
|
1172
1207
|
};
|
|
1173
1208
|
return (_ctx, _cache) => {
|
|
1174
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1209
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1175
1210
|
class: normalizeClass(_ctx.class),
|
|
1176
1211
|
focus: _ctx.focus,
|
|
1177
1212
|
states: _ctx.states,
|
|
@@ -1202,7 +1237,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1202
1237
|
}
|
|
1203
1238
|
});
|
|
1204
1239
|
const _hoisted_1$3 = ["muted", "src", "autoplay", "loop"];
|
|
1205
|
-
const _sfc_main$
|
|
1240
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1206
1241
|
__name: "b-video",
|
|
1207
1242
|
props: {
|
|
1208
1243
|
video: {},
|
|
@@ -1214,7 +1249,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1214
1249
|
setup(__props) {
|
|
1215
1250
|
const $video = ref();
|
|
1216
1251
|
return (_ctx, _cache) => {
|
|
1217
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1252
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1218
1253
|
class: normalizeClass(_ctx.class),
|
|
1219
1254
|
cname: _ctx.cname
|
|
1220
1255
|
}, {
|
|
@@ -1236,7 +1271,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1236
1271
|
});
|
|
1237
1272
|
const _hoisted_1$2 = ["state"];
|
|
1238
1273
|
const tolerance = 2;
|
|
1239
|
-
const _sfc_main$
|
|
1274
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1240
1275
|
__name: "b-list",
|
|
1241
1276
|
props: {
|
|
1242
1277
|
scroll: {},
|
|
@@ -1286,7 +1321,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1286
1321
|
watchPos();
|
|
1287
1322
|
});
|
|
1288
1323
|
return (_ctx, _cache) => {
|
|
1289
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1324
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1290
1325
|
class: normalizeClass(_ctx.class),
|
|
1291
1326
|
states: _ctx.states,
|
|
1292
1327
|
cname: _ctx.cname
|
|
@@ -1314,7 +1349,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1314
1349
|
}
|
|
1315
1350
|
});
|
|
1316
1351
|
const _hoisted_1$1 = ["state", "draggable"];
|
|
1317
|
-
const _sfc_main$
|
|
1352
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1318
1353
|
__name: "b-drag",
|
|
1319
1354
|
props: {
|
|
1320
1355
|
class: {},
|
|
@@ -1424,7 +1459,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1424
1459
|
bindEvent();
|
|
1425
1460
|
});
|
|
1426
1461
|
return (_ctx, _cache) => {
|
|
1427
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1462
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1428
1463
|
class: normalizeClass(_ctx.class),
|
|
1429
1464
|
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
|
|
1430
1465
|
cname: _ctx.cname
|
|
@@ -1454,7 +1489,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1454
1489
|
}
|
|
1455
1490
|
});
|
|
1456
1491
|
const _hoisted_1 = ["src"];
|
|
1457
|
-
const _sfc_main$
|
|
1492
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1458
1493
|
__name: "b-webview",
|
|
1459
1494
|
props: {
|
|
1460
1495
|
src: {},
|
|
@@ -1463,7 +1498,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1463
1498
|
},
|
|
1464
1499
|
setup(__props) {
|
|
1465
1500
|
return (_ctx, _cache) => {
|
|
1466
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1501
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1467
1502
|
class: normalizeClass(_ctx.class),
|
|
1468
1503
|
cname: _ctx.cname
|
|
1469
1504
|
}, {
|
|
@@ -1479,6 +1514,58 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1479
1514
|
};
|
|
1480
1515
|
}
|
|
1481
1516
|
});
|
|
1517
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1518
|
+
__name: "b-row",
|
|
1519
|
+
props: {
|
|
1520
|
+
class: {},
|
|
1521
|
+
gap: {},
|
|
1522
|
+
viewData: {}
|
|
1523
|
+
},
|
|
1524
|
+
setup(__props) {
|
|
1525
|
+
const props = __props;
|
|
1526
|
+
const gap = computed(() => {
|
|
1527
|
+
if (!props.gap)
|
|
1528
|
+
return ["0", "0"];
|
|
1529
|
+
const gap2 = props.gap;
|
|
1530
|
+
return (Array.isArray(gap2) && gap2.length === 2 ? gap2 : [gap2, gap2]).map((val) => (val / 2).toString().replace(".", "d"));
|
|
1531
|
+
});
|
|
1532
|
+
const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
1533
|
+
return (_ctx, _cache) => {
|
|
1534
|
+
return openBlock(), createBlock(_sfc_main$i, mergeProps({ class: combClass.value }, _ctx.viewData, {
|
|
1535
|
+
extraClass: {
|
|
1536
|
+
selector: ">",
|
|
1537
|
+
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
1538
|
+
}
|
|
1539
|
+
}), {
|
|
1540
|
+
default: withCtx(() => [
|
|
1541
|
+
renderSlot(_ctx.$slots, "default")
|
|
1542
|
+
]),
|
|
1543
|
+
_: 3
|
|
1544
|
+
}, 16, ["class", "extraClass"]);
|
|
1545
|
+
};
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1549
|
+
__name: "b-col",
|
|
1550
|
+
props: {
|
|
1551
|
+
span: {},
|
|
1552
|
+
offset: {},
|
|
1553
|
+
class: {},
|
|
1554
|
+
viewData: {}
|
|
1555
|
+
},
|
|
1556
|
+
setup(__props) {
|
|
1557
|
+
const props = __props;
|
|
1558
|
+
const combClass = ref(`${props.class} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1559
|
+
return (_ctx, _cache) => {
|
|
1560
|
+
return openBlock(), createBlock(_sfc_main$i, mergeProps({ class: combClass.value }, _ctx.viewData), {
|
|
1561
|
+
default: withCtx(() => [
|
|
1562
|
+
renderSlot(_ctx.$slots, "default")
|
|
1563
|
+
]),
|
|
1564
|
+
_: 3
|
|
1565
|
+
}, 16, ["class"]);
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
});
|
|
1482
1569
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1483
1570
|
__name: "btn-wid",
|
|
1484
1571
|
props: {
|
|
@@ -1526,13 +1613,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1526
1613
|
};
|
|
1527
1614
|
});
|
|
1528
1615
|
return (_ctx, _cache) => {
|
|
1529
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1616
|
+
return openBlock(), createBlock(_sfc_main$g, mergeProps(_ctx.hotData, {
|
|
1530
1617
|
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`,
|
|
1531
1618
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1532
1619
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1533
1620
|
}), {
|
|
1534
1621
|
default: withCtx(() => [
|
|
1535
|
-
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$
|
|
1622
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$a, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1536
1623
|
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1537
1624
|
]),
|
|
1538
1625
|
_: 1
|
|
@@ -1564,15 +1651,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1564
1651
|
return (_ctx, _cache) => {
|
|
1565
1652
|
var _a;
|
|
1566
1653
|
const _component_router_view = resolveComponent("router-view");
|
|
1567
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1654
|
+
return openBlock(), createBlock(_sfc_main$i, {
|
|
1568
1655
|
class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
1569
1656
|
}, {
|
|
1570
1657
|
default: withCtx(() => {
|
|
1571
1658
|
var _a2;
|
|
1572
1659
|
return [
|
|
1573
|
-
createVNode(_sfc_main$
|
|
1660
|
+
createVNode(_sfc_main$i, { class: "rel grow-1" }, {
|
|
1574
1661
|
default: withCtx(() => [
|
|
1575
|
-
createVNode(_sfc_main$
|
|
1662
|
+
createVNode(_sfc_main$6, {
|
|
1576
1663
|
scroll: { y: "auto", x: "hidden" },
|
|
1577
1664
|
class: "abs max"
|
|
1578
1665
|
}, {
|
|
@@ -1586,27 +1673,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1586
1673
|
]),
|
|
1587
1674
|
_: 1
|
|
1588
1675
|
}),
|
|
1589
|
-
createVNode(_sfc_main$
|
|
1676
|
+
createVNode(_sfc_main$i, {
|
|
1590
1677
|
class: normalizeClass(`pcenter flex h-4d7 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
|
|
1591
1678
|
}, {
|
|
1592
1679
|
default: withCtx(() => [
|
|
1593
1680
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
1594
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1681
|
+
return openBlock(), createBlock(_sfc_main$g, mergeProps({ key: i }, nav.hotData, {
|
|
1595
1682
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
|
|
1596
1683
|
class: "grow-1 flex rel pad-v-4-px"
|
|
1597
1684
|
}), {
|
|
1598
1685
|
default: withCtx(() => {
|
|
1599
1686
|
var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
1600
1687
|
return [
|
|
1601
|
-
nav.main ? (openBlock(), createBlock(_sfc_main$
|
|
1688
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$i, {
|
|
1602
1689
|
key: 0,
|
|
1603
1690
|
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"}`)
|
|
1604
1691
|
}, {
|
|
1605
1692
|
default: withCtx(() => [
|
|
1606
|
-
createVNode(_sfc_main$
|
|
1693
|
+
createVNode(_sfc_main$a, mergeProps(nav.iconData, { class: "max flex-5 fsize-1d7" }), null, 16)
|
|
1607
1694
|
]),
|
|
1608
1695
|
_: 2
|
|
1609
|
-
}, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$
|
|
1696
|
+
}, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$i, {
|
|
1610
1697
|
key: 1,
|
|
1611
1698
|
class: normalizeClass(`flex-column flex-5 max-w color-${((_f = (_e = _ctx.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.normal) || "mgray"}`),
|
|
1612
1699
|
cname: ((_h = (_g = _ctx.colors) == null ? void 0 : _g.text) == null ? void 0 : _h.act) || "light",
|
|
@@ -1616,7 +1703,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1616
1703
|
}
|
|
1617
1704
|
}, {
|
|
1618
1705
|
default: withCtx(() => [
|
|
1619
|
-
createVNode(_sfc_main$
|
|
1706
|
+
createVNode(_sfc_main$a, mergeProps(nav.iconData, {
|
|
1620
1707
|
cname: nav.act,
|
|
1621
1708
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
1622
1709
|
states: {
|
|
@@ -1624,7 +1711,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1624
1711
|
},
|
|
1625
1712
|
class: "w-2d7 h-2d7 trans-fast fsize-1d7"
|
|
1626
1713
|
}), null, 16, ["cname", "state", "states"]),
|
|
1627
|
-
nav.text ? (openBlock(), createBlock(_sfc_main$
|
|
1714
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$h, {
|
|
1628
1715
|
key: 0,
|
|
1629
1716
|
class: "fsize-d8"
|
|
1630
1717
|
}, {
|
|
@@ -1652,18 +1739,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1652
1739
|
}
|
|
1653
1740
|
});
|
|
1654
1741
|
const initGlobalComponents = [
|
|
1742
|
+
_sfc_main$j,
|
|
1743
|
+
_sfc_main$i,
|
|
1655
1744
|
_sfc_main$h,
|
|
1656
1745
|
_sfc_main$g,
|
|
1657
1746
|
_sfc_main$f,
|
|
1658
|
-
_sfc_main$
|
|
1659
|
-
_sfc_main$d,
|
|
1660
|
-
_sfc_main$8,
|
|
1661
|
-
_sfc_main$5,
|
|
1662
|
-
_sfc_main$4,
|
|
1663
|
-
_sfc_main$2,
|
|
1747
|
+
_sfc_main$a,
|
|
1664
1748
|
_sfc_main$7,
|
|
1665
|
-
_sfc_main$3,
|
|
1666
1749
|
_sfc_main$6,
|
|
1750
|
+
_sfc_main$4,
|
|
1751
|
+
_sfc_main$9,
|
|
1752
|
+
_sfc_main$5,
|
|
1753
|
+
_sfc_main$8,
|
|
1754
|
+
_sfc_main$3,
|
|
1755
|
+
_sfc_main$2,
|
|
1667
1756
|
_sfc_main$1,
|
|
1668
1757
|
_sfc_main
|
|
1669
1758
|
];
|
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;",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,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={};a={get exports(){return r},set exports(e){r=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,r,l){return t((s=t(t(o,e),t(n,l)))<<(i=r)|s>>>32-i,a);var s,i}function n(e,t,a,n,r,l,s){return o(t&a|~t&n,e,t,r,l,s)}function r(e,t,a,n,r,l,s){return o(t&n|a&~n,e,t,r,l,s)}function l(e,t,a,n,r,l,s){return o(t^a^n,e,t,r,l,s)}function s(e,t,a,n,r,l,s){return o(a^(t|~n),e,t,r,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,m=-271733879,f=-1732584194,h=271733878;for(a=0;a<e.length;a+=16)i=p,c=m,d=f,u=h,p=n(p,m,f,h,e[a],7,-680876936),h=n(h,p,m,f,e[a+1],12,-389564586),f=n(f,h,p,m,e[a+2],17,606105819),m=n(m,f,h,p,e[a+3],22,-1044525330),p=n(p,m,f,h,e[a+4],7,-176418897),h=n(h,p,m,f,e[a+5],12,1200080426),f=n(f,h,p,m,e[a+6],17,-1473231341),m=n(m,f,h,p,e[a+7],22,-45705983),p=n(p,m,f,h,e[a+8],7,1770035416),h=n(h,p,m,f,e[a+9],12,-1958414417),f=n(f,h,p,m,e[a+10],17,-42063),m=n(m,f,h,p,e[a+11],22,-1990404162),p=n(p,m,f,h,e[a+12],7,1804603682),h=n(h,p,m,f,e[a+13],12,-40341101),f=n(f,h,p,m,e[a+14],17,-1502002290),p=r(p,m=n(m,f,h,p,e[a+15],22,1236535329),f,h,e[a+1],5,-165796510),h=r(h,p,m,f,e[a+6],9,-1069501632),f=r(f,h,p,m,e[a+11],14,643717713),m=r(m,f,h,p,e[a],20,-373897302),p=r(p,m,f,h,e[a+5],5,-701558691),h=r(h,p,m,f,e[a+10],9,38016083),f=r(f,h,p,m,e[a+15],14,-660478335),m=r(m,f,h,p,e[a+4],20,-405537848),p=r(p,m,f,h,e[a+9],5,568446438),h=r(h,p,m,f,e[a+14],9,-1019803690),f=r(f,h,p,m,e[a+3],14,-187363961),m=r(m,f,h,p,e[a+8],20,1163531501),p=r(p,m,f,h,e[a+13],5,-1444681467),h=r(h,p,m,f,e[a+2],9,-51403784),f=r(f,h,p,m,e[a+7],14,1735328473),p=l(p,m=r(m,f,h,p,e[a+12],20,-1926607734),f,h,e[a+5],4,-378558),h=l(h,p,m,f,e[a+8],11,-2022574463),f=l(f,h,p,m,e[a+11],16,1839030562),m=l(m,f,h,p,e[a+14],23,-35309556),p=l(p,m,f,h,e[a+1],4,-1530992060),h=l(h,p,m,f,e[a+4],11,1272893353),f=l(f,h,p,m,e[a+7],16,-155497632),m=l(m,f,h,p,e[a+10],23,-1094730640),p=l(p,m,f,h,e[a+13],4,681279174),h=l(h,p,m,f,e[a],11,-358537222),f=l(f,h,p,m,e[a+3],16,-722521979),m=l(m,f,h,p,e[a+6],23,76029189),p=l(p,m,f,h,e[a+9],4,-640364487),h=l(h,p,m,f,e[a+12],11,-421815835),f=l(f,h,p,m,e[a+15],16,530742520),p=s(p,m=l(m,f,h,p,e[a+2],23,-995338651),f,h,e[a],6,-198630844),h=s(h,p,m,f,e[a+7],10,1126891415),f=s(f,h,p,m,e[a+14],15,-1416354905),m=s(m,f,h,p,e[a+5],21,-57434055),p=s(p,m,f,h,e[a+12],6,1700485571),h=s(h,p,m,f,e[a+3],10,-1894986606),f=s(f,h,p,m,e[a+10],15,-1051523),m=s(m,f,h,p,e[a+1],21,-2054922799),p=s(p,m,f,h,e[a+8],6,1873313359),h=s(h,p,m,f,e[a+15],10,-30611744),f=s(f,h,p,m,e[a+6],15,-1560198380),m=s(m,f,h,p,e[a+13],21,1309151649),p=s(p,m,f,h,e[a+4],6,-145523070),h=s(h,p,m,f,e[a+11],10,-1120210379),f=s(f,h,p,m,e[a+2],15,718787259),m=s(m,f,h,p,e[a+9],21,-343485551),p=t(p,i),m=t(m,c),f=t(f,d),h=t(h,u);return[p,m,f,h]}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",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 c(i(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,n=d(e),r=[],l=[];for(r[15]=l[15]=void 0,n.length>16&&(n=i(n,8*e.length)),o=0;o<16;o+=1)r[o]=909522486^n[o],l[o]=1549556828^n[o];return a=i(r.concat(d(t)),512+8*t.length),c(i(l.concat(a),640))}(p(e),p(t))}function h(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=h:e.md5=h}(n);const l=r,s="BTXUIGlobal",i=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},matrix:{},cname:{}},setup(a){const n=a,r=e.ref(),i=e.ref(""),c=e.computed((()=>{const e=[];for(let t of r.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;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=["auto"],f=(e,t)=>("auto"===e&&(t=""),m.includes(e)?"":t??""),h=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"],x:["x"],y:["y"]};let[r,l,s,i]=a;if(o=t[r],o){let e=p(l);if(e)return`${o.pro}: ${e}${s||f(e,o.unit)}`;if(e=p(s),e){const t=n[l];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${i||f(e,o.unit)};`})),a}return`${o.pro}-${l}: ${e}${i||f(e,o.unit)}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},g=(e,t)=>{if(!c.value.includes(e)){const o=h(t);if(!o)return;c.value.push(e),d[e]=o}},v=e.ref();return e.onMounted((()=>{if(n.matrix&&(()=>{var e,t,o,a,r,l,s,i;const c=(null==(e=n.matrix)?void 0:e.translate)?`translate(${null==(t=n.matrix)?void 0:t.translate})`:"",d=(null==(o=n.matrix)?void 0:o.scale)?`scale(${null==(a=n.matrix)?void 0:a.scale})`:"",u=(null==(r=n.matrix)?void 0:r.rotate)?`rotate(${null==(l=n.matrix)?void 0:l.rotate})`:"",p=(null==(s=n.matrix)?void 0:s.skew)?`skew(${null==(i=n.matrix)?void 0:i.skew})`:"";v.value=n.matrix?{transform:`${c} ${d} ${u} ${p}`}:{}})(),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)),r.value=e})(),(t=n.class)&&t.split(" ").forEach((e=>{g(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${l(o.join("&")+t)}`;return i.value=`${e} ${a}`,c.value.includes(a)||c.value.push(a),a})(n.class,n.cname??"");(e=>{n.focus&&g(e,n.focus)})(`${o}[focus='true']:focus`),(e=>{n.hover&&g(e,n.hover)})(`${o}[hover='true']:hover`),(e=>{n.active&&g(e,n.active)})(`${o}[active='true']:active`),e=o,n.states&&Object.keys(n.states).forEach((t=>{g(`${e}[state="${t}"]`,n.states[t])})),Object.keys(d).forEach((e=>{r.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:i.value,matrixStyle:v.value})}}),c=["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(i,{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,c)])),_: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(i,{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:{},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(),r=e.ref(""),l=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(r.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)},f=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.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,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(c,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:r.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:l.value},[e.renderSlot(t.$slots,"default")],46,m)])),_:3},8,["class","states","hover","active","cname"]))}}),h=["src","alt"],g=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,n=e.computed((()=>a.img)),r=e.ref(""),l=()=>{a.defaultSrc&&(r.value=a.defaultSrc);const e=new Image;e.onload=()=>{r.value=a.img,o("on_load")},e.src=a.img};return e.watch(n,l),e.onMounted((()=>{l()})),(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class),cname:t.cname,matrix:t.matrix},{className:e.withCtx((o=>[e.createElementVNode("img",{src:r.value,class:e.normalizeClass(o.className),style:e.normalizeStyle({display:"block",...o.matrixStyle}),alt:t.alt},null,14,h)])),_:1},8,["class","cname","matrix"]))}}),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}))}),x=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o};const b=x({},[["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=x({},[["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=x({},[["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=["state"],_=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},state:{},states:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(i,{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(v,{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(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(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,w))])),_:1},8,["class","states","cname"]))}}),C=["type","name","focus","state","placeholder","maxlength","readonly"],$=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 n=t,r=e.ref(n.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=r.value)?void 0:e.trim())},c=e=>{a("on_change",u(),e)},d=e=>{a("on_blur",u(),e)},u=()=>{if(n.rule){const e=l[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(r.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,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:c,onInput:s,"onUpdate:modelValue":o[1]||(o[1]=e=>r.value=e),name:t.name,focus:!!t.focus||"",state:t.state,placeholder:t.placeholder,maxlength:t.maxlength,readonly:t.readonly,autocomplete:"off"},null,42,C),[[e.vModelDynamic,r.value]])])),_:1},8,["class","focus","states","cname"]))}}),B=["name","focus","state","placeholder","maxlength","readonly","rows"],N=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,n=e.ref(a.text),r=()=>{o("update:text",n.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,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:r,"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,B),[[e.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["muted","src","autoplay","loop"],V=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(i,{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,z)])),_:1},8,["class","cname"]))}}),j=["state"],S=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 n=t,r=e.ref(),l=e.computed((()=>n.scrollType?`${n.scrollType}-scroll`:"thin-scroll"));let s={x:0,y:0};return o({reset:()=>{r.value.scrollTop=0}}),e.onMounted((()=>{r.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,n=o-s.x,r=t-s.y;let l;Math.abs(n)>=Math.abs(r)?(e.stopPropagation(),l=n>=0?"l2r":"r2l"):l=r>=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,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:r,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,j)])),_:3},8,["class","states","cname"]))}}),E=["state","draggable"],D=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(),r=e.ref(""),l=e.ref(!1),s=e.ref(!1),c=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),r.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,r.value=""},m=e=>{e.preventDefault(),o("on_drag_over",e),r.value="dragOver"},f=e=>{o("on_drag_leave",e),r.value=""},h=e=>{o("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let g;const v=e.reactive({x:0,y:0}),x=e.reactive({width:0,height:0}),b=e=>{e.preventDefault(),g||(g=n.value.offsetParent,g.onmousemove=y,g.ontouchmove=y,g.onmouseleave=k,g.onmouseup=k,g.ontouchend=k,Array.prototype.forEach.call(g.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),x.width=n.value.offsetWidth,x.height=n.value.offsetHeight),r.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;c.x=Math.max(0,t),c.y=Math.max(0,a),c.x=Math.min(c.x+x.width,g.offsetWidth)-x.width,c.y=Math.min(c.y+x.height,g.offsetHeight)-x.height,o("on_move",c,e)},k=()=>{s.value&&(r.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=b,e.ontouchstart=b):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=h)})()})),(t,o)=>(e.openBlock(),e.createBlock(i,{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(${c.x}px, ${c.y}px)`}),ref_key:"$el",ref:n,class:e.normalizeClass(o.className),state:r.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,E)])),_:3},8,["class","states","cname"]))}}),T=["src"],M=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(i,{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,T)])),_:1},8,["class","cname"]))}),I=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,r;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==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.normal)?void 0:r.line)||"none"}`,bg:a("normal","lgray")}})),r=e.computed((()=>{var e,t,n,r;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==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.hover)?void 0:r.line)||"none"}`,bg:a("hover","Ce7e7e7")}})),l=e.computed((()=>{var e,t,n,r;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==(r=null==(n=null==o?void 0:o.btnColor)?void 0:n.active)?void 0:r.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:`${r.value.text} ${r.value.bg} ${r.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"]))}}),A=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 r;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==(r=t.colors)?void 0:r.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(l)],1024)):(e.openBlock(),e.createBlock(l,{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,r,l,s,i,c,u,m,f,h;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==(r=null==(n=t.colors)?void 0:n.center)?void 0:r.line)||"neutral"} bg-color-${(null==(s=null==(l=t.colors)?void 0:l.center)?void 0:s.bg)||"dgray"}`)},{default:e.withCtx((()=>[e.createVNode(_,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==(c=null==(i=t.colors)?void 0:i.text)?void 0:c.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==(h=null==(f=t.colors)?void 0:f.text)?void 0:h.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(_,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"])}}}),O=[i,d,p,f,g,_,V,S,M,$,D,N,I,A];return{name:"btxui",install(e){O.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;","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,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,r){return t((s=t(t(o,e),t(l,r)))<<(c=n)|s>>>32-c,a);var s,c}function l(e,t,a,l,n,r,s){return o(t&a|~t&l,e,t,n,r,s)}function n(e,t,a,l,n,r,s){return o(t&l|a&~l,e,t,n,r,s)}function r(e,t,a,l,n,r,s){return o(t^a^l,e,t,n,r,s)}function s(e,t,a,l,n,r,s){return o(a^(t|~l),e,t,n,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=l(p,m,f,g,e[a],7,-680876936),g=l(g,p,m,f,e[a+1],12,-389564586),f=l(f,g,p,m,e[a+2],17,606105819),m=l(m,f,g,p,e[a+3],22,-1044525330),p=l(p,m,f,g,e[a+4],7,-176418897),g=l(g,p,m,f,e[a+5],12,1200080426),f=l(f,g,p,m,e[a+6],17,-1473231341),m=l(m,f,g,p,e[a+7],22,-45705983),p=l(p,m,f,g,e[a+8],7,1770035416),g=l(g,p,m,f,e[a+9],12,-1958414417),f=l(f,g,p,m,e[a+10],17,-42063),m=l(m,f,g,p,e[a+11],22,-1990404162),p=l(p,m,f,g,e[a+12],7,1804603682),g=l(g,p,m,f,e[a+13],12,-40341101),f=l(f,g,p,m,e[a+14],17,-1502002290),p=n(p,m=l(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=r(p,m=n(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",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=[],r=[];for(n[15]=r[15]=void 0,l.length>16&&(l=c(l,8*e.length)),o=0;o<16;o+=1)n[o]=909522486^l[o],r[o]=1549556828^l[o];return a=c(n.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}(l);const r=n,s="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;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,...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.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,r,s,c]=a;if(o=t[n],o){let e=p(r);if(e)return`${o.pro}: ${e}${m(e,s,o.unit)}`;if(e=p(s),e){const t=l[r];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${m(e,c,o.unit)};`})),a}return`${o.pro}-${r}: ${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(l.matrix&&(()=>{var e,t,o,a,n,r,s,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==(r=l.matrix)?void 0:r.rotate})`:"",p=(null==(s=l.matrix)?void 0:s.skew)?`skew(${null==(c=l.matrix)?void 0:c.skew})`:"";h.value=l.matrix?{transform:`${i} ${d} ${u} ${p}`}:{}})(),l.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=l.class)&&t.split(" ").forEach((e=>{g(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})(l.class,l.cname??"");(e=>{l.focus&&g(e,l.focus)})(`${o}[focus='true']:focus`),(e=>{l.hover&&g(e,l.hover)})(`${o}[hover='true']:hover`),(e=>{l.active&&g(e,l.active)})(`${o}[active='true']:active`),e=o,l.states&&Object.keys(l.states).forEach((t=>{g(`${e}[state="${t}"]`,l.states[t])})),(e=>{if(!l.extraClass)return;const{selector:t,value:o}=l.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"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=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,l=e.ref(),n=e.ref(""),r=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")),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&&(l.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:l,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:f,onTouchend:f,onClick:e.withModifiers(i,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target:n.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:{},matrix:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,l=e.computed((()=>a.img)),n=e.ref(""),r=()=>{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,r),e.onMounted((()=>{r()})),(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,g)])),_:1},8,["class","cname","matrix"]))}}),x=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,l]of t)o[a]=l;return o};const b=v({},[["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 y=v({},[["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 k=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})}]]),w=["state"],_=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(x,{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(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(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,w))])),_:1},8,["class","states","cname"]))}}),C=["type","name","focus","state","placeholder","maxlength","readonly"],$=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),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=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=r[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: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,C),[[e.vModelDynamic,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),B=["name","focus","state","placeholder","maxlength","readonly","rows"],N=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,B),[[e.vModelText,l.value]])])),_:1},8,["class","focus","states","cname"]))}}),z=["muted","src","autoplay","loop"],V=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,z)])),_:1},8,["class","cname"]))}}),S=["state"],j=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(),r=e.computed((()=>l.scrollType?`${l.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,l=o-s.x,n=t-s.y;let r;Math.abs(l)>=Math.abs(n)?(e.stopPropagation(),r=l>=0?"l2r":"r2l"):r=n>=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:n,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,S)])),_:3},8,["class","states","cname"]))}}),D=["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,l=e.ref(),n=e.ref(""),r=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(),r.value=!0},p=e=>{o("on_drag_end",e),r.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 x=e.reactive({x:0,y:0}),v=e.reactive({width:0,height:0}),b=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")})),v.width=l.value.offsetWidth,v.height=l.value.offsetHeight),n.value="dragStart",s.value=!0,x.x=e.offsetX,x.y=e.offsetY,l.value.style.pointerEvents="none"},y=e=>{if(!s.value)return;const t=e.offsetX-x.x,a=e.offsetY-x.y;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+v.width,h.offsetWidth)-v.width,i.y=Math.min(i.y+v.height,h.offsetHeight)-v.height,o("on_move",i,e)},k=()=>{s.value&&(n.value="",s.value=!1,x.x=0,x.y=0,l.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=l.value;a.freeDrag?(e.onmousedown=b,e.ontouchstart=b):(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:l,class:e.normalizeClass(o.className),state:n.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,D)])),_:3},8,["class","states","cname"]))}}),T=["src"],M=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,T)])),_:1},8,["class","cname"]))}),I=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"]))}}),P=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"]))}}),A=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")}})),r=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(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:""} ${l.value.bg} ${l.value.text} ${l.value.line} solid`,hover:`${n.value.text} ${n.value.bg} ${n.value.line}`,active:`${r.value.text} ${r.value.bg} ${r.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"]))}}),O=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 r=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(j,{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(l.value,((o,l)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:l},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"grow-1 flex rel pad-v-4-px"}),{default:e.withCtx((()=>{var l,n,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==(n=null==(l=t.colors)?void 0:l.center)?void 0:n.line)||"neutral"} bg-color-${(null==(s=null==(r=t.colors)?void 0:r.center)?void 0:s.bg)||"dgray"}`)},{default:e.withCtx((()=>[e.createVNode(_,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(_,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"])}}}),R=[c,d,p,f,h,_,V,j,M,$,E,N,I,P,A,O];return{name:"btxui",install(e){R.forEach((t=>{e.component(t.__name,t)}))}}}));
|