btxui 1.0.15 → 1.0.17
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 +138 -60
- 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,6 +1,13 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, withModifiers, watch, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, withDirectives, vModelDynamic, vModelText } 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 } from "vue";
|
|
2
2
|
const prestyles = {
|
|
3
3
|
//预置样式-----------------------------------------------------------------------------------
|
|
4
|
+
// 文本对齐
|
|
5
|
+
"pcenter": `text-align: center;`,
|
|
6
|
+
"pright": `text-align: right;`,
|
|
7
|
+
"pleft": `text-align: left;`,
|
|
8
|
+
"pjustify": `text-align: justify;`,
|
|
9
|
+
// 首行缩进
|
|
10
|
+
"pindent": `text-indent: 2em;`,
|
|
4
11
|
// 文字加粗
|
|
5
12
|
"bold": `font-weight: bold;`,
|
|
6
13
|
// 隐藏显示
|
|
@@ -124,10 +131,6 @@ const prestyles = {
|
|
|
124
131
|
"objfit-none": `object-fit: none;`,
|
|
125
132
|
"objfit-scaledown": `object-fit: scale-down;`,
|
|
126
133
|
// 二段赋值-----------------------------------------------------------------------------------
|
|
127
|
-
// 文本对齐
|
|
128
|
-
"p": {
|
|
129
|
-
pro: "text-align"
|
|
130
|
-
},
|
|
131
134
|
// 文字颜色
|
|
132
135
|
"color": {
|
|
133
136
|
pro: "color"
|
|
@@ -172,6 +175,10 @@ const prestyles = {
|
|
|
172
175
|
"basis": {
|
|
173
176
|
pro: "flex-basis"
|
|
174
177
|
},
|
|
178
|
+
// 多列布局容器
|
|
179
|
+
"column": {
|
|
180
|
+
pro: "columnCount"
|
|
181
|
+
},
|
|
175
182
|
// 字符间距
|
|
176
183
|
"lspace": {
|
|
177
184
|
pro: "letter-spacing",
|
|
@@ -251,23 +258,6 @@ const prestyles = {
|
|
|
251
258
|
"delay": {
|
|
252
259
|
pro: "transition-delay",
|
|
253
260
|
unit: "s"
|
|
254
|
-
},
|
|
255
|
-
"rule_2": {
|
|
256
|
-
//多列布局容器
|
|
257
|
-
"column": {
|
|
258
|
-
pro: "columnCount",
|
|
259
|
-
extra: {
|
|
260
|
-
columnGap: 0
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
//三段赋值-----------------------------------------------------------------------------------
|
|
265
|
-
"rule_3": {
|
|
266
|
-
//背景颜色
|
|
267
|
-
"gradient": {
|
|
268
|
-
pro: ["Image"],
|
|
269
|
-
tmp: "-webkit-linear-gradient(%{}%)"
|
|
270
|
-
}
|
|
271
261
|
}
|
|
272
262
|
};
|
|
273
263
|
const theme = {
|
|
@@ -504,7 +494,7 @@ var md5$1 = {
|
|
|
504
494
|
})(md5$1);
|
|
505
495
|
const md5 = md5Exports;
|
|
506
496
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
507
|
-
const _sfc_main$
|
|
497
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
508
498
|
__name: "b-style",
|
|
509
499
|
props: {
|
|
510
500
|
class: {},
|
|
@@ -550,6 +540,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
550
540
|
return theme.colors[val];
|
|
551
541
|
if (val && val.search("C") === 0)
|
|
552
542
|
return `#${val.substr(1)}`;
|
|
543
|
+
if (val && val.search("rgb") === 0) {
|
|
544
|
+
const parts = val.split("_");
|
|
545
|
+
return `${parts[0]}(${parts[1]},${parts[2]},${parts[3]})`;
|
|
546
|
+
}
|
|
547
|
+
return false;
|
|
548
|
+
};
|
|
549
|
+
const validGradient = (val) => {
|
|
550
|
+
if (val && val.search("linear") === 0) {
|
|
551
|
+
const parts = val.split("_");
|
|
552
|
+
const [type, dir, ...colors] = parts;
|
|
553
|
+
return `${type}-gradient(${dir}deg,${colors.map((color) => validColor(color)).join(",")})`;
|
|
554
|
+
}
|
|
553
555
|
return false;
|
|
554
556
|
};
|
|
555
557
|
const validValue = (val) => {
|
|
@@ -561,6 +563,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
561
563
|
const color = validColor(val);
|
|
562
564
|
if (color !== false)
|
|
563
565
|
return color;
|
|
566
|
+
const gradient = validGradient(val);
|
|
567
|
+
if (gradient !== false)
|
|
568
|
+
return gradient;
|
|
564
569
|
return false;
|
|
565
570
|
};
|
|
566
571
|
const parseStyle = (rule) => {
|
|
@@ -627,8 +632,6 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
627
632
|
};
|
|
628
633
|
const combineClassName = (_class) => {
|
|
629
634
|
const classArr = _class.split(" ").sort();
|
|
630
|
-
console.log(md5, "------");
|
|
631
|
-
console.log(`B-${md5(classArr.join("&"))}`);
|
|
632
635
|
const compSelector = `B-${md5(classArr.join("&"))}`;
|
|
633
636
|
className.value = `${_class} ${compSelector}`;
|
|
634
637
|
if (!styleMap.value.includes(compSelector)) {
|
|
@@ -678,7 +681,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
678
681
|
}
|
|
679
682
|
});
|
|
680
683
|
const _hoisted_1$9 = ["state"];
|
|
681
|
-
const _sfc_main$
|
|
684
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
682
685
|
__name: "b-view",
|
|
683
686
|
props: {
|
|
684
687
|
class: {},
|
|
@@ -705,7 +708,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
705
708
|
};
|
|
706
709
|
});
|
|
707
710
|
return (_ctx, _cache) => {
|
|
708
|
-
return openBlock(), createBlock(_sfc_main$
|
|
711
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
709
712
|
class: normalizeClass(_ctx.class),
|
|
710
713
|
states: _ctx.states
|
|
711
714
|
}, {
|
|
@@ -724,7 +727,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
724
727
|
}
|
|
725
728
|
});
|
|
726
729
|
const _hoisted_1$8 = ["state"];
|
|
727
|
-
const _sfc_main$
|
|
730
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
728
731
|
__name: "b-text",
|
|
729
732
|
props: {
|
|
730
733
|
class: {},
|
|
@@ -733,7 +736,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
733
736
|
},
|
|
734
737
|
setup(__props) {
|
|
735
738
|
return (_ctx, _cache) => {
|
|
736
|
-
return openBlock(), createBlock(_sfc_main$
|
|
739
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
737
740
|
class: normalizeClass(_ctx.class),
|
|
738
741
|
states: _ctx.states
|
|
739
742
|
}, {
|
|
@@ -751,7 +754,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
751
754
|
}
|
|
752
755
|
});
|
|
753
756
|
const _hoisted_1$7 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
|
|
754
|
-
const _sfc_main$
|
|
757
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
755
758
|
__name: "b-hot",
|
|
756
759
|
props: {
|
|
757
760
|
link: {},
|
|
@@ -809,7 +812,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
809
812
|
$anchor.value.download = props.download;
|
|
810
813
|
});
|
|
811
814
|
return (_ctx, _cache) => {
|
|
812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
815
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
813
816
|
class: normalizeClass(_ctx.class),
|
|
814
817
|
states: _ctx.states,
|
|
815
818
|
hover: _ctx.hover,
|
|
@@ -844,7 +847,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
844
847
|
}
|
|
845
848
|
});
|
|
846
849
|
const _hoisted_1$6 = ["src", "alt"];
|
|
847
|
-
const _sfc_main$
|
|
850
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
848
851
|
__name: "b-img",
|
|
849
852
|
props: {
|
|
850
853
|
img: {},
|
|
@@ -872,7 +875,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
872
875
|
setSrc();
|
|
873
876
|
});
|
|
874
877
|
return (_ctx, _cache) => {
|
|
875
|
-
return openBlock(), createBlock(_sfc_main$
|
|
878
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
876
879
|
class: normalizeClass(_ctx.class)
|
|
877
880
|
}, {
|
|
878
881
|
className: withCtx((scope) => [
|
|
@@ -888,17 +891,17 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
888
891
|
};
|
|
889
892
|
}
|
|
890
893
|
});
|
|
891
|
-
const _sfc_main$
|
|
894
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
892
895
|
__name: "ani-success",
|
|
893
896
|
setup(__props) {
|
|
894
897
|
return (_ctx, _cache) => {
|
|
895
|
-
return openBlock(), createBlock(_sfc_main$
|
|
898
|
+
return openBlock(), createBlock(_sfc_main$f, {
|
|
896
899
|
class: "flex-5",
|
|
897
900
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
898
901
|
}, {
|
|
899
902
|
default: withCtx(() => [
|
|
900
|
-
createVNode(_sfc_main$
|
|
901
|
-
createVNode(_sfc_main$
|
|
903
|
+
createVNode(_sfc_main$e, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
904
|
+
createVNode(_sfc_main$e, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
902
905
|
]),
|
|
903
906
|
_: 1
|
|
904
907
|
});
|
|
@@ -914,7 +917,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
914
917
|
}
|
|
915
918
|
return target;
|
|
916
919
|
};
|
|
917
|
-
const _sfc_main$
|
|
920
|
+
const _sfc_main$a = {};
|
|
918
921
|
function _sfc_render$2(_ctx, _cache) {
|
|
919
922
|
const _component_b_text = resolveComponent("b-text");
|
|
920
923
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -926,9 +929,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
926
929
|
_: 1
|
|
927
930
|
});
|
|
928
931
|
}
|
|
929
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
932
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$2]]);
|
|
930
933
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
931
|
-
const _sfc_main$
|
|
934
|
+
const _sfc_main$9 = {};
|
|
932
935
|
function _sfc_render$1(_ctx, _cache) {
|
|
933
936
|
const _component_b_text = resolveComponent("b-text");
|
|
934
937
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -943,9 +946,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
943
946
|
_: 1
|
|
944
947
|
});
|
|
945
948
|
}
|
|
946
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
949
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]]);
|
|
947
950
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
948
|
-
const _sfc_main$
|
|
951
|
+
const _sfc_main$8 = {};
|
|
949
952
|
function _sfc_render(_ctx, _cache) {
|
|
950
953
|
const _component_b_view = resolveComponent("b-view");
|
|
951
954
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -955,8 +958,8 @@ function _sfc_render(_ctx, _cache) {
|
|
|
955
958
|
_: 1
|
|
956
959
|
});
|
|
957
960
|
}
|
|
958
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
959
|
-
const _sfc_main$
|
|
961
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render]]);
|
|
962
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
960
963
|
__name: "b-icon",
|
|
961
964
|
props: {
|
|
962
965
|
icon: {},
|
|
@@ -965,17 +968,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
965
968
|
setup(__props) {
|
|
966
969
|
const props = __props;
|
|
967
970
|
return (_ctx, _cache) => {
|
|
968
|
-
return openBlock(), createBlock(_sfc_main$
|
|
971
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
969
972
|
class: normalizeClass(_ctx.class)
|
|
970
973
|
}, {
|
|
971
974
|
className: withCtx((scope) => [
|
|
972
975
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
973
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
976
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$b, { key: "success" })) : createCommentVNode("", true),
|
|
974
977
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
975
978
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
976
979
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
977
980
|
], 64)) : createCommentVNode("", true),
|
|
978
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
981
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$c, {
|
|
979
982
|
key: 1,
|
|
980
983
|
img: _ctx.icon,
|
|
981
984
|
class: normalizeClass(scope.className)
|
|
@@ -990,7 +993,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
990
993
|
}
|
|
991
994
|
});
|
|
992
995
|
const _hoisted_1$5 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
|
|
993
|
-
const _sfc_main$
|
|
996
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
994
997
|
__name: "b-input",
|
|
995
998
|
props: {
|
|
996
999
|
type: {},
|
|
@@ -1065,7 +1068,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1065
1068
|
check
|
|
1066
1069
|
});
|
|
1067
1070
|
return (_ctx, _cache) => {
|
|
1068
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1071
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1069
1072
|
class: normalizeClass(_ctx.class),
|
|
1070
1073
|
focus: _ctx.focus,
|
|
1071
1074
|
states: _ctx.states
|
|
@@ -1096,7 +1099,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
1096
1099
|
}
|
|
1097
1100
|
});
|
|
1098
1101
|
const _hoisted_1$4 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1099
|
-
const _sfc_main$
|
|
1102
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1100
1103
|
__name: "b-textarea",
|
|
1101
1104
|
props: {
|
|
1102
1105
|
text: {},
|
|
@@ -1119,7 +1122,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1119
1122
|
emit("update:text", formatText(val.value));
|
|
1120
1123
|
};
|
|
1121
1124
|
return (_ctx, _cache) => {
|
|
1122
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1125
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1123
1126
|
class: normalizeClass(_ctx.class),
|
|
1124
1127
|
focus: _ctx.focus,
|
|
1125
1128
|
states: _ctx.states
|
|
@@ -1149,7 +1152,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
1149
1152
|
}
|
|
1150
1153
|
});
|
|
1151
1154
|
const _hoisted_1$3 = ["muted", "src", "autoplay", "loop"];
|
|
1152
|
-
const _sfc_main$
|
|
1155
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
1153
1156
|
__name: "b-video",
|
|
1154
1157
|
props: {
|
|
1155
1158
|
video: {},
|
|
@@ -1160,7 +1163,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1160
1163
|
setup(__props) {
|
|
1161
1164
|
const $video = ref();
|
|
1162
1165
|
return (_ctx, _cache) => {
|
|
1163
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1166
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1164
1167
|
class: normalizeClass(_ctx.class)
|
|
1165
1168
|
}, {
|
|
1166
1169
|
className: withCtx((scope) => [
|
|
@@ -1181,7 +1184,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
1181
1184
|
});
|
|
1182
1185
|
const _hoisted_1$2 = ["state"];
|
|
1183
1186
|
const tolerance = 2;
|
|
1184
|
-
const _sfc_main$
|
|
1187
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
1185
1188
|
__name: "b-list",
|
|
1186
1189
|
props: {
|
|
1187
1190
|
scroll: {},
|
|
@@ -1230,7 +1233,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1230
1233
|
watchPos();
|
|
1231
1234
|
});
|
|
1232
1235
|
return (_ctx, _cache) => {
|
|
1233
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1236
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1234
1237
|
class: normalizeClass(_ctx.class),
|
|
1235
1238
|
states: _ctx.states
|
|
1236
1239
|
}, {
|
|
@@ -1258,7 +1261,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1258
1261
|
}
|
|
1259
1262
|
});
|
|
1260
1263
|
const _hoisted_1$1 = ["state", "draggable"];
|
|
1261
|
-
const _sfc_main$
|
|
1264
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1262
1265
|
__name: "b-drag",
|
|
1263
1266
|
props: {
|
|
1264
1267
|
class: {},
|
|
@@ -1367,7 +1370,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1367
1370
|
bindEvent();
|
|
1368
1371
|
});
|
|
1369
1372
|
return (_ctx, _cache) => {
|
|
1370
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1373
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1371
1374
|
class: normalizeClass(_ctx.class),
|
|
1372
1375
|
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver }
|
|
1373
1376
|
}, {
|
|
@@ -1396,7 +1399,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1396
1399
|
}
|
|
1397
1400
|
});
|
|
1398
1401
|
const _hoisted_1 = ["src"];
|
|
1399
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1402
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1400
1403
|
__name: "b-webview",
|
|
1401
1404
|
props: {
|
|
1402
1405
|
src: {},
|
|
@@ -1404,7 +1407,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1404
1407
|
},
|
|
1405
1408
|
setup(__props) {
|
|
1406
1409
|
return (_ctx, _cache) => {
|
|
1407
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1410
|
+
return openBlock(), createBlock(_sfc_main$g, {
|
|
1408
1411
|
class: normalizeClass(_ctx.class)
|
|
1409
1412
|
}, {
|
|
1410
1413
|
className: withCtx((scope) => [
|
|
@@ -1419,7 +1422,82 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1419
1422
|
};
|
|
1420
1423
|
}
|
|
1421
1424
|
});
|
|
1422
|
-
const
|
|
1425
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1426
|
+
__name: "btn-wid",
|
|
1427
|
+
props: {
|
|
1428
|
+
btnText: {},
|
|
1429
|
+
btnColor: {},
|
|
1430
|
+
btnRound: { type: Boolean },
|
|
1431
|
+
btnWidth: {},
|
|
1432
|
+
hotData: {},
|
|
1433
|
+
iconData: {}
|
|
1434
|
+
},
|
|
1435
|
+
setup(__props) {
|
|
1436
|
+
const props = __props;
|
|
1437
|
+
const setBg = (type, defaultVal) => {
|
|
1438
|
+
const btnColor = props["btnColor"];
|
|
1439
|
+
if (btnColor) {
|
|
1440
|
+
const bg = btnColor[type]["bg"];
|
|
1441
|
+
if ((bg == null ? void 0 : bg.search("linear")) === 0)
|
|
1442
|
+
return `bg-image-${bg}`;
|
|
1443
|
+
return `bg-color-${bg || defaultVal}`;
|
|
1444
|
+
}
|
|
1445
|
+
return `bg-color-${defaultVal}`;
|
|
1446
|
+
};
|
|
1447
|
+
const normal = computed(() => {
|
|
1448
|
+
var _a, _b, _c, _d;
|
|
1449
|
+
return {
|
|
1450
|
+
text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.normal) == null ? void 0 : _b.text) || "C777"}`,
|
|
1451
|
+
line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.normal) == null ? void 0 : _d.line) || "none"}`,
|
|
1452
|
+
bg: setBg("normal", "lgray")
|
|
1453
|
+
};
|
|
1454
|
+
});
|
|
1455
|
+
const hover = computed(() => {
|
|
1456
|
+
var _a, _b, _c, _d;
|
|
1457
|
+
return {
|
|
1458
|
+
text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.hover) == null ? void 0 : _b.text) || "dgray"}`,
|
|
1459
|
+
line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.hover) == null ? void 0 : _d.line) || "none"}`,
|
|
1460
|
+
bg: setBg("hover", "Ce7e7e7")
|
|
1461
|
+
};
|
|
1462
|
+
});
|
|
1463
|
+
const active = computed(() => {
|
|
1464
|
+
var _a, _b, _c, _d;
|
|
1465
|
+
return {
|
|
1466
|
+
text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.active) == null ? void 0 : _b.text) || "dgray"}`,
|
|
1467
|
+
line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.active) == null ? void 0 : _d.line) || "Cd7d7d7"}`,
|
|
1468
|
+
bg: setBg("active", "Ce7e7e7")
|
|
1469
|
+
};
|
|
1470
|
+
});
|
|
1471
|
+
return (_ctx, _cache) => {
|
|
1472
|
+
return openBlock(), createBlock(_sfc_main$d, mergeProps(_ctx.hotData, {
|
|
1473
|
+
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
|
+
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1475
|
+
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1476
|
+
}), {
|
|
1477
|
+
default: withCtx(() => [
|
|
1478
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$7, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1479
|
+
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1480
|
+
]),
|
|
1481
|
+
_: 1
|
|
1482
|
+
}, 16, ["class", "hover", "active"]);
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
const initGlobalComponents = [
|
|
1487
|
+
_sfc_main$g,
|
|
1488
|
+
_sfc_main$f,
|
|
1489
|
+
_sfc_main$e,
|
|
1490
|
+
_sfc_main$d,
|
|
1491
|
+
_sfc_main$c,
|
|
1492
|
+
_sfc_main$7,
|
|
1493
|
+
_sfc_main$4,
|
|
1494
|
+
_sfc_main$3,
|
|
1495
|
+
_sfc_main$1,
|
|
1496
|
+
_sfc_main$6,
|
|
1497
|
+
_sfc_main$2,
|
|
1498
|
+
_sfc_main$5,
|
|
1499
|
+
_sfc_main
|
|
1500
|
+
];
|
|
1423
1501
|
const index = {
|
|
1424
1502
|
name: "btxui",
|
|
1425
1503
|
install(app) {
|
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={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;",p:{pro:"text-align"},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"},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"},rule_2:{column:{pro:"columnCount",extra:{columnGap:0}}},rule_3:{gradient:{pro:["Image"],tmp:"-webkit-linear-gradient(%{}%)"}}},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:{},s={};a={get exports(){return s},set exports(e){s=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,s,n){return t((l=t(t(o,e),t(r,n)))<<(i=s)|l>>>32-i,a);var l,i}function r(e,t,a,r,s,n,l){return o(t&a|~t&r,e,t,s,n,l)}function s(e,t,a,r,s,n,l){return o(t&r|a&~r,e,t,s,n,l)}function n(e,t,a,r,s,n,l){return o(t^a^r,e,t,s,n,l)}function l(e,t,a,r,s,n,l){return o(a^(t|~r),e,t,s,n,l)}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=s(p,f=r(f,m,g,p,e[a+15],22,1236535329),m,g,e[a+1],5,-165796510),g=s(g,p,f,m,e[a+6],9,-1069501632),m=s(m,g,p,f,e[a+11],14,643717713),f=s(f,m,g,p,e[a],20,-373897302),p=s(p,f,m,g,e[a+5],5,-701558691),g=s(g,p,f,m,e[a+10],9,38016083),m=s(m,g,p,f,e[a+15],14,-660478335),f=s(f,m,g,p,e[a+4],20,-405537848),p=s(p,f,m,g,e[a+9],5,568446438),g=s(g,p,f,m,e[a+14],9,-1019803690),m=s(m,g,p,f,e[a+3],14,-187363961),f=s(f,m,g,p,e[a+8],20,1163531501),p=s(p,f,m,g,e[a+13],5,-1444681467),g=s(g,p,f,m,e[a+2],9,-51403784),m=s(m,g,p,f,e[a+7],14,1735328473),p=n(p,f=s(f,m,g,p,e[a+12],20,-1926607734),m,g,e[a+5],4,-378558),g=n(g,p,f,m,e[a+8],11,-2022574463),m=n(m,g,p,f,e[a+11],16,1839030562),f=n(f,m,g,p,e[a+14],23,-35309556),p=n(p,f,m,g,e[a+1],4,-1530992060),g=n(g,p,f,m,e[a+4],11,1272893353),m=n(m,g,p,f,e[a+7],16,-155497632),f=n(f,m,g,p,e[a+10],23,-1094730640),p=n(p,f,m,g,e[a+13],4,681279174),g=n(g,p,f,m,e[a],11,-358537222),m=n(m,g,p,f,e[a+3],16,-722521979),f=n(f,m,g,p,e[a+6],23,76029189),p=n(p,f,m,g,e[a+9],4,-640364487),g=n(g,p,f,m,e[a+12],11,-421815835),m=n(m,g,p,f,e[a+15],16,530742520),p=l(p,f=n(f,m,g,p,e[a+2],23,-995338651),m,g,e[a],6,-198630844),g=l(g,p,f,m,e[a+7],10,1126891415),m=l(m,g,p,f,e[a+14],15,-1416354905),f=l(f,m,g,p,e[a+5],21,-57434055),p=l(p,f,m,g,e[a+12],6,1700485571),g=l(g,p,f,m,e[a+3],10,-1894986606),m=l(m,g,p,f,e[a+10],15,-1051523),f=l(f,m,g,p,e[a+1],21,-2054922799),p=l(p,f,m,g,e[a+8],6,1873313359),g=l(g,p,f,m,e[a+15],10,-30611744),m=l(m,g,p,f,e[a+6],15,-1560198380),f=l(f,m,g,p,e[a+13],21,1309151649),p=l(p,f,m,g,e[a+4],6,-145523070),g=l(g,p,f,m,e[a+11],10,-1120210379),m=l(m,g,p,f,e[a+2],15,718787259),f=l(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),s=[],n=[];for(s[15]=n[15]=void 0,r.length>16&&(r=i(r,8*e.length)),o=0;o<16;o+=1)s[o]=909522486^r[o],n[o]=1549556828^r[o];return a=i(s.concat(d(t)),512+8*t.length),c(i(n.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 n=s,l="BTXUIGlobal",i=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{}},setup(a){const r=a,s=e.ref(),i=e.ref(""),c=e.computed((()=>{const e=[];for(let t of s.value.sheet.rules)e.push(t.selectorText.substr(1));return e})),d=e.reactive({}),u=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 a=(e=>o.colors[e]?o.colors[e]:!(!e||0!==e.search("C"))&&`#${e.substr(1)}`)(e);return!1!==a&&a},p=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[s,n,l,i]=a;if(o=t[s],o){let e=u(n);if(e)return`${o.pro}: ${e}${l||o.unit||""}`;if(e=u(l),e){const t=r[n];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${i||o.unit||""};`})),a}return`${o.pro}-${n}: ${e}${i||o.unit||""}`}}})(o);if(a)return e+=`${a};`}),"").replace(/;+/g,";")},f=(e,t)=>{const o=p(t);o&&(c.value.includes(e)||(c.value.push(e),d[e]=o))};return e.onMounted((()=>{if(r.class){(()=>{let e=document.head.querySelector(`#${l}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",l),document.head.appendChild(e)),s.value=e})(),(t=r.class)&&t.split(" ").forEach((e=>{f(e,e)}));const o=(e=>{const t=e.split(" ").sort();console.log(n,"------"),console.log(`B-${n(t.join("&"))}`);const o=`B-${n(t.join("&"))}`;return i.value=`${e} ${o}`,c.value.includes(o)||c.value.push(o),o})(r.class);(e=>{r.focus&&f(e,r.focus)})(`${o}[focus='true']:focus`),(e=>{r.hover&&f(e,r.hover)})(`${o}[hover='true']:hover`),(e=>{r.active&&f(e,r.active)})(`${o}[active='true']:active`),e=o,r.states&&Object.keys(r.states).forEach((t=>{f(`${e}[state="${t}"]`,r.states[t])})),Object.keys(d).forEach((e=>{s.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,s,n,l,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==(s=o.matrix)?void 0:s.rotate)?`rotate(${null==(n=o.matrix)?void 0:n.rotate})`:"",f=(null==(l=o.matrix)?void 0:l.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(),s=e.ref(""),n=e.computed((()=>{const e=a.link;return a.forbid||!e?"javascript: void 0;":0===e.search("http")?(s.value="_blank",e):(e.search(/^(tel|mailto):/),e)})),l=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: ${l.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:s.value,class:e.normalizeClass(o.className),hover:!!t.hover||"",state:t.state,active:!!t.active||"",href:n.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)),s=e.ref(""),n=()=>{a.defaultSrc&&(s.value=a.defaultSrc);const e=new Image;e.onload=()=>{s.value=a.img,o("on_load")},e.src=a.img};return e.watch(r,n),e.onMounted((()=>{n()})),(t,o)=>(e.openBlock(),e.createBlock(i,{class:e.normalizeClass(t.class)},{className:e.withCtx((o=>[e.createElementVNode("img",{src:s.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}))}),x=(e,t)=>{const o=e.__vccOpts||e;for(const[a,r]of t)o[a]=r;return o};const v=x({},[["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=x({},[["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=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})}]]),_=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(v,{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,s=e.ref(r.text),n={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:"身份证号输入有误!"}},l=()=>{var e;a("update:text",null==(e=s.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=n[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(s.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:l,"onUpdate:modelValue":o[1]||(o[1]=e=>s.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,s.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),s=()=>{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:s,"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,s=e.ref(),n=e.computed((()=>r.scrollType?`${r.scrollType}-scroll`:"thin-scroll"));let l={x:0,y:0};return o({reset:()=>{s.value.scrollTop=0}}),e.onMounted((()=>{s.value.onscroll=e=>{const t=e.target.scrollTop,o=e.target.scrollLeft,r=o-l.x,s=t-l.y;let n;Math.abs(r)>=Math.abs(s)?(e.stopPropagation(),n=r>=0?"l2r":"r2l"):n=s>=0?"t2b":"b2t",l.x=o,l.y=t,a("on_scroll",{dir:n,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:s,class:e.normalizeClass(n.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(),s=e.ref(""),n=e.ref(!1),l=e.ref(!1),c=e.reactive({x:0,y:0}),d=e=>{o("on_drag_start",e),s.value="dragStart",e.dataTransfer.setData("info",JSON.stringify(a.dataInfo))},u=e=>{e.preventDefault(),n.value=!0},p=e=>{o("on_drag_end",e),n.value=!1,s.value=""},f=e=>{e.preventDefault(),o("on_drag_over",e),s.value="dragOver"},m=e=>{o("on_drag_leave",e),s.value=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),s.value=""};let h;const b=e.reactive({x:0,y:0}),x=e.reactive({width:0,height:0}),v=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")})),x.width=r.value.offsetWidth,x.height=r.value.offsetHeight),s.value="dragStart",l.value=!0,b.x=e.offsetX,b.y=e.offsetY,r.value.style.pointerEvents="none"},y=e=>{if(!l.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+x.width,h.offsetWidth)-x.width,c.y=Math.min(c.y+x.height,h.offsetHeight)-x.height,o("on_move",c,e)},w=()=>{l.value&&(s.value="",l.value=!1,b.x=0,b.y=0,r.value.style.pointerEvents="auto")};return e.onMounted((()=>{(()=>{const e=r.value;a.freeDrag?(e.onmousedown=v,e.ontouchstart=v):(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:n.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:s.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,V)])),_:3},8,["class","states"]))}}),M=["src"],T=[i,d,p,m,h,_,z,j,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,M)])),_:1},8,["class"]))}),C,E,B];return{name:"btxui",install(e){T.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;","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)}))}}}));
|