btxui 1.0.81 → 1.0.83
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 +347 -157
- package/dist/index.js.gz +0 -0
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +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, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount } from "vue";
|
|
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, normalizeProps, guardReactiveProps, provide } from "vue";
|
|
2
2
|
const theme = {
|
|
3
3
|
// 预置主题色
|
|
4
4
|
colors: {
|
|
@@ -192,6 +192,8 @@ const prestyles = {
|
|
|
192
192
|
"objfit-contain": `object-fit: contain;`,
|
|
193
193
|
"objfit-none": `object-fit: none;`,
|
|
194
194
|
"objfit-scaledown": `object-fit: scale-down;`,
|
|
195
|
+
// 图层混合模式
|
|
196
|
+
"lighten": `mix-blend-mode: lighten;`,
|
|
195
197
|
// 二段赋值-----------------------------------------------------------------------------------
|
|
196
198
|
// 文字颜色
|
|
197
199
|
"color": {
|
|
@@ -552,7 +554,7 @@ var md5$1 = {
|
|
|
552
554
|
})(md5$1);
|
|
553
555
|
const md5 = md5Exports;
|
|
554
556
|
const GLOBAL_STYLE_NAME = "BTXUIGlobal";
|
|
555
|
-
const _sfc_main$
|
|
557
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
556
558
|
__name: "b-style",
|
|
557
559
|
props: {
|
|
558
560
|
class: {},
|
|
@@ -796,8 +798,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
796
798
|
};
|
|
797
799
|
}
|
|
798
800
|
});
|
|
799
|
-
const _hoisted_1$
|
|
800
|
-
const _sfc_main$
|
|
801
|
+
const _hoisted_1$c = ["data-ani-states", "state"];
|
|
802
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
801
803
|
__name: "b-view",
|
|
802
804
|
props: {
|
|
803
805
|
class: {},
|
|
@@ -838,7 +840,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
838
840
|
}
|
|
839
841
|
});
|
|
840
842
|
return (_ctx, _cache) => {
|
|
841
|
-
return openBlock(), createBlock(_sfc_main$
|
|
843
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
842
844
|
class: normalizeClass(_ctx.class),
|
|
843
845
|
cname: _ctx.cname,
|
|
844
846
|
states: _ctx.states,
|
|
@@ -855,15 +857,15 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
855
857
|
style: normalizeStyle({ ...bgStyle.value, ...scope.matrixStyle })
|
|
856
858
|
}, [
|
|
857
859
|
renderSlot(_ctx.$slots, "default")
|
|
858
|
-
], 46, _hoisted_1$
|
|
860
|
+
], 46, _hoisted_1$c)
|
|
859
861
|
]),
|
|
860
862
|
_: 3
|
|
861
863
|
}, 8, ["class", "cname", "states", "matrix"]);
|
|
862
864
|
};
|
|
863
865
|
}
|
|
864
866
|
});
|
|
865
|
-
const _hoisted_1$
|
|
866
|
-
const _sfc_main$
|
|
867
|
+
const _hoisted_1$b = ["state"];
|
|
868
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
867
869
|
__name: "b-text",
|
|
868
870
|
props: {
|
|
869
871
|
class: {},
|
|
@@ -873,7 +875,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
873
875
|
},
|
|
874
876
|
setup(__props) {
|
|
875
877
|
return (_ctx, _cache) => {
|
|
876
|
-
return openBlock(), createBlock(_sfc_main$
|
|
878
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
877
879
|
class: normalizeClass(_ctx.class),
|
|
878
880
|
states: _ctx.states,
|
|
879
881
|
cname: _ctx.cname
|
|
@@ -884,15 +886,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
884
886
|
state: _ctx.state
|
|
885
887
|
}, [
|
|
886
888
|
renderSlot(_ctx.$slots, "default")
|
|
887
|
-
], 10, _hoisted_1$
|
|
889
|
+
], 10, _hoisted_1$b)
|
|
888
890
|
]),
|
|
889
891
|
_: 3
|
|
890
892
|
}, 8, ["class", "states", "cname"]);
|
|
891
893
|
};
|
|
892
894
|
}
|
|
893
895
|
});
|
|
894
|
-
const
|
|
895
|
-
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
896
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
896
897
|
__name: "b-hot",
|
|
897
898
|
props: {
|
|
898
899
|
link: {},
|
|
@@ -906,7 +907,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
906
907
|
anchor: {},
|
|
907
908
|
cname: {},
|
|
908
909
|
replace: { type: Boolean },
|
|
909
|
-
touchDuration: {}
|
|
910
|
+
touchDuration: {},
|
|
911
|
+
eventProxy: { type: Boolean }
|
|
910
912
|
},
|
|
911
913
|
emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick", "on_longTouch"],
|
|
912
914
|
setup(__props, { emit }) {
|
|
@@ -984,7 +986,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
984
986
|
$anchor.value.download = props.download;
|
|
985
987
|
});
|
|
986
988
|
return (_ctx, _cache) => {
|
|
987
|
-
return openBlock(), createBlock(_sfc_main$
|
|
989
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
988
990
|
class: normalizeClass(_ctx.class),
|
|
989
991
|
states: _ctx.states,
|
|
990
992
|
hover: _ctx.hover,
|
|
@@ -992,7 +994,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
992
994
|
cname: _ctx.cname
|
|
993
995
|
}, {
|
|
994
996
|
className: withCtx((scope) => [
|
|
995
|
-
|
|
997
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.eventProxy ? "div" : "a"), {
|
|
996
998
|
style: normalizeStyle(`user-select: none; cursor: ${cursor.value};`),
|
|
997
999
|
ref_key: "$anchor",
|
|
998
1000
|
ref: $anchor,
|
|
@@ -1002,7 +1004,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1002
1004
|
onTouchmove: move,
|
|
1003
1005
|
onMouseleave: leave,
|
|
1004
1006
|
onTouchend: leave,
|
|
1005
|
-
onClick:
|
|
1007
|
+
onClick: click,
|
|
1006
1008
|
onDblclick: withModifiers(dblclick, ["stop"]),
|
|
1007
1009
|
target: target.value,
|
|
1008
1010
|
class: normalizeClass(scope.className),
|
|
@@ -1010,9 +1012,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1010
1012
|
state: _ctx.state,
|
|
1011
1013
|
active: _ctx.active ? true : "",
|
|
1012
1014
|
href: url.value
|
|
1013
|
-
},
|
|
1014
|
-
|
|
1015
|
-
|
|
1015
|
+
}, {
|
|
1016
|
+
default: withCtx(() => [
|
|
1017
|
+
renderSlot(_ctx.$slots, "default")
|
|
1018
|
+
]),
|
|
1019
|
+
_: 2
|
|
1020
|
+
}, 1064, ["style", "onDblclick", "target", "class", "hover", "state", "active", "href"]))
|
|
1016
1021
|
]),
|
|
1017
1022
|
_: 3
|
|
1018
1023
|
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
@@ -1020,7 +1025,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1020
1025
|
}
|
|
1021
1026
|
});
|
|
1022
1027
|
const _hoisted_1$a = ["src", "state", "alt"];
|
|
1023
|
-
const _sfc_main$
|
|
1028
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
1024
1029
|
__name: "b-img",
|
|
1025
1030
|
props: {
|
|
1026
1031
|
img: {},
|
|
@@ -1052,7 +1057,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1052
1057
|
setSrc();
|
|
1053
1058
|
});
|
|
1054
1059
|
return (_ctx, _cache) => {
|
|
1055
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1060
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1056
1061
|
class: normalizeClass(_ctx.class),
|
|
1057
1062
|
cname: _ctx.cname,
|
|
1058
1063
|
states: _ctx.states,
|
|
@@ -1072,17 +1077,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1072
1077
|
};
|
|
1073
1078
|
}
|
|
1074
1079
|
});
|
|
1075
|
-
const _sfc_main$
|
|
1080
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
1076
1081
|
__name: "ani-success",
|
|
1077
1082
|
setup(__props) {
|
|
1078
1083
|
return (_ctx, _cache) => {
|
|
1079
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1084
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
1080
1085
|
class: "flex-5",
|
|
1081
1086
|
matrix: { translate: "0,9px", rotate: "45deg" }
|
|
1082
1087
|
}, {
|
|
1083
1088
|
default: withCtx(() => [
|
|
1084
|
-
createVNode(_sfc_main$
|
|
1085
|
-
createVNode(_sfc_main$
|
|
1089
|
+
createVNode(_sfc_main$r, { class: "ani-success-part1 w-1 h-3-px bg-color-green round-sm" }),
|
|
1090
|
+
createVNode(_sfc_main$r, { class: "ani-success-part2 w-1d7 h-3-px bg-color-green round-sm rel t-1-px l-f1-px" })
|
|
1086
1091
|
]),
|
|
1087
1092
|
_: 1
|
|
1088
1093
|
});
|
|
@@ -1098,7 +1103,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
1098
1103
|
}
|
|
1099
1104
|
return target;
|
|
1100
1105
|
};
|
|
1101
|
-
const _sfc_main$
|
|
1106
|
+
const _sfc_main$n = {};
|
|
1102
1107
|
function _sfc_render$2(_ctx, _cache) {
|
|
1103
1108
|
const _component_b_text = resolveComponent("b-text");
|
|
1104
1109
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1110,9 +1115,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
1110
1115
|
_: 1
|
|
1111
1116
|
});
|
|
1112
1117
|
}
|
|
1113
|
-
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1118
|
+
const AniFail = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$2]]);
|
|
1114
1119
|
const aniNotic_vue_vue_type_style_index_0_lang = "";
|
|
1115
|
-
const _sfc_main$
|
|
1120
|
+
const _sfc_main$m = {};
|
|
1116
1121
|
function _sfc_render$1(_ctx, _cache) {
|
|
1117
1122
|
const _component_b_text = resolveComponent("b-text");
|
|
1118
1123
|
const _component_b_view = resolveComponent("b-view");
|
|
@@ -1127,9 +1132,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
1127
1132
|
_: 1
|
|
1128
1133
|
});
|
|
1129
1134
|
}
|
|
1130
|
-
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1135
|
+
const AniNotic = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$1]]);
|
|
1131
1136
|
const aniLoading_vue_vue_type_style_index_0_lang = "";
|
|
1132
|
-
const _sfc_main$
|
|
1137
|
+
const _sfc_main$l = {};
|
|
1133
1138
|
function _sfc_render(_ctx, _cache) {
|
|
1134
1139
|
const _component_b_view = resolveComponent("b-view");
|
|
1135
1140
|
return openBlock(), createBlock(_component_b_view, { class: "flex-5" }, {
|
|
@@ -1139,9 +1144,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
1139
1144
|
_: 1
|
|
1140
1145
|
});
|
|
1141
1146
|
}
|
|
1142
|
-
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1147
|
+
const AniLoading = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render]]);
|
|
1143
1148
|
const _hoisted_1$9 = ["state"];
|
|
1144
|
-
const _sfc_main$
|
|
1149
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
1145
1150
|
__name: "b-icon",
|
|
1146
1151
|
props: {
|
|
1147
1152
|
icon: {},
|
|
@@ -1153,19 +1158,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1153
1158
|
setup(__props) {
|
|
1154
1159
|
const props = __props;
|
|
1155
1160
|
return (_ctx, _cache) => {
|
|
1156
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1161
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1157
1162
|
class: normalizeClass(_ctx.class),
|
|
1158
1163
|
states: _ctx.states,
|
|
1159
1164
|
cname: _ctx.cname
|
|
1160
1165
|
}, {
|
|
1161
1166
|
className: withCtx((scope) => [
|
|
1162
1167
|
_ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1163
|
-
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$
|
|
1168
|
+
_ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$o, { key: "success" })) : createCommentVNode("", true),
|
|
1164
1169
|
_ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1165
1170
|
_ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1166
1171
|
_ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1167
1172
|
], 64)) : createCommentVNode("", true),
|
|
1168
|
-
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$
|
|
1173
|
+
_ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$s, {
|
|
1169
1174
|
key: 1,
|
|
1170
1175
|
"bg-img": _ctx.icon,
|
|
1171
1176
|
states: _ctx.states,
|
|
@@ -1184,7 +1189,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1184
1189
|
});
|
|
1185
1190
|
const _hoisted_1$8 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
|
|
1186
1191
|
const _hoisted_2$3 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
|
|
1187
|
-
const _sfc_main$
|
|
1192
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
1188
1193
|
__name: "b-input",
|
|
1189
1194
|
props: {
|
|
1190
1195
|
type: {},
|
|
@@ -1267,6 +1272,15 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1267
1272
|
}
|
|
1268
1273
|
return true;
|
|
1269
1274
|
};
|
|
1275
|
+
const clear = () => {
|
|
1276
|
+
if (props.aspectHeight) {
|
|
1277
|
+
$input.value.innerText = "";
|
|
1278
|
+
input2();
|
|
1279
|
+
} else {
|
|
1280
|
+
val.value = "";
|
|
1281
|
+
input();
|
|
1282
|
+
}
|
|
1283
|
+
};
|
|
1270
1284
|
const $input = ref();
|
|
1271
1285
|
__expose({
|
|
1272
1286
|
check,
|
|
@@ -1276,15 +1290,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1276
1290
|
blur: function() {
|
|
1277
1291
|
$input.value.blur();
|
|
1278
1292
|
},
|
|
1279
|
-
clear
|
|
1280
|
-
if (props.aspectHeight) {
|
|
1281
|
-
$input.value.innerText = "";
|
|
1282
|
-
input2();
|
|
1283
|
-
} else {
|
|
1284
|
-
val.value = "";
|
|
1285
|
-
input();
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1293
|
+
clear
|
|
1288
1294
|
});
|
|
1289
1295
|
onMounted(() => {
|
|
1290
1296
|
nextTick(() => {
|
|
@@ -1292,61 +1298,92 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
1292
1298
|
});
|
|
1293
1299
|
});
|
|
1294
1300
|
return (_ctx, _cache) => {
|
|
1295
|
-
|
|
1301
|
+
const _component_b_icon = resolveComponent("b-icon");
|
|
1302
|
+
const _component_b_hot = resolveComponent("b-hot");
|
|
1303
|
+
const _component_b_view = resolveComponent("b-view");
|
|
1304
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1296
1305
|
class: normalizeClass(_ctx.class),
|
|
1297
1306
|
focus: _ctx.focus,
|
|
1298
1307
|
states: _ctx.states,
|
|
1299
1308
|
cname: _ctx.cname
|
|
1300
1309
|
}, {
|
|
1301
1310
|
className: withCtx((scope) => [
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1311
|
+
createVNode(_component_b_view, { class: "flex-4 rel" }, {
|
|
1312
|
+
default: withCtx(() => {
|
|
1313
|
+
var _a, _b;
|
|
1314
|
+
return [
|
|
1315
|
+
_ctx.aspectHeight ? (openBlock(), createElementBlock("div", {
|
|
1316
|
+
key: 0,
|
|
1317
|
+
class: normalizeClass(scope.className),
|
|
1318
|
+
contenteditable: "",
|
|
1319
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("on_focus", $event)),
|
|
1320
|
+
onBlur: blur,
|
|
1321
|
+
onChange: change,
|
|
1322
|
+
onInput: input2,
|
|
1323
|
+
type: _ctx.type,
|
|
1324
|
+
ref_key: "$input",
|
|
1325
|
+
ref: $input,
|
|
1326
|
+
style: { "outline": "none" },
|
|
1327
|
+
name: _ctx.name,
|
|
1328
|
+
"focus-state": _ctx.focus ? "true" : "",
|
|
1329
|
+
state: _ctx.state,
|
|
1330
|
+
placeholder: _ctx.placeholder,
|
|
1331
|
+
maxlength: _ctx.maxlength,
|
|
1332
|
+
readonly: _ctx.readonly,
|
|
1333
|
+
autocomplete: "off"
|
|
1334
|
+
}, toDisplayString(val2.value), 43, _hoisted_1$8)) : withDirectives((openBlock(), createElementBlock("input", {
|
|
1335
|
+
key: 1,
|
|
1336
|
+
class: normalizeClass(scope.className),
|
|
1337
|
+
onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("on_focus", $event)),
|
|
1338
|
+
onBlur: blur,
|
|
1339
|
+
onChange: change,
|
|
1340
|
+
onInput: input,
|
|
1341
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => val.value = $event),
|
|
1342
|
+
type: _ctx.type,
|
|
1343
|
+
ref_key: "$input",
|
|
1344
|
+
ref: $input,
|
|
1345
|
+
style: { "outline": "none" },
|
|
1346
|
+
name: _ctx.name,
|
|
1347
|
+
"focus-state": _ctx.focus ? "true" : "",
|
|
1348
|
+
state: _ctx.state,
|
|
1349
|
+
placeholder: _ctx.placeholder,
|
|
1350
|
+
maxlength: _ctx.maxlength,
|
|
1351
|
+
readonly: _ctx.readonly,
|
|
1352
|
+
autocomplete: "off"
|
|
1353
|
+
}, null, 42, _hoisted_2$3)), [
|
|
1354
|
+
[vModelDynamic, val.value]
|
|
1355
|
+
]),
|
|
1356
|
+
!_ctx.readonly && !_ctx.aspectHeight ? (openBlock(), createBlock(_component_b_hot, {
|
|
1357
|
+
key: 2,
|
|
1358
|
+
onOn_click: clear,
|
|
1359
|
+
class: "abs r-1",
|
|
1360
|
+
states: {
|
|
1361
|
+
show: "show",
|
|
1362
|
+
hide: "hide"
|
|
1363
|
+
},
|
|
1364
|
+
state: (((_a = val.value) == null ? void 0 : _a.length) || ((_b = val2.value) == null ? void 0 : _b.length)) == 0 ? "hide" : "show"
|
|
1365
|
+
}, {
|
|
1366
|
+
default: withCtx(() => [
|
|
1367
|
+
_ctx.$slots.cancel ? renderSlot(_ctx.$slots, "cancel", { key: 0 }) : (openBlock(), createBlock(_component_b_icon, {
|
|
1368
|
+
key: 1,
|
|
1369
|
+
class: "flex-5 h-1d8 w-1d8 bg-color-neutral round",
|
|
1370
|
+
icon: "fail"
|
|
1371
|
+
}))
|
|
1372
|
+
]),
|
|
1373
|
+
_: 3
|
|
1374
|
+
}, 8, ["state"])) : createCommentVNode("", true)
|
|
1375
|
+
];
|
|
1376
|
+
}),
|
|
1377
|
+
_: 2
|
|
1378
|
+
}, 1024)
|
|
1342
1379
|
]),
|
|
1343
|
-
_:
|
|
1380
|
+
_: 3
|
|
1344
1381
|
}, 8, ["class", "focus", "states", "cname"]);
|
|
1345
1382
|
};
|
|
1346
1383
|
}
|
|
1347
1384
|
});
|
|
1348
1385
|
const _hoisted_1$7 = ["name", "focus", "state", "placeholder", "maxlength", "readonly", "rows"];
|
|
1349
|
-
const _sfc_main$
|
|
1386
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
1350
1387
|
__name: "b-textarea",
|
|
1351
1388
|
props: {
|
|
1352
1389
|
text: {},
|
|
@@ -1370,7 +1407,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1370
1407
|
emit("update:text", formatText(val.value));
|
|
1371
1408
|
};
|
|
1372
1409
|
return (_ctx, _cache) => {
|
|
1373
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1410
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1374
1411
|
class: normalizeClass(_ctx.class),
|
|
1375
1412
|
focus: _ctx.focus,
|
|
1376
1413
|
states: _ctx.states,
|
|
@@ -1402,7 +1439,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
1402
1439
|
});
|
|
1403
1440
|
const _hoisted_1$6 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
|
|
1404
1441
|
const _hoisted_2$2 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
|
|
1405
|
-
const _sfc_main$
|
|
1442
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
1406
1443
|
__name: "b-video",
|
|
1407
1444
|
props: {
|
|
1408
1445
|
video: {},
|
|
@@ -1445,7 +1482,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1445
1482
|
const _component_b_icon = resolveComponent("b-icon");
|
|
1446
1483
|
const _component_b_view = resolveComponent("b-view");
|
|
1447
1484
|
const _component_b_hot = resolveComponent("b-hot");
|
|
1448
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1485
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1449
1486
|
class: normalizeClass(_ctx.class),
|
|
1450
1487
|
cname: _ctx.cname
|
|
1451
1488
|
}, {
|
|
@@ -1526,7 +1563,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
1526
1563
|
});
|
|
1527
1564
|
const _hoisted_1$5 = ["state"];
|
|
1528
1565
|
const tolerance = 2;
|
|
1529
|
-
const _sfc_main$
|
|
1566
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
1530
1567
|
__name: "b-list",
|
|
1531
1568
|
props: {
|
|
1532
1569
|
scroll: {},
|
|
@@ -1589,7 +1626,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1589
1626
|
watchPos();
|
|
1590
1627
|
});
|
|
1591
1628
|
return (_ctx, _cache) => {
|
|
1592
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1629
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1593
1630
|
class: normalizeClass(_ctx.class),
|
|
1594
1631
|
states: _ctx.states,
|
|
1595
1632
|
cname: _ctx.cname
|
|
@@ -1617,7 +1654,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
1617
1654
|
}
|
|
1618
1655
|
});
|
|
1619
1656
|
const _hoisted_1$4 = ["state", "draggable"];
|
|
1620
|
-
const _sfc_main$
|
|
1657
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1621
1658
|
__name: "b-drag",
|
|
1622
1659
|
props: {
|
|
1623
1660
|
class: {},
|
|
@@ -1727,7 +1764,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1727
1764
|
bindEvent();
|
|
1728
1765
|
});
|
|
1729
1766
|
return (_ctx, _cache) => {
|
|
1730
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1767
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1731
1768
|
class: normalizeClass(_ctx.class),
|
|
1732
1769
|
states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
|
|
1733
1770
|
cname: _ctx.cname
|
|
@@ -1757,7 +1794,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
1757
1794
|
}
|
|
1758
1795
|
});
|
|
1759
1796
|
const _hoisted_1$3 = ["src"];
|
|
1760
|
-
const _sfc_main$
|
|
1797
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1761
1798
|
__name: "b-webview",
|
|
1762
1799
|
props: {
|
|
1763
1800
|
src: {},
|
|
@@ -1766,7 +1803,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1766
1803
|
},
|
|
1767
1804
|
setup(__props) {
|
|
1768
1805
|
return (_ctx, _cache) => {
|
|
1769
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1806
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
1770
1807
|
class: normalizeClass(_ctx.class),
|
|
1771
1808
|
cname: _ctx.cname
|
|
1772
1809
|
}, {
|
|
@@ -1782,7 +1819,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
1782
1819
|
};
|
|
1783
1820
|
}
|
|
1784
1821
|
});
|
|
1785
|
-
const _sfc_main$
|
|
1822
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
1786
1823
|
__name: "b-row",
|
|
1787
1824
|
props: {
|
|
1788
1825
|
class: {},
|
|
@@ -1799,7 +1836,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1799
1836
|
});
|
|
1800
1837
|
const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
1801
1838
|
return (_ctx, _cache) => {
|
|
1802
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1839
|
+
return openBlock(), createBlock(_sfc_main$s, mergeProps({ class: combClass.value }, _ctx.viewData, {
|
|
1803
1840
|
extraClass: {
|
|
1804
1841
|
selector: ">",
|
|
1805
1842
|
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
@@ -1813,7 +1850,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
1813
1850
|
};
|
|
1814
1851
|
}
|
|
1815
1852
|
});
|
|
1816
|
-
const _sfc_main$
|
|
1853
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
1817
1854
|
__name: "b-col",
|
|
1818
1855
|
props: {
|
|
1819
1856
|
span: {},
|
|
@@ -1825,7 +1862,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1825
1862
|
const props = __props;
|
|
1826
1863
|
const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
1827
1864
|
return (_ctx, _cache) => {
|
|
1828
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1865
|
+
return openBlock(), createBlock(_sfc_main$s, mergeProps({ class: combClass.value }, _ctx.viewData), {
|
|
1829
1866
|
default: withCtx(() => [
|
|
1830
1867
|
renderSlot(_ctx.$slots, "default")
|
|
1831
1868
|
]),
|
|
@@ -1834,7 +1871,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
1834
1871
|
};
|
|
1835
1872
|
}
|
|
1836
1873
|
});
|
|
1837
|
-
const _sfc_main$
|
|
1874
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
1838
1875
|
__name: "btn-wid",
|
|
1839
1876
|
props: {
|
|
1840
1877
|
btnText: {},
|
|
@@ -1881,13 +1918,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1881
1918
|
};
|
|
1882
1919
|
});
|
|
1883
1920
|
return (_ctx, _cache) => {
|
|
1884
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1921
|
+
return openBlock(), createBlock(_sfc_main$q, mergeProps(_ctx.hotData, {
|
|
1885
1922
|
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`,
|
|
1886
1923
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
1887
1924
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
1888
1925
|
}), {
|
|
1889
1926
|
default: withCtx(() => [
|
|
1890
|
-
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$
|
|
1927
|
+
_ctx.iconData ? (openBlock(), createBlock(_sfc_main$k, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
1891
1928
|
createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
|
|
1892
1929
|
]),
|
|
1893
1930
|
_: 1
|
|
@@ -1895,7 +1932,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
1895
1932
|
};
|
|
1896
1933
|
}
|
|
1897
1934
|
});
|
|
1898
|
-
const _sfc_main$
|
|
1935
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
1899
1936
|
__name: "checkbox-wid",
|
|
1900
1937
|
props: {
|
|
1901
1938
|
selected: { type: Boolean },
|
|
@@ -1923,7 +1960,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1923
1960
|
emit("change", props.value, state);
|
|
1924
1961
|
};
|
|
1925
1962
|
return (_ctx, _cache) => {
|
|
1926
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1963
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
1927
1964
|
class: normalizeClass(combClass.value),
|
|
1928
1965
|
hover: "alpha-d9",
|
|
1929
1966
|
state: selected.value ? "act" : "",
|
|
@@ -1937,7 +1974,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1937
1974
|
}, () => {
|
|
1938
1975
|
var _a, _b;
|
|
1939
1976
|
return [
|
|
1940
|
-
createVNode(_sfc_main$
|
|
1977
|
+
createVNode(_sfc_main$s, {
|
|
1941
1978
|
class: "w-24-px h-24-px bg-color-neutral round-sm flex-5",
|
|
1942
1979
|
state: selected.value ? "act" : "",
|
|
1943
1980
|
cname: combClass.value + combActClass.value,
|
|
@@ -1946,7 +1983,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1946
1983
|
}
|
|
1947
1984
|
}, {
|
|
1948
1985
|
default: withCtx(() => [
|
|
1949
|
-
createVNode(_sfc_main$
|
|
1986
|
+
createVNode(_sfc_main$k, {
|
|
1950
1987
|
icon: "success",
|
|
1951
1988
|
class: "alpha-d3",
|
|
1952
1989
|
state: selected.value ? "act" : "",
|
|
@@ -1959,7 +1996,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1959
1996
|
}, 8, ["state", "cname", "states"])
|
|
1960
1997
|
];
|
|
1961
1998
|
}),
|
|
1962
|
-
label.value ? (openBlock(), createBlock(_sfc_main$
|
|
1999
|
+
label.value ? (openBlock(), createBlock(_sfc_main$s, {
|
|
1963
2000
|
key: 0,
|
|
1964
2001
|
class: "pad-h-1 ellipsis"
|
|
1965
2002
|
}, {
|
|
@@ -1974,7 +2011,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1974
2011
|
};
|
|
1975
2012
|
}
|
|
1976
2013
|
});
|
|
1977
|
-
const _sfc_main$
|
|
2014
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
1978
2015
|
__name: "checkbox-group-wid",
|
|
1979
2016
|
props: {
|
|
1980
2017
|
options: {},
|
|
@@ -2017,11 +2054,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2017
2054
|
return (_ctx, _cache) => {
|
|
2018
2055
|
const _component_b_col = resolveComponent("b-col");
|
|
2019
2056
|
const _component_b_row = resolveComponent("b-row");
|
|
2020
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2057
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
2021
2058
|
class: normalizeClass(_ctx.class)
|
|
2022
2059
|
}, {
|
|
2023
2060
|
default: withCtx(() => [
|
|
2024
|
-
_ctx.title ? (openBlock(), createBlock(_sfc_main$
|
|
2061
|
+
_ctx.title ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2025
2062
|
key: 0,
|
|
2026
2063
|
class: "mrg-b-1"
|
|
2027
2064
|
}, {
|
|
@@ -2039,7 +2076,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2039
2076
|
key: i
|
|
2040
2077
|
}, {
|
|
2041
2078
|
default: withCtx(() => [
|
|
2042
|
-
createVNode(_sfc_main$
|
|
2079
|
+
createVNode(_sfc_main$a, mergeProps({
|
|
2043
2080
|
onChange: change,
|
|
2044
2081
|
label: item.label,
|
|
2045
2082
|
value: item.value
|
|
@@ -2079,7 +2116,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2079
2116
|
};
|
|
2080
2117
|
}
|
|
2081
2118
|
});
|
|
2082
|
-
const _sfc_main$
|
|
2119
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
2083
2120
|
__name: "radio-group-wid",
|
|
2084
2121
|
props: {
|
|
2085
2122
|
options: {},
|
|
@@ -2107,7 +2144,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2107
2144
|
});
|
|
2108
2145
|
return (_ctx, _cache) => {
|
|
2109
2146
|
const _component_b_view = resolveComponent("b-view");
|
|
2110
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2147
|
+
return openBlock(), createBlock(_sfc_main$9, {
|
|
2111
2148
|
span: _ctx.span,
|
|
2112
2149
|
title: _ctx.title,
|
|
2113
2150
|
class: normalizeClass(_ctx.class),
|
|
@@ -2150,7 +2187,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
2150
2187
|
const _hoisted_1$2 = ["state"];
|
|
2151
2188
|
const _hoisted_2$1 = ["innerHTML"];
|
|
2152
2189
|
const _hoisted_3$1 = ["innerHTML"];
|
|
2153
|
-
const _sfc_main$
|
|
2190
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
2154
2191
|
__name: "tabs-wid",
|
|
2155
2192
|
props: {
|
|
2156
2193
|
options: {},
|
|
@@ -2220,9 +2257,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2220
2257
|
});
|
|
2221
2258
|
return (_ctx, _cache) => {
|
|
2222
2259
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2223
|
-
createVNode(_sfc_main$
|
|
2260
|
+
createVNode(_sfc_main$s, { class: "flex-7" }, {
|
|
2224
2261
|
default: withCtx(() => [
|
|
2225
|
-
createVNode(_sfc_main$
|
|
2262
|
+
createVNode(_sfc_main$8, {
|
|
2226
2263
|
options: options.value,
|
|
2227
2264
|
title: _ctx.title,
|
|
2228
2265
|
selected: selected.value,
|
|
@@ -2237,13 +2274,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2237
2274
|
} : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
|
|
2238
2275
|
name: "default",
|
|
2239
2276
|
fn: withCtx((scope) => [
|
|
2240
|
-
createVNode(_sfc_main$
|
|
2277
|
+
createVNode(_sfc_main$s, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
|
|
2241
2278
|
]),
|
|
2242
2279
|
key: "1"
|
|
2243
2280
|
} : slots.value.length === 0 ? {
|
|
2244
2281
|
name: "default",
|
|
2245
2282
|
fn: withCtx((scope) => [
|
|
2246
|
-
createVNode(_sfc_main$
|
|
2283
|
+
createVNode(_sfc_main$s, {
|
|
2247
2284
|
class: normalizeClass(`max-w l-0 b-f1-px round-sm h-2-px bg-color-none abs`),
|
|
2248
2285
|
state: scope.state,
|
|
2249
2286
|
states: {
|
|
@@ -2264,19 +2301,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2264
2301
|
};
|
|
2265
2302
|
})
|
|
2266
2303
|
]), 1032, ["options", "title", "selected"]),
|
|
2267
|
-
contLine.value ? (openBlock(), createBlock(_sfc_main$
|
|
2304
|
+
contLine.value ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2268
2305
|
key: 0,
|
|
2269
2306
|
class: "grow-1 h-1-px bg-color-neutral"
|
|
2270
2307
|
})) : createCommentVNode("", true)
|
|
2271
2308
|
]),
|
|
2272
2309
|
_: 3
|
|
2273
2310
|
}),
|
|
2274
|
-
contArea.value ? (openBlock(), createBlock(_sfc_main$
|
|
2311
|
+
contArea.value ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2275
2312
|
key: 0,
|
|
2276
2313
|
class: "pad-v-1d5 over-hide"
|
|
2277
2314
|
}, {
|
|
2278
2315
|
default: withCtx(() => [
|
|
2279
|
-
selected.value ? (openBlock(), createBlock(_sfc_main$
|
|
2316
|
+
selected.value ? (openBlock(), createBlock(_sfc_main$s, { key: 0 }, {
|
|
2280
2317
|
default: withCtx(() => [
|
|
2281
2318
|
createElementVNode("div", {
|
|
2282
2319
|
innerHTML: tabConts[selected.value],
|
|
@@ -2285,7 +2322,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2285
2322
|
}, null, 42, _hoisted_2$1)
|
|
2286
2323
|
]),
|
|
2287
2324
|
_: 1
|
|
2288
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
2325
|
+
})) : (openBlock(), createBlock(_sfc_main$s, {
|
|
2289
2326
|
key: 1,
|
|
2290
2327
|
class: "alpha-d5"
|
|
2291
2328
|
}, {
|
|
@@ -2304,7 +2341,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2304
2341
|
}
|
|
2305
2342
|
});
|
|
2306
2343
|
const _hoisted_1$1 = ["multiple"];
|
|
2307
|
-
const _sfc_main$
|
|
2344
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
2308
2345
|
__name: "upload-wid",
|
|
2309
2346
|
props: {
|
|
2310
2347
|
type: {},
|
|
@@ -2362,7 +2399,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2362
2399
|
};
|
|
2363
2400
|
return (_ctx, _cache) => {
|
|
2364
2401
|
const _component_b_hot = resolveComponent("b-hot");
|
|
2365
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2402
|
+
return openBlock(), createBlock(_sfc_main$s, { class: "flex" }, {
|
|
2366
2403
|
default: withCtx(() => [
|
|
2367
2404
|
_ctx.$slots.default ? (openBlock(), createBlock(_component_b_hot, {
|
|
2368
2405
|
key: 0,
|
|
@@ -2372,7 +2409,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2372
2409
|
renderSlot(_ctx.$slots, "default")
|
|
2373
2410
|
]),
|
|
2374
2411
|
_: 3
|
|
2375
|
-
})) : (openBlock(), createBlock(_sfc_main$
|
|
2412
|
+
})) : (openBlock(), createBlock(_sfc_main$b, mergeProps({
|
|
2376
2413
|
key: 1,
|
|
2377
2414
|
onOn_click: _cache[1] || (_cache[1] = ($event) => $uploader.value.click())
|
|
2378
2415
|
}, btnData.value), null, 16)),
|
|
@@ -2390,7 +2427,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2390
2427
|
};
|
|
2391
2428
|
}
|
|
2392
2429
|
});
|
|
2393
|
-
const _sfc_main$
|
|
2430
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2394
2431
|
__name: "img-upload-wid",
|
|
2395
2432
|
props: {
|
|
2396
2433
|
preview: {},
|
|
@@ -2403,7 +2440,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2403
2440
|
emits: ["update:preview", "on_upload"],
|
|
2404
2441
|
setup(__props, { emit }) {
|
|
2405
2442
|
const props = __props;
|
|
2406
|
-
const size = computed(() => props.compress ? 1024 * 1024 * 20 :
|
|
2443
|
+
const size = computed(() => props.compress ? 1024 * 1024 * 20 : 1024 * 1024 * 2);
|
|
2407
2444
|
const compress = (file) => {
|
|
2408
2445
|
return new Promise((resolve, reject) => {
|
|
2409
2446
|
const reader = new FileReader();
|
|
@@ -2449,7 +2486,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2449
2486
|
return (_ctx, _cache) => {
|
|
2450
2487
|
const _component_b_view = resolveComponent("b-view");
|
|
2451
2488
|
const _component_b_icon = resolveComponent("b-icon");
|
|
2452
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2489
|
+
return openBlock(), createBlock(_sfc_main$6, {
|
|
2453
2490
|
onOn_upload: imgUpload,
|
|
2454
2491
|
size: size.value,
|
|
2455
2492
|
multiple: _ctx.multiple,
|
|
@@ -2474,7 +2511,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2474
2511
|
};
|
|
2475
2512
|
}
|
|
2476
2513
|
});
|
|
2477
|
-
const _sfc_main$
|
|
2514
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2478
2515
|
__name: "app-wid",
|
|
2479
2516
|
props: {
|
|
2480
2517
|
path: {},
|
|
@@ -2499,15 +2536,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2499
2536
|
return (_ctx, _cache) => {
|
|
2500
2537
|
var _a;
|
|
2501
2538
|
const _component_router_view = resolveComponent("router-view");
|
|
2502
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2539
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
2503
2540
|
class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
2504
2541
|
}, {
|
|
2505
2542
|
default: withCtx(() => {
|
|
2506
2543
|
var _a2;
|
|
2507
2544
|
return [
|
|
2508
|
-
createVNode(_sfc_main$
|
|
2545
|
+
createVNode(_sfc_main$s, { class: "rel grow-1" }, {
|
|
2509
2546
|
default: withCtx(() => [
|
|
2510
|
-
createVNode(_sfc_main$
|
|
2547
|
+
createVNode(_sfc_main$g, {
|
|
2511
2548
|
scroll: { y: "auto", x: "hidden" },
|
|
2512
2549
|
class: "abs max"
|
|
2513
2550
|
}, {
|
|
@@ -2521,32 +2558,32 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2521
2558
|
]),
|
|
2522
2559
|
_: 1
|
|
2523
2560
|
}),
|
|
2524
|
-
createVNode(_sfc_main$
|
|
2561
|
+
createVNode(_sfc_main$s, {
|
|
2525
2562
|
class: normalizeClass(`pcenter pad-t-d5 flex-1 ${_ctx.round ? "round-md round-t" : ""} bg-color-${((_a2 = _ctx.colors) == null ? void 0 : _a2.bar) || "dark"} solid-t line-neutral thick-d4 app-nav-bar`)
|
|
2526
2563
|
}, {
|
|
2527
2564
|
default: withCtx(() => [
|
|
2528
2565
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
2529
|
-
return openBlock(), createBlock(_sfc_main$
|
|
2566
|
+
return openBlock(), createBlock(_sfc_main$q, mergeProps({ key: i }, nav.hotData, {
|
|
2530
2567
|
class: "grow-1",
|
|
2531
2568
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
|
|
2532
2569
|
}), {
|
|
2533
2570
|
default: withCtx(() => {
|
|
2534
2571
|
var _a3, _b, _c, _d, _e, _f;
|
|
2535
2572
|
return [
|
|
2536
|
-
nav.main ? (openBlock(), createBlock(_sfc_main$
|
|
2573
|
+
nav.main ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2537
2574
|
key: 0,
|
|
2538
2575
|
class: "rel w-5 mrg-h-auto"
|
|
2539
2576
|
}, {
|
|
2540
2577
|
default: withCtx(() => {
|
|
2541
2578
|
var _a4, _b2, _c2, _d2;
|
|
2542
2579
|
return [
|
|
2543
|
-
createVNode(_sfc_main$
|
|
2580
|
+
createVNode(_sfc_main$k, mergeProps(nav.iconData, {
|
|
2544
2581
|
class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 = _ctx.colors) == null ? void 0 : _a4.center) == null ? void 0 : _b2.line) || "neutral"} bg-color-${((_d2 = (_c2 = _ctx.colors) == null ? void 0 : _c2.center) == null ? void 0 : _d2.bg) || "dgray"}`
|
|
2545
2582
|
}), null, 16, ["class"])
|
|
2546
2583
|
];
|
|
2547
2584
|
}),
|
|
2548
2585
|
_: 2
|
|
2549
|
-
}, 1024)) : (openBlock(), createBlock(_sfc_main$
|
|
2586
|
+
}, 1024)) : (openBlock(), createBlock(_sfc_main$s, {
|
|
2550
2587
|
key: 1,
|
|
2551
2588
|
class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
|
|
2552
2589
|
cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
|
|
@@ -2556,11 +2593,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2556
2593
|
}
|
|
2557
2594
|
}, {
|
|
2558
2595
|
default: withCtx(() => [
|
|
2559
|
-
nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2596
|
+
nav.unread === 1 ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2560
2597
|
key: 0,
|
|
2561
2598
|
class: "round w-d7 h-d7 r-9d2-vw t-d2 bg-color-red abs"
|
|
2562
2599
|
})) : createCommentVNode("", true),
|
|
2563
|
-
nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$
|
|
2600
|
+
nav.unread > 1 ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2564
2601
|
key: 1,
|
|
2565
2602
|
class: "flex-5 round w-1d5 h-1d5 bold r-7d7-vw t-fd5 bg-color-red abs color-Cfff"
|
|
2566
2603
|
}, {
|
|
@@ -2569,7 +2606,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2569
2606
|
]),
|
|
2570
2607
|
_: 2
|
|
2571
2608
|
}, 1024)) : createCommentVNode("", true),
|
|
2572
|
-
createVNode(_sfc_main$
|
|
2609
|
+
createVNode(_sfc_main$k, mergeProps(nav.iconData, {
|
|
2573
2610
|
cname: nav.act,
|
|
2574
2611
|
state: curRoute.value === nav.hotData.link ? "act" : "",
|
|
2575
2612
|
states: {
|
|
@@ -2577,7 +2614,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
2577
2614
|
},
|
|
2578
2615
|
class: `w-2d7 h-2d7 ${_ctx.iconTransAni ? "trans-fast" : ""} fsize-1d7`
|
|
2579
2616
|
}), null, 16, ["cname", "state", "states", "class"]),
|
|
2580
|
-
nav.text ? (openBlock(), createBlock(_sfc_main$
|
|
2617
|
+
nav.text ? (openBlock(), createBlock(_sfc_main$r, {
|
|
2581
2618
|
key: 2,
|
|
2582
2619
|
class: "fsize-d83"
|
|
2583
2620
|
}, {
|
|
@@ -2613,7 +2650,7 @@ const _hoisted_4 = [
|
|
|
2613
2650
|
_hoisted_2,
|
|
2614
2651
|
_hoisted_3
|
|
2615
2652
|
];
|
|
2616
|
-
const _sfc_main$
|
|
2653
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2617
2654
|
__name: "confirm-wid",
|
|
2618
2655
|
props: {
|
|
2619
2656
|
colors: {}
|
|
@@ -2654,7 +2691,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
2654
2691
|
};
|
|
2655
2692
|
}
|
|
2656
2693
|
});
|
|
2657
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2694
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2658
2695
|
__name: "toast-wid",
|
|
2659
2696
|
props: {
|
|
2660
2697
|
matteColor: {}
|
|
@@ -2700,6 +2737,158 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2700
2737
|
};
|
|
2701
2738
|
}
|
|
2702
2739
|
});
|
|
2740
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
2741
|
+
__name: "content-node-wid",
|
|
2742
|
+
props: {
|
|
2743
|
+
dataTree: {},
|
|
2744
|
+
gap: {},
|
|
2745
|
+
indent: {},
|
|
2746
|
+
hover: {},
|
|
2747
|
+
active: {}
|
|
2748
|
+
},
|
|
2749
|
+
emits: ["on_select"],
|
|
2750
|
+
setup(__props, { emit }) {
|
|
2751
|
+
const props = __props;
|
|
2752
|
+
const dataTree = ref(props.dataTree || []);
|
|
2753
|
+
const selected = inject("selected");
|
|
2754
|
+
const gap = computed(() => {
|
|
2755
|
+
return props.gap || "d7";
|
|
2756
|
+
});
|
|
2757
|
+
const indent = computed(() => {
|
|
2758
|
+
return props.indent || "3";
|
|
2759
|
+
});
|
|
2760
|
+
const setIndex = (level) => {
|
|
2761
|
+
return (level * parseFloat(indent.value.replace("d", ".")) + parseFloat(gap.value.replace("d", "."))).toString().replace(".", "d");
|
|
2762
|
+
};
|
|
2763
|
+
return (_ctx, _cache) => {
|
|
2764
|
+
const _component_b_text = resolveComponent("b-text");
|
|
2765
|
+
const _component_content_node_wid = resolveComponent("content-node-wid", true);
|
|
2766
|
+
return openBlock(true), createElementBlock(Fragment, null, renderList(dataTree.value, (item) => {
|
|
2767
|
+
return openBlock(), createBlock(_sfc_main$s, {
|
|
2768
|
+
state: `id-${item.id}`,
|
|
2769
|
+
key: item.id
|
|
2770
|
+
}, {
|
|
2771
|
+
default: withCtx(() => {
|
|
2772
|
+
var _a;
|
|
2773
|
+
return [
|
|
2774
|
+
createVNode(_sfc_main$q, {
|
|
2775
|
+
cname: `${item.id}-${Math.random()}`,
|
|
2776
|
+
class: normalizeClass(`flex-4 pad-v-${gap.value} pad-l-${setIndex(item.level)}`),
|
|
2777
|
+
hover: _ctx.hover,
|
|
2778
|
+
states: {
|
|
2779
|
+
true: `${_ctx.active ? _ctx.active : ""}`,
|
|
2780
|
+
false: ""
|
|
2781
|
+
},
|
|
2782
|
+
state: (((_a = unref(selected)) == null ? void 0 : _a.findIndex((data) => data.id === item.id)) > -1).toString()
|
|
2783
|
+
}, {
|
|
2784
|
+
default: withCtx(() => [
|
|
2785
|
+
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$k, {
|
|
2786
|
+
key: 0,
|
|
2787
|
+
class: "mrg-r-d4",
|
|
2788
|
+
state: item.spread ? "content-wid-spread" : "content-wid-collapse",
|
|
2789
|
+
icon: "arrow-right"
|
|
2790
|
+
}, null, 8, ["state"])) : createCommentVNode("", true),
|
|
2791
|
+
createVNode(_component_b_text, null, {
|
|
2792
|
+
default: withCtx(() => [
|
|
2793
|
+
createTextVNode(toDisplayString(item.text), 1)
|
|
2794
|
+
]),
|
|
2795
|
+
_: 2
|
|
2796
|
+
}, 1024)
|
|
2797
|
+
]),
|
|
2798
|
+
_: 2
|
|
2799
|
+
}, 1032, ["cname", "class", "hover", "states", "state"]),
|
|
2800
|
+
item.children && item.children.length ? (openBlock(), createBlock(_sfc_main$s, {
|
|
2801
|
+
key: 0,
|
|
2802
|
+
states: {
|
|
2803
|
+
"show": "show",
|
|
2804
|
+
"hide": "hide"
|
|
2805
|
+
},
|
|
2806
|
+
state: item.spread ? "show" : "hide"
|
|
2807
|
+
}, {
|
|
2808
|
+
default: withCtx(() => [
|
|
2809
|
+
createVNode(_component_content_node_wid, normalizeProps(guardReactiveProps({ ...props, dataTree: item.children })), null, 16)
|
|
2810
|
+
]),
|
|
2811
|
+
_: 2
|
|
2812
|
+
}, 1032, ["state"])) : createCommentVNode("", true)
|
|
2813
|
+
];
|
|
2814
|
+
}),
|
|
2815
|
+
_: 2
|
|
2816
|
+
}, 1032, ["state"]);
|
|
2817
|
+
}), 128);
|
|
2818
|
+
};
|
|
2819
|
+
}
|
|
2820
|
+
});
|
|
2821
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2822
|
+
__name: "content-wid",
|
|
2823
|
+
props: {
|
|
2824
|
+
dataTree: {},
|
|
2825
|
+
gap: {},
|
|
2826
|
+
indent: {},
|
|
2827
|
+
hover: {},
|
|
2828
|
+
active: {}
|
|
2829
|
+
},
|
|
2830
|
+
emits: ["on_select"],
|
|
2831
|
+
setup(__props, { emit }) {
|
|
2832
|
+
const props = __props;
|
|
2833
|
+
let prefix = 0;
|
|
2834
|
+
const flatDataTree = reactive([]);
|
|
2835
|
+
const indexDataTree = reactive({});
|
|
2836
|
+
const dataTree = ref(props.dataTree);
|
|
2837
|
+
const flatState = ref(false);
|
|
2838
|
+
const flatData = () => {
|
|
2839
|
+
const traverse = (items, parent, level = 0) => {
|
|
2840
|
+
for (const item of items) {
|
|
2841
|
+
item.level = level;
|
|
2842
|
+
item.prefix = prefix++;
|
|
2843
|
+
if (parent)
|
|
2844
|
+
item.parent = parent;
|
|
2845
|
+
if (item.children)
|
|
2846
|
+
item.spread = item.spread || false;
|
|
2847
|
+
flatDataTree.push(item);
|
|
2848
|
+
indexDataTree[item.id] = item;
|
|
2849
|
+
if (item.children && item.children.length > 0) {
|
|
2850
|
+
traverse(item.children, item, level + 1);
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
};
|
|
2854
|
+
traverse(dataTree.value);
|
|
2855
|
+
};
|
|
2856
|
+
const selected = ref([]);
|
|
2857
|
+
onBeforeMount(() => {
|
|
2858
|
+
provide("selected", selected.value);
|
|
2859
|
+
});
|
|
2860
|
+
onMounted(() => {
|
|
2861
|
+
flatData();
|
|
2862
|
+
flatState.value = true;
|
|
2863
|
+
});
|
|
2864
|
+
const select = (e) => {
|
|
2865
|
+
var _a, _b;
|
|
2866
|
+
const x = e.clientX;
|
|
2867
|
+
const y = e.clientY;
|
|
2868
|
+
let element = document.elementFromPoint(x, y);
|
|
2869
|
+
while (!(((_a = element == null ? void 0 : element.getAttribute("state")) == null ? void 0 : _a.indexOf("id-")) === 0)) {
|
|
2870
|
+
element = element == null ? void 0 : element.parentElement;
|
|
2871
|
+
}
|
|
2872
|
+
const data = indexDataTree[(_b = element == null ? void 0 : element.getAttribute("state")) == null ? void 0 : _b.substring(3)];
|
|
2873
|
+
selected.value[0] = data;
|
|
2874
|
+
if (data.spread !== void 0)
|
|
2875
|
+
data.spread = !data.spread;
|
|
2876
|
+
emit("on_select", data);
|
|
2877
|
+
};
|
|
2878
|
+
return (_ctx, _cache) => {
|
|
2879
|
+
return openBlock(), createBlock(_sfc_main$q, {
|
|
2880
|
+
onOn_click: select,
|
|
2881
|
+
"event-proxy": true
|
|
2882
|
+
}, {
|
|
2883
|
+
default: withCtx(() => [
|
|
2884
|
+
flatState.value ? (openBlock(), createBlock(_sfc_main$1, normalizeProps(mergeProps({ key: 0 }, { ...props, dataTree: dataTree.value })), null, 16)) : createCommentVNode("", true)
|
|
2885
|
+
]),
|
|
2886
|
+
_: 1
|
|
2887
|
+
});
|
|
2888
|
+
};
|
|
2889
|
+
}
|
|
2890
|
+
});
|
|
2891
|
+
const contentWid_vue_vue_type_style_index_0_lang = "";
|
|
2703
2892
|
let t;
|
|
2704
2893
|
const defaultStyle = `
|
|
2705
2894
|
position: fixed;
|
|
@@ -2804,30 +2993,31 @@ const hideLoadToast = () => {
|
|
|
2804
2993
|
bToast.style.cssText = hideStyle;
|
|
2805
2994
|
};
|
|
2806
2995
|
const initGlobalComponents = [
|
|
2996
|
+
_sfc_main$t,
|
|
2997
|
+
_sfc_main$s,
|
|
2807
2998
|
_sfc_main$r,
|
|
2808
2999
|
_sfc_main$q,
|
|
2809
3000
|
_sfc_main$p,
|
|
2810
|
-
_sfc_main$
|
|
2811
|
-
_sfc_main$n,
|
|
2812
|
-
_sfc_main$i,
|
|
2813
|
-
_sfc_main$f,
|
|
2814
|
-
_sfc_main$e,
|
|
2815
|
-
_sfc_main$c,
|
|
3001
|
+
_sfc_main$k,
|
|
2816
3002
|
_sfc_main$h,
|
|
2817
|
-
_sfc_main$d,
|
|
2818
3003
|
_sfc_main$g,
|
|
3004
|
+
_sfc_main$e,
|
|
3005
|
+
_sfc_main$j,
|
|
3006
|
+
_sfc_main$f,
|
|
3007
|
+
_sfc_main$i,
|
|
3008
|
+
_sfc_main$d,
|
|
3009
|
+
_sfc_main$c,
|
|
2819
3010
|
_sfc_main$b,
|
|
3011
|
+
_sfc_main$3,
|
|
2820
3012
|
_sfc_main$a,
|
|
2821
3013
|
_sfc_main$9,
|
|
2822
|
-
_sfc_main$1,
|
|
2823
3014
|
_sfc_main$8,
|
|
2824
3015
|
_sfc_main$7,
|
|
3016
|
+
_sfc_main$4,
|
|
2825
3017
|
_sfc_main$6,
|
|
2826
3018
|
_sfc_main$5,
|
|
2827
|
-
_sfc_main
|
|
2828
|
-
_sfc_main$
|
|
2829
|
-
_sfc_main$3,
|
|
2830
|
-
_sfc_main
|
|
3019
|
+
_sfc_main,
|
|
3020
|
+
_sfc_main$2
|
|
2831
3021
|
];
|
|
2832
3022
|
const index = {
|
|
2833
3023
|
name: "btxui",
|