btxui 1.0.16 → 1.0.18

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, onMounted, renderSlot, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, withModifiers, watch, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, withDirectives, vModelDynamic, vModelText } 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, inject, KeepAlive, renderList } from "vue";
2
2
  const prestyles = {
3
3
  //预置样式-----------------------------------------------------------------------------------
4
4
  // 文本对齐
@@ -124,6 +124,7 @@ const prestyles = {
124
124
  "ellipsis": `overflow: hidden; text-overflow: ellipsis; white-space: nowrap;`,
125
125
  "text-line": `textShadow: 1px 0 0 rgba(200, 200, 200, .5), -1px 0 0 rgba(200, 200, 200, .5), 0 1px 0 rgba(200, 200, 200, .5), 0 -1px 0 rgba(200, 200, 200, .5);`,
126
126
  "alpha-0": `opacity: 0; visibility: hidden;`,
127
+ "select-none": `-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;`,
127
128
  // 图像布局
128
129
  "objfit-fill": `object-fit: fill;`,
129
130
  "objfit-cover": `object-fit: cover;`,
@@ -175,6 +176,10 @@ const prestyles = {
175
176
  "basis": {
176
177
  pro: "flex-basis"
177
178
  },
179
+ // 多列布局容器
180
+ "column": {
181
+ pro: "columnCount"
182
+ },
178
183
  // 字符间距
179
184
  "lspace": {
180
185
  pro: "letter-spacing",
@@ -254,23 +259,6 @@ const prestyles = {
254
259
  "delay": {
255
260
  pro: "transition-delay",
256
261
  unit: "s"
257
- },
258
- "rule_2": {
259
- //多列布局容器
260
- "column": {
261
- pro: "columnCount",
262
- extra: {
263
- columnGap: 0
264
- }
265
- }
266
- },
267
- //三段赋值-----------------------------------------------------------------------------------
268
- "rule_3": {
269
- //背景颜色
270
- "gradient": {
271
- pro: ["Image"],
272
- tmp: "-webkit-linear-gradient(%{}%)"
273
- }
274
262
  }
275
263
  };
276
264
  const theme = {
@@ -507,14 +495,15 @@ var md5$1 = {
507
495
  })(md5$1);
508
496
  const md5 = md5Exports;
509
497
  const GLOBAL_STYLE_NAME = "BTXUIGlobal";
510
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
498
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
511
499
  __name: "b-style",
512
500
  props: {
513
501
  class: {},
514
502
  focus: {},
515
503
  hover: {},
516
504
  active: {},
517
- states: {}
505
+ states: {},
506
+ cname: {}
518
507
  },
519
508
  setup(__props) {
520
509
  const props = __props;
@@ -539,7 +528,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
539
528
  };
540
529
  const styles = reactive({});
541
530
  const validNumber = (val) => {
542
- if (!isNaN(val * 1))
531
+ if (!isNaN(val * 1) || val === "auto")
543
532
  return val;
544
533
  let num = val;
545
534
  if (/^f\d+$/.test(num))
@@ -553,6 +542,18 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
553
542
  return theme.colors[val];
554
543
  if (val && val.search("C") === 0)
555
544
  return `#${val.substr(1)}`;
545
+ if (val && val.search("rgb") === 0) {
546
+ const parts = val.split("_");
547
+ return `${parts[0]}(${parts[1]},${parts[2]},${parts[3]})`;
548
+ }
549
+ return false;
550
+ };
551
+ const validGradient = (val) => {
552
+ if (val && val.search("linear") === 0) {
553
+ const parts = val.split("_");
554
+ const [type, dir, ...colors] = parts;
555
+ return `${type}-gradient(${dir}deg,${colors.map((color) => validColor(color)).join(",")})`;
556
+ }
556
557
  return false;
557
558
  };
558
559
  const validValue = (val) => {
@@ -564,6 +565,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
564
565
  const color = validColor(val);
565
566
  if (color !== false)
566
567
  return color;
568
+ const gradient = validGradient(val);
569
+ if (gradient !== false)
570
+ return gradient;
567
571
  return false;
568
572
  };
569
573
  const parseStyle = (rule) => {
@@ -606,7 +610,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
606
610
  const combineStyle = _class.split(" ").reduce((total, rule) => {
607
611
  const validateRule = parseStyle(rule);
608
612
  if (!validateRule)
609
- return;
613
+ return "";
610
614
  total += `${validateRule};`;
611
615
  return total;
612
616
  }, "");
@@ -628,9 +632,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
628
632
  appendStyle(selector, selector);
629
633
  });
630
634
  };
631
- const combineClassName = (_class) => {
635
+ const combineClassName = (_class, key) => {
632
636
  const classArr = _class.split(" ").sort();
633
- const compSelector = `B-${md5(classArr.join("&"))}`;
637
+ const compSelector = `B-${md5(classArr.join("&") + key)}`;
634
638
  className.value = `${_class} ${compSelector}`;
635
639
  if (!styleMap.value.includes(compSelector)) {
636
640
  styleMap.value.push(compSelector);
@@ -665,7 +669,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
665
669
  if (props.class) {
666
670
  initStyle();
667
671
  parseStyles(props.class);
668
- const compSelector = combineClassName(props.class);
672
+ const compSelector = combineClassName(props.class, props.cname ?? "");
669
673
  genFocusStyles(`${compSelector}[focus='true']:focus`);
670
674
  genHoverStyles(`${compSelector}[hover='true']:hover`);
671
675
  genActiveStyles(`${compSelector}[active='true']:active`);
@@ -679,14 +683,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
679
683
  }
680
684
  });
681
685
  const _hoisted_1$9 = ["state"];
682
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
686
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
683
687
  __name: "b-view",
684
688
  props: {
685
689
  class: {},
686
690
  state: { type: [String, Boolean] },
687
691
  states: {},
688
692
  bgImg: {},
689
- matrix: {}
693
+ matrix: {},
694
+ cname: {}
690
695
  },
691
696
  setup(__props) {
692
697
  const props = __props;
@@ -706,8 +711,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
706
711
  };
707
712
  });
708
713
  return (_ctx, _cache) => {
709
- return openBlock(), createBlock(_sfc_main$f, {
714
+ return openBlock(), createBlock(_sfc_main$h, {
710
715
  class: normalizeClass(_ctx.class),
716
+ cname: _ctx.cname,
711
717
  states: _ctx.states
712
718
  }, {
713
719
  className: withCtx((scope) => [
@@ -720,23 +726,25 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
720
726
  ], 14, _hoisted_1$9)
721
727
  ]),
722
728
  _: 3
723
- }, 8, ["class", "states"]);
729
+ }, 8, ["class", "cname", "states"]);
724
730
  };
725
731
  }
726
732
  });
727
733
  const _hoisted_1$8 = ["state"];
728
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
734
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
729
735
  __name: "b-text",
730
736
  props: {
731
737
  class: {},
732
738
  state: { type: [String, Boolean] },
733
- states: {}
739
+ states: {},
740
+ cname: {}
734
741
  },
