btxui 1.0.85 → 1.0.88
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 +446 -270
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount, inject, unref,
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount, inject, unref, provide, normalizeProps } from "vue";
|
|
2
2
|
const theme = {
|
|
3
3
|
// 预置主题色
|
|
4
4
|
colors: {
|
|
@@ -172,6 +172,9 @@ const prestyles = {
|
|
|
172
172
|
"dark-sm": `filter: brightness(80%);`,
|
|
173
173
|
"dark-md": `filter: brightness(50%);`,
|
|
174
174
|
"dark-lg": `filter: brightness(20%);`,
|
|
175
|
+
"light-sm": `filter: brightness(120%);`,
|
|
176
|
+
"light-md": `filter: brightness(150%);`,
|
|
177
|
+
"light-lg": `filter: brightness(200%);`,
|
|
175
178
|
// 纯度滤镜
|
|
176
179
|
"gray-no": `filter: grayscale(0%);`,
|
|
177
180
|
"gray-sm": `filter: grayscale(40%);`,
|
|
@@ -554,7 +557,7 @@ var md5$1 = {
|
|
|
554
557
|
})(md5$1);
|
|
555
558
|
const md5 = md5Exports;
|
|
556
559
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
557
|
-
const _sfc_main$
|
|
560
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
558
561
|
__name: "b-style",
|
|
559
562
|
props: {
|
|
560
563
|
class: {},
|
|
@@ -799,7 +802,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
799
802
|
}
|
|
800
803
|
});
|
|
801
804
|
const _hoisted_1$c = ["data-ani-states", "state"];
|
|
802
|
-
const _sfc_main$
|
|
805
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
803
806
|
__name: "b-view",
|
|
804
807
|
props: {
|
|
805
808
|
class: {},
|
|
@@ -811,8 +814,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
811
814
|
prevent: { type: Boolean }
|
|
812
815
|
},
|
|
813
816
|
emits: ["on_aniEnd"],
|
|
814
|
-
setup(__props, { emit }) {
|
|
817
|
+
setup(__props, { emit: __emit }) {
|
|
815
818
|
const props = __props;
|
|
819
|
+
const emit = __emit;
|
|
816
820
|
const $el = ref();
|
|
817
821
|
const state = computed(() => props.state);
|
|
818
822
|
let lastAni;
|
|
@@ -840,11 +844,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
840
844
|
}
|
|
841
845
|
});
|
|
842
846
|
return (_ctx, _cache) => {
|
|
843
|
-
return openBlock(), createBlock(_sfc_main$
|
|
844
|
-
class: normalizeClass(
|
|
845
|
-
cname:
|
|
846
|
-
states:
|
|
847
|
-
matrix:
|
|
847
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
848
|
+
class: normalizeClass(__props.class),
|
|
849
|
+
cname: __props.cname,
|
|
850
|
+
states: __props.states,
|
|
851
|
+
matrix: __props.matrix
|
|
848
852
|
}, {
|
|
849
853
|
className: withCtx((scope) => [
|
|
850
854
|
createElementVNode("div", {
|
|
@@ -865,7 +869,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
865
869
|
}
|
|
866
870
|
});
|
|
867
871
|
const _hoisted_1$b = ["state"];
|
|
868
|
-
const _sfc_main$
|
|
872
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
869
873
|
__name: "b-text",
|
|
870
874
|
props: {
|
|
871
875
|
class: {},
|
|
@@ -875,15 +879,15 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
875
879
|
},
|
|
876
880
|
setup(__props) {
|
|
877
881
|
return (_ctx, _cache) => {
|
|
878
|
-
return openBlock(), createBlock(_sfc_main$
|
|
879
|
-
class: normalizeClass(
|
|
880
|
-
states:
|
|
881
|
-
cname:
|
|
882
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
883
|
+
class: normalizeClass(__props.class),
|
|
884
|
+
states: __props.states,
|
|
885
|
+
cname: __props.cname
|
|
882
886
|
}, {
|
|
883
887
|
className: withCtx((scope) => [
|
|
884
888
|
createElementVNode("span", {
|
|
885
889
|
class: normalizeClass(scope.className),
|
|
886
|
-
state:
|
|
890
|
+
state: __props.state
|
|
887
891
|
}, [
|
|
888
892
|
renderSlot(_ctx.$slots, "default")
|
|
889
893
|
], 10, _hoisted_1$b)
|
|
@@ -893,7 +897,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
893
897
|
};
|
|
894
898
|
}
|
|
895
899
|
});
|
|
896
|
-
const _sfc_main$
|
|
900
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
897
901
|
__name: "b-hot",
|
|
898
902
|
props: {
|
|
899
903
|
link: {},
|
|
@@ -910,10 +914,11 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
910
914
|
touchDuration: {},
|
|
911
915
|
eventProxy: { type: Boolean }
|
|
912
916
|
},
|
|
913
|
-
emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick", "on_longTouch"],
|
|
914
|
-
setup(__props, { emit }) {
|
|
915
|
-
const props = __props;
|
|
917
|
+
emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick", "on_longTouch", "on_transend"],
|
|
918
|
+
setup(__props, { emit: __emit }) {
|
|
916
919
|
const { proxy } = getCurrentInstance();
|
|
920
|
+
const props = __props;
|
|
921
|
+
const emit = __emit;
|
|
917
922
|
const $anchor = ref();
|
|
918
923
|
const target = ref("");
|
|
919
924
|
let routeLink;
|
|
@@ -986,15 +991,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
986
991
|
$anchor.value.download = props.download;
|
|
987
992
|
});
|
|
988
993
|
return (_ctx, _cache) => {
|
|
989
|
-
return openBlock(), createBlock(_sfc_main$
|
|
990
|
-
class: normalizeClass(
|
|
991
|
-
states:
|
|
992
|
-
hover:
|
|
993
|
-
active:
|
|
994
|
-
cname:
|
|
994
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
995
|
+
class: normalizeClass(__props.class),
|
|
996
|
+
states: __props.states,
|
|
997
|
+
hover: __props.hover,
|
|
998
|
+
active: __props.active,
|
|
999
|
+
cname: __props.cname
|
|
995
1000
|
}, {
|
|
996
1001
|
className: withCtx((scope) => [
|
|
997
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
1002
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.eventProxy ? "div" : "a"), {
|
|
998
1003
|
style: normalizeStyle(`user-select: none; cursor: ${cursor.value};`),
|
|
999
1004
|
ref_key: "$anchor",
|
|
1000
1005
|
ref: $anchor,
|
|
@@ -1006,18 +1011,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1006
1011
|
onTouchend: leave,
|
|
1007
1012
|
onClick: click,
|
|
1008
1013
|
onDblclick: withModifiers(dblclick, ["stop"]),
|
|
1014
|
+
onTransitionend: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("on_transend", $event)),
|
|
1009
1015
|
target: target.value,
|
|
1010
1016
|
class: normalizeClass(scope.className),
|
|
1011
|
-
hover:
|
|
1012
|
-
state:
|
|
1013
|
-
active:
|
|
1017
|
+
hover: __props.hover ? true : "",
|
|
1018
|
+
state: __props.state,
|
|
1019
|
+
active: __props.active ? true : "",
|
|
1014
1020
|
href: url.value
|
|
1015
1021
|
}, {
|
|
1016
1022
|
default: withCtx(() => [
|
|
1017
1023
|
renderSlot(_ctx.$slots, "default")
|
|
1018
1024
|
]),
|
|
1019
|
-
_:
|
|
1020
|
-
},
|
|
1025
|
+
_: 3
|
|
1026
|
+
}, 40, ["style", "target", "class", "hover", "state", "active", "href"]))
|
|
1021
1027
|
]),
|
|
1022
1028
|
_: 3
|
|
1023
1029
|
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
@@ -1025,7 +1031,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
1025
1031
|
}
|
|
1026
1032
|
});
|
|
1027
1033
|
const _hoisted_1$a = ["src", "state", "alt"];
|
|
1028
|
-
const _sfc_main$
|
|
1034
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
1029
1035
|
__name: "b-img",
|
|
1030
1036
|
props: {
|
|
1031
1037
|
img: {},
|
|
@@ -1038,9 +1044,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1038
1044
|
cname: {}
|
|
1039
1045
|
},
|
|
1040
1046
|
emits: ["on_load"],
|
|
1041
|
-
setup(__props, { emit }) {
|
|
1047
|
+
setup(__props, { emit: __emit }) {
|
|
1042
1048
|
const props = __props;
|
|
1043
1049
|
const img = computed(() => props.img);
|
|
1050
|
+
const emit = __emit;
|
|
1044
1051
|
const src = ref("");
|
|
1045
1052
|
const setSrc = () => {
|
|
1046
1053
|
if (props.defaultSrc)
|
|
@@ -1057,19 +1064,19 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1057
1064
|
setSrc();
|
|
1058
1065
|
});
|
|
1059
1066
|
return (_ctx, _cache) => {
|
|
1060
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1061
|
-
class: normalizeClass(
|
|
1062
|
-
cname:
|
|
1063
|
-
states:
|
|
1064
|
-
matrix:
|
|
1067
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1068
|
+
class: normalizeClass(__props.class),
|
|
1069
|
+
cname: __props.cname,
|
|
1070
|
+
states: __props.states,
|
|
1071
|
+
matrix: __props.matrix
|
|
1065
1072
|
}, {
|
|
1066
1073
|
className: withCtx((scope) => [
|
|
1067
1074
|
createElementVNode("img", {
|
|
1068
1075
|
src: src.value,
|
|
1069
1076
|
class: normalizeClass(scope.className),
|
|
1070
|
-
state:
|
|
1077
|
+
state: __props.state,
|
|
1071
1078
|
style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
|
|
1072
|
-
alt:
|
|
1079
|
+
alt: __props.alt
|
|
1073
1080
|
}, null, 14, _hoisted_1$a)
|
|
1074
1081
|
]),
|
|
1075
1082
|
_: 1
|
|
@@ -1077,17 +1084,17 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1077
1084
|
};
|
|
1078
1085
|
}
|
|
1079
1086
|
});
|
|
1080
|
-
const _sfc_main$
|
|
1087
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1081
1088
|
__name: "ani-success",
|
|
1082
1089
|
setup(__props) {
|
|
1083
1090
|
return (_ctx, _cache) => {
|
|
1084
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1091
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1085
1092
|
class: "flex-5",
|
|
1086
1093
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
1087
1094
|
}, {
|
|
1088
1095
|
default: withCtx(() => [
|
|
1089
|
-
createVNode(_sfc_main$
|
|
1090
|
-
createVNode(_sfc_main$
|
|
1096
|
+
createVNode(_sfc_main$s, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
1097
|
+
createVNode(_sfc_main$s, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
1091
1098
|
]),
|
|
1092
1099
|
_: 1
|
|
1093
1100
|
});
|
|
@@ -1103,7 +1110,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1103
1110
|
}
|
|
1104
1111
|
return target;
|
|
1105
1112
|
};
|
|
1106
|
-
const _sfc_main$
|
|
1113
|
+
const _sfc_main$o = {};
|
|
1107
1114
|
function _sfc_render$2(_ctx, _cache) {
|
|
1108
1115
|
const _component_b_text = resolveComponent("b-text");
|
|
1109
1116
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1115,9 +1122,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
1115
1122
|
_: 1
|
|
1116
1123
|
});
|
|
1117
1124
|
}
|
|
1118
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1125
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$2]]);
|
|
1119
1126
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
1120
|
-
const _sfc_main$
|
|
1127
|
+
const _sfc_main$n = {};
|
|
1121
1128
|
function _sfc_render$1(_ctx, _cache) {
|
|
1122
1129
|
const _component_b_text = resolveComponent("b-text");
|
|
1123
1130
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1132,9 +1139,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
1132
1139
|
_: 1
|
|
1133
1140
|
});
|
|
1134
1141
|
}
|
|
1135
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1142
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$1]]);
|
|
1136
1143
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
1137
|
-
const _sfc_main$
|
|
1144
|
+
const _sfc_main$m = {};
|
|
1138
1145
|
function _sfc_render(_ctx, _cache) {
|
|
1139
1146
|
const _component_b_view = resolveComponent("b-view");
|
|
1140
1147
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -1144,9 +1151,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
1144
1151
|
_: 1
|
|
1145
1152
|
});
|
|
1146
1153
|
}
|
|
1147
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1154
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render]]);
|
|
1148
1155
|
const _hoisted_1$9 = ["state"];
|
|
1149
|
-
const _sfc_main$
|
|
1156
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
1150
1157
|
__name: "b-icon",
|
|
1151
1158
|
props: {
|
|
1152
1159
|
icon: {},
|
|
@@ -1158,28 +1165,28 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1158
1165
|
setup(__props) {
|
|
1159
1166
|
const props = __props;
|
|
1160
1167
|
return (_ctx, _cache) => {
|
|
1161
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1162
|
-
class: normalizeClass(
|
|
1163
|
-
states:
|
|
1164
|
-
cname:
|
|
1168
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1169
|
+
class: normalizeClass(__props.class),
|
|
1170
|
+
states: __props.states,
|
|
1171
|
+
cname: __props.cname
|
|
1165
1172
|
}, {
|
|
1166
1173
|
className: withCtx((scope) => [
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1174
|
+
__props.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1175
|
+
__props.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$p, { key: "success" })) : createCommentVNode("", true),
|
|
1176
|
+
__props.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1177
|
+
__props.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1178
|
+
__props.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1172
1179
|
], 64)) : createCommentVNode("", true),
|
|
1173
|
-
|
|
1180
|
+
__props.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$t, {
|
|
1174
1181
|
key: 1,
|
|
1175
|
-
"bg-img":
|
|
1176
|
-
states:
|
|
1177
|
-
class: normalizeClass(
|
|
1178
|
-
state:
|
|
1182
|
+
"bg-img": __props.icon,
|
|
1183
|
+
states: __props.states,
|
|
1184
|
+
class: normalizeClass(__props.class),
|
|
1185
|
+
state: __props.state
|
|
1179
1186
|
}, null, 8, ["bg-img", "states", "class", "state"])) : (openBlock(), createElementBlock("i", {
|
|
1180
1187
|
key: 2,
|
|
1181
1188
|
class: normalizeClass(`ico-${props.icon} ${scope.className}`),
|
|
1182
|
-
state:
|
|
1189
|
+
state: __props.state
|
|
1183
1190
|
}, null, 10, _hoisted_1$9))
|
|
1184
1191
|
]),
|
|
1185
1192
|
_: 1
|
|
@@ -1188,8 +1195,8 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1188
1195
|
}
|
|
1189
1196
|
});
|
|
1190
1197
|
const _hoisted_1$8 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
|
|
1191
|
-
const _hoisted_2$
|
|
1192
|
-
const _sfc_main$
|
|
1198
|
+
const _hoisted_2$2 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
|
|
1199
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1193
1200
|
__name: "b-input",
|
|
1194
1201
|
props: {
|
|
1195
1202
|
type: {},
|
|
@@ -1207,8 +1214,9 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1207
1214
|
aspectHeight: { type: Boolean }
|
|
1208
1215
|
},
|
|
1209
1216
|
emits: ["update:text", "on_focus", "on_blur", "on_change", "on_input", "multiline"],
|
|
1210
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1217
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1211
1218
|
const props = __props;
|
|
1219
|
+
const emit = __emit;
|
|
1212
1220
|
const preset_rules = {
|
|
1213
1221
|
required: {
|
|
1214
1222
|
regexp: /[\w\.\-_\u4e00-\u9fa5]+/,
|
|
@@ -1307,18 +1315,18 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1307
1315
|
const _component_b_icon = resolveComponent("b-icon");
|
|
1308
1316
|
const _component_b_hot = resolveComponent("b-hot");
|
|
1309
1317
|
const _component_b_view = resolveComponent("b-view");
|
|
1310
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1311
|
-
class: normalizeClass(
|
|
1312
|
-
focus:
|
|
1313
|
-
states:
|
|
1314
|
-
cname:
|
|
1318
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1319
|
+
class: normalizeClass(__props.class),
|
|
1320
|
+
focus: __props.focus,
|
|
1321
|
+
states: __props.states,
|
|
1322
|
+
cname: __props.cname
|
|
1315
1323
|
}, {
|
|
1316
1324
|
className: withCtx((scope) => [
|
|
1317
1325
|
createVNode(_component_b_view, { class: "flex-4 rel" }, {
|
|
1318
1326
|
default: withCtx(() => {
|
|
1319
1327
|
var _a;
|
|
1320
1328
|
return [
|
|
1321
|
-
|
|
1329
|
+
__props.aspectHeight ? (openBlock(), createElementBlock("div", {
|
|
1322
1330
|
key: 0,
|
|
1323
1331
|
class: normalizeClass(scope.className),
|
|
1324
1332
|
contenteditable: "",
|
|
@@ -1326,16 +1334,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1326
1334
|
onBlur: blurEvent,
|
|
1327
1335
|
onChange: change,
|
|
1328
1336
|
onInput: input2,
|
|
1329
|
-
type:
|
|
1337
|
+
type: __props.type,
|
|
1330
1338
|
ref_key: "$input",
|
|
1331
1339
|
ref: $input,
|
|
1332
1340
|
style: { "outline": "none" },
|
|
1333
|
-
name:
|
|
1334
|
-
"focus-state":
|
|
1335
|
-
state:
|
|
1336
|
-
placeholder:
|
|
1337
|
-
maxlength:
|
|
1338
|
-
readonly:
|
|
1341
|
+
name: __props.name,
|
|
1342
|
+
"focus-state": __props.focus ? "true" : "",
|
|
1343
|
+
state: __props.state,
|
|
1344
|
+
placeholder: __props.placeholder,
|
|
1345
|
+
maxlength: __props.maxlength,
|
|
1346
|
+
readonly: __props.readonly,
|
|
1339
1347
|
autocomplete: "off"
|
|
1340
1348
|
}, toDisplayString(val2.value), 43, _hoisted_1$8)) : withDirectives((openBlock(), createElementBlock("input", {
|
|
1341
1349
|
key: 1,
|
|
@@ -1345,21 +1353,21 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1345
1353
|
onChange: change,
|
|
1346
1354
|
onInput: input,
|
|
1347
1355
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => val.value = $event),
|
|
1348
|
-
type:
|
|
1356
|
+
type: __props.type,
|
|
1349
1357
|
ref_key: "$input",
|
|
1350
1358
|
ref: $input,
|
|
1351
1359
|
style: { "outline": "none" },
|
|
1352
|
-
name:
|
|
1353
|
-
"focus-state":
|
|
1354
|
-
state:
|
|
1355
|
-
placeholder:
|
|
1356
|
-
maxlength:
|
|
1357
|
-
readonly:
|
|
1360
|
+
name: __props.name,
|
|
1361
|
+
"focus-state": __props.focus ? "true" : "",
|
|
1362
|
+
state: __props.state,
|
|
1363
|
+
placeholder: __props.placeholder,
|
|
1364
|
+
maxlength: __props.maxlength,
|
|
1365
|
+
readonly: __props.readonly,
|
|
1358
1366
|
autocomplete: "off"
|
|
1359
|
-
}, null, 42, _hoisted_2$
|
|
1367
|
+
}, null, 42, _hoisted_2$2)), [
|
|
1360
1368
|
[vModelDynamic, val.value]
|
|
1361
1369
|
]),
|
|
1362
|
-
!
|
|
1370
|
+
!__props.readonly && !__props.aspectHeight ? (openBlock(), createBlock(_component_b_hot, {
|
|
1363
1371
|
key: 2,
|
|
1364
1372
|
onOn_click: clear,
|
|
1365
1373
|
class: "abs r-1 trans-fast",
|
|
@@ -1389,7 +1397,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1389
1397
|
}
|
|
1390
1398
|
});
|
|
1391
1399
|
const _hoisted_1$7 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1392
|
-
const _sfc_main$
|
|
1400
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1393
1401
|
__name: "b-textarea",
|
|
1394
1402
|
props: {
|
|
1395
1403
|
text: {},
|
|
@@ -1405,19 +1413,20 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1405
1413
|
cname: {}
|
|
1406
1414
|
},
|
|
1407
1415
|
emits: ["on_focus", "on_blur", "on_change", "update:text"],
|
|
1408
|
-
setup(__props, { emit }) {
|
|
1416
|
+
setup(__props, { emit: __emit }) {
|
|
1409
1417
|
const props = __props;
|
|
1418
|
+
const emit = __emit;
|
|
1410
1419
|
const val = ref(props.text);
|
|
1411
1420
|
const formatText = (text) => text.replace(/[\n\r]/g, "<br>");
|
|
1412
1421
|
const inputText = () => {
|
|
1413
1422
|
emit("update:text", formatText(val.value));
|
|
1414
1423
|
};
|
|
1415
1424
|
return (_ctx, _cache) => {
|
|
1416
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1417
|
-
class: normalizeClass(
|
|
1418
|
-
focus:
|
|
1419
|
-
states:
|
|
1420
|
-
cname:
|
|
1425
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1426
|
+
class: normalizeClass(__props.class),
|
|
1427
|
+
focus: __props.focus,
|
|
1428
|
+
states: __props.states,
|
|
1429
|
+
cname: __props.cname
|
|
1421
1430
|
}, {
|
|
1422
1431
|
className: withCtx((scope) => [
|
|
1423
1432
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -1427,13 +1436,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1427
1436
|
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("on_change", $event)),
|
|
1428
1437
|
onInput: inputText,
|
|
1429
1438
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => val.value = $event),
|
|
1430
|
-
name:
|
|
1431
|
-
focus:
|
|
1432
|
-
state:
|
|
1433
|
-
placeholder:
|
|
1434
|
-
maxlength:
|
|
1435
|
-
readonly:
|
|
1436
|
-
rows:
|
|
1439
|
+
name: __props.name,
|
|
1440
|
+
focus: __props.focus ? true : "",
|
|
1441
|
+
state: __props.state,
|
|
1442
|
+
placeholder: __props.placeholder,
|
|
1443
|
+
maxlength: __props.maxlength,
|
|
1444
|
+
readonly: __props.readonly,
|
|
1445
|
+
rows: __props.rows || 7
|
|
1437
1446
|
}, null, 42, _hoisted_1$7), [
|
|
1438
1447
|
[vModelText, val.value]
|
|
1439
1448
|
])
|
|
@@ -1444,8 +1453,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1444
1453
|
}
|
|
1445
1454
|
});
|
|
1446
1455
|
const _hoisted_1$6 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
|
|
1447
|
-
const _hoisted_2$
|
|
1448
|
-
const _sfc_main$
|
|
1456
|
+
const _hoisted_2$1 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
|
|
1457
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1449
1458
|
__name: "b-video",
|
|
1450
1459
|
props: {
|
|
1451
1460
|
video: {},
|
|
@@ -1458,7 +1467,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1458
1467
|
customControls: { type: Boolean }
|
|
1459
1468
|
},
|
|
1460
1469
|
emits: ["on_play"],
|
|
1461
|
-
setup(__props, { emit }) {
|
|
1470
|
+
setup(__props, { emit: __emit }) {
|
|
1471
|
+
const emit = __emit;
|
|
1462
1472
|
const $video = ref();
|
|
1463
1473
|
const iconScale = ref(0);
|
|
1464
1474
|
onMounted(() => {
|
|
@@ -1488,15 +1498,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1488
1498
|
const _component_b_icon = resolveComponent("b-icon");
|
|
1489
1499
|
const _component_b_view = resolveComponent("b-view");
|
|
1490
1500
|
const _component_b_hot = resolveComponent("b-hot");
|
|
1491
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1492
|
-
class: normalizeClass(
|
|
1493
|
-
cname:
|
|
1501
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1502
|
+
class: normalizeClass(__props.class),
|
|
1503
|
+
cname: __props.cname
|
|
1494
1504
|
}, {
|
|
1495
1505
|
className: withCtx((scope) => [
|
|
1496
1506
|
createElementVNode("div", {
|
|
1497
1507
|
class: normalizeClass(`${scope.className} over-hide rel`)
|
|
1498
1508
|
}, [
|
|
1499
|
-
|
|
1509
|
+
__props.customControls ? (openBlock(), createBlock(_component_b_hot, {
|
|
1500
1510
|
key: 0,
|
|
1501
1511
|
class: "max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",
|
|
1502
1512
|
onOn_click: togglePlay,
|
|
@@ -1528,7 +1538,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1528
1538
|
]),
|
|
1529
1539
|
_: 1
|
|
1530
1540
|
}, 8, ["state"])) : createCommentVNode("", true),
|
|
1531
|
-
|
|
1541
|
+
__props.fullScreen ? (openBlock(), createElementBlock("video", {
|
|
1532
1542
|
key: 1,
|
|
1533
1543
|
ref_key: "$video",
|
|
1534
1544
|
ref: $video,
|
|
@@ -1536,12 +1546,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1536
1546
|
onPlaying: playing,
|
|
1537
1547
|
onDurationchange: playing,
|
|
1538
1548
|
class: normalizeClass(scope.className),
|
|
1539
|
-
poster:
|
|
1540
|
-
muted:
|
|
1541
|
-
src:
|
|
1542
|
-
autoplay:
|
|
1543
|
-
controls: !
|
|
1544
|
-
loop:
|
|
1549
|
+
poster: __props.poster,
|
|
1550
|
+
muted: __props.autoPlay,
|
|
1551
|
+
src: __props.video,
|
|
1552
|
+
autoplay: __props.autoPlay,
|
|
1553
|
+
controls: !__props.customControls,
|
|
1554
|
+
loop: __props.loop
|
|
1545
1555
|
}, null, 42, _hoisted_1$6)) : (openBlock(), createElementBlock("video", {
|
|
1546
1556
|
key: 2,
|
|
1547
1557
|
ref_key: "$video",
|
|
@@ -1553,13 +1563,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1553
1563
|
playsinline: "",
|
|
1554
1564
|
"x5-video-player-type": "h5-page",
|
|
1555
1565
|
class: normalizeClass(scope.className),
|
|
1556
|
-
poster:
|
|
1557
|
-
muted:
|
|
1558
|
-
src:
|
|
1559
|
-
autoplay:
|
|
1560
|
-
controls: !
|
|
1561
|
-
loop:
|
|
1562
|
-
}, null, 42, _hoisted_2$
|
|
1566
|
+
poster: __props.poster,
|
|
1567
|
+
muted: __props.autoPlay,
|
|
1568
|
+
src: __props.video,
|
|
1569
|
+
autoplay: __props.autoPlay,
|
|
1570
|
+
controls: !__props.customControls,
|
|
1571
|
+
loop: __props.loop
|
|
1572
|
+
}, null, 42, _hoisted_2$1))
|
|
1563
1573
|
], 2)
|
|
1564
1574
|
]),
|
|
1565
1575
|
_: 1
|
|
@@ -1569,7 +1579,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1569
1579
|
});
|
|
1570
1580
|
const _hoisted_1$5 = ["state"];
|
|
1571
1581
|
const tolerance = 2;
|
|
1572
|
-
const _sfc_main$
|
|
1582
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1573
1583
|
__name: "b-list",
|
|
1574
1584
|
props: {
|
|
1575
1585
|
scroll: {},
|
|
@@ -1580,8 +1590,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1580
1590
|
cname: {}
|
|
1581
1591
|
},
|
|
1582
1592
|
emits: ["on_scroll", "on_to_top", "on_to_bottom"],
|
|
1583
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1593
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1584
1594
|
const props = __props;
|
|
1595
|
+
const emit = __emit;
|
|
1585
1596
|
const $list = ref();
|
|
1586
1597
|
const scrollTypeClass = computed(() => {
|
|
1587
1598
|
if (props.scrollType)
|
|
@@ -1632,21 +1643,21 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1632
1643
|
watchPos();
|
|
1633
1644
|
});
|
|
1634
1645
|
return (_ctx, _cache) => {
|
|
1635
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1636
|
-
class: normalizeClass(
|
|
1637
|
-
states:
|
|
1638
|
-
cname:
|
|
1646
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1647
|
+
class: normalizeClass(__props.class),
|
|
1648
|
+
states: __props.states,
|
|
1649
|
+
cname: __props.cname
|
|
1639
1650
|
}, {
|
|
1640
1651
|
className: withCtx((scope) => [
|
|
1641
1652
|
createElementVNode("div", {
|
|
1642
1653
|
class: normalizeClass(scope.className),
|
|
1643
|
-
state:
|
|
1654
|
+
state: __props.state
|
|
1644
1655
|
}, [
|
|
1645
1656
|
createElementVNode("div", {
|
|
1646
1657
|
ref_key: "$list",
|
|
1647
1658
|
ref: $list,
|
|
1648
1659
|
class: normalizeClass(scrollTypeClass.value),
|
|
1649
|
-
style: normalizeStyle(`overflow-x: ${
|
|
1660
|
+
style: normalizeStyle(`overflow-x: ${__props.scroll.x}; overflow-y: ${__props.scroll.y}; width: 100%; height: 100%;`),
|
|
1650
1661
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
1651
1662
|
}, ["stop"]))
|
|
1652
1663
|
}, [
|
|
@@ -1660,7 +1671,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1660
1671
|
}
|
|
1661
1672
|
});
|
|
1662
1673
|
const _hoisted_1$4 = ["state", "draggable"];
|
|
1663
|
-
const _sfc_main$
|
|
1674
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1664
1675
|
__name: "b-drag",
|
|
1665
1676
|
props: {
|
|
1666
1677
|
class: {},
|
|
@@ -1671,8 +1682,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1671
1682
|
cname: {}
|
|
1672
1683
|
},
|
|
1673
1684
|
emits: ["on_drag_start", "on_drag_end", "on_drag_over", "on_drag_leave", "on_drop", "on_move"],
|
|
1674
|
-
setup(__props, { emit }) {
|
|
1685
|
+
setup(__props, { emit: __emit }) {
|
|
1675
1686
|
const props = __props;
|
|
1687
|
+
const emit = __emit;
|
|
1676
1688
|
const $el = ref();
|
|
1677
1689
|
const state = ref("");
|
|
1678
1690
|
const dragState = ref(false);
|
|
@@ -1770,17 +1782,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1770
1782
|
bindEvent();
|
|
1771
1783
|
});
|
|
1772
1784
|
return (_ctx, _cache) => {
|
|
1773
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1774
|
-
class: normalizeClass(
|
|
1775
|
-
states: { dragStart:
|
|
1776
|
-
cname:
|
|
1785
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1786
|
+
class: normalizeClass(__props.class),
|
|
1787
|
+
states: { dragStart: __props.dragStart, dragOver: __props.dragOver },
|
|
1788
|
+
cname: __props.cname
|
|
1777
1789
|
}, {
|
|
1778
1790
|
className: withCtx((scope) => [
|
|
1779
1791
|
createElementVNode("div", {
|
|
1780
1792
|
style: normalizeStyle({
|
|
1781
|
-
cursor:
|
|
1793
|
+
cursor: __props.dragOver ? "default" : "move",
|
|
1782
1794
|
visibility: dragState.value ? "hidden" : "visible",
|
|
1783
|
-
position:
|
|
1795
|
+
position: __props.freeDrag ? "absolute" : "relative",
|
|
1784
1796
|
left: 0,
|
|
1785
1797
|
top: 0,
|
|
1786
1798
|
transform: `translate(${movePos.x}px, ${movePos.y}px)`
|
|
@@ -1789,7 +1801,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1789
1801
|
ref: $el,
|
|
1790
1802
|
class: normalizeClass(scope.className),
|
|
1791
1803
|
state: state.value,
|
|
1792
|
-
draggable:
|
|
1804
|
+
draggable: __props.dragStart ? true : false
|
|
1793
1805
|
}, [
|
|
1794
1806
|
renderSlot(_ctx.$slots, "default")
|
|
1795
1807
|
], 14, _hoisted_1$4)
|
|
@@ -1800,7 +1812,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1800
1812
|
}
|
|
1801
1813
|
});
|
|
1802
1814
|
const _hoisted_1$3 = ["src"];
|
|
1803
|
-
const _sfc_main$
|
|
1815
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1804
1816
|
__name: "b-webview",
|
|
1805
1817
|
props: {
|
|
1806
1818
|
src: {},
|
|
@@ -1809,15 +1821,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1809
1821
|
},
|
|
1810
1822
|
setup(__props) {
|
|
1811
1823
|
return (_ctx, _cache) => {
|
|
1812
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1813
|
-
class: normalizeClass(
|
|
1814
|
-
cname:
|
|
1824
|
+
return openBlock(), createBlock(_sfc_main$u, {
|
|
1825
|
+
class: normalizeClass(__props.class),
|
|
1826
|
+
cname: __props.cname
|
|
1815
1827
|
}, {
|
|
1816
1828
|
className: withCtx((scope) => [
|
|
1817
1829
|
createElementVNode("iframe", {
|
|
1818
1830
|
class: normalizeClass(scope.className),
|
|
1819
1831
|
frameborder: "0",
|
|
1820
|
-
src:
|
|
1832
|
+
src: __props.src
|
|
1821
1833
|
}, null, 10, _hoisted_1$3)
|
|
1822
1834
|
]),
|
|
1823
1835
|
_: 1
|
|
@@ -1825,7 +1837,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1825
1837
|
};
|
|
1826
1838
|
}
|
|
1827
1839
|
});
|
|
1828
|
-
const _sfc_main$
|
|
1840
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1829
1841
|
__name: "b-row",
|
|
1830
1842
|
props: {
|
|
1831
1843
|
class: {},
|
|
@@ -1842,7 +1854,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1842
1854
|
});
|
|
1843
1855
|
const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
1844
1856
|
return (_ctx, _cache) => {
|
|
1845
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1857
|
+
return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, __props.viewData, {
|
|
1846
1858
|
extraClass: {
|
|
1847
1859
|
selector: ">",
|
|
1848
1860
|
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
@@ -1856,7 +1868,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1856
1868
|
};
|
|
1857
1869
|
}
|
|
1858
1870
|
});
|
|
1859
|
-
const _sfc_main$
|
|
1871
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1860
1872
|
__name: "b-col",
|
|
1861
1873
|
props: {
|
|
1862
1874
|
span: {},
|
|
@@ -1868,7 +1880,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1868
1880
|
const props = __props;
|
|
1869
1881
|
const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1870
1882
|
return (_ctx, _cache) => {
|
|
1871
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1883
|
+
return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, __props.viewData), {
|
|
1872
1884
|
default: withCtx(() => [
|
|
1873
1885
|
renderSlot(_ctx.$slots, "default")
|
|
1874
1886
|
]),
|
|
@@ -1877,7 +1889,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1877
1889
|
};
|
|
1878
1890
|
}
|
|
1879
1891
|
});
|
|
1880
|
-
const _sfc_main$
|
|
1892
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1881
1893
|
__name: "btn-wid",
|
|
1882
1894
|
props: {
|
|
1883
1895
|
btnText: {},
|
|
@@ -1924,21 +1936,21 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1924
1936
|
};
|
|
1925
1937
|
});
|
|
1926
1938
|
return (_ctx, _cache) => {
|
|
1927
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1928
|
-
class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${
|
|
1939
|
+
return openBlock(), createBlock(_sfc_main$r, mergeProps(__props.hotData, {
|
|
1940
|
+
class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${__props.btnRound ? "round-lg" : "round-sm"} ${__props.btnWidth ? "lw-" + __props.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
|
|
1929
1941
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1930
1942
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1931
1943
|
}), {
|
|
1932
1944
|
default: withCtx(() => [
|
|
1933
|
-
|
|
1934
|
-
createTextVNode(" " + toDisplayString(
|
|
1945
|
+
__props.iconData ? (openBlock(), createBlock(_sfc_main$l, mergeProps({ key: 0 }, __props.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1946
|
+
createTextVNode(" " + toDisplayString(__props.btnText), 1)
|
|
1935
1947
|
]),
|
|
1936
1948
|
_: 1
|
|
1937
1949
|
}, 16, ["class", "hover", "active"]);
|
|
1938
1950
|
};
|
|
1939
1951
|
}
|
|
1940
1952
|
});
|
|
1941
|
-
const _sfc_main$
|
|
1953
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1942
1954
|
__name: "checkbox-wid",
|
|
1943
1955
|
props: {
|
|
1944
1956
|
selected: { type: Boolean },
|
|
@@ -1949,8 +1961,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1949
1961
|
label: {}
|
|
1950
1962
|
},
|
|
1951
1963
|
emits: ["update:selected", "change"],
|
|
1952
|
-
setup(__props, { emit }) {
|
|
1964
|
+
setup(__props, { emit: __emit }) {
|
|
1953
1965
|
const props = __props;
|
|
1966
|
+
const emit = __emit;
|
|
1954
1967
|
const combClass = ref(props.class ?? "flex-4 bg-color-neutral round-sm pad-4-px");
|
|
1955
1968
|
const combActClass = ref(`color-blue ${props.actClass ?? ""}`);
|
|
1956
1969
|
const label = computed(() => {
|
|
@@ -1966,7 +1979,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1966
1979
|
emit("change", props.value, state);
|
|
1967
1980
|
};
|
|
1968
1981
|
return (_ctx, _cache) => {
|
|
1969
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1982
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
1970
1983
|
class: normalizeClass(combClass.value),
|
|
1971
1984
|
hover: "alpha-d9",
|
|
1972
1985
|
state: selected.value ? "act" : "",
|
|
@@ -1980,16 +1993,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1980
1993
|
}, () => {
|
|
1981
1994
|
var _a, _b;
|
|
1982
1995
|
return [
|
|
1983
|
-
createVNode(_sfc_main$
|
|
1996
|
+
createVNode(_sfc_main$t, {
|
|
1984
1997
|
class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
|
|
1985
1998
|
state: selected.value ? "act" : "",
|
|
1986
1999
|
cname: combClass.value + combActClass.value,
|
|
1987
2000
|
states: {
|
|
1988
|
-
act: `bg-color-${
|
|
2001
|
+
act: `bg-color-${__props.actColor ? ((_a = __props.actColor) == null ? void 0 : _a.bg) ?? "blue" : "blue"} color-${__props.actColor ? ((_b = __props.actColor) == null ? void 0 : _b.icon) ?? "light" : "light"}`
|
|
1989
2002
|
}
|
|
1990
2003
|
}, {
|
|
1991
2004
|
default: withCtx(() => [
|
|
1992
|
-
createVNode(_sfc_main$
|
|
2005
|
+
createVNode(_sfc_main$l, {
|
|
1993
2006
|
icon: "success",
|
|
1994
2007
|
class: "alpha-d3",
|
|
1995
2008
|
state: selected.value ? "act" : "",
|
|
@@ -2002,7 +2015,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2002
2015
|
}, 8, ["state", "cname", "states"])
|
|
2003
2016
|
];
|
|
2004
2017
|
}),
|
|
2005
|
-
label.value ? (openBlock(), createBlock(_sfc_main$
|
|
2018
|
+
label.value ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2006
2019
|
key: 0,
|
|
2007
2020
|
class: "pad-h-1 ellipsis"
|
|
2008
2021
|
}, {
|
|
@@ -2017,7 +2030,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2017
2030
|
};
|
|
2018
2031
|
}
|
|
2019
2032
|
});
|
|
2020
|
-
const _sfc_main$
|
|
2033
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
2021
2034
|
__name: "checkbox-group-wid",
|
|
2022
2035
|
props: {
|
|
2023
2036
|
options: {},
|
|
@@ -2027,8 +2040,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2027
2040
|
span: {}
|
|
2028
2041
|
},
|
|
2029
2042
|
emits: ["update:selected", "change"],
|
|
2030
|
-
setup(__props, { emit }) {
|
|
2043
|
+
setup(__props, { emit: __emit }) {
|
|
2031
2044
|
const props = __props;
|
|
2045
|
+
const emit = __emit;
|
|
2032
2046
|
const checkboxData = computed(() => {
|
|
2033
2047
|
return props.options.map((opt) => {
|
|
2034
2048
|
var _a;
|
|
@@ -2060,16 +2074,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2060
2074
|
return (_ctx, _cache) => {
|
|
2061
2075
|
const _component_b_col = resolveComponent("b-col");
|
|
2062
2076
|
const _component_b_row = resolveComponent("b-row");
|
|
2063
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2064
|
-
class: normalizeClass(
|
|
2077
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2078
|
+
class: normalizeClass(__props.class)
|
|
2065
2079
|
}, {
|
|
2066
2080
|
default: withCtx(() => [
|
|
2067
|
-
|
|
2081
|
+
__props.title ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2068
2082
|
key: 0,
|
|
2069
2083
|
class: "mrg-b-1"
|
|
2070
2084
|
}, {
|
|
2071
2085
|
default: withCtx(() => [
|
|
2072
|
-
createTextVNode(toDisplayString(
|
|
2086
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
2073
2087
|
]),
|
|
2074
2088
|
_: 1
|
|
2075
2089
|
})) : createCommentVNode("", true),
|
|
@@ -2078,15 +2092,15 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2078
2092
|
(openBlock(true), createElementBlock(Fragment, null, renderList(checkboxData.value, (item, i) => {
|
|
2079
2093
|
return openBlock(), createBlock(_component_b_col, {
|
|
2080
2094
|
class: "flex-4",
|
|
2081
|
-
span:
|
|
2095
|
+
span: __props.span,
|
|
2082
2096
|
key: i
|
|
2083
2097
|
}, {
|
|
2084
2098
|
default: withCtx(() => [
|
|
2085
|
-
createVNode(_sfc_main$
|
|
2099
|
+
createVNode(_sfc_main$b, mergeProps({
|
|
2086
2100
|
onChange: change,
|
|
2087
2101
|
label: item.label,
|
|
2088
2102
|
value: item.value
|
|
2089
|
-
}, item.checkboxData, {
|
|
2103
|
+
}, { ref_for: true }, item.checkboxData, {
|
|
2090
2104
|
selected: item.selected,
|
|
2091
2105
|
"onUpdate:selected": ($event) => item.selected = $event
|
|
2092
2106
|
}), createSlots({ _: 2 }, [
|
|
@@ -2122,7 +2136,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2122
2136
|
};
|
|
2123
2137
|
}
|
|
2124
2138
|
});
|
|
2125
|
-
const _sfc_main$
|
|
2139
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
2126
2140
|
__name: "radio-group-wid",
|
|
2127
2141
|
props: {
|
|
2128
2142
|
options: {},
|
|
@@ -2133,8 +2147,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2133
2147
|
regular: { type: Boolean }
|
|
2134
2148
|
},
|
|
2135
2149
|
emits: ["update:selected", "change"],
|
|
2136
|
-
setup(__props, { emit }) {
|
|
2150
|
+
setup(__props, { emit: __emit }) {
|
|
2137
2151
|
const props = __props;
|
|
2152
|
+
const emit = __emit;
|
|
2138
2153
|
const selected = computed(() => [props.selected]);
|
|
2139
2154
|
const change = (selected2) => {
|
|
2140
2155
|
const values = selected2.map((item) => item.value);
|
|
@@ -2150,15 +2165,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2150
2165
|
});
|
|
2151
2166
|
return (_ctx, _cache) => {
|
|
2152
2167
|
const _component_b_view = resolveComponent("b-view");
|
|
2153
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2154
|
-
span:
|
|
2155
|
-
title:
|
|
2156
|
-
class: normalizeClass(
|
|
2168
|
+
return openBlock(), createBlock(_sfc_main$a, {
|
|
2169
|
+
span: __props.span,
|
|
2170
|
+
title: __props.title,
|
|
2171
|
+
class: normalizeClass(__props.class),
|
|
2157
2172
|
selected: selected.value,
|
|
2158
|
-
options:
|
|
2173
|
+
options: __props.options,
|
|
2159
2174
|
onChange: change
|
|
2160
2175
|
}, createSlots({ _: 2 }, [
|
|
2161
|
-
|
|
2176
|
+
__props.regular ? {
|
|
2162
2177
|
name: "default",
|
|
2163
2178
|
fn: withCtx((scope) => [
|
|
2164
2179
|
createVNode(_component_b_view, { class: "h-24-px w-24-px round-lg pad-d5 bg-color-neutral" }, {
|
|
@@ -2191,9 +2206,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2191
2206
|
}
|
|
2192
2207
|
});
|
|
2193
2208
|
const _hoisted_1$2 = ["state"];
|
|
2194
|
-
const _hoisted_2
|
|
2195
|
-
const _hoisted_3
|
|
2196
|
-
const _sfc_main$
|
|
2209
|
+
const _hoisted_2 = ["innerHTML"];
|
|
2210
|
+
const _hoisted_3 = ["innerHTML"];
|
|
2211
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2197
2212
|
__name: "tabs-wid",
|
|
2198
2213
|
props: {
|
|
2199
2214
|
options: {},
|
|
@@ -2205,8 +2220,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2205
2220
|
noDataNotic: {}
|
|
2206
2221
|
},
|
|
2207
2222
|
emits: ["update:selected", "change"],
|
|
2208
|
-
setup(__props, { emit }) {
|
|
2223
|
+
setup(__props, { emit: __emit }) {
|
|
2209
2224
|
const props = __props;
|
|
2225
|
+
const emit = __emit;
|
|
2210
2226
|
const tabConts = reactive({});
|
|
2211
2227
|
const color = computed(() => props.color ?? "blue");
|
|
2212
2228
|
const tabOrder = reactive({});
|
|
@@ -2263,30 +2279,30 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2263
2279
|
});
|
|
2264
2280
|
return (_ctx, _cache) => {
|
|
2265
2281
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2266
|
-
createVNode(_sfc_main$
|
|
2282
|
+
createVNode(_sfc_main$t, { class: "flex-7" }, {
|
|
2267
2283
|
default: withCtx(() => [
|
|
2268
|
-
createVNode(_sfc_main$
|
|
2284
|
+
createVNode(_sfc_main$9, {
|
|
2269
2285
|
options: options.value,
|
|
2270
|
-
title:
|
|
2286
|
+
title: __props.title,
|
|
2271
2287
|
selected: selected.value,
|
|
2272
2288
|
onChange: change
|
|
2273
2289
|
}, createSlots({ _: 2 }, [
|
|
2274
|
-
slots.value.length === 0 &&
|
|
2290
|
+
slots.value.length === 0 && __props.tabStyle === "grid" ? {
|
|
2275
2291
|
name: "default",
|
|
2276
2292
|
fn: withCtx((scope) => [
|
|
2277
2293
|
createElementVNode("span", { state: scope }, null, 8, _hoisted_1$2)
|
|
2278
2294
|
]),
|
|
2279
2295
|
key: "0"
|
|
2280
|
-
} : slots.value.length === 0 &&
|
|
2296
|
+
} : slots.value.length === 0 && __props.tabStyle === "card" ? {
|
|
2281
2297
|
name: "default",
|
|
2282
2298
|
fn: withCtx((scope) => [
|
|
2283
|
-
createVNode(_sfc_main$
|
|
2299
|
+
createVNode(_sfc_main$t, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
|
|
2284
2300
|
]),
|
|
2285
2301
|
key: "1"
|
|
2286
2302
|
} : slots.value.length === 0 ? {
|
|
2287
2303
|
name: "default",
|
|
2288
2304
|
fn: withCtx((scope) => [
|
|
2289
|
-
createVNode(_sfc_main$
|
|
2305
|
+
createVNode(_sfc_main$t, {
|
|
2290
2306
|
class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
|
|
2291
2307
|
state: scope.state,
|
|
2292
2308
|
states: {
|
|
@@ -2307,35 +2323,35 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2307
2323
|
};
|
|
2308
2324
|
})
|
|
2309
2325
|
]), 1032, ["options", "title", "selected"]),
|
|
2310
|
-
contLine.value ? (openBlock(), createBlock(_sfc_main$
|
|
2326
|
+
contLine.value ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2311
2327
|
key: 0,
|
|
2312
2328
|
class: "grow-1 h-1-px bg-color-neutral"
|
|
2313
2329
|
})) : createCommentVNode("", true)
|
|
2314
2330
|
]),
|
|
2315
2331
|
_: 3
|
|
2316
2332
|
}),
|
|
2317
|
-
contArea.value ? (openBlock(), createBlock(_sfc_main$
|
|
2333
|
+
contArea.value ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2318
2334
|
key: 0,
|
|
2319
2335
|
class: "pad-v-1d5 over-hide"
|
|
2320
2336
|
}, {
|
|
2321
2337
|
default: withCtx(() => [
|
|
2322
|
-
selected.value ? (openBlock(), createBlock(_sfc_main$
|
|
2338
|
+
selected.value ? (openBlock(), createBlock(_sfc_main$t, { key: 0 }, {
|
|
2323
2339
|
default: withCtx(() => [
|
|
2324
2340
|
createElementVNode("div", {
|
|
2325
2341
|
innerHTML: tabConts[selected.value],
|
|
2326
|
-
class: normalizeClass(
|
|
2342
|
+
class: normalizeClass(__props.smooth ? `ani-fast ani-${flipDir.value}` : ""),
|
|
2327
2343
|
onAnimationend: _cache[0] || (_cache[0] = ($event) => flipDir.value = "")
|
|
2328
|
-
}, null, 42, _hoisted_2
|
|
2344
|
+
}, null, 42, _hoisted_2)
|
|
2329
2345
|
]),
|
|
2330
2346
|
_: 1
|
|
2331
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
2347
|
+
})) : (openBlock(), createBlock(_sfc_main$t, {
|
|
2332
2348
|
key: 1,
|
|
2333
2349
|
class: "alpha-d5"
|
|
2334
2350
|
}, {
|
|
2335
2351
|
default: withCtx(() => [
|
|
2336
2352
|
createElementVNode("div", {
|
|
2337
|
-
innerHTML:
|
|
2338
|
-
}, null, 8, _hoisted_3
|
|
2353
|
+
innerHTML: __props.noDataNotic ?? "暂未选择标签"
|
|
2354
|
+
}, null, 8, _hoisted_3)
|
|
2339
2355
|
]),
|
|
2340
2356
|
_: 1
|
|
2341
2357
|
}))
|
|
@@ -2347,7 +2363,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2347
2363
|
}
|
|
2348
2364
|
});
|
|
2349
2365
|
const _hoisted_1$1 = ["multiple"];
|
|
2350
|
-
const _sfc_main$
|
|
2366
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2351
2367
|
__name: "upload-wid",
|
|
2352
2368
|
props: {
|
|
2353
2369
|
type: {},
|
|
@@ -2356,8 +2372,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2356
2372
|
btnData: {}
|
|
2357
2373
|
},
|
|
2358
2374
|
emits: ["on_upload"],
|
|
2359
|
-
setup(__props, { emit }) {
|
|
2375
|
+
setup(__props, { emit: __emit }) {
|
|
2360
2376
|
const props = __props;
|
|
2377
|
+
const emit = __emit;
|
|
2361
2378
|
const $uploader = ref();
|
|
2362
2379
|
const btnData = computed(() => {
|
|
2363
2380
|
return {
|
|
@@ -2405,7 +2422,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2405
2422
|
};
|
|
2406
2423
|
return (_ctx, _cache) => {
|
|
2407
2424
|
const _component_b_hot = resolveComponent("b-hot");
|
|
2408
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2425
|
+
return openBlock(), createBlock(_sfc_main$t, { class: "flex" }, {
|
|
2409
2426
|
default: withCtx(() => [
|
|
2410
2427
|
_ctx.$slots.default ? (openBlock(), createBlock(_component_b_hot, {
|
|
2411
2428
|
key: 0,
|
|
@@ -2415,7 +2432,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2415
2432
|
renderSlot(_ctx.$slots, "default")
|
|
2416
2433
|
]),
|
|
2417
2434
|
_: 3
|
|
2418
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
2435
|
+
})) : (openBlock(), createBlock(_sfc_main$c, mergeProps({
|
|
2419
2436
|
key: 1,
|
|
2420
2437
|
onOn_click: _cache[1] || (_cache[1] = ($event) => $uploader.value.click())
|
|
2421
2438
|
}, btnData.value), null, 16)),
|
|
@@ -2425,7 +2442,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2425
2442
|
ref_key: "$uploader",
|
|
2426
2443
|
ref: $uploader,
|
|
2427
2444
|
onChange: trigerUpload,
|
|
2428
|
-
multiple:
|
|
2445
|
+
multiple: __props.multiple
|
|
2429
2446
|
}, null, 40, _hoisted_1$1)
|
|
2430
2447
|
]),
|
|
2431
2448
|
_: 3
|
|
@@ -2433,7 +2450,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2433
2450
|
};
|
|
2434
2451
|
}
|
|
2435
2452
|
});
|
|
2436
|
-
const _sfc_main$
|
|
2453
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2437
2454
|
__name: "img-upload-wid",
|
|
2438
2455
|
props: {
|
|
2439
2456
|
preview: {},
|
|
@@ -2444,8 +2461,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2444
2461
|
compress: {}
|
|
2445
2462
|
},
|
|
2446
2463
|
emits: ["update:preview", "on_upload"],
|
|
2447
|
-
setup(__props, { emit }) {
|
|
2464
|
+
setup(__props, { emit: __emit }) {
|
|
2448
2465
|
const props = __props;
|
|
2466
|
+
const emit = __emit;
|
|
2449
2467
|
const size = computed(() => props.compress ? 1024 * 1024 * 20 : 1024 * 1024 * 2);
|
|
2450
2468
|
const compress = (file) => {
|
|
2451
2469
|
return new Promise((resolve, reject) => {
|
|
@@ -2492,23 +2510,23 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2492
2510
|
return (_ctx, _cache) => {
|
|
2493
2511
|
const _component_b_view = resolveComponent("b-view");
|
|
2494
2512
|
const _component_b_icon = resolveComponent("b-icon");
|
|
2495
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2513
|
+
return openBlock(), createBlock(_sfc_main$7, {
|
|
2496
2514
|
onOn_upload: imgUpload,
|
|
2497
2515
|
size: size.value,
|
|
2498
|
-
multiple:
|
|
2516
|
+
multiple: __props.multiple,
|
|
2499
2517
|
type: ["image/jpeg", "image/png", "image/gif"]
|
|
2500
2518
|
}, {
|
|
2501
2519
|
default: withCtx(() => {
|
|
2502
2520
|
var _a, _b, _c, _d, _e, _f;
|
|
2503
2521
|
return [
|
|
2504
|
-
|
|
2522
|
+
__props.preview ? (openBlock(), createBlock(_component_b_view, {
|
|
2505
2523
|
key: 0,
|
|
2506
|
-
class: normalizeClass(`w-${((_a =
|
|
2507
|
-
"bg-img":
|
|
2524
|
+
class: normalizeClass(`w-${((_a = __props.cover) == null ? void 0 : _a.width) || 7} h-${((_b = __props.cover) == null ? void 0 : _b.height) || 7} bsize-${__props.bsize || "cover"} bpos-2 round-sm bg-color-neutral`),
|
|
2525
|
+
"bg-img": __props.preview
|
|
2508
2526
|
}, null, 8, ["class", "bg-img"])) : (openBlock(), createBlock(_component_b_icon, {
|
|
2509
2527
|
key: 1,
|
|
2510
2528
|
icon: "add",
|
|
2511
|
-
class: normalizeClass(`flex-5 w-${((_c =
|
|
2529
|
+
class: normalizeClass(`flex-5 w-${((_c = __props.cover) == null ? void 0 : _c.width) || 7} h-${((_d = __props.cover) == null ? void 0 : _d.height) || 7} ${((_e = __props.cover) == null ? void 0 : _e.color) ? "color-" + ((_f = __props.cover) == null ? void 0 : _f.color) : ""} round-sm bg-color-neutral`)
|
|
2512
2530
|
}, null, 8, ["class"]))
|
|
2513
2531
|
];
|
|
2514
2532
|
}),
|
|
@@ -2517,7 +2535,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2517
2535
|
};
|
|
2518
2536
|
}
|
|
2519
2537
|
});
|
|
2520
|
-
const _sfc_main$
|
|
2538
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2521
2539
|
__name: "app-wid",
|
|
2522
2540
|
props: {
|
|
2523
2541
|
path: {},
|
|
@@ -2542,20 +2560,20 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2542
2560
|
return (_ctx, _cache) => {
|
|
2543
2561
|
var _a;
|
|
2544
2562
|
const _component_router_view = resolveComponent("router-view");
|
|
2545
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2546
|
-
class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a =
|
|
2563
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2564
|
+
class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = __props.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
2547
2565
|
}, {
|
|
2548
2566
|
default: withCtx(() => {
|
|
2549
2567
|
var _a2;
|
|
2550
2568
|
return [
|
|
2551
|
-
createVNode(_sfc_main$
|
|
2569
|
+
createVNode(_sfc_main$t, { class: "rel grow-1" }, {
|
|
2552
2570
|
default: withCtx(() => [
|
|
2553
|
-
createVNode(_sfc_main$
|
|
2571
|
+
createVNode(_sfc_main$h, {
|
|
2554
2572
|
scroll: { y: "auto", x: "hidden" },
|
|
2555
2573
|
class: "abs max"
|
|
2556
2574
|
}, {
|
|
2557
2575
|
default: withCtx(() => [
|
|
2558
|
-
|
|
2576
|
+
__props.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
|
|
2559
2577
|
createVNode(_component_router_view)
|
|
2560
2578
|
], 1024)) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
|
|
2561
2579
|
]),
|
|
@@ -2564,46 +2582,46 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2564
2582
|
]),
|
|
2565
2583
|
_: 1
|
|
2566
2584
|
}),
|
|
2567
|
-
createVNode(_sfc_main$
|
|
2568
|
-
class: normalizeClass(`pcenter pad-t-d5 flex-1 ${
|
|
2585
|
+
createVNode(_sfc_main$t, {
|
|
2586
|
+
class: normalizeClass(`pcenter pad-t-d5 flex-1 ${__props.round ? "round-md round-t" : ""} bg-color-${((_a2 = __props.colors) == null ? void 0 : _a2.bar) || "dark"} solid-t line-neutral thick-d4 app-nav-bar`)
|
|
2569
2587
|
}, {
|
|
2570
2588
|
default: withCtx(() => [
|
|
2571
2589
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
2572
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2590
|
+
return openBlock(), createBlock(_sfc_main$r, mergeProps({ key: i }, { ref_for: true }, nav.hotData, {
|
|
2573
2591
|
class: "grow-1",
|
|
2574
2592
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
|
|
2575
2593
|
}), {
|
|
2576
2594
|
default: withCtx(() => {
|
|
2577
2595
|
var _a3, _b, _c, _d, _e, _f;
|
|
2578
2596
|
return [
|
|
2579
|
-
nav.main ? (openBlock(), createBlock(_sfc_main$
|
|
2597
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2580
2598
|
key: 0,
|
|
2581
2599
|
class: "rel w-5 mrg-h-auto"
|
|
2582
2600
|
}, {
|
|
2583
2601
|
default: withCtx(() => {
|
|
2584
2602
|
var _a4, _b2, _c2, _d2;
|
|
2585
2603
|
return [
|
|
2586
|
-
createVNode(_sfc_main$
|
|
2587
|
-
class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 =
|
|
2604
|
+
createVNode(_sfc_main$l, mergeProps({ ref_for: true }, nav.iconData, {
|
|
2605
|
+
class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 = __props.colors) == null ? void 0 : _a4.center) == null ? void 0 : _b2.line) || "neutral"} bg-color-${((_d2 = (_c2 = __props.colors) == null ? void 0 : _c2.center) == null ? void 0 : _d2.bg) || "dgray"}`
|
|
2588
2606
|
}), null, 16, ["class"])
|
|
2589
2607
|
];
|
|
2590
2608
|
}),
|
|
2591
2609
|
_: 2
|
|
2592
|
-
}, 1024)) : (openBlock(), createBlock(_sfc_main$
|
|
2610
|
+
}, 1024)) : (openBlock(), createBlock(_sfc_main$t, {
|
|
2593
2611
|
key: 1,
|
|
2594
|
-
class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 =
|
|
2595
|
-
cname: ((_d = (_c =
|
|
2612
|
+
class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = __props.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
|
|
2613
|
+
cname: ((_d = (_c = __props.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
|
|
2596
2614
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
2597
2615
|
states: {
|
|
2598
|
-
act: `color-${((_f = (_e =
|
|
2616
|
+
act: `color-${((_f = (_e = __props.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.act) || "light"}`
|
|
2599
2617
|
}
|
|
2600
2618
|
}, {
|
|
2601
2619
|
default: withCtx(() => [
|
|
2602
|
-
nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2620
|
+
nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2603
2621
|
key: 0,
|
|
2604
2622
|
class: "round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"
|
|
2605
2623
|
})) : createCommentVNode("", true),
|
|
2606
|
-
nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2624
|
+
nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2607
2625
|
key: 1,
|
|
2608
2626
|
class: "flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"
|
|
2609
2627
|
}, {
|
|
@@ -2612,15 +2630,15 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2612
2630
|
]),
|
|
2613
2631
|
_: 2
|
|
2614
2632
|
}, 1024)) : createCommentVNode("", true),
|
|
2615
|
-
createVNode(_sfc_main$
|
|
2633
|
+
createVNode(_sfc_main$l, mergeProps({ ref_for: true }, nav.iconData, {
|
|
2616
2634
|
cname: nav.act,
|
|
2617
2635
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
2618
2636
|
states: {
|
|
2619
2637
|
act: nav.act ?? ""
|
|
2620
2638
|
},
|
|
2621
|
-
class: `w-2d7 h-2d7 ${
|
|
2639
|
+
class: `w-2d7 h-2d7 ${__props.iconTransAni ? "trans-fast" : ""} fsize-1d7`
|
|
2622
2640
|
}), null, 16, ["cname", "state", "states", "class"]),
|
|
2623
|
-
nav.text ? (openBlock(), createBlock(_sfc_main$
|
|
2641
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2624
2642
|
key: 2,
|
|
2625
2643
|
class: "fsize-d83"
|
|
2626
2644
|
}, {
|
|
@@ -2648,15 +2666,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2648
2666
|
}
|
|
2649
2667
|
});
|
|
2650
2668
|
const _hoisted_1 = { open: "true" };
|
|
2651
|
-
const
|
|
2652
|
-
const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", null, [
|
|
2653
|
-
/* @__PURE__ */ createElementVNode("button", { onclick: "document.querySelector('dialog').close()" }, "关闭")
|
|
2654
|
-
], -1);
|
|
2655
|
-
const _hoisted_4 = [
|
|
2656
|
-
_hoisted_2,
|
|
2657
|
-
_hoisted_3
|
|
2658
|
-
];
|
|
2659
|
-
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2669
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2660
2670
|
__name: "confirm-wid",
|
|
2661
2671
|
props: {
|
|
2662
2672
|
colors: {}
|
|
@@ -2693,11 +2703,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2693
2703
|
$_close();
|
|
2694
2704
|
});
|
|
2695
2705
|
return (_ctx, _cache) => {
|
|
2696
|
-
return openBlock(), createElementBlock("dialog", _hoisted_1,
|
|
2706
|
+
return openBlock(), createElementBlock("dialog", _hoisted_1, [..._cache[0] || (_cache[0] = [
|
|
2707
|
+
createElementVNode("div", null, "hello dialog", -1),
|
|
2708
|
+
createElementVNode("div", null, [
|
|
2709
|
+
createElementVNode("button", { onclick: "document.querySelector('dialog').close()" }, "关闭")
|
|
2710
|
+
], -1)
|
|
2711
|
+
])]);
|
|
2697
2712
|
};
|
|
2698
2713
|
}
|
|
2699
2714
|
});
|
|
2700
|
-
const _sfc_main$
|
|
2715
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2701
2716
|
__name: "toast-wid",
|
|
2702
2717
|
props: {
|
|
2703
2718
|
matteColor: {}
|
|
@@ -2716,7 +2731,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2716
2731
|
return (_ctx, _cache) => {
|
|
2717
2732
|
const _component_b_view = resolveComponent("b-view");
|
|
2718
2733
|
return openBlock(), createBlock(_component_b_view, {
|
|
2719
|
-
class: normalizeClass(`fixed max bg-color-${
|
|
2734
|
+
class: normalizeClass(`fixed max bg-color-${__props.matteColor || "rgba_0_0_0_d2"} l-0 t-0 flex-5`),
|
|
2720
2735
|
state: visiable.value,
|
|
2721
2736
|
states: {
|
|
2722
2737
|
true: "alpha-1 visible",
|
|
@@ -2743,6 +2758,155 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2743
2758
|
};
|
|
2744
2759
|
}
|
|
2745
2760
|
});
|
|
2761
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2762
|
+
__name: "modal-wid",
|
|
2763
|
+
props: {
|
|
2764
|
+
visiable: { type: Boolean },
|
|
2765
|
+
matteColor: {},
|
|
2766
|
+
closeEnable: { type: Boolean },
|
|
2767
|
+
roundEnable: { type: Boolean },
|
|
2768
|
+
pannelColor: {},
|
|
2769
|
+
dir: {}
|
|
2770
|
+
},
|
|
2771
|
+
emits: ["update:visiable"],
|
|
2772
|
+
setup(__props, { emit: __emit }) {
|
|
2773
|
+
const props = __props;
|
|
2774
|
+
const emit = __emit;
|
|
2775
|
+
const dir = computed(() => props.dir || "bottom");
|
|
2776
|
+
const dirStyle = computed(() => {
|
|
2777
|
+
let layout, pannal;
|
|
2778
|
+
switch (dir.value) {
|
|
2779
|
+
case "left":
|
|
2780
|
+
layout = "flex-4";
|
|
2781
|
+
pannal = `max-h round-r`;
|
|
2782
|
+
break;
|
|
2783
|
+
case "right":
|
|
2784
|
+
layout = "flex-6";
|
|
2785
|
+
pannal = `max-h round-l`;
|
|
2786
|
+
break;
|
|
2787
|
+
case "top":
|
|
2788
|
+
layout = "flex-2";
|
|
2789
|
+
pannal = `max-w round-b`;
|
|
2790
|
+
break;
|
|
2791
|
+
case "bottom":
|
|
2792
|
+
layout = "flex-8";
|
|
2793
|
+
pannal = `max-w round-t`;
|
|
2794
|
+
break;
|
|
2795
|
+
case "center":
|
|
2796
|
+
layout = "flex-5";
|
|
2797
|
+
pannal = ``;
|
|
2798
|
+
break;
|
|
2799
|
+
}
|
|
2800
|
+
return { layout, pannal };
|
|
2801
|
+
});
|
|
2802
|
+
const aniDir = ref("");
|
|
2803
|
+
watchEffect(() => {
|
|
2804
|
+
if (props.visiable) {
|
|
2805
|
+
closeState.value = true;
|
|
2806
|
+
aniDir.value = dir.value;
|
|
2807
|
+
} else {
|
|
2808
|
+
aniDir.value = `${dir.value}Back`;
|
|
2809
|
+
}
|
|
2810
|
+
});
|
|
2811
|
+
const closeState = ref(false);
|
|
2812
|
+
const matteAniend = (e) => {
|
|
2813
|
+
if (getComputedStyle(e.target).opacity === "0")
|
|
2814
|
+
closeState.value = false;
|
|
2815
|
+
};
|
|
2816
|
+
const hide = () => {
|
|
2817
|
+
emit("update:visiable", false);
|
|
2818
|
+
};
|
|
2819
|
+
return (_ctx, _cache) => {
|
|
2820
|
+
const _component_b_hot = resolveComponent("b-hot");
|
|
2821
|
+
const _component_b_icon = resolveComponent("b-icon");
|
|
2822
|
+
const _component_b_view = resolveComponent("b-view");
|
|
2823
|
+
return openBlock(), createBlock(_component_b_view, {
|
|
2824
|
+
class: normalizeClass(`fixed t-0 l-0 max z-9 ${dirStyle.value.layout}`),
|
|
2825
|
+
state: closeState.value,
|
|
2826
|
+
states: {
|
|
2827
|
+
true: "alpha-1 visible",
|
|
2828
|
+
false: "alpha-0"
|
|
2829
|
+
}
|
|
2830
|
+
}, {
|
|
2831
|
+
default: withCtx(() => [
|
|
2832
|
+
createVNode(_component_b_hot, {
|
|
2833
|
+
onOn_transend: matteAniend,
|
|
2834
|
+
onOn_click: hide,
|
|
2835
|
+
state: __props.visiable,
|
|
2836
|
+
states: {
|
|
2837
|
+
true: "alpha-1 visible",
|
|
2838
|
+
false: "alpha-0"
|
|
2839
|
+
},
|
|
2840
|
+
class: normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${__props.matteColor || "C000000cc"}`)
|
|
2841
|
+
}, null, 8, ["state", "class"]),
|
|
2842
|
+
createVNode(_component_b_view, {
|
|
2843
|
+
class: normalizeClass(`${dirStyle.value.pannal} rel ani-mode-both`),
|
|
2844
|
+
state: aniDir.value,
|
|
2845
|
+
states: {
|
|
2846
|
+
left: {
|
|
2847
|
+
ani: "ani-left-to-right"
|
|
2848
|
+
},
|
|
2849
|
+
right: {
|
|
2850
|
+
ani: "ani-right-to-left"
|
|
2851
|
+
},
|
|
2852
|
+
top: {
|
|
2853
|
+
ani: "ani-top-to-bottom"
|
|
2854
|
+
},
|
|
2855
|
+
bottom: {
|
|
2856
|
+
ani: "ani-bottom-to-top"
|
|
2857
|
+
},
|
|
2858
|
+
center: {
|
|
2859
|
+
ani: "ani-scale-fade-in"
|
|
2860
|
+
},
|
|
2861
|
+
leftBack: {
|
|
2862
|
+
ani: "ani-left-to-right-reverse"
|
|
2863
|
+
},
|
|
2864
|
+
rightBack: {
|
|
2865
|
+
ani: "ani-right-to-left-reverse"
|
|
2866
|
+
},
|
|
2867
|
+
topBack: {
|
|
2868
|
+
ani: "ani-top-to-bottom-reverse"
|
|
2869
|
+
},
|
|
2870
|
+
bottomBack: {
|
|
2871
|
+
ani: "ani-bottom-to-top-reverse"
|
|
2872
|
+
},
|
|
2873
|
+
centerBack: {
|
|
2874
|
+
ani: "ani-scale-fade-out"
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2877
|
+
}, {
|
|
2878
|
+
default: withCtx(() => [
|
|
2879
|
+
_ctx.$slots.custom ? renderSlot(_ctx.$slots, "custom", { key: 0 }) : (openBlock(), createBlock(_component_b_view, {
|
|
2880
|
+
key: 1,
|
|
2881
|
+
class: normalizeClass(`bg-color-${__props.pannelColor || "light"} rel pad-2 ${__props.roundEnable ? "round-md" : ""} ${dirStyle.value.pannal}`)
|
|
2882
|
+
}, {
|
|
2883
|
+
default: withCtx(() => [
|
|
2884
|
+
!__props.closeEnable ? (openBlock(), createBlock(_component_b_hot, {
|
|
2885
|
+
key: 0,
|
|
2886
|
+
class: "abs r-1 t-d7 color-mgray",
|
|
2887
|
+
onOn_click: hide
|
|
2888
|
+
}, {
|
|
2889
|
+
default: withCtx(() => [
|
|
2890
|
+
createVNode(_component_b_icon, {
|
|
2891
|
+
icon: "fail",
|
|
2892
|
+
class: "fsize-2 lh-1d4"
|
|
2893
|
+
})
|
|
2894
|
+
]),
|
|
2895
|
+
_: 1
|
|
2896
|
+
})) : createCommentVNode("", true),
|
|
2897
|
+
renderSlot(_ctx.$slots, "default")
|
|
2898
|
+
]),
|
|
2899
|
+
_: 3
|
|
2900
|
+
}, 8, ["class"]))
|
|
2901
|
+
]),
|
|
2902
|
+
_: 3
|
|
2903
|
+
}, 8, ["class", "state"])
|
|
2904
|
+
]),
|
|
2905
|
+
_: 3
|
|
2906
|
+
}, 8, ["class", "state"]);
|
|
2907
|
+
};
|
|
2908
|
+
}
|
|
2909
|
+
});
|
|
2746
2910
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2747
2911
|
__name: "content-node-wid",
|
|
2748
2912
|
props: {
|
|
@@ -2753,7 +2917,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2753
2917
|
active: {}
|
|
2754
2918
|
},
|
|
2755
2919
|
emits: ["on_select"],
|
|
2756
|
-
setup(__props, { emit }) {
|
|
2920
|
+
setup(__props, { emit: __emit }) {
|
|
2757
2921
|
const props = __props;
|
|
2758
2922
|
const dataTree = ref(props.dataTree || []);
|
|
2759
2923
|
const selected = inject("selected");
|
|
@@ -2770,25 +2934,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2770
2934
|
const _component_b_text = resolveComponent("b-text");
|
|
2771
2935
|
const _component_content_node_wid = resolveComponent("content-node-wid", true);
|
|
2772
2936
|
return openBlock(true), createElementBlock(Fragment, null, renderList(dataTree.value, (item) => {
|
|
2773
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2937
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
2774
2938
|
state: `id-${item.id}`,
|
|
2775
2939
|
key: item.id
|
|
2776
2940
|
}, {
|
|
2777
2941
|
default: withCtx(() => {
|
|
2778
2942
|
var _a;
|
|
2779
2943
|
return [
|
|
2780
|
-
createVNode(_sfc_main$
|
|
2944
|
+
createVNode(_sfc_main$r, {
|
|
2781
2945
|
cname: `${item.id}-${Math.random()}`,
|
|
2782
2946
|
class: normalizeClass(`flex-4 pad-v-${gap.value} pad-l-${setIndex(item.level)}`),
|
|
2783
|
-
hover:
|
|
2947
|
+
hover: __props.hover,
|
|
2784
2948
|
states: {
|
|
2785
|
-
true: `${
|
|
2949
|
+
true: `${__props.active ? __props.active : ""}`,
|
|
2786
2950
|
false: ""
|
|
2787
2951
|
},
|
|
2788
2952
|
state: (((_a = unref(selected)) == null ? void 0 : _a.findIndex((data) => data.id === item.id)) > -1).toString()
|
|
2789
2953
|
}, {
|
|
2790
2954
|
default: withCtx(() => [
|
|
2791
|
-
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$
|
|
2955
|
+
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$l, {
|
|
2792
2956
|
key: 0,
|
|
2793
2957
|
class: "mrg-r-d4",
|
|
2794
2958
|
state: item.spread ? "content-wid-spread" : "content-wid-collapse",
|
|
@@ -2803,7 +2967,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2803
2967
|
]),
|
|
2804
2968
|
_: 2
|
|
2805
2969
|
}, 1032, ["cname", "class", "hover", "states", "state"]),
|
|
2806
|
-
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$
|
|
2970
|
+
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$t, {
|
|
2807
2971
|
key: 0,
|
|
2808
2972
|
states: {
|
|
2809
2973
|
"show": "show",
|
|
@@ -2812,7 +2976,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2812
2976
|
state: item.spread ? "show" : "hide"
|
|
2813
2977
|
}, {
|
|
2814
2978
|
default: withCtx(() => [
|
|
2815
|
-
createVNode(_component_content_node_wid,
|
|
2979
|
+
createVNode(_component_content_node_wid, mergeProps({ ref_for: true }, { ...props, dataTree: item.children }), null, 16)
|
|
2816
2980
|
]),
|
|
2817
2981
|
_: 2
|
|
2818
2982
|
}, 1032, ["state"])) : createCommentVNode("", true)
|
|
@@ -2834,8 +2998,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2834
2998
|
active: {}
|
|
2835
2999
|
},
|
|
2836
3000
|
emits: ["on_select"],
|
|
2837
|
-
setup(__props, { emit }) {
|
|
3001
|
+
setup(__props, { emit: __emit }) {
|
|
2838
3002
|
const props = __props;
|
|
3003
|
+
const emit = __emit;
|
|
2839
3004
|
let prefix = 0;
|
|
2840
3005
|
const flatDataTree = reactive([]);
|
|
2841
3006
|
const indexDataTree = reactive({});
|
|
@@ -2882,7 +3047,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2882
3047
|
emit("on_select", data);
|
|
2883
3048
|
};
|
|
2884
3049
|
return (_ctx, _cache) => {
|
|
2885
|
-
return openBlock(), createBlock(_sfc_main$
|
|
3050
|
+
return openBlock(), createBlock(_sfc_main$r, {
|
|
2886
3051
|
onOn_click: select,
|
|
2887
3052
|
"event-proxy": true
|
|
2888
3053
|
}, {
|
|
@@ -2960,7 +3125,7 @@ const showToast = (text, duration = 2e3, icon = "") => {
|
|
|
2960
3125
|
bToast.style.cssText = hideStyle;
|
|
2961
3126
|
}, duration);
|
|
2962
3127
|
};
|
|
2963
|
-
const showLoadToast = (text) => {
|
|
3128
|
+
const showLoadToast = (text = "数据加载中") => {
|
|
2964
3129
|
let bToast = document.querySelector(".b-load-toast");
|
|
2965
3130
|
if (!bToast) {
|
|
2966
3131
|
bToast = document.createElement("div");
|
|
@@ -2968,7 +3133,6 @@ const showLoadToast = (text) => {
|
|
|
2968
3133
|
const bToastInner = document.createElement("div");
|
|
2969
3134
|
bToast.appendChild(bToastInner);
|
|
2970
3135
|
const bToastIcon = document.createElement("i");
|
|
2971
|
-
bToastIcon.className = "ico-load ani-rotate ani-loop ani-slow";
|
|
2972
3136
|
bToastIcon.style.cssText = `
|
|
2973
3137
|
color: #fff;
|
|
2974
3138
|
font-size: 3.2rem;
|
|
@@ -2983,47 +3147,59 @@ const showLoadToast = (text) => {
|
|
|
2983
3147
|
padding: 1.2rem 1.7rem;
|
|
2984
3148
|
text-align: center;
|
|
2985
3149
|
background-color: rgba(0,0,0,.9);
|
|
3150
|
+
min-width: 10rem;
|
|
2986
3151
|
font-size: 1.27rem;
|
|
2987
3152
|
`;
|
|
2988
3153
|
bToast.style.cssText = hideStyle;
|
|
2989
3154
|
document.body.appendChild(bToast);
|
|
2990
3155
|
}
|
|
2991
|
-
bToast.childNodes[0].childNodes[
|
|
3156
|
+
bToast.childNodes[0].childNodes[0].className = "ico-load ani-rotate ani-loop ani-slow";
|
|
3157
|
+
bToast.childNodes[0].childNodes[1].innerText = text;
|
|
2992
3158
|
bToast.style.cssText = showStyle;
|
|
2993
3159
|
};
|
|
2994
|
-
const hideLoadToast = () => {
|
|
3160
|
+
const hideLoadToast = (_text, _icon) => {
|
|
2995
3161
|
clearTimeout(t);
|
|
2996
3162
|
let bToast = document.querySelector(".b-load-toast");
|
|
2997
3163
|
if (!bToast)
|
|
2998
3164
|
return;
|
|
2999
|
-
|
|
3165
|
+
if (_text) {
|
|
3166
|
+
if (_icon)
|
|
3167
|
+
bToast.childNodes[0].childNodes[0].className = `ico-${_icon}`;
|
|
3168
|
+
bToast.childNodes[0].childNodes[1].innerText = _text;
|
|
3169
|
+
setTimeout(() => {
|
|
3170
|
+
bToast.style.cssText = hideStyle;
|
|
3171
|
+
}, 1e3);
|
|
3172
|
+
} else {
|
|
3173
|
+
bToast.style.cssText = hideStyle;
|
|
3174
|
+
}
|
|
3000
3175
|
};
|
|
3001
3176
|
const initGlobalComponents = [
|
|
3177
|
+
_sfc_main$u,
|
|
3002
3178
|
_sfc_main$t,
|
|
3003
3179
|
_sfc_main$s,
|
|
3004
3180
|
_sfc_main$r,
|
|
3005
3181
|
_sfc_main$q,
|
|
3006
|
-
_sfc_main$
|
|
3007
|
-
_sfc_main$
|
|
3182
|
+
_sfc_main$l,
|
|
3183
|
+
_sfc_main$i,
|
|
3008
3184
|
_sfc_main$h,
|
|
3185
|
+
_sfc_main$f,
|
|
3186
|
+
_sfc_main$k,
|
|
3009
3187
|
_sfc_main$g,
|
|
3010
|
-
_sfc_main$e,
|
|
3011
3188
|
_sfc_main$j,
|
|
3012
|
-
_sfc_main$
|
|
3013
|
-
_sfc_main$i,
|
|
3189
|
+
_sfc_main$e,
|
|
3014
3190
|
_sfc_main$d,
|
|
3015
3191
|
_sfc_main$c,
|
|
3192
|
+
_sfc_main$4,
|
|
3016
3193
|
_sfc_main$b,
|
|
3017
|
-
_sfc_main$3,
|
|
3018
3194
|
_sfc_main$a,
|
|
3019
3195
|
_sfc_main$9,
|
|
3020
3196
|
_sfc_main$8,
|
|
3197
|
+
_sfc_main$5,
|
|
3021
3198
|
_sfc_main$7,
|
|
3022
|
-
_sfc_main$4,
|
|
3023
3199
|
_sfc_main$6,
|
|
3024
|
-
_sfc_main$5,
|
|
3025
3200
|
_sfc_main,
|
|
3026
|
-
_sfc_main$2
|
|
3201
|
+
_sfc_main$2,
|
|
3202
|
+
_sfc_main$3
|
|
3027
3203
|
];
|
|
3028
3204
|
const index = {
|
|
3029
3205
|
name: "btxui",
|