btxui 1.1.26 → 1.1.28
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 +302 -251
- 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, onBeforeMount, renderSlot, watch, onMounted, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createElementBlock, nextTick, createVNode, resolveComponent, Fragment, createCommentVNode, watchEffect, withDirectives, toDisplayString, vShow, vModelDynamic, createTextVNode, vModelText, mergeProps, renderList, createSlots, render, KeepAlive, inject, unref, normalizeProps, guardReactiveProps
|
|
1
|
+
import { defineComponent, ref, computed, reactive, onBeforeMount, renderSlot, watch, onMounted, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createElementBlock, nextTick, createVNode, resolveComponent, Fragment, createCommentVNode, watchEffect, withDirectives, toDisplayString, vShow, vModelDynamic, createTextVNode, vModelText, mergeProps, renderList, createSlots, render, KeepAlive, inject, unref, provide, normalizeProps, guardReactiveProps } from "vue";
|
|
2
2
|
const theme = {
|
|
3
3
|
// 预置主题色
|
|
4
4
|
colors: {
|
|
@@ -159,7 +159,6 @@ const prestyles = {
|
|
|
159
159
|
"dashed-b": `border-bottom-style: dashed;`,
|
|
160
160
|
"line-outside": `background-clip: padding-box;`,
|
|
161
161
|
// 阴影
|
|
162
|
-
"shadow": `box-shadow: 0 4px 17px;`,
|
|
163
162
|
"shadow-sm": `box-shadow: 0 2px 4px;`,
|
|
164
163
|
"shadow-lg": `box-shadow: 0 14px 40px;`,
|
|
165
164
|
"shadow-relief": `box-shadow: 1px 1px 0 rgba(0,0,0,.7) inset, 1px 1px 0 rgba(255,255,255,.4);`,
|
|
@@ -170,9 +169,9 @@ const prestyles = {
|
|
|
170
169
|
"trans-no": `transition: none;`,
|
|
171
170
|
// 模糊滤镜
|
|
172
171
|
"blur-no": `filter: blur(0px);`,
|
|
173
|
-
"blur-sm": `filter: blur(2px);`,
|
|
174
|
-
"blur-md": `filter: blur(7px);`,
|
|
175
|
-
"blur-lg": `filter: blur(17px);`,
|
|
172
|
+
"blur-sm": `filter: blur(2px); -webkit-transform: translateZ(0); transform: translateZ(0);`,
|
|
173
|
+
"blur-md": `filter: blur(7px); -webkit-transform: translateZ(0); transform: translateZ(0);`,
|
|
174
|
+
"blur-lg": `filter: blur(17px); -webkit-transform: translateZ(0); transform: translateZ(0);`,
|
|
176
175
|
// 明度滤镜
|
|
177
176
|
"dark-no": `filter: brightness(100%);`,
|
|
178
177
|
"dark-sm": `filter: brightness(80%);`,
|
|
@@ -282,15 +281,27 @@ const prestyles = {
|
|
|
282
281
|
"ratio": {
|
|
283
282
|
pro: "aspect-ratio"
|
|
284
283
|
},
|
|
285
|
-
//
|
|
286
|
-
"
|
|
287
|
-
pro: "
|
|
288
|
-
|
|
284
|
+
// 遮罩
|
|
285
|
+
"mask": {
|
|
286
|
+
pro: "-webkit-mask-image"
|
|
287
|
+
},
|
|
288
|
+
// 盒子阴影
|
|
289
|
+
"shadow": {
|
|
290
|
+
pro: "box-shadow"
|
|
291
|
+
},
|
|
292
|
+
// 文字阴影
|
|
293
|
+
"tshadow": {
|
|
294
|
+
pro: "text-shadow"
|
|
289
295
|
},
|
|
290
296
|
// 字体加粗
|
|
291
297
|
"bolder": {
|
|
292
298
|
pro: "font-weight"
|
|
293
299
|
},
|
|
300
|
+
// 字符间距
|
|
301
|
+
"lspace": {
|
|
302
|
+
pro: "letter-spacing",
|
|
303
|
+
unit: "rem"
|
|
304
|
+
},
|
|
294
305
|
// 宽度
|
|
295
306
|
"w": {
|
|
296
307
|
pro: "width",
|
|
@@ -634,13 +645,22 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
634
645
|
}
|
|
635
646
|
return false;
|
|
636
647
|
};
|
|
637
|
-
const
|
|
638
|
-
if (val
|
|
639
|
-
|
|
648
|
+
const validMultiple = (val) => {
|
|
649
|
+
if (!val)
|
|
650
|
+
return false;
|
|
651
|
+
const parts = val.split("_");
|
|
652
|
+
if (parts.length === 1)
|
|
653
|
+
return;
|
|
654
|
+
if (val.search("linear") === 0) {
|
|
640
655
|
const [type, dir, ...colors] = parts;
|
|
641
|
-
return `${type}-gradient(${dir}deg
|
|
656
|
+
return `${type}-gradient(${dir}deg, ${colors.map((color2) => validColor(color2)).join(",")})`;
|
|
642
657
|
}
|
|
643
|
-
|
|
658
|
+
if (val.search("radial") === 0) {
|
|
659
|
+
const [type, centerX, centerY, ...colors] = parts;
|
|
660
|
+
return `${type}-gradient(circle at ${centerX} ${centerY}, ${colors.map((color2) => validColor(color2)).join(",")})`;
|
|
661
|
+
}
|
|
662
|
+
const color = parts.pop();
|
|
663
|
+
return `${parts.join(" ")} ${validColor(color)}`;
|
|
644
664
|
};
|
|
645
665
|
const validValue = (val) => {
|
|
646
666
|
if (!val)
|
|
@@ -653,9 +673,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
653
673
|
const color = validColor(val);
|
|
654
674
|
if (color !== false)
|
|
655
675
|
return color;
|
|
656
|
-
const
|
|
657
|
-
if (
|
|
658
|
-
return
|
|
676
|
+
const multiple = validMultiple(val);
|
|
677
|
+
if (multiple !== false)
|
|
678
|
+
return multiple;
|
|
659
679
|
return false;
|
|
660
680
|
};
|
|
661
681
|
const setUnit = (val, customUnit, Presetunit) => {
|
|
@@ -839,8 +859,9 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
839
859
|
aniEndClear: { type: Boolean }
|
|
840
860
|
},
|
|
841
861
|
emits: ["on_aniEnd"],
|
|
842
|
-
setup(__props, { emit }) {
|
|
862
|
+
setup(__props, { emit: __emit }) {
|
|
843
863
|
const props = __props;
|
|
864
|
+
const emit = __emit;
|
|
844
865
|
const $el = ref();
|
|
845
866
|
const state = computed(() => props.state);
|
|
846
867
|
let lastAni;
|
|
@@ -877,10 +898,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
877
898
|
});
|
|
878
899
|
return (_ctx, _cache) => {
|
|
879
900
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
880
|
-
class: normalizeClass(
|
|
881
|
-
cname:
|
|
882
|
-
states:
|
|
883
|
-
matrix:
|
|
901
|
+
class: normalizeClass(__props.class),
|
|
902
|
+
cname: __props.cname,
|
|
903
|
+
states: __props.states,
|
|
904
|
+
matrix: __props.matrix
|
|
884
905
|
}, {
|
|
885
906
|
className: withCtx((scope) => [
|
|
886
907
|
createElementVNode("div", {
|
|
@@ -912,14 +933,14 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
912
933
|
setup(__props) {
|
|
913
934
|
return (_ctx, _cache) => {
|
|
914
935
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
915
|
-
class: normalizeClass(
|
|
916
|
-
states:
|
|
917
|
-
cname:
|
|
936
|
+
class: normalizeClass(__props.class),
|
|
937
|
+
states: __props.states,
|
|
938
|
+
cname: __props.cname
|
|
918
939
|
}, {
|
|
919
940
|
className: withCtx((scope) => [
|
|
920
941
|
createElementVNode("span", {
|
|
921
942
|
class: normalizeClass(scope.className),
|
|
922
|
-
state:
|
|
943
|
+
state: __props.state
|
|
923
944
|
}, [
|
|
924
945
|
renderSlot(_ctx.$slots, "default")
|
|
925
946
|
], 10, _hoisted_1$a)
|
|
@@ -958,9 +979,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
958
979
|
"on_longTouch",
|
|
959
980
|
"on_transend"
|
|
960
981
|
],
|
|
961
|
-
setup(__props, { expose: __expose, emit }) {
|
|
962
|
-
const props = __props;
|
|
982
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
963
983
|
const { proxy } = getCurrentInstance();
|
|
984
|
+
const props = __props;
|
|
985
|
+
const emit = __emit;
|
|
964
986
|
const $anchor = ref();
|
|
965
987
|
const target = ref("");
|
|
966
988
|
let routeLink;
|
|
@@ -1002,12 +1024,16 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1002
1024
|
let touchStartTime = ref(0);
|
|
1003
1025
|
let t;
|
|
1004
1026
|
let isLongTouch = false;
|
|
1027
|
+
const isTouch = ref(false);
|
|
1005
1028
|
const enter = (e) => {
|
|
1006
1029
|
emit("on_enter", e);
|
|
1007
1030
|
if (e.type === "touchstart") {
|
|
1031
|
+
isTouch.value = true;
|
|
1032
|
+
const touchDuration = props.touchDuration;
|
|
1033
|
+
touchDuration && e.cancelable && e.preventDefault();
|
|
1008
1034
|
touchStartTime.value = Date.now();
|
|
1009
1035
|
t = setInterval(() => {
|
|
1010
|
-
if (Date.now() - touchStartTime.value > (
|
|
1036
|
+
if (Date.now() - touchStartTime.value > Math.max(touchDuration, 1e3)) {
|
|
1011
1037
|
isLongTouch = true;
|
|
1012
1038
|
emit("on_longTouch", e);
|
|
1013
1039
|
clearTimeout(t);
|
|
@@ -1015,6 +1041,11 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1015
1041
|
}, 100);
|
|
1016
1042
|
}
|
|
1017
1043
|
};
|
|
1044
|
+
const mousedown = (e) => {
|
|
1045
|
+
if (!isTouch)
|
|
1046
|
+
e.preventDefault();
|
|
1047
|
+
emit("on_mousedown", e);
|
|
1048
|
+
};
|
|
1018
1049
|
const move = (e) => {
|
|
1019
1050
|
emit("on_move", e);
|
|
1020
1051
|
};
|
|
@@ -1040,41 +1071,41 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1040
1071
|
});
|
|
1041
1072
|
return (_ctx, _cache) => {
|
|
1042
1073
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1043
|
-
class: normalizeClass(
|
|
1044
|
-
states:
|
|
1045
|
-
hover:
|
|
1046
|
-
active:
|
|
1047
|
-
cname:
|
|
1074
|
+
class: normalizeClass(__props.class),
|
|
1075
|
+
states: __props.states,
|
|
1076
|
+
hover: __props.hover,
|
|
1077
|
+
active: __props.active,
|
|
1078
|
+
cname: __props.cname
|
|
1048
1079
|
}, {
|
|
1049
1080
|
className: withCtx((scope) => [
|
|
1050
|
-
(openBlock(), createBlock(resolveDynamicComponent(
|
|
1081
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.eventProxy ? "div" : "a"), {
|
|
1051
1082
|
style: normalizeStyle(`user-select: none; cursor: ${cursor.value};`),
|
|
1052
1083
|
ref_key: "$anchor",
|
|
1053
1084
|
ref: $anchor,
|
|
1054
|
-
onMousedown:
|
|
1055
|
-
onMouseup: _cache[
|
|
1085
|
+
onMousedown: mousedown,
|
|
1086
|
+
onMouseup: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("on_mouseup", $event), ["prevent"])),
|
|
1056
1087
|
onMouseenter: withModifiers(enter, ["prevent"]),
|
|
1057
1088
|
onMousemove: withModifiers(move, ["prevent"]),
|
|
1058
1089
|
onMouseleave: withModifiers(leave, ["prevent"]),
|
|
1059
|
-
onTouchstart:
|
|
1090
|
+
onTouchstart: enter,
|
|
1060
1091
|
onTouchmove: withModifiers(move, ["prevent"]),
|
|
1061
1092
|
onTouchend: leave,
|
|
1062
1093
|
onClick: click,
|
|
1063
1094
|
onDblclick: withModifiers(dblclick, ["stop"]),
|
|
1064
1095
|
onWheel: wheel,
|
|
1065
|
-
onTransitionend: _cache[
|
|
1096
|
+
onTransitionend: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("on_transend", $event)),
|
|
1066
1097
|
target: target.value,
|
|
1067
1098
|
class: normalizeClass(scope.className),
|
|
1068
|
-
hover:
|
|
1069
|
-
state:
|
|
1070
|
-
active:
|
|
1099
|
+
hover: __props.hover && !isTouch.value ? true : "",
|
|
1100
|
+
state: __props.state,
|
|
1101
|
+
active: __props.active ? true : "",
|
|
1071
1102
|
href: url.value
|
|
1072
1103
|
}, {
|
|
1073
1104
|
default: withCtx(() => [
|
|
1074
1105
|
renderSlot(_ctx.$slots, "default")
|
|
1075
1106
|
]),
|
|
1076
|
-
_:
|
|
1077
|
-
},
|
|
1107
|
+
_: 3
|
|
1108
|
+
}, 40, ["style", "target", "class", "hover", "state", "active", "href"]))
|
|
1078
1109
|
]),
|
|
1079
1110
|
_: 3
|
|
1080
1111
|
}, 8, ["class", "states", "hover", "active", "cname"]);
|
|
@@ -1095,9 +1126,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1095
1126
|
cname: {}
|
|
1096
1127
|
},
|
|
1097
1128
|
emits: ["on_load"],
|
|
1098
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1129
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1099
1130
|
const props = __props;
|
|
1100
1131
|
const img = computed(() => props.img);
|
|
1132
|
+
const emit = __emit;
|
|
1101
1133
|
const src = ref("");
|
|
1102
1134
|
const $img = ref();
|
|
1103
1135
|
const setSrc = () => {
|
|
@@ -1121,22 +1153,22 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
1121
1153
|
});
|
|
1122
1154
|
return (_ctx, _cache) => {
|
|
1123
1155
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1124
|
-
class: normalizeClass(
|
|
1125
|
-
cname:
|
|
1126
|
-
states:
|
|
1127
|
-
matrix:
|
|
1156
|
+
class: normalizeClass(__props.class),
|
|
1157
|
+
cname: __props.cname,
|
|
1158
|
+
states: __props.states,
|
|
1159
|
+
matrix: __props.matrix
|
|
1128
1160
|
}, {
|
|
1129
1161
|
className: withCtx((scope) => [
|
|
1130
1162
|
src.value ? (openBlock(), createElementBlock("img", {
|
|
1131
1163
|
key: 0,
|
|
1132
1164
|
src: src.value,
|
|
1133
1165
|
class: normalizeClass(`${scope.className} ani-fade-in`),
|
|
1134
|
-
state:
|
|
1166
|
+
state: __props.state,
|
|
1135
1167
|
style: normalizeStyle({
|
|
1136
1168
|
display: "block",
|
|
1137
1169
|
...scope.matrixStyle
|
|
1138
1170
|
}),
|
|
1139
|
-
alt:
|
|
1171
|
+
alt: __props.alt,
|
|
1140
1172
|
ref_key: "$img",
|
|
1141
1173
|
ref: $img
|
|
1142
1174
|
}, null, 14, _hoisted_1$9)) : (openBlock(), createElementBlock("div", {
|
|
@@ -1231,27 +1263,27 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1231
1263
|
const props = __props;
|
|
1232
1264
|
return (_ctx, _cache) => {
|
|
1233
1265
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1234
|
-
class: normalizeClass(
|
|
1235
|
-
states:
|
|
1236
|
-
cname:
|
|
1266
|
+
class: normalizeClass(__props.class),
|
|
1267
|
+
states: __props.states,
|
|
1268
|
+
cname: __props.cname
|
|
1237
1269
|
}, {
|
|
1238
1270
|
className: withCtx((scope) => [
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1271
|
+
__props.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1272
|
+
__props.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$t, { key: "success" })) : createCommentVNode("", true),
|
|
1273
|
+
__props.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
|
|
1274
|
+
__props.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
|
|
1275
|
+
__props.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
|
|
1244
1276
|
], 64)) : createCommentVNode("", true),
|
|
1245
|
-
|
|
1277
|
+
__props.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$x, {
|
|
1246
1278
|
key: 1,
|
|
1247
|
-
"bg-img":
|
|
1248
|
-
states:
|
|
1249
|
-
class: normalizeClass(
|
|
1250
|
-
state:
|
|
1279
|
+
"bg-img": __props.icon,
|
|
1280
|
+
states: __props.states,
|
|
1281
|
+
class: normalizeClass(__props.class),
|
|
1282
|
+
state: __props.state
|
|
1251
1283
|
}, null, 8, ["bg-img", "states", "class", "state"])) : (openBlock(), createElementBlock("i", {
|
|
1252
1284
|
key: 2,
|
|
1253
1285
|
class: normalizeClass(`ico-${props.icon} ${scope.className}`),
|
|
1254
|
-
state:
|
|
1286
|
+
state: __props.state
|
|
1255
1287
|
}, null, 10, _hoisted_1$8))
|
|
1256
1288
|
]),
|
|
1257
1289
|
_: 1
|
|
@@ -1283,8 +1315,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1283
1315
|
min: {}
|
|
1284
1316
|
},
|
|
1285
1317
|
emits: ["update:text", "on_focus", "on_blur", "on_change", "multiline"],
|
|
1286
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1318
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1287
1319
|
const props = __props;
|
|
1320
|
+
const emit = __emit;
|
|
1288
1321
|
const preset_rules = {
|
|
1289
1322
|
required: {
|
|
1290
1323
|
regexp: /[\w\.\-_\u4e00-\u9fa5]+/,
|
|
@@ -1412,36 +1445,36 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1412
1445
|
const _component_b_view = resolveComponent("b-view");
|
|
1413
1446
|
const _component_b_icon = resolveComponent("b-icon");
|
|
1414
1447
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1415
|
-
class: normalizeClass(
|
|
1416
|
-
focus:
|
|
1417
|
-
states:
|
|
1418
|
-
cname:
|
|
1448
|
+
class: normalizeClass(__props.class),
|
|
1449
|
+
focus: __props.focus,
|
|
1450
|
+
states: __props.states,
|
|
1451
|
+
cname: __props.cname
|
|
1419
1452
|
}, {
|
|
1420
1453
|
className: withCtx((scope) => [
|
|
1421
1454
|
createVNode(_component_b_view, { class: "flex-4 rel" }, {
|
|
1422
1455
|
default: withCtx(() => {
|
|
1423
1456
|
var _a;
|
|
1424
1457
|
return [
|
|
1425
|
-
|
|
1458
|
+
__props.aspectHeight ? withDirectives((openBlock(), createElementBlock("span", {
|
|
1426
1459
|
key: 0,
|
|
1427
1460
|
class: normalizeClass(scope.className),
|
|
1428
1461
|
style: { "pointer-events": "none", "position": "absolute", "background": "none", "border": "none", "opacity": ".4", "font-size": ".9em" }
|
|
1429
|
-
}, toDisplayString(
|
|
1430
|
-
[vShow, !
|
|
1462
|
+
}, toDisplayString(__props.placeholder), 3)), [
|
|
1463
|
+
[vShow, !__props.text]
|
|
1431
1464
|
]) : createCommentVNode("", true),
|
|
1432
|
-
|
|
1465
|
+
__props.aspectHeight ? (openBlock(), createElementBlock("div", {
|
|
1433
1466
|
key: 1,
|
|
1434
1467
|
class: normalizeClass(scope.className),
|
|
1435
|
-
contenteditable: !
|
|
1468
|
+
contenteditable: !__props.readonly,
|
|
1436
1469
|
onFocus: _cache[0] || (_cache[0] = ($event) => focusEvent($event)),
|
|
1437
1470
|
onBlur: blurEvent,
|
|
1438
1471
|
onChange: change,
|
|
1439
1472
|
onInput: input2,
|
|
1440
1473
|
ref_key: "$input",
|
|
1441
1474
|
ref: $input,
|
|
1442
|
-
"focus-state":
|
|
1475
|
+
"focus-state": __props.focus ? "true" : "",
|
|
1443
1476
|
style: { "outline": "none", "width": "100%" },
|
|
1444
|
-
state:
|
|
1477
|
+
state: __props.state,
|
|
1445
1478
|
autocomplete: "off"
|
|
1446
1479
|
}, toDisplayString(val2.value), 43, _hoisted_1$7)) : withDirectives((openBlock(), createElementBlock("input", {
|
|
1447
1480
|
key: 2,
|
|
@@ -1451,20 +1484,20 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1451
1484
|
onChange: change,
|
|
1452
1485
|
onInput: input,
|
|
1453
1486
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => val.value = $event),
|
|
1454
|
-
type:
|
|
1487
|
+
type: __props.type,
|
|
1455
1488
|
ref_key: "$input",
|
|
1456
1489
|
ref: $input,
|
|
1457
|
-
name:
|
|
1458
|
-
"focus-state":
|
|
1459
|
-
state:
|
|
1460
|
-
placeholder:
|
|
1461
|
-
maxlength:
|
|
1462
|
-
readonly:
|
|
1490
|
+
name: __props.name,
|
|
1491
|
+
"focus-state": __props.focus ? "true" : "",
|
|
1492
|
+
state: __props.state,
|
|
1493
|
+
placeholder: __props.placeholder,
|
|
1494
|
+
maxlength: __props.maxlength,
|
|
1495
|
+
readonly: __props.readonly,
|
|
1463
1496
|
autocomplete: "off"
|
|
1464
1497
|
}, null, 42, _hoisted_2$2)), [
|
|
1465
1498
|
[vModelDynamic, val.value]
|
|
1466
1499
|
]),
|
|
1467
|
-
|
|
1500
|
+
__props.type === "number" ? (openBlock(), createBlock(_component_b_view, {
|
|
1468
1501
|
key: 3,
|
|
1469
1502
|
class: "trans-fast abs r-6-px gap-2-px flex-4",
|
|
1470
1503
|
states: {
|
|
@@ -1480,9 +1513,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1480
1513
|
active: "dark-sm",
|
|
1481
1514
|
hover: "alpha-d8"
|
|
1482
1515
|
}, {
|
|
1483
|
-
default: withCtx(() => [
|
|
1484
|
-
createTextVNode(" + ")
|
|
1485
|
-
]),
|
|
1516
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
1517
|
+
createTextVNode(" + ", -1)
|
|
1518
|
+
])]),
|
|
1486
1519
|
_: 1
|
|
1487
1520
|
}),
|
|
1488
1521
|
createVNode(_component_b_hot, {
|
|
@@ -1491,15 +1524,15 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
1491
1524
|
active: "dark-sm",
|
|
1492
1525
|
hover: "alpha-d8"
|
|
1493
1526
|
}, {
|
|
1494
|
-
default: withCtx(() => [
|
|
1495
|
-
createTextVNode(" - ")
|
|
1496
|
-
]),
|
|
1527
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
1528
|
+
createTextVNode(" - ", -1)
|
|
1529
|
+
])]),
|
|
1497
1530
|
_: 1
|
|
1498
1531
|
})
|
|
1499
1532
|
]),
|
|
1500
1533
|
_: 1
|
|
1501
1534
|
}, 8, ["state"])) : createCommentVNode("", true),
|
|
1502
|
-
!
|
|
1535
|
+
!__props.readonly && !__props.aspectHeight && !__props.hideClear && __props.type !== "number" ? (openBlock(), createBlock(_component_b_hot, {
|
|
1503
1536
|
key: 4,
|
|
1504
1537
|
onOn_click: clear,
|
|
1505
1538
|
class: "trans-fast abs r-1",
|
|
@@ -1545,8 +1578,9 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1545
1578
|
cname: {}
|
|
1546
1579
|
},
|
|
1547
1580
|
emits: ["on_focus", "on_blur", "on_change", "update:text"],
|
|
1548
|
-
setup(__props, { emit }) {
|
|
1581
|
+
setup(__props, { emit: __emit }) {
|
|
1549
1582
|
const props = __props;
|
|
1583
|
+
const emit = __emit;
|
|
1550
1584
|
const val = ref(props.text);
|
|
1551
1585
|
const formatText = (text) => text.replace(/[\n\r]/g, "<br>");
|
|
1552
1586
|
const inputText = () => {
|
|
@@ -1554,10 +1588,10 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1554
1588
|
};
|
|
1555
1589
|
return (_ctx, _cache) => {
|
|
1556
1590
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1557
|
-
class: normalizeClass(
|
|
1558
|
-
focus:
|
|
1559
|
-
states:
|
|
1560
|
-
cname:
|
|
1591
|
+
class: normalizeClass(__props.class),
|
|
1592
|
+
focus: __props.focus,
|
|
1593
|
+
states: __props.states,
|
|
1594
|
+
cname: __props.cname
|
|
1561
1595
|
}, {
|
|
1562
1596
|
className: withCtx((scope) => [
|
|
1563
1597
|
withDirectives(createElementVNode("textarea", {
|
|
@@ -1567,13 +1601,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
1567
1601
|
onChange: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("on_change", $event)),
|
|
1568
1602
|
onInput: inputText,
|
|
1569
1603
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => val.value = $event),
|
|
1570
|
-
name:
|
|
1571
|
-
focus:
|
|
1572
|
-
state:
|
|
1573
|
-
placeholder:
|
|
1574
|
-
maxlength:
|
|
1575
|
-
readonly:
|
|
1576
|
-
rows:
|
|
1604
|
+
name: __props.name,
|
|
1605
|
+
focus: __props.focus ? true : "",
|
|
1606
|
+
state: __props.state,
|
|
1607
|
+
placeholder: __props.placeholder,
|
|
1608
|
+
maxlength: __props.maxlength,
|
|
1609
|
+
readonly: __props.readonly,
|
|
1610
|
+
rows: __props.rows || 7
|
|
1577
1611
|
}, null, 42, _hoisted_1$6), [
|
|
1578
1612
|
[vModelText, val.value]
|
|
1579
1613
|
])
|
|
@@ -1599,7 +1633,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1599
1633
|
muted: { type: Boolean }
|
|
1600
1634
|
},
|
|
1601
1635
|
emits: ["on_play"],
|
|
1602
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1636
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1637
|
+
const emit = __emit;
|
|
1603
1638
|
const $video = ref();
|
|
1604
1639
|
const iconScale = ref(0);
|
|
1605
1640
|
onMounted(() => {
|
|
@@ -1648,14 +1683,14 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1648
1683
|
const _component_b_view = resolveComponent("b-view");
|
|
1649
1684
|
const _component_b_hot = resolveComponent("b-hot");
|
|
1650
1685
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1651
|
-
class: normalizeClass(
|
|
1652
|
-
cname:
|
|
1686
|
+
class: normalizeClass(__props.class),
|
|
1687
|
+
cname: __props.cname
|
|
1653
1688
|
}, {
|
|
1654
1689
|
className: withCtx((scope) => [
|
|
1655
1690
|
createElementVNode("div", {
|
|
1656
1691
|
class: normalizeClass(`${scope.className} over-hide rel`)
|
|
1657
1692
|
}, [
|
|
1658
|
-
|
|
1693
|
+
__props.customControls ? (openBlock(), createBlock(_component_b_hot, {
|
|
1659
1694
|
key: 0,
|
|
1660
1695
|
class: "max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",
|
|
1661
1696
|
onOn_click: togglePlay,
|
|
@@ -1687,19 +1722,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1687
1722
|
]),
|
|
1688
1723
|
_: 1
|
|
1689
1724
|
}, 8, ["state"])) : createCommentVNode("", true),
|
|
1690
|
-
|
|
1725
|
+
__props.fullScreen ? (openBlock(), createElementBlock("video", {
|
|
1691
1726
|
key: 1,
|
|
1692
1727
|
ref_key: "$video",
|
|
1693
1728
|
ref: $video,
|
|
1694
1729
|
onPlaying: playing,
|
|
1695
1730
|
onDurationchange: playing,
|
|
1696
1731
|
class: normalizeClass(scope.className),
|
|
1697
|
-
poster:
|
|
1698
|
-
muted:
|
|
1699
|
-
src:
|
|
1700
|
-
autoplay:
|
|
1701
|
-
controls: !
|
|
1702
|
-
loop:
|
|
1732
|
+
poster: __props.poster,
|
|
1733
|
+
muted: __props.muted,
|
|
1734
|
+
src: __props.video,
|
|
1735
|
+
autoplay: __props.autoPlay,
|
|
1736
|
+
controls: !__props.customControls,
|
|
1737
|
+
loop: __props.loop
|
|
1703
1738
|
}, null, 42, _hoisted_1$5)) : (openBlock(), createElementBlock("video", {
|
|
1704
1739
|
key: 2,
|
|
1705
1740
|
ref_key: "$video",
|
|
@@ -1710,12 +1745,12 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
1710
1745
|
playsinline: "",
|
|
1711
1746
|
"x5-video-player-type": "h5-page",
|
|
1712
1747
|
class: normalizeClass(scope.className),
|
|
1713
|
-
poster:
|
|
1714
|
-
muted:
|
|
1715
|
-
src:
|
|
1716
|
-
autoplay:
|
|
1717
|
-
controls: !
|
|
1718
|
-
loop:
|
|
1748
|
+
poster: __props.poster,
|
|
1749
|
+
muted: __props.muted,
|
|
1750
|
+
src: __props.video,
|
|
1751
|
+
autoplay: __props.autoPlay,
|
|
1752
|
+
controls: !__props.customControls,
|
|
1753
|
+
loop: __props.loop
|
|
1719
1754
|
}, null, 42, _hoisted_2$1))
|
|
1720
1755
|
], 2)
|
|
1721
1756
|
]),
|
|
@@ -1737,8 +1772,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1737
1772
|
cname: {}
|
|
1738
1773
|
},
|
|
1739
1774
|
emits: ["on_scroll", "on_to_top", "on_to_bottom"],
|
|
1740
|
-
setup(__props, { expose: __expose, emit }) {
|
|
1775
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1741
1776
|
const props = __props;
|
|
1777
|
+
const emit = __emit;
|
|
1742
1778
|
const $list = ref();
|
|
1743
1779
|
const scrollTypeClass = computed(() => {
|
|
1744
1780
|
if (props.scrollType)
|
|
@@ -1790,20 +1826,20 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
1790
1826
|
});
|
|
1791
1827
|
return (_ctx, _cache) => {
|
|
1792
1828
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1793
|
-
class: normalizeClass(
|
|
1794
|
-
states:
|
|
1795
|
-
cname:
|
|
1829
|
+
class: normalizeClass(__props.class),
|
|
1830
|
+
states: __props.states,
|
|
1831
|
+
cname: __props.cname
|
|
1796
1832
|
}, {
|
|
1797
1833
|
className: withCtx((scope) => [
|
|
1798
1834
|
createElementVNode("div", {
|
|
1799
1835
|
class: normalizeClass(scope.className),
|
|
1800
|
-
state:
|
|
1836
|
+
state: __props.state
|
|
1801
1837
|
}, [
|
|
1802
1838
|
createElementVNode("div", {
|
|
1803
1839
|
ref_key: "$list",
|
|
1804
1840
|
ref: $list,
|
|
1805
1841
|
class: normalizeClass(scrollTypeClass.value),
|
|
1806
|
-
style: normalizeStyle(`overflow-x: ${
|
|
1842
|
+
style: normalizeStyle(`overflow-x: ${__props.scroll.x}; overflow-y: ${__props.scroll.y}; width: 100%; height: 100%;`),
|
|
1807
1843
|
onTouchmove: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
1808
1844
|
}, ["stop"]))
|
|
1809
1845
|
}, [
|
|
@@ -1828,8 +1864,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1828
1864
|
cname: {}
|
|
1829
1865
|
},
|
|
1830
1866
|
emits: ["on_drag_start", "on_drag_end", "on_drag_over", "on_drag_leave", "on_drop", "on_move"],
|
|
1831
|
-
setup(__props, { emit }) {
|
|
1867
|
+
setup(__props, { emit: __emit }) {
|
|
1832
1868
|
const props = __props;
|
|
1869
|
+
const emit = __emit;
|
|
1833
1870
|
const $el = ref();
|
|
1834
1871
|
const state = ref("");
|
|
1835
1872
|
const dragState = ref(false);
|
|
@@ -1928,16 +1965,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1928
1965
|
});
|
|
1929
1966
|
return (_ctx, _cache) => {
|
|
1930
1967
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1931
|
-
class: normalizeClass(
|
|
1932
|
-
states: { dragStart:
|
|
1933
|
-
cname:
|
|
1968
|
+
class: normalizeClass(__props.class),
|
|
1969
|
+
states: { dragStart: __props.dragStart, dragOver: __props.dragOver },
|
|
1970
|
+
cname: __props.cname
|
|
1934
1971
|
}, {
|
|
1935
1972
|
className: withCtx((scope) => [
|
|
1936
1973
|
createElementVNode("div", {
|
|
1937
1974
|
style: normalizeStyle({
|
|
1938
|
-
cursor:
|
|
1975
|
+
cursor: __props.dragOver ? "default" : "move",
|
|
1939
1976
|
visibility: dragState.value ? "hidden" : "visible",
|
|
1940
|
-
position:
|
|
1977
|
+
position: __props.freeDrag ? "absolute" : "relative",
|
|
1941
1978
|
left: 0,
|
|
1942
1979
|
top: 0,
|
|
1943
1980
|
transform: `translate(${movePos.x}px, ${movePos.y}px)`
|
|
@@ -1946,7 +1983,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
1946
1983
|
ref: $el,
|
|
1947
1984
|
class: normalizeClass(scope.className),
|
|
1948
1985
|
state: state.value,
|
|
1949
|
-
draggable:
|
|
1986
|
+
draggable: __props.dragStart ? true : false
|
|
1950
1987
|
}, [
|
|
1951
1988
|
renderSlot(_ctx.$slots, "default")
|
|
1952
1989
|
], 14, _hoisted_1$3)
|
|
@@ -1967,14 +2004,14 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
1967
2004
|
setup(__props) {
|
|
1968
2005
|
return (_ctx, _cache) => {
|
|
1969
2006
|
return openBlock(), createBlock(_sfc_main$y, {
|
|
1970
|
-
class: normalizeClass(
|
|
1971
|
-
cname:
|
|
2007
|
+
class: normalizeClass(__props.class),
|
|
2008
|
+
cname: __props.cname
|
|
1972
2009
|
}, {
|
|
1973
2010
|
className: withCtx((scope) => [
|
|
1974
2011
|
createElementVNode("iframe", {
|
|
1975
2012
|
class: normalizeClass(scope.className),
|
|
1976
2013
|
frameborder: "0",
|
|
1977
|
-
src:
|
|
2014
|
+
src: __props.src
|
|
1978
2015
|
}, null, 10, _hoisted_1$2)
|
|
1979
2016
|
]),
|
|
1980
2017
|
_: 1
|
|
@@ -1999,7 +2036,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
1999
2036
|
});
|
|
2000
2037
|
const combClass = ref(`${props.class ?? ""} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
|
|
2001
2038
|
return (_ctx, _cache) => {
|
|
2002
|
-
return openBlock(), createBlock(_sfc_main$x, mergeProps({ class: combClass.value },
|
|
2039
|
+
return openBlock(), createBlock(_sfc_main$x, mergeProps({ class: combClass.value }, __props.viewData, {
|
|
2003
2040
|
extraClass: {
|
|
2004
2041
|
selector: ">",
|
|
2005
2042
|
value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
|
|
@@ -2025,7 +2062,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
2025
2062
|
const props = __props;
|
|
2026
2063
|
const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
|
|
2027
2064
|
return (_ctx, _cache) => {
|
|
2028
|
-
return openBlock(), createBlock(_sfc_main$x, mergeProps({ class: combClass.value },
|
|
2065
|
+
return openBlock(), createBlock(_sfc_main$x, mergeProps({ class: combClass.value }, __props.viewData), {
|
|
2029
2066
|
default: withCtx(() => [
|
|
2030
2067
|
renderSlot(_ctx.$slots, "default")
|
|
2031
2068
|
]),
|
|
@@ -2051,7 +2088,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2051
2088
|
const btnColor = props["btnColor"];
|
|
2052
2089
|
if (btnColor) {
|
|
2053
2090
|
const bg = btnColor[type]["bg"];
|
|
2054
|
-
if ((bg == null ? void 0 : bg.search(
|
|
2091
|
+
if ((bg == null ? void 0 : bg.search(/linear|radial/)) === 0)
|
|
2055
2092
|
return `bg-image-${bg}`;
|
|
2056
2093
|
return `bg-color-${bg || defaultVal}`;
|
|
2057
2094
|
}
|
|
@@ -2094,14 +2131,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2094
2131
|
}
|
|
2095
2132
|
});
|
|
2096
2133
|
return (_ctx, _cache) => {
|
|
2097
|
-
return openBlock(), createBlock(_sfc_main$v, mergeProps(
|
|
2098
|
-
class: `flex-5 pad-h-1d4 ${size.value} thick-1 ellipsis ${
|
|
2134
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps(__props.hotData, {
|
|
2135
|
+
class: `flex-5 pad-h-1d4 ${size.value} thick-1 ellipsis ${__props.btnRound ? "round-lg" : "round-sm"} ${__props.btnWidth ? "lw-" + __props.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
|
|
2099
2136
|
hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
|
|
2100
2137
|
active: `${active.value.text} ${active.value.bg} ${active.value.line}`
|
|
2101
2138
|
}), {
|
|
2102
2139
|
default: withCtx(() => [
|
|
2103
|
-
|
|
2104
|
-
createTextVNode(" " + toDisplayString(
|
|
2140
|
+
__props.iconData ? (openBlock(), createBlock(_sfc_main$p, mergeProps({ key: 0 }, __props.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
|
|
2141
|
+
createTextVNode(" " + toDisplayString(__props.btnText), 1)
|
|
2105
2142
|
]),
|
|
2106
2143
|
_: 1
|
|
2107
2144
|
}, 16, ["class", "hover", "active"]);
|
|
@@ -2119,8 +2156,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2119
2156
|
label: {}
|
|
2120
2157
|
},
|
|
2121
2158
|
emits: ["update:selected", "change"],
|
|
2122
|
-
setup(__props, { emit }) {
|
|
2159
|
+
setup(__props, { emit: __emit }) {
|
|
2123
2160
|
const props = __props;
|
|
2161
|
+
const emit = __emit;
|
|
2124
2162
|
const combClass = ref(props.class ?? "flex-4 bg-color-neutral round-sm pad-4-px");
|
|
2125
2163
|
const combActClass = ref(`color-blue ${props.actClass ?? ""}`);
|
|
2126
2164
|
const label = computed(() => {
|
|
@@ -2155,7 +2193,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
2155
2193
|
state: selected.value ? "act" : "",
|
|
2156
2194
|
cname: combClass.value + combActClass.value,
|
|
2157
2195
|
states: {
|
|
2158
|
-
act: `bg-color-${
|
|
2196
|
+
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"}`
|
|
2159
2197
|
}
|
|
2160
2198
|
}, {
|
|
2161
2199
|
default: withCtx(() => [
|
|
@@ -2197,8 +2235,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2197
2235
|
span: {}
|
|
2198
2236
|
},
|
|
2199
2237
|
emits: ["update:selected", "change"],
|
|
2200
|
-
setup(__props, { emit }) {
|
|
2238
|
+
setup(__props, { emit: __emit }) {
|
|
2201
2239
|
const props = __props;
|
|
2240
|
+
const emit = __emit;
|
|
2202
2241
|
const checkboxData = computed(() => {
|
|
2203
2242
|
return props.options.map((opt) => {
|
|
2204
2243
|
var _a;
|
|
@@ -2231,15 +2270,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2231
2270
|
const _component_b_col = resolveComponent("b-col");
|
|
2232
2271
|
const _component_b_row = resolveComponent("b-row");
|
|
2233
2272
|
return openBlock(), createBlock(_sfc_main$x, {
|
|
2234
|
-
class: normalizeClass(
|
|
2273
|
+
class: normalizeClass(__props.class)
|
|
2235
2274
|
}, {
|
|
2236
2275
|
default: withCtx(() => [
|
|
2237
|
-
|
|
2276
|
+
__props.title ? (openBlock(), createBlock(_sfc_main$x, {
|
|
2238
2277
|
key: 0,
|
|
2239
2278
|
class: "mrg-b-1"
|
|
2240
2279
|
}, {
|
|
2241
2280
|
default: withCtx(() => [
|
|
2242
|
-
createTextVNode(toDisplayString(
|
|
2281
|
+
createTextVNode(toDisplayString(__props.title), 1)
|
|
2243
2282
|
]),
|
|
2244
2283
|
_: 1
|
|
2245
2284
|
})) : createCommentVNode("", true),
|
|
@@ -2248,7 +2287,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2248
2287
|
(openBlock(true), createElementBlock(Fragment, null, renderList(checkboxData.value, (item, i) => {
|
|
2249
2288
|
return openBlock(), createBlock(_component_b_col, {
|
|
2250
2289
|
class: "flex-4",
|
|
2251
|
-
span:
|
|
2290
|
+
span: __props.span,
|
|
2252
2291
|
key: i
|
|
2253
2292
|
}, {
|
|
2254
2293
|
default: withCtx(() => [
|
|
@@ -2256,7 +2295,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2256
2295
|
onChange: change,
|
|
2257
2296
|
label: item.label,
|
|
2258
2297
|
value: item.value
|
|
2259
|
-
}, item.checkboxData, {
|
|
2298
|
+
}, { ref_for: true }, item.checkboxData, {
|
|
2260
2299
|
selected: item.selected,
|
|
2261
2300
|
"onUpdate:selected": ($event) => item.selected = $event
|
|
2262
2301
|
}), createSlots({ _: 2 }, [
|
|
@@ -2303,8 +2342,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2303
2342
|
regular: { type: Boolean }
|
|
2304
2343
|
},
|
|
2305
2344
|
emits: ["update:selected", "change"],
|
|
2306
|
-
setup(__props, { emit }) {
|
|
2345
|
+
setup(__props, { emit: __emit }) {
|
|
2307
2346
|
const props = __props;
|
|
2347
|
+
const emit = __emit;
|
|
2308
2348
|
const selected = computed(() => [props.selected]);
|
|
2309
2349
|
const change = (selected2) => {
|
|
2310
2350
|
const values = selected2.map((item) => item.value);
|
|
@@ -2321,14 +2361,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
2321
2361
|
return (_ctx, _cache) => {
|
|
2322
2362
|
const _component_b_view = resolveComponent("b-view");
|
|
2323
2363
|
return openBlock(), createBlock(_sfc_main$e, {
|
|
2324
|
-
span:
|
|
2325
|
-
title:
|
|
2326
|
-
class: normalizeClass(
|
|
2364
|
+
span: __props.span,
|
|
2365
|
+
title: __props.title,
|
|
2366
|
+
class: normalizeClass(__props.class),
|
|
2327
2367
|
selected: selected.value,
|
|
2328
|
-
options:
|
|
2368
|
+
options: __props.options,
|
|
2329
2369
|
onChange: change
|
|
2330
2370
|
}, createSlots({ _: 2 }, [
|
|
2331
|
-
|
|
2371
|
+
__props.regular ? {
|
|
2332
2372
|
name: "default",
|
|
2333
2373
|
fn: withCtx((scope) => [
|
|
2334
2374
|
createVNode(_component_b_view, { class: "h-24-px w-24-px round-lg pad-d5 bg-color-neutral" }, {
|
|
@@ -2375,8 +2415,9 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2375
2415
|
noDataNotic: {}
|
|
2376
2416
|
},
|
|
2377
2417
|
emits: ["update:selected", "change"],
|
|
2378
|
-
setup(__props, { emit }) {
|
|
2418
|
+
setup(__props, { emit: __emit }) {
|
|
2379
2419
|
const props = __props;
|
|
2420
|
+
const emit = __emit;
|
|
2380
2421
|
const tabConts = reactive({});
|
|
2381
2422
|
const color = computed(() => props.color ?? "blue");
|
|
2382
2423
|
const tabOrder = reactive({});
|
|
@@ -2437,17 +2478,17 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2437
2478
|
default: withCtx(() => [
|
|
2438
2479
|
createVNode(_sfc_main$d, {
|
|
2439
2480
|
options: options.value,
|
|
2440
|
-
title:
|
|
2481
|
+
title: __props.title,
|
|
2441
2482
|
selected: selected.value,
|
|
2442
2483
|
onChange: change
|
|
2443
2484
|
}, createSlots({ _: 2 }, [
|
|
2444
|
-
slots.value.length === 0 &&
|
|
2485
|
+
slots.value.length === 0 && __props.tabStyle === "grid" ? {
|
|
2445
2486
|
name: "default",
|
|
2446
2487
|
fn: withCtx((scope) => [
|
|
2447
2488
|
createElementVNode("span", { state: scope }, null, 8, _hoisted_1$1)
|
|
2448
2489
|
]),
|
|
2449
2490
|
key: "0"
|
|
2450
|
-
} : slots.value.length === 0 &&
|
|
2491
|
+
} : slots.value.length === 0 && __props.tabStyle === "card" ? {
|
|
2451
2492
|
name: "default",
|
|
2452
2493
|
fn: withCtx((scope) => [
|
|
2453
2494
|
createVNode(_sfc_main$x, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
|
|
@@ -2493,7 +2534,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2493
2534
|
default: withCtx(() => [
|
|
2494
2535
|
createElementVNode("div", {
|
|
2495
2536
|
innerHTML: tabConts[selected.value],
|
|
2496
|
-
class: normalizeClass(
|
|
2537
|
+
class: normalizeClass(__props.smooth ? `ani-fast ani-${flipDir.value}` : ""),
|
|
2497
2538
|
onAnimationend: _cache[0] || (_cache[0] = ($event) => flipDir.value = "")
|
|
2498
2539
|
}, null, 42, _hoisted_2)
|
|
2499
2540
|
]),
|
|
@@ -2504,7 +2545,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2504
2545
|
}, {
|
|
2505
2546
|
default: withCtx(() => [
|
|
2506
2547
|
createElementVNode("div", {
|
|
2507
|
-
innerHTML:
|
|
2548
|
+
innerHTML: __props.noDataNotic ?? "暂未选择标签"
|
|
2508
2549
|
}, null, 8, _hoisted_3)
|
|
2509
2550
|
]),
|
|
2510
2551
|
_: 1
|
|
@@ -2527,8 +2568,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2527
2568
|
camera: { type: Boolean }
|
|
2528
2569
|
},
|
|
2529
2570
|
emits: ["on_upload"],
|
|
2530
|
-
setup(__props, { emit }) {
|
|
2571
|
+
setup(__props, { emit: __emit }) {
|
|
2531
2572
|
const props = __props;
|
|
2573
|
+
const emit = __emit;
|
|
2532
2574
|
const $uploader = ref();
|
|
2533
2575
|
const btnData = computed(() => {
|
|
2534
2576
|
return {
|
|
@@ -2590,7 +2632,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2590
2632
|
key: 1,
|
|
2591
2633
|
onOn_click: _cache[1] || (_cache[1] = ($event) => $uploader.value.click())
|
|
2592
2634
|
}, btnData.value), null, 16)),
|
|
2593
|
-
|
|
2635
|
+
__props.camera ? (openBlock(), createElementBlock("input", {
|
|
2594
2636
|
key: 2,
|
|
2595
2637
|
type: "file",
|
|
2596
2638
|
style: { "display": "none" },
|
|
@@ -2606,7 +2648,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
2606
2648
|
ref_key: "$uploader",
|
|
2607
2649
|
ref: $uploader,
|
|
2608
2650
|
onChange: trigerUpload,
|
|
2609
|
-
multiple:
|
|
2651
|
+
multiple: __props.multiple
|
|
2610
2652
|
}, null, 40, _hoisted_1))
|
|
2611
2653
|
]),
|
|
2612
2654
|
_: 3
|
|
@@ -2627,8 +2669,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2627
2669
|
aniName: {}
|
|
2628
2670
|
},
|
|
2629
2671
|
emits: ["update:visiable", "opened", "closed"],
|
|
2630
|
-
setup(__props, { emit }) {
|
|
2672
|
+
setup(__props, { emit: __emit }) {
|
|
2631
2673
|
const props = __props;
|
|
2674
|
+
const emit = __emit;
|
|
2632
2675
|
const dir = computed(() => props.dir || "bottom");
|
|
2633
2676
|
const dirStyle = computed(() => {
|
|
2634
2677
|
let layout, pannal;
|
|
@@ -2725,13 +2768,13 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2725
2768
|
default: withCtx(() => [
|
|
2726
2769
|
createVNode(_sfc_main$v, {
|
|
2727
2770
|
onOn_transend: matteAniend,
|
|
2728
|
-
onOn_click: _cache[0] || (_cache[0] = ($event) => !
|
|
2729
|
-
state:
|
|
2771
|
+
onOn_click: _cache[0] || (_cache[0] = ($event) => !__props.matteCloseForbid && hide()),
|
|
2772
|
+
state: __props.visiable.toString(),
|
|
2730
2773
|
states: {
|
|
2731
2774
|
true: "alpha-1 visible",
|
|
2732
2775
|
false: "alpha-0"
|
|
2733
2776
|
},
|
|
2734
|
-
class: normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${
|
|
2777
|
+
class: normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${__props.matteColor || "C000000cc"}`)
|
|
2735
2778
|
}, null, 8, ["state", "class"]),
|
|
2736
2779
|
createVNode(_sfc_main$x, {
|
|
2737
2780
|
class: normalizeClass(`${dirStyle.value.pannal} rel ani-mode-both ani-fast`),
|
|
@@ -2743,10 +2786,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2743
2786
|
default: withCtx(() => [
|
|
2744
2787
|
renderSlot(_ctx.$slots, "custom", {}, () => [
|
|
2745
2788
|
createVNode(_sfc_main$x, {
|
|
2746
|
-
class: normalizeClass(`bg-color-${
|
|
2789
|
+
class: normalizeClass(`bg-color-${__props.pannelColor || "light"} rel pad-2 ${__props.roundEnable ? "round-md" : ""} ${dirStyle.value.pannal}`)
|
|
2747
2790
|
}, {
|
|
2748
2791
|
default: withCtx(() => [
|
|
2749
|
-
!
|
|
2792
|
+
!__props.closeEnable ? (openBlock(), createBlock(_sfc_main$v, {
|
|
2750
2793
|
key: 0,
|
|
2751
2794
|
class: "abs r-1 t-d7 color-mgray",
|
|
2752
2795
|
onOn_click: hide
|
|
@@ -2783,8 +2826,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2783
2826
|
extra: {}
|
|
2784
2827
|
},
|
|
2785
2828
|
emits: ["close"],
|
|
2786
|
-
setup(__props, { expose: __expose, emit }) {
|
|
2829
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2787
2830
|
const props = __props;
|
|
2831
|
+
const emit = __emit;
|
|
2788
2832
|
let t;
|
|
2789
2833
|
let hasOpened = false;
|
|
2790
2834
|
const visiable = ref(false);
|
|
@@ -2820,7 +2864,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2820
2864
|
onOpened: opened,
|
|
2821
2865
|
"ani-name": ["ani-fade-in", "ani-fade-out"],
|
|
2822
2866
|
dir: "center",
|
|
2823
|
-
"matte-color":
|
|
2867
|
+
"matte-color": __props.matteColor || "C00000044"
|
|
2824
2868
|
}, {
|
|
2825
2869
|
custom: withCtx(() => [
|
|
2826
2870
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
@@ -2828,7 +2872,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2828
2872
|
default: withCtx(() => {
|
|
2829
2873
|
var _a;
|
|
2830
2874
|
return [
|
|
2831
|
-
|
|
2875
|
+
__props.icon ? (openBlock(), createBlock(_sfc_main$x, {
|
|
2832
2876
|
key: 0,
|
|
2833
2877
|
class: "mrg-b-1d2 fsize-3d2",
|
|
2834
2878
|
states: {
|
|
@@ -2837,16 +2881,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
2837
2881
|
ani: "ani-rotate"
|
|
2838
2882
|
}
|
|
2839
2883
|
},
|
|
2840
|
-
state: ((_a =
|
|
2884
|
+
state: ((_a = __props.extra) == null ? void 0 : _a.type) ?? ""
|
|
2841
2885
|
}, {
|
|
2842
2886
|
default: withCtx(() => [
|
|
2843
|
-
createVNode(_sfc_main$p, { icon:
|
|
2887
|
+
createVNode(_sfc_main$p, { icon: __props.icon }, null, 8, ["icon"])
|
|
2844
2888
|
]),
|
|
2845
2889
|
_: 1
|
|
2846
2890
|
}, 8, ["state"])) : createCommentVNode("", true),
|
|
2847
2891
|
createVNode(_sfc_main$w, null, {
|
|
2848
2892
|
default: withCtx(() => [
|
|
2849
|
-
createTextVNode(toDisplayString(
|
|
2893
|
+
createTextVNode(toDisplayString(__props.text), 1)
|
|
2850
2894
|
]),
|
|
2851
2895
|
_: 1
|
|
2852
2896
|
})
|
|
@@ -2873,8 +2917,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2873
2917
|
cancel: { type: Function }
|
|
2874
2918
|
},
|
|
2875
2919
|
emits: ["ok", "cancel", "close"],
|
|
2876
|
-
setup(__props, { expose: __expose, emit }) {
|
|
2920
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2877
2921
|
const props = __props;
|
|
2922
|
+
const emit = __emit;
|
|
2878
2923
|
const visiable = ref(false);
|
|
2879
2924
|
const closed = () => {
|
|
2880
2925
|
emit("close");
|
|
@@ -2918,7 +2963,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2918
2963
|
onClosed: closed,
|
|
2919
2964
|
dir: "center",
|
|
2920
2965
|
"ani-name": ["ani-fade-in", "ani-fade-out"],
|
|
2921
|
-
"matte-color":
|
|
2966
|
+
"matte-color": __props.matteColor
|
|
2922
2967
|
}, {
|
|
2923
2968
|
custom: withCtx(() => [
|
|
2924
2969
|
createVNode(_sfc_main$x, {
|
|
@@ -2929,7 +2974,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2929
2974
|
class: normalizeClass(`color-${theme2.value.text} pad-3d4 fsize-1d4 bolder-470`)
|
|
2930
2975
|
}, {
|
|
2931
2976
|
default: withCtx(() => [
|
|
2932
|
-
createTextVNode(toDisplayString(
|
|
2977
|
+
createTextVNode(toDisplayString(__props.notic), 1)
|
|
2933
2978
|
]),
|
|
2934
2979
|
_: 1
|
|
2935
2980
|
}, 8, ["class"]),
|
|
@@ -2937,7 +2982,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2937
2982
|
class: normalizeClass(`flex solid-t bolder-470 line-${theme2.value.line} thick-d4 fsize-1d44`)
|
|
2938
2983
|
}, {
|
|
2939
2984
|
default: withCtx(() => [
|
|
2940
|
-
|
|
2985
|
+
__props.type === "confirm" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
2941
2986
|
createVNode(_sfc_main$v, {
|
|
2942
2987
|
class: normalizeClass(`color-${theme2.value.cancel} solid-r thick-d4 line-${theme2.value.line} round-md round-3 flex-5 pad-v-1d4 w-50-P`),
|
|
2943
2988
|
active: "bg-color-neutral",
|
|
@@ -2946,7 +2991,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2946
2991
|
default: withCtx(() => {
|
|
2947
2992
|
var _a;
|
|
2948
2993
|
return [
|
|
2949
|
-
createTextVNode(toDisplayString(((_a =
|
|
2994
|
+
createTextVNode(toDisplayString(((_a = __props.text) == null ? void 0 : _a.cancel) || "取消"), 1)
|
|
2950
2995
|
];
|
|
2951
2996
|
}),
|
|
2952
2997
|
_: 1
|
|
@@ -2959,7 +3004,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2959
3004
|
default: withCtx(() => {
|
|
2960
3005
|
var _a;
|
|
2961
3006
|
return [
|
|
2962
|
-
createTextVNode(toDisplayString(((_a =
|
|
3007
|
+
createTextVNode(toDisplayString(((_a = __props.text) == null ? void 0 : _a.ok) || "确定"), 1)
|
|
2963
3008
|
];
|
|
2964
3009
|
}),
|
|
2965
3010
|
_: 1
|
|
@@ -2973,7 +3018,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2973
3018
|
default: withCtx(() => {
|
|
2974
3019
|
var _a;
|
|
2975
3020
|
return [
|
|
2976
|
-
createTextVNode(toDisplayString(((_a =
|
|
3021
|
+
createTextVNode(toDisplayString(((_a = __props.text) == null ? void 0 : _a.ok) || "确定"), 1)
|
|
2977
3022
|
];
|
|
2978
3023
|
}),
|
|
2979
3024
|
_: 1
|
|
@@ -3146,8 +3191,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3146
3191
|
camera: { type: Boolean }
|
|
3147
3192
|
},
|
|
3148
3193
|
emits: ["update:preview", "on_upload"],
|
|
3149
|
-
setup(__props, { emit }) {
|
|
3194
|
+
setup(__props, { emit: __emit }) {
|
|
3150
3195
|
const props = __props;
|
|
3196
|
+
const emit = __emit;
|
|
3151
3197
|
const size = computed(() => props.compress ? 1024 * 1024 * 20 : props.size);
|
|
3152
3198
|
const imgUpload = (files, checkResult) => {
|
|
3153
3199
|
if (checkResult.success) {
|
|
@@ -3352,21 +3398,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3352
3398
|
createVNode(_sfc_main$b, {
|
|
3353
3399
|
onOn_upload: imgUpload,
|
|
3354
3400
|
size: size.value,
|
|
3355
|
-
multiple:
|
|
3356
|
-
camera:
|
|
3401
|
+
multiple: __props.multiple,
|
|
3402
|
+
camera: __props.camera,
|
|
3357
3403
|
type: ["image/jpeg", "image/png", "image/gif"]
|
|
3358
3404
|
}, {
|
|
3359
3405
|
default: withCtx(() => {
|
|
3360
3406
|
var _a, _b, _c, _d, _e, _f;
|
|
3361
3407
|
return [
|
|
3362
|
-
|
|
3408
|
+
__props.preview ? (openBlock(), createBlock(_component_b_view, {
|
|
3363
3409
|
key: 0,
|
|
3364
|
-
class: normalizeClass(`w-${((_a =
|
|
3365
|
-
"bg-img":
|
|
3410
|
+
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`),
|
|
3411
|
+
"bg-img": __props.preview
|
|
3366
3412
|
}, null, 8, ["class", "bg-img"])) : (openBlock(), createBlock(_component_b_icon, {
|
|
3367
3413
|
key: 1,
|
|
3368
3414
|
icon: "add",
|
|
3369
|
-
class: normalizeClass(`flex-5 w-${((_c =
|
|
3415
|
+
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`)
|
|
3370
3416
|
}, null, 8, ["class"]))
|
|
3371
3417
|
];
|
|
3372
3418
|
}),
|
|
@@ -3380,13 +3426,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
3380
3426
|
var _a, _b;
|
|
3381
3427
|
return [
|
|
3382
3428
|
createVNode(_component_b_view, { class: "mrg-b-1" }, {
|
|
3383
|
-
default: withCtx(() => [
|
|
3384
|
-
createTextVNode("拖动/触摸移动,滚轮或捏合缩放")
|
|
3385
|
-
]),
|
|
3429
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
3430
|
+
createTextVNode("拖动/触摸移动,滚轮或捏合缩放", -1)
|
|
3431
|
+
])]),
|
|
3386
3432
|
_: 1
|
|
3387
3433
|
}),
|
|
3388
3434
|
createVNode(_component_b_hot, {
|
|
3389
|
-
class: normalizeClass(`bg-color-dgray show rel line-outside over-hide round-md line-Cffffff44 solid thick-7-px w-${(_a =
|
|
3435
|
+
class: normalizeClass(`bg-color-dgray show rel line-outside over-hide round-md line-Cffffff44 solid thick-7-px w-${(_a = __props.compress) == null ? void 0 : _a.width}-px h-${(_b = __props.compress) == null ? void 0 : _b.height}-px`),
|
|
3390
3436
|
ref_key: "$cropArea",
|
|
3391
3437
|
ref: $cropArea,
|
|
3392
3438
|
onOn_wheel: onWheel,
|
|
@@ -3454,7 +3500,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3454
3500
|
var _a;
|
|
3455
3501
|
const _component_router_view = resolveComponent("router-view");
|
|
3456
3502
|
return openBlock(), createBlock(_sfc_main$x, {
|
|
3457
|
-
class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a =
|
|
3503
|
+
class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = __props.colors) == null ? void 0 : _a.bg) || "none"}`)
|
|
3458
3504
|
}, {
|
|
3459
3505
|
default: withCtx(() => {
|
|
3460
3506
|
var _a2;
|
|
@@ -3466,7 +3512,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3466
3512
|
class: "abs max"
|
|
3467
3513
|
}, {
|
|
3468
3514
|
default: withCtx(() => [
|
|
3469
|
-
|
|
3515
|
+
__props.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
|
|
3470
3516
|
createVNode(_component_router_view)
|
|
3471
3517
|
], 1024)) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
|
|
3472
3518
|
]),
|
|
@@ -3476,11 +3522,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3476
3522
|
_: 1
|
|
3477
3523
|
}),
|
|
3478
3524
|
createVNode(_sfc_main$x, {
|
|
3479
|
-
class: normalizeClass(`pcenter pad-t-d5 flex-1 ${
|
|
3525
|
+
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`)
|
|
3480
3526
|
}, {
|
|
3481
3527
|
default: withCtx(() => [
|
|
3482
3528
|
(openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
|
|
3483
|
-
return openBlock(), createBlock(_sfc_main$v, mergeProps({ key: i }, nav.hotData, {
|
|
3529
|
+
return openBlock(), createBlock(_sfc_main$v, mergeProps({ key: i }, { ref_for: true }, nav.hotData, {
|
|
3484
3530
|
class: "grow-1",
|
|
3485
3531
|
onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
|
|
3486
3532
|
}), {
|
|
@@ -3494,19 +3540,19 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3494
3540
|
default: withCtx(() => {
|
|
3495
3541
|
var _a4, _b2, _c2, _d2;
|
|
3496
3542
|
return [
|
|
3497
|
-
createVNode(_sfc_main$p, mergeProps(nav.iconData, {
|
|
3498
|
-
class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 =
|
|
3543
|
+
createVNode(_sfc_main$p, mergeProps({ ref_for: true }, nav.iconData, {
|
|
3544
|
+
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"}`
|
|
3499
3545
|
}), null, 16, ["class"])
|
|
3500
3546
|
];
|
|
3501
3547
|
}),
|
|
3502
3548
|
_: 2
|
|
3503
3549
|
}, 1024)) : (openBlock(), createBlock(_sfc_main$x, {
|
|
3504
3550
|
key: 1,
|
|
3505
|
-
class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 =
|
|
3506
|
-
cname: ((_d = (_c =
|
|
3551
|
+
class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = __props.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
|
|
3552
|
+
cname: ((_d = (_c = __props.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
|
|
3507
3553
|
state: curRoute.value.search(nav.hotData.link) === 0 ? "act" : "",
|
|
3508
3554
|
states: {
|
|
3509
|
-
act: `color-${((_f = (_e =
|
|
3555
|
+
act: `color-${((_f = (_e = __props.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.act) || "light"}`
|
|
3510
3556
|
}
|
|
3511
3557
|
}, {
|
|
3512
3558
|
default: withCtx(() => [
|
|
@@ -3523,13 +3569,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
3523
3569
|
]),
|
|
3524
3570
|
_: 2
|
|
3525
3571
|
}, 1024)) : createCommentVNode("", true),
|
|
3526
|
-
createVNode(_sfc_main$p, mergeProps(nav.iconData, {
|
|
3572
|
+
createVNode(_sfc_main$p, mergeProps({ ref_for: true }, nav.iconData, {
|
|
3527
3573
|
cname: nav.act,
|
|
3528
3574
|
state: curRoute.value.search(nav.hotData.link) === 0 ? "act" : "",
|
|
3529
3575
|
states: {
|
|
3530
3576
|
act: nav.act ?? ""
|
|
3531
3577
|
},
|
|
3532
|
-
class: `w-2d7 h-2d7 ${
|
|
3578
|
+
class: `w-2d7 h-2d7 ${__props.iconTransAni ? "trans-fast" : ""} fsize-1d7`
|
|
3533
3579
|
}), null, 16, ["cname", "state", "states", "class"]),
|
|
3534
3580
|
nav.text ? (openBlock(), createBlock(_sfc_main$w, {
|
|
3535
3581
|
key: 2,
|
|
@@ -3567,8 +3613,9 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3567
3613
|
modalData: {}
|
|
3568
3614
|
},
|
|
3569
3615
|
emits: ["update:datetime", "getData"],
|
|
3570
|
-
setup(__props, { expose: __expose, emit }) {
|
|
3616
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3571
3617
|
const props = __props;
|
|
3618
|
+
const emit = __emit;
|
|
3572
3619
|
const state = ref(false);
|
|
3573
3620
|
const modalData = reactive({
|
|
3574
3621
|
roundEnable: true,
|
|
@@ -3618,8 +3665,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3618
3665
|
onGetData: ok,
|
|
3619
3666
|
datetime: datetime.value,
|
|
3620
3667
|
"onUpdate:datetime": _cache[0] || (_cache[0] = ($event) => datetime.value = $event),
|
|
3621
|
-
format:
|
|
3622
|
-
"btn-data":
|
|
3668
|
+
format: __props.format,
|
|
3669
|
+
"btn-data": __props.btnData
|
|
3623
3670
|
}, null, 8, ["datetime", "format", "btn-data"])
|
|
3624
3671
|
]),
|
|
3625
3672
|
_: 1
|
|
@@ -3639,8 +3686,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3639
3686
|
btnData: {}
|
|
3640
3687
|
},
|
|
3641
3688
|
emits: ["update:datetime", "getData"],
|
|
3642
|
-
setup(__props, { emit }) {
|
|
3689
|
+
setup(__props, { emit: __emit }) {
|
|
3643
3690
|
const props = __props;
|
|
3691
|
+
const emit = __emit;
|
|
3644
3692
|
const btnData = computed(() => {
|
|
3645
3693
|
return {
|
|
3646
3694
|
btnText: "确定",
|
|
@@ -3831,9 +3879,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3831
3879
|
_: 1
|
|
3832
3880
|
}, 8, ["state"]),
|
|
3833
3881
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3834
|
-
default: withCtx(() => [
|
|
3835
|
-
createTextVNode("年")
|
|
3836
|
-
]),
|
|
3882
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
3883
|
+
createTextVNode("年", -1)
|
|
3884
|
+
])]),
|
|
3837
3885
|
_: 1
|
|
3838
3886
|
})
|
|
3839
3887
|
]),
|
|
@@ -3853,9 +3901,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3853
3901
|
_: 1
|
|
3854
3902
|
}, 8, ["state"]),
|
|
3855
3903
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3856
|
-
default: withCtx(() => [
|
|
3857
|
-
createTextVNode("月")
|
|
3858
|
-
]),
|
|
3904
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
3905
|
+
createTextVNode("月", -1)
|
|
3906
|
+
])]),
|
|
3859
3907
|
_: 1
|
|
3860
3908
|
})
|
|
3861
3909
|
]),
|
|
@@ -3875,9 +3923,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3875
3923
|
_: 1
|
|
3876
3924
|
}, 8, ["state"]),
|
|
3877
3925
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3878
|
-
default: withCtx(() => [
|
|
3879
|
-
createTextVNode("日")
|
|
3880
|
-
]),
|
|
3926
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
3927
|
+
createTextVNode("日", -1)
|
|
3928
|
+
])]),
|
|
3881
3929
|
_: 1
|
|
3882
3930
|
})
|
|
3883
3931
|
]),
|
|
@@ -3901,9 +3949,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3901
3949
|
_: 1
|
|
3902
3950
|
}, 8, ["state"]),
|
|
3903
3951
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3904
|
-
default: withCtx(() => [
|
|
3905
|
-
createTextVNode("时")
|
|
3906
|
-
]),
|
|
3952
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
3953
|
+
createTextVNode("时", -1)
|
|
3954
|
+
])]),
|
|
3907
3955
|
_: 1
|
|
3908
3956
|
})
|
|
3909
3957
|
]),
|
|
@@ -3923,9 +3971,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3923
3971
|
_: 1
|
|
3924
3972
|
}, 8, ["state"]),
|
|
3925
3973
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3926
|
-
default: withCtx(() => [
|
|
3927
|
-
createTextVNode("分")
|
|
3928
|
-
]),
|
|
3974
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
3975
|
+
createTextVNode("分", -1)
|
|
3976
|
+
])]),
|
|
3929
3977
|
_: 1
|
|
3930
3978
|
})
|
|
3931
3979
|
]),
|
|
@@ -3945,9 +3993,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3945
3993
|
_: 1
|
|
3946
3994
|
}, 8, ["state"]),
|
|
3947
3995
|
createVNode(_component_b_text, { class: "pad-h-d4 alpha-d4" }, {
|
|
3948
|
-
default: withCtx(() => [
|
|
3949
|
-
createTextVNode("秒")
|
|
3950
|
-
]),
|
|
3996
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
3997
|
+
createTextVNode("秒", -1)
|
|
3998
|
+
])]),
|
|
3951
3999
|
_: 1
|
|
3952
4000
|
})
|
|
3953
4001
|
]),
|
|
@@ -4014,8 +4062,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4014
4062
|
theme: {}
|
|
4015
4063
|
},
|
|
4016
4064
|
emits: ["sendPrice", "update:price", "update:input"],
|
|
4017
|
-
setup(__props, { expose: __expose, emit }) {
|
|
4065
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4018
4066
|
const props = __props;
|
|
4067
|
+
const emit = __emit;
|
|
4019
4068
|
const state = ref(false);
|
|
4020
4069
|
const theme2 = reactive({
|
|
4021
4070
|
dir: "",
|
|
@@ -4074,8 +4123,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4074
4123
|
visiable: state.value,
|
|
4075
4124
|
"onUpdate:visiable": _cache[2] || (_cache[2] = ($event) => state.value = $event),
|
|
4076
4125
|
dir: theme2.dir,
|
|
4077
|
-
"matte-color":
|
|
4078
|
-
"matte-close-forbid":
|
|
4126
|
+
"matte-color": __props.matteColor,
|
|
4127
|
+
"matte-close-forbid": __props.matteCloseForbid
|
|
4079
4128
|
}, {
|
|
4080
4129
|
custom: withCtx(() => [
|
|
4081
4130
|
createVNode(_component_price_wid, {
|
|
@@ -4085,7 +4134,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
4085
4134
|
price: price.value,
|
|
4086
4135
|
"onUpdate:price": _cache[1] || (_cache[1] = ($event) => price.value = $event),
|
|
4087
4136
|
theme: theme2,
|
|
4088
|
-
"hide-screen":
|
|
4137
|
+
"hide-screen": __props.hideScreen
|
|
4089
4138
|
}, createSlots({ _: 2 }, [
|
|
4090
4139
|
_ctx.$slots.delete ? {
|
|
4091
4140
|
name: "delete",
|
|
@@ -4118,8 +4167,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4118
4167
|
theme: {}
|
|
4119
4168
|
},
|
|
4120
4169
|
emits: ["sendPrice", "update:input", "update:price"],
|
|
4121
|
-
setup(__props, { expose: __expose, emit }) {
|
|
4170
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
4122
4171
|
const props = __props;
|
|
4172
|
+
const emit = __emit;
|
|
4123
4173
|
const theme2 = reactive({
|
|
4124
4174
|
dir: "",
|
|
4125
4175
|
pannel: "lgray",
|
|
@@ -4198,15 +4248,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4198
4248
|
class: normalizeClass(`${baseStyle.value} bg-color-${theme2.pannel} color-${theme2.text}`)
|
|
4199
4249
|
}, {
|
|
4200
4250
|
default: withCtx(() => [
|
|
4201
|
-
!
|
|
4251
|
+
!__props.hideScreen ? (openBlock(), createBlock(_sfc_main$x, {
|
|
4202
4252
|
key: 0,
|
|
4203
4253
|
class: "flex-4 no-wrap pad-1d4"
|
|
4204
4254
|
}, {
|
|
4205
4255
|
default: withCtx(() => [
|
|
4206
4256
|
createVNode(_component_b_text, { class: "fsize-2d4 bold alpha-d4" }, {
|
|
4207
|
-
default: withCtx(() => [
|
|
4208
|
-
createTextVNode("¥")
|
|
4209
|
-
]),
|
|
4257
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
4258
|
+
createTextVNode("¥", -1)
|
|
4259
|
+
])]),
|
|
4210
4260
|
_: 1
|
|
4211
4261
|
}),
|
|
4212
4262
|
createVNode(_component_b_input, {
|
|
@@ -4302,9 +4352,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4302
4352
|
active: `bg-color-${theme2.btn.active}`,
|
|
4303
4353
|
state: "0"
|
|
4304
4354
|
}, {
|
|
4305
|
-
default: withCtx(() => [
|
|
4306
|
-
createTextVNode("0")
|
|
4307
|
-
]),
|
|
4355
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
4356
|
+
createTextVNode("0", -1)
|
|
4357
|
+
])]),
|
|
4308
4358
|
_: 1
|
|
4309
4359
|
}, 8, ["class", "active"])
|
|
4310
4360
|
]),
|
|
@@ -4317,9 +4367,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
4317
4367
|
active: `bg-color-${theme2.btn.active}`,
|
|
4318
4368
|
state: "."
|
|
4319
4369
|
}, {
|
|
4320
|
-
default: withCtx(() => [
|
|
4321
|
-
createTextVNode(".")
|
|
4322
|
-
]),
|
|
4370
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
4371
|
+
createTextVNode(".", -1)
|
|
4372
|
+
])]),
|
|
4323
4373
|
_: 1
|
|
4324
4374
|
}, 8, ["class", "active"])
|
|
4325
4375
|
]),
|
|
@@ -4372,7 +4422,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4372
4422
|
active: {}
|
|
4373
4423
|
},
|
|
4374
4424
|
emits: ["on_select"],
|
|
4375
|
-
setup(__props, { emit }) {
|
|
4425
|
+
setup(__props, { emit: __emit }) {
|
|
4376
4426
|
const props = __props;
|
|
4377
4427
|
const dataTree = ref(props.dataTree || []);
|
|
4378
4428
|
const selected = inject("selected");
|
|
@@ -4403,9 +4453,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4403
4453
|
createVNode(_sfc_main$v, {
|
|
4404
4454
|
cname: `${item.id}-${Math.random()}`,
|
|
4405
4455
|
class: normalizeClass(`flex-4 pad-v-${gap.value} pad-l-${setIndex(item.level)}`),
|
|
4406
|
-
hover:
|
|
4456
|
+
hover: __props.hover,
|
|
4407
4457
|
states: {
|
|
4408
|
-
true: `${
|
|
4458
|
+
true: `${__props.active ? __props.active : ""}`,
|
|
4409
4459
|
false: ""
|
|
4410
4460
|
},
|
|
4411
4461
|
state: (((_a = unref(selected)) == null ? void 0 : _a.findIndex((data) => data.id === item.id)) > -1).toString()
|
|
@@ -4439,11 +4489,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
4439
4489
|
state: item.spread ? "show" : "hide"
|
|
4440
4490
|
}, {
|
|
4441
4491
|
default: withCtx(() => [
|
|
4442
|
-
createVNode(_component_content_node_wid,
|
|
4492
|
+
createVNode(_component_content_node_wid, mergeProps({ ref_for: true }, { ...props, dataTree: item.children }), createSlots({ _: 2 }, [
|
|
4443
4493
|
_ctx.$slots.default ? {
|
|
4444
4494
|
name: "default",
|
|
4445
4495
|
fn: withCtx((scope) => [
|
|
4446
|
-
renderSlot(_ctx.$slots, "default",
|
|
4496
|
+
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, scope))
|
|
4447
4497
|
]),
|
|
4448
4498
|
key: "0"
|
|
4449
4499
|
} : void 0
|
|
@@ -4469,8 +4519,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
4469
4519
|
active: {}
|
|
4470
4520
|
},
|
|
4471
4521
|
emits: ["on_select"],
|
|
4472
|
-
setup(__props, { emit }) {
|
|
4522
|
+
setup(__props, { emit: __emit }) {
|
|
4473
4523
|
const props = __props;
|
|
4524
|
+
const emit = __emit;
|
|
4474
4525
|
let prefix = 0;
|
|
4475
4526
|
const flatDataTree = reactive([]);
|
|
4476
4527
|
const indexDataTree = reactive({});
|