735
742
  setup(__props) {
736
743
  return (_ctx, _cache) => {
737
- return openBlock(), createBlock(_sfc_main$f, {
744
+ return openBlock(), createBlock(_sfc_main$h, {
738
745
  class: normalizeClass(_ctx.class),
739
- states: _ctx.states
746
+ states: _ctx.states,
747
+ cname: _ctx.cname
740
748
  }, {
741
749
  className: withCtx((scope) => [
742
750
  createElementVNode("span", {
@@ -747,12 +755,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
747
755
  ], 10, _hoisted_1$8)
748
756
  ]),
749
757
  _: 3
750
- }, 8, ["class", "states"]);
758
+ }, 8, ["class", "states", "cname"]);
751
759
  };
752
760
  }
753
761
  });
754
762
  const _hoisted_1$7 = ["onClick", "onDblclick", "target", "hover", "state", "active", "href"];
755
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
763
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
756
764
  __name: "b-hot",
757
765
  props: {
758
766
  link: {},
@@ -763,7 +771,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
763
771
  active: {},
764
772
  forbid: { type: Boolean },
765
773
  download: {},
766
- anchor: {}
774
+ anchor: {},
775
+ cname: {}
767
776
  },
768
777
  emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick"],
769
778
  setup(__props, { emit }) {
@@ -810,11 +819,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
810
819
  $anchor.value.download = props.download;
811
820
  });
812
821
  return (_ctx, _cache) => {
813
- return openBlock(), createBlock(_sfc_main$f, {
822
+ return openBlock(), createBlock(_sfc_main$h, {
814
823
  class: normalizeClass(_ctx.class),
815
824
  states: _ctx.states,
816
825
  hover: _ctx.hover,
817
- active: _ctx.active
826
+ active: _ctx.active,
827
+ cname: _ctx.cname
818
828
  }, {
819
829
  className: withCtx((scope) => [
820
830
  createElementVNode("a", {
@@ -840,18 +850,19 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
840
850
  ], 46, _hoisted_1$7)
841
851
  ]),
842
852
  _: 3
843
- }, 8, ["class", "states", "hover", "active"]);
853
+ }, 8, ["class", "states", "hover", "active", "cname"]);
844
854
  };
845
855
  }
846
856
  });
847
857
  const _hoisted_1$6 = ["src", "alt"];
848
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
858
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
849
859
  __name: "b-img",
850
860
  props: {
851
861
  img: {},
852
862
  class: {},
853
863
  defaultSrc: {},
854
- alt: {}
864
+ alt: {},
865
+ cname: {}
855
866
  },
856
867
  emits: ["on_load"],
857
868
  setup(__props, { emit }) {
@@ -873,8 +884,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
873
884
  setSrc();
874
885
  });
875
886
  return (_ctx, _cache) => {
876
- return openBlock(), createBlock(_sfc_main$f, {
877
- class: normalizeClass(_ctx.class)
887
+ return openBlock(), createBlock(_sfc_main$h, {
888
+ class: normalizeClass(_ctx.class),
889
+ cname: _ctx.cname
878
890
  }, {
879
891
  className: withCtx((scope) => [
880
892
  createElementVNode("img", {
@@ -885,21 +897,21 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
885
897
  }, null, 10, _hoisted_1$6)
886
898
  ]),
887
899
  _: 1
888
- }, 8, ["class"]);
900
+ }, 8, ["class", "cname"]);
889
901
  };
890
902
  }
891
903
  });
892
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
904
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
893
905
  __name: "ani-success",
894
906
  setup(__props) {
895
907
  return (_ctx, _cache) => {
896
- return openBlock(), createBlock(_sfc_main$e, {
908
+ return openBlock(), createBlock(_sfc_main$g, {
897
909
  class: "flex-5",
898
910
  matrix: { translate: "0,9px", rotate: "45deg" }
899
911
  }, {
900
912
  default: withCtx(() => [
901
- createVNode(_sfc_main$d, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
902
- createVNode(_sfc_main$d, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
913
+ createVNode(_sfc_main$f, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
914
+ createVNode(_sfc_main$f, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
903
915
  ]),
904
916
  _: 1
905
917
  });
@@ -915,7 +927,7 @@ const _export_sfc = (sfc, props) => {
915
927
  }
916
928
  return target;
917
929
  };
918
- const _sfc_main$9 = {};
930
+ const _sfc_main$b = {};
919
931
  function _sfc_render$2(_ctx, _cache) {
920
932
  const _component_b_text = resolveComponent("b-text");
921
933
  const _component_b_view = resolveComponent("b-view");
@@ -927,9 +939,9 @@ function _sfc_render$2(_ctx, _cache) {
927
939
  _: 1
928
940
  });
929
941
  }
930
- const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2]]);
942
+ const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$2]]);
931
943
  const aniNotic_vue_vue_type_style_index_0_lang = "";
932
- const _sfc_main$8 = {};
944
+ const _sfc_main$a = {};
933
945
  function _sfc_render$1(_ctx, _cache) {
934
946
  const _component_b_text = resolveComponent("b-text");
935
947
  const _component_b_view = resolveComponent("b-view");
@@ -944,9 +956,9 @@ function _sfc_render$1(_ctx, _cache) {
944
956
  _: 1
945
957
  });
946
958
  }
947
- const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]]);
959
+ const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$1]]);
948
960
  const aniLoading_vue_vue_type_style_index_0_lang = "";
949
- const _sfc_main$7 = {};
961
+ const _sfc_main$9 = {};
950
962
  function _sfc_render(_ctx, _cache) {
951
963
  const _component_b_view = resolveComponent("b-view");
952
964
  return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
@@ -956,27 +968,29 @@ function _sfc_render(_ctx, _cache) {
956
968
  _: 1
957
969
  });
958
970
  }
959
- const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
960
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
971
+ const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render]]);
972
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
961
973
  __name: "b-icon",
962
974
  props: {
963
975
  icon: {},
964
- class: {}
976
+ class: {},
977
+ cname: {}
965
978
  },
966
979
  setup(__props) {
967
980
  const props = __props;
968
981
  return (_ctx, _cache) => {
969
- return openBlock(), createBlock(_sfc_main$f, {
970
- class: normalizeClass(_ctx.class)
982
+ return openBlock(), createBlock(_sfc_main$h, {
983
+ class: normalizeClass(_ctx.class),
984
+ cname: _ctx.cname
971
985
  }, {
972
986
  className: withCtx((scope) => [
973
987
  _ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
974
- _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$a, { key: "success" })) : createCommentVNode("", true),
988
+ _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$c, { key: "success" })) : createCommentVNode("", true),
975
989
  _ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
976
990
  _ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
977
991
  _ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
978
992
  ], 64)) : createCommentVNode("", true),
979
- _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$b, {
993
+ _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$d, {
980
994
  key: 1,
981
995
  img: _ctx.icon,
982
996
  class: normalizeClass(scope.className)
@@ -986,12 +1000,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
986
1000
  }, null, 2))
987
1001
  ]),
988
1002
  _: 1
989
- }, 8, ["class"]);
1003
+ }, 8, ["class", "cname"]);
990
1004
  };
991
1005
  }
992
1006
  });
993
1007
  const _hoisted_1$5 = ["type", "name", "focus", "state", "placeholder", "maxlength", "readonly"];
994
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1008
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
995
1009
  __name: "b-input",
996
1010
  props: {
997
1011
  type: {},
@@ -1004,7 +1018,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1004
1018
  maxlength: {},
1005
1019
  readonly: { type: Boolean },
1006
1020
  focus: {},
1007
- rule: {}
1021
+ rule: {},
1022
+ cname: {}
1008
1023
  },
1009
1024
  emits: ["update:text", "on_focus", "on_blur", "on_change"],
1010
1025
  setup(__props, { expose: __expose, emit }) {
@@ -1066,10 +1081,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1066
1081
  check
1067
1082
  });
1068
1083
  return (_ctx, _cache) => {
1069
- return openBlock(), createBlock(_sfc_main$f, {
1084
+ return openBlock(), createBlock(_sfc_main$h, {
1070
1085
  class: normalizeClass(_ctx.class),
1071
1086
  focus: _ctx.focus,
1072
- states: _ctx.states
1087
+ states: _ctx.states,
1088
+ cname: _ctx.cname
1073
1089
  }, {
1074
1090
  className: withCtx((scope) => [
1075
1091
  withDirectives(createElementVNode("input", {
@@ -1092,12 +1108,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1092
1108
  ])
1093
1109
  ]),
1094
1110
  _: 1
1095
- }, 8, ["class", "focus", "states"]);
1111
+ }, 8, ["class", "focus", "states", "cname"]);
1096
1112
  };
1097
1113
  }
1098
1114
  });
1099
1115
  const _hoisted_1$4 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
1100
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1116
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1101
1117
  __name: "b-textarea",
1102
1118
  props: {
1103
1119
  text: {},
@@ -1109,7 +1125,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1109
1125
  placeholder: {},
1110
1126
  maxlength: {},
1111
1127
  readonly: { type: Boolean },
1112
- focus: {}
1128
+ focus: {},
1129
+ cname: {}
1113
1130
  },
1114
1131
  emits: ["on_focus", "on_blur", "on_change", "update:text"],
1115
1132
  setup(__props, { emit }) {
@@ -1120,10 +1137,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1120
1137
  emit("update:text", formatText(val.value));
1121
1138
  };
1122
1139
  return (_ctx, _cache) => {
1123
- return openBlock(), createBlock(_sfc_main$f, {
1140
+ return openBlock(), createBlock(_sfc_main$h, {
1124
1141
  class: normalizeClass(_ctx.class),
1125
1142
  focus: _ctx.focus,
1126
- states: _ctx.states
1143
+ states: _ctx.states,
1144
+ cname: _ctx.cname
1127
1145
  }, {
1128
1146
  className: withCtx((scope) => [
1129
1147
  withDirectives(createElementVNode("textarea", {
@@ -1145,24 +1163,26 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1145
1163
  ])
1146
1164
  ]),
1147
1165
  _: 1
1148
- }, 8, ["class", "focus", "states"]);
1166
+ }, 8, ["class", "focus", "states", "cname"]);
1149
1167
  };
1150
1168
  }
1151
1169
  });
1152
1170
  const _hoisted_1$3 = ["muted", "src", "autoplay", "loop"];
1153
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1171
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
1154
1172
  __name: "b-video",
1155
1173
  props: {
1156
1174
  video: {},
1157
1175
  class: {},
1158
1176
  autoPlay: { type: Boolean },
1159
- loop: { type: Boolean }
1177
+ loop: { type: Boolean },
1178
+ cname: {}
1160
1179
  },
1161
1180
  setup(__props) {
1162
1181
  const $video = ref();
1163
1182
  return (_ctx, _cache) => {
1164
- return openBlock(), createBlock(_sfc_main$f, {
1165
- class: normalizeClass(_ctx.class)
1183
+ return openBlock(), createBlock(_sfc_main$h, {
1184
+ class: normalizeClass(_ctx.class),
1185
+ cname: _ctx.cname
1166
1186
  }, {
1167
1187
  className: withCtx((scope) => [
1168
1188
  createElementVNode("video", {
@@ -1176,20 +1196,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1176
1196
  }, null, 10, _hoisted_1$3)
1177
1197
  ]),
1178
1198
  _: 1
1179
- }, 8, ["class"]);
1199
+ }, 8, ["class", "cname"]);
1180
1200
  };
1181
1201
  }
1182
1202
  });
1183
1203
  const _hoisted_1$2 = ["state"];
1184
1204
  const tolerance = 2;
1185
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1205
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
1186
1206
  __name: "b-list",
1187
1207
  props: {
1188
1208
  scroll: {},
1189
1209
  class: {},
1190
1210
  state: { type: [String, Boolean] },
1191
1211
  states: {},
1192
- scrollType: {}
1212
+ scrollType: {},
1213
+ cname: {}
1193
1214
  },
1194
1215
  emits: ["on_scroll", "on_to_top", "on_to_bottom"],
1195
1216
  setup(__props, { expose: __expose, emit }) {
@@ -1231,14 +1252,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1231
1252
  watchPos();
1232
1253
  });
1233
1254
  return (_ctx, _cache) => {
1234
- return openBlock(), createBlock(_sfc_main$f, {
1255
+ return openBlock(), createBlock(_sfc_main$h, {
1235
1256
  class: normalizeClass(_ctx.class),
1236
- states: _ctx.states
1257
+ states: _ctx.states,
1258
+ cname: _ctx.cname
1237
1259
  }, {
1238
1260
  className: withCtx((scope) => [
1239
1261
  createElementVNode("div", {
1240
1262
  class: normalizeClass(scope.className),
1241
- style: { "position": "relative" },
1242
1263
  state: _ctx.state
1243
1264
  }, [
1244
1265
  createElementVNode("div", {
@@ -1254,19 +1275,20 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1254
1275
  ], 10, _hoisted_1$2)
1255
1276
  ]),
1256
1277
  _: 3
1257
- }, 8, ["class", "states"]);
1278
+ }, 8, ["class", "states", "cname"]);
1258
1279
  };
1259
1280
  }
1260
1281
  });
1261
1282
  const _hoisted_1$1 = ["state", "draggable"];
1262
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1283
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1263
1284
  __name: "b-drag",
1264
1285
  props: {
1265
1286
  class: {},
1266
1287
  dataInfo: {},
1267
1288
  dragStart: {},
1268
1289
  dragOver: {},
1269
- freeDrag: { type: Boolean }
1290
+ freeDrag: { type: Boolean },
1291
+ cname: {}
1270
1292
  },
1271
1293
  emits: ["on_drag_start", "on_drag_end", "on_drag_over", "on_drag_leave", "on_drop", "on_move"],
1272
1294
  setup(__props, { emit }) {
@@ -1368,9 +1390,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1368
1390
  bindEvent();
1369
1391
  });
1370
1392
  return (_ctx, _cache) => {
1371
- return openBlock(), createBlock(_sfc_main$f, {
1393
+ return openBlock(), createBlock(_sfc_main$h, {
1372
1394
  class: normalizeClass(_ctx.class),
1373
- states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver }
1395
+ states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
1396
+ cname: _ctx.cname
1374
1397
  }, {
1375
1398
  className: withCtx((scope) => [
1376
1399
  createElementVNode("div", {
@@ -1392,21 +1415,23 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1392
1415
  ], 14, _hoisted_1$1)
1393
1416
  ]),
1394
1417
  _: 3
1395
- }, 8, ["class", "states"]);
1418
+ }, 8, ["class", "states", "cname"]);
1396
1419
  };
1397
1420
  }
1398
1421
  });
1399
1422
  const _hoisted_1 = ["src"];
1400
- const _sfc_main = /* @__PURE__ */ defineComponent({
1423
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1401
1424
  __name: "b-webview",
1402
1425
  props: {
1403
1426
  src: {},
1404
- class: {}
1427
+ class: {},
1428
+ cname: {}
1405
1429
  },
1406
1430
  setup(__props) {
1407
1431
  return (_ctx, _cache) => {
1408
- return openBlock(), createBlock(_sfc_main$f, {
1409
- class: normalizeClass(_ctx.class)
1432
+ return openBlock(), createBlock(_sfc_main$h, {
1433
+ class: normalizeClass(_ctx.class),
1434
+ cname: _ctx.cname
1410
1435
  }, {
1411
1436
  className: withCtx((scope) => [
1412
1437
  createElementVNode("iframe", {
@@ -1416,11 +1441,222 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1416
1441
  }, null, 10, _hoisted_1)
1417
1442
  ]),
1418
1443
  _: 1
1444
+ }, 8, ["class", "cname"]);
1445
+ };
1446
+ }
1447
+ });
1448
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1449
+ __name: "btn-wid",
1450
+ props: {
1451
+ btnText: {},
1452
+ btnColor: {},
1453
+ btnRound: { type: Boolean },
1454
+ btnWidth: {},
1455
+ hotData: {},
1456
+ iconData: {}
1457
+ },
1458
+ setup(__props) {
1459
+ const props = __props;
1460
+ const setBg = (type, defaultVal) => {
1461
+ const btnColor = props["btnColor"];
1462
+ if (btnColor) {
1463
+ const bg = btnColor[type]["bg"];
1464
+ if ((bg == null ? void 0 : bg.search("linear")) === 0)
1465
+ return `bg-image-${bg}`;
1466
+ return `bg-color-${bg || defaultVal}`;
1467
+ }
1468
+ return `bg-color-${defaultVal}`;
1469
+ };
1470
+ const normal = computed(() => {
1471
+ var _a, _b, _c, _d;
1472
+ return {
1473
+ text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.normal) == null ? void 0 : _b.text) || "C777"}`,
1474
+ line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.normal) == null ? void 0 : _d.line) || "none"}`,
1475
+ bg: setBg("normal", "lgray")
1476
+ };
1477
+ });
1478
+ const hover = computed(() => {
1479
+ var _a, _b, _c, _d;
1480
+ return {
1481
+ text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.hover) == null ? void 0 : _b.text) || "dgray"}`,
1482
+ line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.hover) == null ? void 0 : _d.line) || "none"}`,
1483
+ bg: setBg("hover", "Ce7e7e7")
1484
+ };
1485
+ });
1486
+ const active = computed(() => {
1487
+ var _a, _b, _c, _d;
1488
+ return {
1489
+ text: `color-${((_b = (_a = props == null ? void 0 : props.btnColor) == null ? void 0 : _a.active) == null ? void 0 : _b.text) || "dgray"}`,
1490
+ line: `line-${((_d = (_c = props == null ? void 0 : props.btnColor) == null ? void 0 : _c.active) == null ? void 0 : _d.line) || "Cd7d7d7"}`,
1491
+ bg: setBg("active", "Ce7e7e7")
1492
+ };
1493
+ });
1494
+ return (_ctx, _cache) => {
1495
+ return openBlock(), createBlock(_sfc_main$e, mergeProps(_ctx.hotData, {
1496
+ class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${_ctx.btnRound ? "round-lg" : "round-sm"} ${_ctx.btnWidth ? "lw-" + _ctx.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
1497
+ hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
1498
+ active: `${active.value.text} ${active.value.bg} ${active.value.line}`
1499
+ }), {
1500
+ default: withCtx(() => [
1501
+ _ctx.iconData ? (openBlock(), createBlock(_sfc_main$8, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1502
+ createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
1503
+ ]),
1504
+ _: 1
1505
+ }, 16, ["class", "hover", "active"]);
1506
+ };
1507
+ }
1508
+ });
1509
+ /*!
1510
+ * vue-router v4.2.4
1511
+ * (c) 2023 Eduardo San Martin Morote
1512
+ * @license MIT
1513
+ */
1514
+ var NavigationType;
1515
+ (function(NavigationType2) {
1516
+ NavigationType2["pop"] = "pop";
1517
+ NavigationType2["push"] = "push";
1518
+ })(NavigationType || (NavigationType = {}));
1519
+ var NavigationDirection;
1520
+ (function(NavigationDirection2) {
1521
+ NavigationDirection2["back"] = "back";
1522
+ NavigationDirection2["forward"] = "forward";
1523
+ NavigationDirection2["unknown"] = "";
1524
+ })(NavigationDirection || (NavigationDirection = {}));
1525
+ Symbol(process.env.NODE_ENV !== "production" ? "navigation failure" : "");
1526
+ var NavigationFailureType;
1527
+ (function(NavigationFailureType2) {
1528
+ NavigationFailureType2[NavigationFailureType2["aborted"] = 4] = "aborted";
1529
+ NavigationFailureType2[NavigationFailureType2["cancelled"] = 8] = "cancelled";
1530
+ NavigationFailureType2[NavigationFailureType2["duplicated"] = 16] = "duplicated";
1531
+ })(NavigationFailureType || (NavigationFailureType = {}));
1532
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : "");
1533
+ Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : "");
1534
+ Symbol(process.env.NODE_ENV !== "production" ? "router" : "");
1535
+ const routeLocationKey = Symbol(process.env.NODE_ENV !== "production" ? "route location" : "");
1536
+ Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
1537
+ function useRoute() {
1538
+ return inject(routeLocationKey);
1539
+ }
1540
+ const _sfc_main = /* @__PURE__ */ defineComponent({
1541
+ __name: "app-wid",
1542
+ props: {
1543
+ spread: {},
1544
+ center: {},
1545
+ colors: {},
1546
+ round: { type: Boolean },
1547
+ keepAlive: { type: Boolean }
1548
+ },
1549
+ emits: ["on_toggle"],
1550
+ setup(__props) {
1551
+ const props = __props;
1552
+ const route = useRoute();
1553
+ const curRoute = computed(() => route.path);
1554
+ const navs = computed(() => {
1555
+ const spread = [...props.spread];
1556
+ if (props.center) {
1557
+ spread.splice(Math.floor(spread.length / 2), 0, reactive({ ...props.center, main: true }));
1558
+ }
1559
+ return spread;
1560
+ });
1561
+ return (_ctx, _cache) => {
1562
+ var _a;
1563
+ const _component_router_view = resolveComponent("router-view");
1564
+ return openBlock(), createBlock(_sfc_main$g, {
1565
+ class: normalizeClass(`max flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
1566
+ }, {
1567
+ default: withCtx(() => {
1568
+ var _a2;
1569
+ return [
1570
+ createVNode(_sfc_main$g, { class: "rel grow-1" }, {
1571
+ default: withCtx(() => [
1572
+ createVNode(_sfc_main$4, {
1573
+ scroll: { y: "auto", x: "hidden" },
1574
+ class: "abs max"
1575
+ }, {
1576
+ default: withCtx(() => [
1577
+ _ctx.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
1578
+ createVNode(_component_router_view)
1579
+ ], 1024)) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
1580
+ ]),
1581
+ _: 1
1582
+ })
1583
+ ]),
1584
+ _: 1
1585
+ }),
1586
+ createVNode(_sfc_main$g, {
1587
+ class: normalizeClass(`pcenter flex h-4d7 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"}`)
1588
+ }, {
1589
+ default: withCtx(() => [
1590
+ (openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
1591
+ return openBlock(), createBlock(_sfc_main$e, mergeProps({ key: i }, nav.hotData, {
1592
+ onOn_click: ($event) => _ctx.$emit("on_toggle", nav),
1593
+ class: "grow-1 flex rel pad-v-4-px"
1594
+ }), {
1595
+ default: withCtx(() => {
1596
+ var _a3, _b, _c, _d, _e, _f, _g, _h, _i, _j;
1597
+ return [
1598
+ nav.main ? (openBlock(), createBlock(_sfc_main$g, {
1599
+ key: 0,
1600
+ 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"}`)
1601
+ }, {
1602
+ default: withCtx(() => [
1603
+ createVNode(_sfc_main$8, mergeProps(nav.iconData, { class: "max flex-5 fsize-1d7" }), null, 16)
1604
+ ]),
1605
+ _: 2
1606
+ }, 1032, ["class"])) : (openBlock(), createBlock(_sfc_main$g, {
1607
+ key: 1,
1608
+ class: normalizeClass(`flex-column flex-5 max-w color-${((_f = (_e = _ctx.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.normal) || "mgray"}`),
1609
+ cname: ((_h = (_g = _ctx.colors) == null ? void 0 : _g.text) == null ? void 0 : _h.act) || "light",
1610
+ state: curRoute.value === nav.hotData.link ? "act" : "",
1611
+ states: {
1612
+ act: `color-${((_j = (_i = _ctx.colors) == null ? void 0 : _i.text) == null ? void 0 : _j.act) || "light"}`
1613
+ }
1614
+ }, {
1615
+ default: withCtx(() => [
1616
+ createVNode(_sfc_main$8, mergeProps(nav.iconData, { class: "w-2d7 h-2d7 trans-fast fsize-1d7" }), null, 16),
1617
+ nav.text ? (openBlock(), createBlock(_sfc_main$f, {
1618
+ key: 0,
1619
+ class: "fsize-d8"
1620
+ }, {
1621
+ default: withCtx(() => [
1622
+ createTextVNode(toDisplayString(nav.text), 1)
1623
+ ]),
1624
+ _: 2
1625
+ }, 1024)) : createCommentVNode("", true)
1626
+ ]),
1627
+ _: 2
1628
+ }, 1032, ["class", "cname", "state", "states"]))
1629
+ ];
1630
+ }),
1631
+ _: 2
1632
+ }, 1040, ["onOn_click"]);
1633
+ }), 128))
1634
+ ]),
1635
+ _: 1
1636
+ }, 8, ["class"])
1637
+ ];
1638
+ }),
1639
+ _: 1
1419
1640
  }, 8, ["class"]);
1420
1641
  };
1421
1642
  }
1422
1643
  });
1423
- const initGlobalComponents = [_sfc_main$f, _sfc_main$e, _sfc_main$d, _sfc_main$c, _sfc_main$b, _sfc_main$6, _sfc_main$3, _sfc_main$2, _sfc_main, _sfc_main$5, _sfc_main$1, _sfc_main$4];
1644
+ const initGlobalComponents = [
1645
+ _sfc_main$h,
1646
+ _sfc_main$g,
1647
+ _sfc_main$f,
1648
+ _sfc_main$e,
1649
+ _sfc_main$d,
1650
+ _sfc_main$8,
1651
+ _sfc_main$5,
1652
+ _sfc_main$4,
1653
+ _sfc_main$2,
1654
+ _sfc_main$7,
1655
+ _sfc_main$3,
1656
+ _sfc_main$6,
1657
+ _sfc_main$1,
1658
+ _sfc_main
1659
+ ];
1424
1660
  const index = {
1425
1661
  name: "btxui",
1426
1662
  install(app) {
package/dist/index.js.gz CHANGED
Binary file
@@ -1 +1,7 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define(["vue"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).btxui=t(e.vue)}(this,(function(e){"use strict";const t={pcenter:"text-align: center;",pright:"text-align: right;",pleft:"text-align: left;",pjustify:"text-align: justify;",pindent:"text-indent: 2em;",bold:"font-weight: bold;",show:"display: block;",hide:"display: none;",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"},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(),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;","select-none":"-webkit-touch-callout:none; -webkit-user-select:none; -khtml-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;","objfit-fill":"object-fit: fill;","objfit-cover":"object-fit: cover;","objfit-contain":"object-fit: contain;","objfit-none":"object-fit: none;","objfit-scaledown":"object-fit: scale-down;",color:{pro:"color"},bg:{pro:"background"},alpha:{pro:"opacity"},font:{pro:"font-family"},lh:{pro:"line-height"},z:{pro:"z-index"},line:{pro:"border-color"},origin:{pro:"transform-origin"},order:{pro:"order"},grow:{pro:"flex-grow"},basis:{pro:"flex-basis"},column:{pro:"columnCount"},lspace:{pro:"letter-spacing",unit:"rem"},w:{pro:"width",unit:"rem"},h:{pro:"height",unit:"rem"},rw:{pro:"max-width",unit:"rem"},lw:{pro:"min-width",unit:"rem"},th:{pro:"max-height",unit:"rem"},bh:{pro:"min-height",unit:"rem"},pad:{pro:"padding",unit:"rem"},mrg:{pro:"margin",unit:"rem"},fsize:{pro:"font-size",unit:"rem"},l:{pro:"left",unit:"rem"},r:{pro:"right",unit:"rem"},t:{pro:"top",unit:"rem"},b:{pro:"bottom",unit:"rem"},thick:{pro:"border-width",unit:"px"},delay:{pro:"transition-delay",unit:"s"}},o={colors:{none:"transparent",main:"#051c24",sub:"#b4967a",light:"#fff",lgray:"#eee",mgray:"#a7a7a7",dgray:"#373737",dark:"#111",blue:"#4085f3",green:"#02b9a1",yellow:"#fdba00",red:"#ec4334",neutral:"rgba(134,134,134,.17)"},append(e){this.colors={...this.colors,...e}}};var a,n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},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)))<<(c=r)|s>>>32-c,a);var s,c}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 c(e,o){var a,c,i,d,u;e[o>>5]|=128<<o%32,e[14+(o+64>>>9<<4)]=o;var p=1732584193,m=-271733879,f=-1732584194,g=271733878;for(a=0;a<e.length;a+=16)c=p,i=m,d=f,u=g,p=n(p,m,f,g,e[a],7,-680876936),g=n(g,p,m,f,e[a+1],12,-389564586),f=n(f,g,p,m,e[a+2],17,606105819),m=n(m,f,g,p,e[a+3],22,-1044525330),p=n(p,m,f,g,e[a+4],7,-176418897),g=n(g,p,m,f,e[a+5],12,1200080426),f=n(f,g,p,m,e[a+6],17,-1473231341),m=n(m,f,g,p,e[a+7],22,-45705983),p=n(p,m,f,g,e[a+8],7,1770035416),g=n(g,p,m,f,e[a+9],12,-1958414417),f=n(f,g,p,m,e[a+10],17,-42063),m=n(m,f,g,p,e[a+11],22,-1990404162),p=n(p,m,f,g,e[a+12],7,1804603682),g=n(g,p,m,f,e[a+13],12,-40341101),f=n(f,g,p,m,e[a+14],17,-1502002290),p=r(p,m=n(m,f,g,p,e[a+15],22,1236535329),f,g,e[a+1],5,-165796510),g=r(g,p,m,f,e[a+6],9,-1069501632),f=r(f,g,p,m,e[a+11],14,643717713),m=r(m,f,g,p,e[a],20,-373897302),p=r(p,m,f,g,e[a+5],5,-701558691),g=r(g,p,m,f,e[a+10],9,38016083),f=r(f,g,p,m,e[a+15],14,-660478335),m=r(m,f,g,p,e[a+4],20,-405537848),p=r(p,m,f,g,e[a+9],5,568446438),g=r(g,p,m,f,e[a+14],9,-1019803690),f=r(f,g,p,m,e[a+3],14,-187363961),m=r(m,f,g,p,e[a+8],20,1163531501),p=r(p,m,f,g,e[a+13],5,-1444681467),g=r(g,p,m,f,e[a+2],9,-51403784),f=r(f,g,p,m,e[a+7],14,1735328473),p=l(p,m=r(m,f,g,p,e[a+12],20,-1926607734),f,g,e[a+5],4,-378558),g=l(g,p,m,f,e[a+8],11,-2022574463),f=l(f,g,p,m,e[a+11],16,1839030562),m=l(m,f,g,p,e[a+14],23,-35309556),p=l(p,m,f,g,e[a+1],4,-1530992060),g=l(g,p,m,f,e[a+4],11,1272893353),f=l(f,g,p,m,e[a+7],16,-155497632),m=l(m,f,g,p,e[a+10],23,-1094730640),p=l(p,m,f,g,e[a+13],4,681279174),g=l(g,p,m,f,e[a],11,-358537222),f=l(f,g,p,m,e[a+3],16,-722521979),m=l(m,f,g,p,e[a+6],23,76029189),p=l(p,m,f,g,e[a+9],4,-640364487),g=l(g,p,m,f,e[a+12],11,-421815835),f=l(f,g,p,m,e[a+15],16,530742520),p=s(p,m=l(m,f,g,p,e[a+2],23,-995338651),f,g,e[a],6,-198630844),g=s(g,p,m,f,e[a+7],10,1126891415),f=s(f,g,p,m,e[a+14],15,-1416354905),m=s(m,f,g,p,e[a+5],21,-57434055),p=s(p,m,f,g,e[a+12],6,1700485571),g=s(g,p,m,f,e[a+3],10,-1894986606),f=s(f,g,p,m,e[a+10],15,-1051523),m=s(m,f,g,p,e[a+1],21,-2054922799),p=s(p,m,f,g,e[a+8],6,1873313359),g=s(g,p,m,f,e[a+15],10,-30611744),f=s(f,g,p,m,e[a+6],15,-1560198380),m=s(m,f,g,p,e[a+13],21,1309151649),p=s(p,m,f,g,e[a+4],6,-145523070),g=s(g,p,m,f,e[a+11],10,-1120210379),f=s(f,g,p,m,e[a+2],15,718787259),m=s(m,f,g,p,e[a+9],21,-343485551),p=t(p,c),m=t(m,i),f=t(f,d),g=t(g,u);return[p,m,f,g]}function i(e){var t,o="",a=32*e.length;for(t=0;t<a;t+=8)o+=String.fromCharCode(e[t>>5]>>>t%32&255);return o}function d(e){var t,o=[];for(o[(e.length>>2)-1]=void 0,t=0;t<o.length;t+=1)o[t]=0;var a=8*e.length;for(t=0;t<a;t+=8)o[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return o}function u(e){var t,o,a="0123456789abcdef",n="";for(o=0;o<e.length;o+=1)t=e.charCodeAt(o),n+=a.charAt(t>>>4&15)+a.charAt(15&t);return n}function p(e){return unescape(encodeURIComponent(e))}function m(e){return function(e){return i(c(d(e),8*e.length))}(p(e))}function f(e,t){return function(e,t){var o,a,n=d(e),r=[],l=[];for(r[15]=l[15]=void 0,n.length>16&&(n=c(n,8*e.length)),o=0;o<16;o+=1)r[o]=909522486^n[o],l[o]=1549556828^n[o];return a=c(r.concat(d(t)),512+8*t.length),i(c(l.concat(a),640))}(p(e),p(t))}function g(e,t,o){return t?o?f(t,e):u(f(t,e)):o?m(e):u(m(e))}a.exports?a.exports=g:e.md5=g}(n);const l=r,s="BTXUIGlobal",c=e.defineComponent({__name:"b-style",props:{class:{},focus:{},hover:{},active:{},states:{},cname:{}},setup(a){const n=a,r=e.ref(),c=e.ref(""),i=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&&0===e.search("_"))return e.substr(1);const t=(e=>{if(!isNaN(1*e)||"auto"===e)return e;let t=e;return/^f\d+$/.test(t)&&(t=-1*t.substr(1)),/^\d*d\d+$/.test(t)&&(t=1*t.replace("d",".")),!isNaN(t)&&t})(e);if(!1!==t)return t;const o=u(e);if(!1!==o)return o;const a=(e=>{if(e&&0===e.search("linear")){const t=e.split("_"),[o,a,...n]=t;return`${o}-gradient(${a}deg,${n.map((e=>u(e))).join(",")})`}return!1})(e);return!1!==a&&a},m=e=>{if(!e)return"";return e.split(" ").reduce(((e,o)=>{const a=(e=>{let o=t[e];if(o)return o;const a=e.split("-"),n={l:["left"],t:["top"],r:["right"],b:["bottom"],v:["top","bottom"],h:["left","right"]};let[r,l,s,c]=a;if(o=t[r],o){let e=p(l);if(e)return`${o.pro}: ${e}${s||o.unit||""}`;if(e=p(s),e){const t=n[l];if(t){let a="";return t.forEach((t=>{a+=`${o.pro}-${t}: ${e}${c||o.unit||""};`})),a}return`${o.pro}-${l}: ${e}${c||o.unit||""}`}}})(o);return a?e+=`${a};`:""}),"").replace(/;+/g,";")},f=(e,t)=>{const o=m(t);o&&(i.value.includes(e)||(i.value.push(e),d[e]=o))};return e.onMounted((()=>{if(n.class){(()=>{let e=document.head.querySelector(`#${s}`);e||(e=document.createElement("style"),e.setAttribute("type","text/css"),e.setAttribute("id",s),document.head.appendChild(e)),r.value=e})(),(t=n.class)&&t.split(" ").forEach((e=>{f(e,e)}));const o=((e,t)=>{const o=e.split(" ").sort(),a=`B-${l(o.join("&")+t)}`;return c.value=`${e} ${a}`,i.value.includes(a)||i.value.push(a),a})(n.class,n.cname??"");(e=>{n.focus&&f(e,n.focus)})(`${o}[focus='true']:focus`),(e=>{n.hover&&f(e,n.hover)})(`${o}[hover='true']:hover`),(e=>{n.active&&f(e,n.active)})(`${o}[active='true']:active`),e=o,n.states&&Object.keys(n.states).forEach((t=>{f(`${e}[state="${t}"]`,n.states[t])})),Object.keys(d).forEach((e=>{r.value.sheet.addRule(`.${e}`,d[e])}))}var e,t})),(t,o)=>e.renderSlot(t.$slots,"className",{className:c.value})}}),i=["state"],d=e.defineComponent({__name:"b-view",props:{class:{},state:{type:[String,Boolean]},states:{},bgImg:{},matrix:{},cname:{}},setup(t){const o=t,a=e.computed((()=>{var e,t,a,n,r,l,s,c;const i=o.bgImg?{backgroundImage:`url(${o.bgImg})`}:{},d=(null==(e=o.matrix)?void 0:e.translate)?`translate(${null==(t=o.matrix)?void 0:t.translate})`:"",u=(null==(a=o.matrix)?void 0:a.scale)?`scale(${null==(n=o.matrix)?void 0:n.scale})`:"",p=(null==(r=o.matrix)?void 0:r.rotate)?`rotate(${null==(l=o.matrix)?void 0:l.rotate})`:"",m=(null==(s=o.matrix)?void 0:s.skew)?`skew(${null==(c=o.matrix)?void 0:c.skew})`:"";return{...i,...o.matrix?{transform:`${d} ${u} ${p} ${m}`}:{}}}));return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname,states:t.states},{className:e.withCtx((o=>[e.createElementVNode("div",{class:e.normalizeClass(o.className),state:t.state,style:e.normalizeStyle(a.value)},[e.renderSlot(t.$slots,"default")],14,i)])),_:3},8,["class","cname","states"]))}}),u=["state"],p=e.defineComponent({__name:"b-text",props:{class:{},state:{type:[String,Boolean]},states:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("span",{class:e.normalizeClass(o.className),state:t.state},[e.renderSlot(t.$slots,"default")],10,u)])),_:3},8,["class","states","cname"]))}),m=["onClick","onDblclick","target","hover","state","active","href"],f=e.defineComponent({__name:"b-hot",props:{link:{},class:{},state:{type:[String,Boolean]},states:{},hover:{},active:{},forbid:{type:Boolean},download:{},anchor:{},cname:{}},emits:["on_click","on_enter","on_move","on_leave","on_dblclick"],setup(t,{emit:o}){const a=t,n=e.ref(),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")),i=e=>{if(a.anchor){const e=document.querySelector(a.anchor);e&&e.scrollIntoView({behavior:"smooth"})}!a.forbid&&o("on_click",e)},d=e=>{!a.forbid&&o("on_dblclick",e)},u=e=>{o("on_enter",e)},p=e=>{o("on_move",e)},f=e=>{o("on_leave",e)};return e.onMounted((()=>{a.download&&(n.value.download=a.download)})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:t.states,hover:t.hover,active:t.active,cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("a",{style:e.normalizeStyle(`user-select: none; cursor: ${s.value};`),ref_key:"$anchor",ref:n,onMouseenter:u,onTouchstart:u,onMousemove:p,onTouchmove:p,onMouseleave:f,onTouchend:f,onClick:e.withModifiers(i,["stop"]),onDblclick:e.withModifiers(d,["stop"]),target: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"]))}}),g=["src","alt"],h=e.defineComponent({__name:"b-img",props:{img:{},class:{},defaultSrc:{},alt:{},cname:{}},emits:["on_load"],setup(t,{emit:o}){const a=t,n=e.computed((()=>a.img)),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(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("img",{src:r.value,class:e.normalizeClass(o.className),style:{display:"block"},alt:t.alt},null,10,g)])),_:1},8,["class","cname"]))}}),v=e.defineComponent({__name:"ani-success",setup:t=>(t,o)=>(e.openBlock(),e.createBlock(d,{class:"flex-5",matrix:{translate:"0,9px",rotate:"45deg"}},{default:e.withCtx((()=>[e.createVNode(p,{class:"ani-success-part1 w-1 h-3-px bg-color-green round-sm"}),e.createVNode(p,{class:"ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px"})])),_:1}))}),b=(e,t)=>{const o=e.__vccOpts||e;for(const[a,n]of t)o[a]=n;return o};const x=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-fail-part1 w-3-px h-1d7 rel l-2-px bg-color-red round-sm"}),e.createVNode(a,{class:"ani-fail-part2 w-3-px h-1d7 rel r-1-px bg-color-red round-sm"})])),_:1})}]]);const y=b({},[["render",function(t,o){const a=e.resolveComponent("b-text"),n=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(n,{class:"flex-5",matrix:{rotate:"90deg"}},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-notic-part1 w-3-px h-3-px bg-color-blue round"}),e.createVNode(a,{class:"ani-notic-part2 w-1d3 h-3-px mrg-l-4-px bg-color-blue round-sm"})])),_:1})}]]);const k=b({},[["render",function(t,o){const a=e.resolveComponent("b-view");return e.openBlock(),e.createBlock(a,{class:"flex-5"},{default:e.withCtx((()=>[e.createVNode(a,{class:"ani-loading rel w-2d2 h-2d2 round"})])),_:1})}]]),w=e.defineComponent({__name:"b-icon",props:{icon:{},class:{},cname:{}},setup(t){const o=t;return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[0===t.icon.search("ani_")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},["ani_success"===t.icon?(e.openBlock(),e.createBlock(v,{key:"success"})):e.createCommentVNode("",!0),"ani_fail"===t.icon?(e.openBlock(),e.createBlock(x,{key:"fail"})):e.createCommentVNode("",!0),"ani_notic"===t.icon?(e.openBlock(),e.createBlock(y,{key:"notic"})):e.createCommentVNode("",!0),"ani_loading"===t.icon?(e.openBlock(),e.createBlock(k,{key:"loading"})):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),t.icon.search("/")>-1?(e.openBlock(),e.createBlock(h,{key:1,img:t.icon,class:e.normalizeClass(a.className)},null,8,["img","class"])):(e.openBlock(),e.createElementBlock("i",{key:2,class:e.normalizeClass(`ico-${o.icon} ${a.className}`)},null,2))])),_:1},8,["class","cname"]))}}),_=["type","name","focus","state","placeholder","maxlength","readonly"],C=e.defineComponent({__name:"b-input",props:{type:{},name:{},class:{},state:{type:[String,Boolean]},states:{},text:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},rule:{},cname:{}},emits:["update:text","on_focus","on_blur","on_change"],setup(t,{expose:o,emit:a}){const n=t,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())},i=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(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=>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,_),[[e.vModelDynamic,r.value]])])),_:1},8,["class","focus","states","cname"]))}}),$=["name","focus","state","placeholder","maxlength","readonly","rows"],B=e.defineComponent({__name:"b-textarea",props:{text:{},name:{},class:{},state:{type:[String,Boolean]},states:{},rows:{},placeholder:{},maxlength:{},readonly:{type:Boolean},focus:{},cname:{}},emits:["on_focus","on_blur","on_change","update:text"],setup(t,{emit:o}){const a=t,n=e.ref(a.text),r=()=>{o("update:text",n.value.replace(/[\n\r]/g,"<br>"))};return(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),focus:t.focus,states:t.states,cname:t.cname},{className:e.withCtx((a=>[e.withDirectives(e.createElementVNode("textarea",{class:e.normalizeClass(a.className),onFocus:o[0]||(o[0]=e=>t.$emit("on_focus",e)),onBlur:o[1]||(o[1]=e=>t.$emit("on_blur",e)),onChange:o[2]||(o[2]=e=>t.$emit("on_change",e)),onInput: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,$),[[e.vModelText,n.value]])])),_:1},8,["class","focus","states","cname"]))}}),N=["muted","src","autoplay","loop"],z=e.defineComponent({__name:"b-video",props:{video:{},class:{},autoPlay:{type:Boolean},loop:{type:Boolean},cname:{}},setup(t){const o=e.ref();return(t,a)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((a=>[e.createElementVNode("video",{ref_key:"$video",ref:o,class:e.normalizeClass(a.className),muted:t.autoPlay,src:t.video,autoplay:t.autoPlay,loop:t.loop},null,10,N)])),_:1},8,["class","cname"]))}}),V=["state"],E=e.defineComponent({__name:"b-list",props:{scroll:{},class:{},state:{type:[String,Boolean]},states:{},scrollType:{},cname:{}},emits:["on_scroll","on_to_top","on_to_bottom"],setup(t,{expose:o,emit:a}){const n=t,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(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: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,V)])),_:3},8,["class","states","cname"]))}}),S=["state","draggable"],j=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),i=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=""},g=e=>{o("on_drop",e.dataTransfer.getData("info"),e),r.value=""};let h;const v=e.reactive({x:0,y:0}),b=e.reactive({width:0,height:0}),x=e=>{e.preventDefault(),h||(h=n.value.offsetParent,h.onmousemove=y,h.ontouchmove=y,h.onmouseleave=k,h.onmouseup=k,h.ontouchend=k,Array.prototype.forEach.call(h.children,(e=>{e!==n.value&&(e.style.pointerEvents="none")})),b.width=n.value.offsetWidth,b.height=n.value.offsetHeight),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;i.x=Math.max(0,t),i.y=Math.max(0,a),i.x=Math.min(i.x+b.width,h.offsetWidth)-b.width,i.y=Math.min(i.y+b.height,h.offsetHeight)-b.height,o("on_move",i,e)},k=()=>{s.value&&(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=x,e.ontouchstart=x):(e.ondragstart=d,e.ondrag=u,e.ondragend=p,e.ondragover=m,e.ondragleave=f,e.ondrop=g)})()})),(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),states:{dragStart:t.dragStart,dragOver:t.dragOver},cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("div",{style:e.normalizeStyle({cursor:t.dragOver?"default":"move",visibility:l.value?"hidden":"visible",position:t.freeDrag?"absolute":"relative",left:0,top:0,transform:`translate(${i.x}px, ${i.y}px)`}),ref_key:"$el",ref:n,class:e.normalizeClass(o.className),state:r.value,draggable:!!t.dragStart},[e.renderSlot(t.$slots,"default")],14,S)])),_:3},8,["class","states","cname"]))}}),D=["src"],T=e.defineComponent({__name:"b-webview",props:{src:{},class:{},cname:{}},setup:t=>(t,o)=>(e.openBlock(),e.createBlock(c,{class:e.normalizeClass(t.class),cname:t.cname},{className:e.withCtx((o=>[e.createElementVNode("iframe",{class:e.normalizeClass(o.className),frameborder:"0",src:t.src},null,10,D)])),_:1},8,["class","cname"]))}),M=e.defineComponent({__name:"btn-wid",props:{btnText:{},btnColor:{},btnRound:{type:Boolean},btnWidth:{},hotData:{},iconData:{}},setup(t){const o=t,a=(e,t)=>{const a=o.btnColor;if(a){const o=a[e].bg;return 0===(null==o?void 0:o.search("linear"))?`bg-image-${o}`:`bg-color-${o||t}`}return`bg-color-${t}`},n=e.computed((()=>{var e,t,n,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(w,e.mergeProps({key:0},t.iconData,{class:"mrg-r-d7"}),null,16)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.btnText),1)])),_:1},16,["class","hover","active"]))}});
2
+ /*!
3
+ * vue-router v4.2.4
4
+ * (c) 2023 Eduardo San Martin Morote
5
+ * @license MIT
6
+ */
7
+ var O,I,A,P,R,W;(I=O||(O={})).pop="pop",I.push="push",(P=A||(A={})).back="back",P.forward="forward",P.unknown="",Symbol("production"!==process.env.NODE_ENV?"navigation failure":""),(W=R||(R={}))[W.aborted=4]="aborted",W[W.cancelled=8]="cancelled",W[W.duplicated=16]="duplicated",Symbol("production"!==process.env.NODE_ENV?"router view location matched":""),Symbol("production"!==process.env.NODE_ENV?"router view depth":""),Symbol("production"!==process.env.NODE_ENV?"router":"");const q=Symbol("production"!==process.env.NODE_ENV?"route location":"");Symbol("production"!==process.env.NODE_ENV?"router view location":"");const F=e.defineComponent({__name:"app-wid",props:{spread:{},center:{},colors:{},round:{type:Boolean},keepAlive:{type:Boolean}},emits:["on_toggle"],setup(t){const o=t,a=e.inject(q),n=e.computed((()=>a.path)),r=e.computed((()=>{const t=[...o.spread];return o.center&&t.splice(Math.floor(t.length/2),0,e.reactive({...o.center,main:!0})),t}));return(t,o)=>{var a;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==(a=t.colors)?void 0:a.bg)||"none"}`)},{default:e.withCtx((()=>{var o;return[e.createVNode(d,{class:"rel grow-1"},{default:e.withCtx((()=>[e.createVNode(E,{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(r.value,((o,a)=>(e.openBlock(),e.createBlock(f,e.mergeProps({key:a},o.hotData,{onOn_click:e=>t.$emit("on_toggle",o),class:"grow-1 flex rel pad-v-4-px"}),{default:e.withCtx((()=>{var a,r,l,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==(r=null==(a=t.colors)?void 0:a.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(w,e.mergeProps(o.iconData,{class:"max flex-5 fsize-1d7"}),null,16)])),_:2},1032,["class"])):(e.openBlock(),e.createBlock(d,{key:1,class:e.normalizeClass(`flex-column flex-5 max-w color-${(null==(i=null==(c=t.colors)?void 0:c.text)?void 0:i.normal)||"mgray"}`),cname:(null==(m=null==(u=t.colors)?void 0:u.text)?void 0:m.act)||"light",state:n.value===o.hotData.link?"act":"",states:{act:`color-${(null==(g=null==(f=t.colors)?void 0:f.text)?void 0:g.act)||"light"}`}},{default:e.withCtx((()=>[e.createVNode(w,e.mergeProps(o.iconData,{class:"w-2d7 h-2d7 trans-fast fsize-1d7"}),null,16),o.text?(e.openBlock(),e.createBlock(p,{key:0,class:"fsize-d8"},{default:e.withCtx((()=>[e.createTextVNode(e.toDisplayString(o.text),1)])),_:2},1024)):e.createCommentVNode("",!0)])),_:2},1032,["class","cname","state","states"]))]})),_:2},1040,["onOn_click"])))),128))])),_:1},8,["class"])]})),_:1},8,["class"])}}}),H=[c,d,p,f,h,w,z,E,T,C,j,B,M,F];return{name:"btxui",install(e){H.forEach((t=>{e.component(t.__name,t)}))}}}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "btxui",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {