btxui 1.0.89 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createVNode, resolveComponent, createElementBlock, Fragment, createCommentVNode, watchEffect, nextTick, toDisplayString, withDirectives, vModelDynamic, vModelText, mergeProps, createTextVNode, renderList, createSlots, onBeforeMount, KeepAlive, onBeforeUnmount, inject, unref, provide, normalizeProps, guardReactiveProps } from "vue";
1
+ import { defineComponent, ref, computed, reactive, onMounted, renderSlot, watch, openBlock, createBlock, normalizeClass, withCtx, createElementVNode, normalizeStyle, getCurrentInstance, resolveDynamicComponent, withModifiers, createElementBlock, createCommentVNode, createVNode, resolveComponent, Fragment, 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: {
@@ -814,9 +814,8 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
814
814
  prevent: { type: Boolean }
815
815
  },
816
816
  emits: ["on_aniEnd"],
817
- setup(__props, { emit: __emit }) {
817
+ setup(__props, { emit }) {
818
818
  const props = __props;
819
- const emit = __emit;
820
819
  const $el = ref();
821
820
  const state = computed(() => props.state);
822
821
  let lastAni;
@@ -845,10 +844,10 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
845
844
  });
846
845
  return (_ctx, _cache) => {
847
846
  return openBlock(), createBlock(_sfc_main$u, {
848
- class: normalizeClass(__props.class),
849
- cname: __props.cname,
850
- states: __props.states,
851
- matrix: __props.matrix
847
+ class: normalizeClass(_ctx.class),
848
+ cname: _ctx.cname,
849
+ states: _ctx.states,
850
+ matrix: _ctx.matrix
852
851
  }, {
853
852
  className: withCtx((scope) => [
854
853
  createElementVNode("div", {
@@ -880,14 +879,14 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
880
879
  setup(__props) {
881
880
  return (_ctx, _cache) => {
882
881
  return openBlock(), createBlock(_sfc_main$u, {
883
- class: normalizeClass(__props.class),
884
- states: __props.states,
885
- cname: __props.cname
882
+ class: normalizeClass(_ctx.class),
883
+ states: _ctx.states,
884
+ cname: _ctx.cname
886
885
  }, {
887
886
  className: withCtx((scope) => [
888
887
  createElementVNode("span", {
889
888
  class: normalizeClass(scope.className),
890
- state: __props.state
889
+ state: _ctx.state
891
890
  }, [
892
891
  renderSlot(_ctx.$slots, "default")
893
892
  ], 10, _hoisted_1$b)
@@ -915,10 +914,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
915
914
  eventProxy: { type: Boolean }
916
915
  },
917
916
  emits: ["on_click", "on_enter", "on_move", "on_leave", "on_dblclick", "on_longTouch", "on_transend"],
918
- setup(__props, { emit: __emit }) {
919
- const { proxy } = getCurrentInstance();
917
+ setup(__props, { emit }) {
920
918
  const props = __props;
921
- const emit = __emit;
919
+ const { proxy } = getCurrentInstance();
922
920
  const $anchor = ref();
923
921
  const target = ref("");
924
922
  let routeLink;
@@ -967,7 +965,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
967
965
  t2 = setInterval(() => {
968
966
  if (Date.now() - touchStartTime.value > (props.touchDuration || 1e3)) {
969
967
  isLongTouch = true;
970
- emit("on_longTouch");
968
+ emit("on_longTouch", e);
971
969
  clearTimeout(t2);
972
970
  }
973
971
  }, 100);
@@ -992,14 +990,14 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
992
990
  });
993
991
  return (_ctx, _cache) => {
994
992
  return openBlock(), createBlock(_sfc_main$u, {
995
- class: normalizeClass(__props.class),
996
- states: __props.states,
997
- hover: __props.hover,
998
- active: __props.active,
999
- cname: __props.cname
993
+ class: normalizeClass(_ctx.class),
994
+ states: _ctx.states,
995
+ hover: _ctx.hover,
996
+ active: _ctx.active,
997
+ cname: _ctx.cname
1000
998
  }, {
1001
999
  className: withCtx((scope) => [
1002
- (openBlock(), createBlock(resolveDynamicComponent(__props.eventProxy ? "div" : "a"), {
1000
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.eventProxy ? "div" : "a"), {
1003
1001
  style: normalizeStyle(`user-select: none; cursor: ${cursor.value};`),
1004
1002
  ref_key: "$anchor",
1005
1003
  ref: $anchor,
@@ -1014,16 +1012,16 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1014
1012
  onTransitionend: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("on_transend", $event)),
1015
1013
  target: target.value,
1016
1014
  class: normalizeClass(scope.className),
1017
- hover: __props.hover ? true : "",
1018
- state: __props.state,
1019
- active: __props.active ? true : "",
1015
+ hover: _ctx.hover ? true : "",
1016
+ state: _ctx.state,
1017
+ active: _ctx.active ? true : "",
1020
1018
  href: url.value
1021
1019
  }, {
1022
1020
  default: withCtx(() => [
1023
1021
  renderSlot(_ctx.$slots, "default")
1024
1022
  ]),
1025
- _: 3
1026
- }, 40, ["style", "target", "class", "hover", "state", "active", "href"]))
1023
+ _: 2
1024
+ }, 1064, ["style", "onDblclick", "target", "class", "hover", "state", "active", "href"]))
1027
1025
  ]),
1028
1026
  _: 3
1029
1027
  }, 8, ["class", "states", "hover", "active", "cname"]);
@@ -1044,10 +1042,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1044
1042
  cname: {}
1045
1043
  },
1046
1044
  emits: ["on_load"],
1047
- setup(__props, { emit: __emit }) {
1045
+ setup(__props, { emit }) {
1048
1046
  const props = __props;
1049
1047
  const img = computed(() => props.img);
1050
- const emit = __emit;
1051
1048
  const src = ref("");
1052
1049
  const setSrc = () => {
1053
1050
  if (props.defaultSrc)
@@ -1065,19 +1062,20 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1065
1062
  });
1066
1063
  return (_ctx, _cache) => {
1067
1064
  return openBlock(), createBlock(_sfc_main$u, {
1068
- class: normalizeClass(__props.class),
1069
- cname: __props.cname,
1070
- states: __props.states,
1071
- matrix: __props.matrix
1065
+ class: normalizeClass(_ctx.class),
1066
+ cname: _ctx.cname,
1067
+ states: _ctx.states,
1068
+ matrix: _ctx.matrix
1072
1069
  }, {
1073
1070
  className: withCtx((scope) => [
1074
- createElementVNode("img", {
1071
+ src.value ? (openBlock(), createElementBlock("img", {
1072
+ key: 0,
1075
1073
  src: src.value,
1076
- class: normalizeClass(scope.className),
1077
- state: __props.state,
1074
+ class: normalizeClass(`${scope.className} ani-fade-in`),
1075
+ state: _ctx.state,
1078
1076
  style: normalizeStyle({ display: "block", ...scope.matrixStyle }),
1079
- alt: __props.alt
1080
- }, null, 14, _hoisted_1$a)
1077
+ alt: _ctx.alt
1078
+ }, null, 14, _hoisted_1$a)) : createCommentVNode("", true)
1081
1079
  ]),
1082
1080
  _: 1
1083
1081
  }, 8, ["class", "cname", "states", "matrix"]);
@@ -1166,27 +1164,27 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1166
1164
  const props = __props;
1167
1165
  return (_ctx, _cache) => {
1168
1166
  return openBlock(), createBlock(_sfc_main$u, {
1169
- class: normalizeClass(__props.class),
1170
- states: __props.states,
1171
- cname: __props.cname
1167
+ class: normalizeClass(_ctx.class),
1168
+ states: _ctx.states,
1169
+ cname: _ctx.cname
1172
1170
  }, {
1173
1171
  className: withCtx((scope) => [
1174
- __props.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1175
- __props.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$p, { key: "success" })) : createCommentVNode("", true),
1176
- __props.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
1177
- __props.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
1178
- __props.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
1172
+ _ctx.icon.search("ani_") === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1173
+ _ctx.icon === "ani_success" ? (openBlock(), createBlock(_sfc_main$p, { key: "success" })) : createCommentVNode("", true),
1174
+ _ctx.icon === "ani_fail" ? (openBlock(), createBlock(AniFail, { key: "fail" })) : createCommentVNode("", true),
1175
+ _ctx.icon === "ani_notic" ? (openBlock(), createBlock(AniNotic, { key: "notic" })) : createCommentVNode("", true),
1176
+ _ctx.icon === "ani_loading" ? (openBlock(), createBlock(AniLoading, { key: "loading" })) : createCommentVNode("", true)
1179
1177
  ], 64)) : createCommentVNode("", true),
1180
- __props.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$t, {
1178
+ _ctx.icon.search("/") > -1 ? (openBlock(), createBlock(_sfc_main$t, {
1181
1179
  key: 1,
1182
- "bg-img": __props.icon,
1183
- states: __props.states,
1184
- class: normalizeClass(__props.class),
1185
- state: __props.state
1180
+ "bg-img": _ctx.icon,
1181
+ states: _ctx.states,
1182
+ class: normalizeClass(_ctx.class),
1183
+ state: _ctx.state
1186
1184
  }, null, 8, ["bg-img", "states", "class", "state"])) : (openBlock(), createElementBlock("i", {
1187
1185
  key: 2,
1188
1186
  class: normalizeClass(`ico-${props.icon} ${scope.className}`),
1189
- state: __props.state
1187
+ state: _ctx.state
1190
1188
  }, null, 10, _hoisted_1$9))
1191
1189
  ]),
1192
1190
  _: 1
@@ -1195,7 +1193,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1195
1193
  }
1196
1194
  });
1197
1195
  const _hoisted_1$8 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1198
- const _hoisted_2$2 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1196
+ const _hoisted_2$3 = ["type", "name", "focus-state", "state", "placeholder", "maxlength", "readonly"];
1199
1197
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
1200
1198
  __name: "b-input",
1201
1199
  props: {
@@ -1211,12 +1209,12 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1211
1209
  focus: {},
1212
1210
  rule: {},
1213
1211
  cname: {},
1214
- aspectHeight: { type: Boolean }
1212
+ aspectHeight: { type: Boolean },
1213
+ hideClear: { type: Boolean }
1215
1214
  },
1216
1215
  emits: ["update:text", "on_focus", "on_blur", "on_change", "on_input", "multiline"],
1217
- setup(__props, { expose: __expose, emit: __emit }) {
1216
+ setup(__props, { expose: __expose, emit }) {
1218
1217
  const props = __props;
1219
- const emit = __emit;
1220
1218
  const preset_rules = {
1221
1219
  required: {
1222
1220
  regexp: /[\w\.\-_\u4e00-\u9fa5]+/,
@@ -1316,17 +1314,17 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1316
1314
  const _component_b_hot = resolveComponent("b-hot");
1317
1315
  const _component_b_view = resolveComponent("b-view");
1318
1316
  return openBlock(), createBlock(_sfc_main$u, {
1319
- class: normalizeClass(__props.class),
1320
- focus: __props.focus,
1321
- states: __props.states,
1322
- cname: __props.cname
1317
+ class: normalizeClass(_ctx.class),
1318
+ focus: _ctx.focus,
1319
+ states: _ctx.states,
1320
+ cname: _ctx.cname
1323
1321
  }, {
1324
1322
  className: withCtx((scope) => [
1325
1323
  createVNode(_component_b_view, { class: "flex-4 rel" }, {
1326
1324
  default: withCtx(() => {
1327
1325
  var _a;
1328
1326
  return [
1329
- __props.aspectHeight ? (openBlock(), createElementBlock("div", {
1327
+ _ctx.aspectHeight ? (openBlock(), createElementBlock("div", {
1330
1328
  key: 0,
1331
1329
  class: normalizeClass(scope.className),
1332
1330
  contenteditable: "",
@@ -1334,16 +1332,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1334
1332
  onBlur: blurEvent,
1335
1333
  onChange: change,
1336
1334
  onInput: input2,
1337
- type: __props.type,
1335
+ type: _ctx.type,
1338
1336
  ref_key: "$input",
1339
1337
  ref: $input,
1340
1338
  style: { "outline": "none" },
1341
- name: __props.name,
1342
- "focus-state": __props.focus ? "true" : "",
1343
- state: __props.state,
1344
- placeholder: __props.placeholder,
1345
- maxlength: __props.maxlength,
1346
- readonly: __props.readonly,
1339
+ name: _ctx.name,
1340
+ "focus-state": _ctx.focus ? "true" : "",
1341
+ state: _ctx.state,
1342
+ placeholder: _ctx.placeholder,
1343
+ maxlength: _ctx.maxlength,
1344
+ readonly: _ctx.readonly,
1347
1345
  autocomplete: "off"
1348
1346
  }, toDisplayString(val2.value), 43, _hoisted_1$8)) : withDirectives((openBlock(), createElementBlock("input", {
1349
1347
  key: 1,
@@ -1353,21 +1351,21 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
1353
1351
  onChange: change,
1354
1352
  onInput: input,
1355
1353
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => val.value = $event),
1356
- type: __props.type,
1354
+ type: _ctx.type,
1357
1355
  ref_key: "$input",
1358
1356
  ref: $input,
1359
1357
  style: { "outline": "none" },
1360
- name: __props.name,
1361
- "focus-state": __props.focus ? "true" : "",
1362
- state: __props.state,
1363
- placeholder: __props.placeholder,
1364
- maxlength: __props.maxlength,
1365
- readonly: __props.readonly,
1358
+ name: _ctx.name,
1359
+ "focus-state": _ctx.focus ? "true" : "",
1360
+ state: _ctx.state,
1361
+ placeholder: _ctx.placeholder,
1362
+ maxlength: _ctx.maxlength,
1363
+ readonly: _ctx.readonly,
1366
1364
  autocomplete: "off"
1367
- }, null, 42, _hoisted_2$2)), [
1365
+ }, null, 42, _hoisted_2$3)), [
1368
1366
  [vModelDynamic, val.value]
1369
1367
  ]),
1370
- !__props.readonly && !__props.aspectHeight ? (openBlock(), createBlock(_component_b_hot, {
1368
+ !_ctx.readonly && !_ctx.aspectHeight && !_ctx.hideClear ? (openBlock(), createBlock(_component_b_hot, {
1371
1369
  key: 2,
1372
1370
  onOn_click: clear,
1373
1371
  class: "abs r-1 trans-fast",
@@ -1413,9 +1411,8 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1413
1411
  cname: {}
1414
1412
  },
1415
1413
  emits: ["on_focus", "on_blur", "on_change", "update:text"],
1416
- setup(__props, { emit: __emit }) {
1414
+ setup(__props, { emit }) {
1417
1415
  const props = __props;
1418
- const emit = __emit;
1419
1416
  const val = ref(props.text);
1420
1417
  const formatText = (text) => text.replace(/[\n\r]/g, "<br>");
1421
1418
  const inputText = () => {
@@ -1423,10 +1420,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1423
1420
  };
1424
1421
  return (_ctx, _cache) => {
1425
1422
  return openBlock(), createBlock(_sfc_main$u, {
1426
- class: normalizeClass(__props.class),
1427
- focus: __props.focus,
1428
- states: __props.states,
1429
- cname: __props.cname
1423
+ class: normalizeClass(_ctx.class),
1424
+ focus: _ctx.focus,
1425
+ states: _ctx.states,
1426
+ cname: _ctx.cname
1430
1427
  }, {
1431
1428
  className: withCtx((scope) => [
1432
1429
  withDirectives(createElementVNode("textarea", {
@@ -1436,13 +1433,13 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1436
1433
  onChange: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("on_change", $event)),
1437
1434
  onInput: inputText,
1438
1435
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => val.value = $event),
1439
- name: __props.name,
1440
- focus: __props.focus ? true : "",
1441
- state: __props.state,
1442
- placeholder: __props.placeholder,
1443
- maxlength: __props.maxlength,
1444
- readonly: __props.readonly,
1445
- rows: __props.rows || 7
1436
+ name: _ctx.name,
1437
+ focus: _ctx.focus ? true : "",
1438
+ state: _ctx.state,
1439
+ placeholder: _ctx.placeholder,
1440
+ maxlength: _ctx.maxlength,
1441
+ readonly: _ctx.readonly,
1442
+ rows: _ctx.rows || 7
1446
1443
  }, null, 42, _hoisted_1$7), [
1447
1444
  [vModelText, val.value]
1448
1445
  ])
@@ -1453,7 +1450,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
1453
1450
  }
1454
1451
  });
1455
1452
  const _hoisted_1$6 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1456
- const _hoisted_2$1 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1453
+ const _hoisted_2$2 = ["poster", "muted", "src", "autoplay", "controls", "loop"];
1457
1454
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
1458
1455
  __name: "b-video",
1459
1456
  props: {
@@ -1467,8 +1464,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1467
1464
  customControls: { type: Boolean }
1468
1465
  },
1469
1466
  emits: ["on_play"],
1470
- setup(__props, { emit: __emit }) {
1471
- const emit = __emit;
1467
+ setup(__props, { emit }) {
1472
1468
  const $video = ref();
1473
1469
  const iconScale = ref(0);
1474
1470
  onMounted(() => {
@@ -1499,14 +1495,14 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1499
1495
  const _component_b_view = resolveComponent("b-view");
1500
1496
  const _component_b_hot = resolveComponent("b-hot");
1501
1497
  return openBlock(), createBlock(_sfc_main$u, {
1502
- class: normalizeClass(__props.class),
1503
- cname: __props.cname
1498
+ class: normalizeClass(_ctx.class),
1499
+ cname: _ctx.cname
1504
1500
  }, {
1505
1501
  className: withCtx((scope) => [
1506
1502
  createElementVNode("div", {
1507
1503
  class: normalizeClass(`${scope.className} over-hide rel`)
1508
1504
  }, [
1509
- __props.customControls ? (openBlock(), createBlock(_component_b_hot, {
1505
+ _ctx.customControls ? (openBlock(), createBlock(_component_b_hot, {
1510
1506
  key: 0,
1511
1507
  class: "max abs flex-5 z-2 bg-color-rgba_0_0_0_d1 trans-fast",
1512
1508
  onOn_click: togglePlay,
@@ -1538,7 +1534,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1538
1534
  ]),
1539
1535
  _: 1
1540
1536
  }, 8, ["state"])) : createCommentVNode("", true),
1541
- __props.fullScreen ? (openBlock(), createElementBlock("video", {
1537
+ _ctx.fullScreen ? (openBlock(), createElementBlock("video", {
1542
1538
  key: 1,
1543
1539
  ref_key: "$video",
1544
1540
  ref: $video,
@@ -1546,12 +1542,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1546
1542
  onPlaying: playing,
1547
1543
  onDurationchange: playing,
1548
1544
  class: normalizeClass(scope.className),
1549
- poster: __props.poster,
1550
- muted: __props.autoPlay,
1551
- src: __props.video,
1552
- autoplay: __props.autoPlay,
1553
- controls: !__props.customControls,
1554
- loop: __props.loop
1545
+ poster: _ctx.poster,
1546
+ muted: _ctx.autoPlay,
1547
+ src: _ctx.video,
1548
+ autoplay: _ctx.autoPlay,
1549
+ controls: !_ctx.customControls,
1550
+ loop: _ctx.loop
1555
1551
  }, null, 42, _hoisted_1$6)) : (openBlock(), createElementBlock("video", {
1556
1552
  key: 2,
1557
1553
  ref_key: "$video",
@@ -1563,13 +1559,13 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
1563
1559
  playsinline: "",
1564
1560
  "x5-video-player-type": "h5-page",
1565
1561
  class: normalizeClass(scope.className),
1566
- poster: __props.poster,
1567
- muted: __props.autoPlay,
1568
- src: __props.video,
1569
- autoplay: __props.autoPlay,
1570
- controls: !__props.customControls,
1571
- loop: __props.loop
1572
- }, null, 42, _hoisted_2$1))
1562
+ poster: _ctx.poster,
1563
+ muted: _ctx.autoPlay,
1564
+ src: _ctx.video,
1565
+ autoplay: _ctx.autoPlay,
1566
+ controls: !_ctx.customControls,
1567
+ loop: _ctx.loop
1568
+ }, null, 42, _hoisted_2$2))
1573
1569
  ], 2)
1574
1570
  ]),
1575
1571
  _: 1
@@ -1590,9 +1586,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1590
1586
  cname: {}
1591
1587
  },
1592
1588
  emits: ["on_scroll", "on_to_top", "on_to_bottom"],
1593
- setup(__props, { expose: __expose, emit: __emit }) {
1589
+ setup(__props, { expose: __expose, emit }) {
1594
1590
  const props = __props;
1595
- const emit = __emit;
1596
1591
  const $list = ref();
1597
1592
  const scrollTypeClass = computed(() => {
1598
1593
  if (props.scrollType)
@@ -1644,20 +1639,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
1644
1639
  });
1645
1640
  return (_ctx, _cache) => {
1646
1641
  return openBlock(), createBlock(_sfc_main$u, {
1647
- class: normalizeClass(__props.class),
1648
- states: __props.states,
1649
- cname: __props.cname
1642
+ class: normalizeClass(_ctx.class),
1643
+ states: _ctx.states,
1644
+ cname: _ctx.cname
1650
1645
  }, {
1651
1646
  className: withCtx((scope) => [
1652
1647
  createElementVNode("div", {
1653
1648
  class: normalizeClass(scope.className),
1654
- state: __props.state
1649
+ state: _ctx.state
1655
1650
  }, [
1656
1651
  createElementVNode("div", {
1657
1652
  ref_key: "$list",
1658
1653
  ref: $list,
1659
1654
  class: normalizeClass(scrollTypeClass.value),
1660
- style: normalizeStyle(`overflow-x: ${__props.scroll.x}; overflow-y: ${__props.scroll.y}; width: 100%; height: 100%;`),
1655
+ style: normalizeStyle(`overflow-x: ${_ctx.scroll.x}; overflow-y: ${_ctx.scroll.y}; width: 100%; height: 100%;`),
1661
1656
  onTouchmove: _cache[0] || (_cache[0] = withModifiers(() => {
1662
1657
  }, ["stop"]))
1663
1658
  }, [
@@ -1682,9 +1677,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1682
1677
  cname: {}
1683
1678
  },
1684
1679
  emits: ["on_drag_start", "on_drag_end", "on_drag_over", "on_drag_leave", "on_drop", "on_move"],
1685
- setup(__props, { emit: __emit }) {
1680
+ setup(__props, { emit }) {
1686
1681
  const props = __props;
1687
- const emit = __emit;
1688
1682
  const $el = ref();
1689
1683
  const state = ref("");
1690
1684
  const dragState = ref(false);
@@ -1783,16 +1777,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1783
1777
  });
1784
1778
  return (_ctx, _cache) => {
1785
1779
  return openBlock(), createBlock(_sfc_main$u, {
1786
- class: normalizeClass(__props.class),
1787
- states: { dragStart: __props.dragStart, dragOver: __props.dragOver },
1788
- cname: __props.cname
1780
+ class: normalizeClass(_ctx.class),
1781
+ states: { dragStart: _ctx.dragStart, dragOver: _ctx.dragOver },
1782
+ cname: _ctx.cname
1789
1783
  }, {
1790
1784
  className: withCtx((scope) => [
1791
1785
  createElementVNode("div", {
1792
1786
  style: normalizeStyle({
1793
- cursor: __props.dragOver ? "default" : "move",
1787
+ cursor: _ctx.dragOver ? "default" : "move",
1794
1788
  visibility: dragState.value ? "hidden" : "visible",
1795
- position: __props.freeDrag ? "absolute" : "relative",
1789
+ position: _ctx.freeDrag ? "absolute" : "relative",
1796
1790
  left: 0,
1797
1791
  top: 0,
1798
1792
  transform: `translate(${movePos.x}px, ${movePos.y}px)`
@@ -1801,7 +1795,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
1801
1795
  ref: $el,
1802
1796
  class: normalizeClass(scope.className),
1803
1797
  state: state.value,
1804
- draggable: __props.dragStart ? true : false
1798
+ draggable: _ctx.dragStart ? true : false
1805
1799
  }, [
1806
1800
  renderSlot(_ctx.$slots, "default")
1807
1801
  ], 14, _hoisted_1$4)
@@ -1822,14 +1816,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
1822
1816
  setup(__props) {
1823
1817
  return (_ctx, _cache) => {
1824
1818
  return openBlock(), createBlock(_sfc_main$u, {
1825
- class: normalizeClass(__props.class),
1826
- cname: __props.cname
1819
+ class: normalizeClass(_ctx.class),
1820
+ cname: _ctx.cname
1827
1821
  }, {
1828
1822
  className: withCtx((scope) => [
1829
1823
  createElementVNode("iframe", {
1830
1824
  class: normalizeClass(scope.className),
1831
1825
  frameborder: "0",
1832
- src: __props.src
1826
+ src: _ctx.src
1833
1827
  }, null, 10, _hoisted_1$3)
1834
1828
  ]),
1835
1829
  _: 1
@@ -1854,7 +1848,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
1854
1848
  });
1855
1849
  const combClass = ref(`${props.class} flex pad-h-${gap.value[0]} pad-v-${gap.value[1]}`);
1856
1850
  return (_ctx, _cache) => {
1857
- return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, __props.viewData, {
1851
+ return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, _ctx.viewData, {
1858
1852
  extraClass: {
1859
1853
  selector: ">",
1860
1854
  value: `pad-h-${gap.value[0]} pad-v-${gap.value[1]}`
@@ -1880,7 +1874,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1880
1874
  const props = __props;
1881
1875
  const combClass = ref(`${props.class ?? ""} ${props.span ? "col-" + props.span : ""} ${props.offset ? "offset-" + props.offset : ""}`);
1882
1876
  return (_ctx, _cache) => {
1883
- return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, __props.viewData), {
1877
+ return openBlock(), createBlock(_sfc_main$t, mergeProps({ class: combClass.value }, _ctx.viewData), {
1884
1878
  default: withCtx(() => [
1885
1879
  renderSlot(_ctx.$slots, "default")
1886
1880
  ]),
@@ -1936,14 +1930,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1936
1930
  };
1937
1931
  });
1938
1932
  return (_ctx, _cache) => {
1939
- return openBlock(), createBlock(_sfc_main$r, mergeProps(__props.hotData, {
1940
- class: `flex-5 pad-h-1d4 pad-v-d4 thick-1 ellipsis ${__props.btnRound ? "round-lg" : "round-sm"} ${__props.btnWidth ? "lw-" + __props.btnWidth : ""} ${normal.value.bg} ${normal.value.text} ${normal.value.line} solid`,
1933
+ return openBlock(), createBlock(_sfc_main$r, mergeProps(_ctx.hotData, {
1934
+ 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`,
1941
1935
  hover: `${hover.value.text} ${hover.value.bg} ${hover.value.line}`,
1942
1936
  active: `${active.value.text} ${active.value.bg} ${active.value.line}`
1943
1937
  }), {
1944
1938
  default: withCtx(() => [
1945
- __props.iconData ? (openBlock(), createBlock(_sfc_main$l, mergeProps({ key: 0 }, __props.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1946
- createTextVNode(" " + toDisplayString(__props.btnText), 1)
1939
+ _ctx.iconData ? (openBlock(), createBlock(_sfc_main$l, mergeProps({ key: 0 }, _ctx.iconData, { class: "mrg-r-d7" }), null, 16)) : createCommentVNode("", true),
1940
+ createTextVNode(" " + toDisplayString(_ctx.btnText), 1)
1947
1941
  ]),
1948
1942
  _: 1
1949
1943
  }, 16, ["class", "hover", "active"]);
@@ -1961,9 +1955,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1961
1955
  label: {}
1962
1956
  },
1963
1957
  emits: ["update:selected", "change"],
1964
- setup(__props, { emit: __emit }) {
1958
+ setup(__props, { emit }) {
1965
1959
  const props = __props;
1966
- const emit = __emit;
1967
1960
  const combClass = ref(props.class ?? "flex-4 bg-color-neutral round-sm pad-4-px");
1968
1961
  const combActClass = ref(`color-blue ${props.actClass ?? ""}`);
1969
1962
  const label = computed(() => {
@@ -1998,7 +1991,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1998
1991
  state: selected.value ? "act" : "",
1999
1992
  cname: combClass.value + combActClass.value,
2000
1993
  states: {
2001
- act: `bg-color-${__props.actColor ? ((_a = __props.actColor) == null ? void 0 : _a.bg) ?? "blue" : "blue"} color-${__props.actColor ? ((_b = __props.actColor) == null ? void 0 : _b.icon) ?? "light" : "light"}`
1994
+ act: `bg-color-${_ctx.actColor ? ((_a = _ctx.actColor) == null ? void 0 : _a.bg) ?? "blue" : "blue"} color-${_ctx.actColor ? ((_b = _ctx.actColor) == null ? void 0 : _b.icon) ?? "light" : "light"}`
2002
1995
  }
2003
1996
  }, {
2004
1997
  default: withCtx(() => [
@@ -2040,9 +2033,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2040
2033
  span: {}
2041
2034
  },
2042
2035
  emits: ["update:selected", "change"],
2043
- setup(__props, { emit: __emit }) {
2036
+ setup(__props, { emit }) {
2044
2037
  const props = __props;
2045
- const emit = __emit;
2046
2038
  const checkboxData = computed(() => {
2047
2039
  return props.options.map((opt) => {
2048
2040
  var _a;
@@ -2075,15 +2067,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2075
2067
  const _component_b_col = resolveComponent("b-col");
2076
2068
  const _component_b_row = resolveComponent("b-row");
2077
2069
  return openBlock(), createBlock(_sfc_main$t, {
2078
- class: normalizeClass(__props.class)
2070
+ class: normalizeClass(_ctx.class)
2079
2071
  }, {
2080
2072
  default: withCtx(() => [
2081
- __props.title ? (openBlock(), createBlock(_sfc_main$t, {
2073
+ _ctx.title ? (openBlock(), createBlock(_sfc_main$t, {
2082
2074
  key: 0,
2083
2075
  class: "mrg-b-1"
2084
2076
  }, {
2085
2077
  default: withCtx(() => [
2086
- createTextVNode(toDisplayString(__props.title), 1)
2078
+ createTextVNode(toDisplayString(_ctx.title), 1)
2087
2079
  ]),
2088
2080
  _: 1
2089
2081
  })) : createCommentVNode("", true),
@@ -2092,7 +2084,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2092
2084
  (openBlock(true), createElementBlock(Fragment, null, renderList(checkboxData.value, (item, i) => {
2093
2085
  return openBlock(), createBlock(_component_b_col, {
2094
2086
  class: "flex-4",
2095
- span: __props.span,
2087
+ span: _ctx.span,
2096
2088
  key: i
2097
2089
  }, {
2098
2090
  default: withCtx(() => [
@@ -2100,7 +2092,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2100
2092
  onChange: change,
2101
2093
  label: item.label,
2102
2094
  value: item.value
2103
- }, { ref_for: true }, item.checkboxData, {
2095
+ }, item.checkboxData, {
2104
2096
  selected: item.selected,
2105
2097
  "onUpdate:selected": ($event) => item.selected = $event
2106
2098
  }), createSlots({ _: 2 }, [
@@ -2147,9 +2139,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2147
2139
  regular: { type: Boolean }
2148
2140
  },
2149
2141
  emits: ["update:selected", "change"],
2150
- setup(__props, { emit: __emit }) {
2142
+ setup(__props, { emit }) {
2151
2143
  const props = __props;
2152
- const emit = __emit;
2153
2144
  const selected = computed(() => [props.selected]);
2154
2145
  const change = (selected2) => {
2155
2146
  const values = selected2.map((item) => item.value);
@@ -2166,14 +2157,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2166
2157
  return (_ctx, _cache) => {
2167
2158
  const _component_b_view = resolveComponent("b-view");
2168
2159
  return openBlock(), createBlock(_sfc_main$a, {
2169
- span: __props.span,
2170
- title: __props.title,
2171
- class: normalizeClass(__props.class),
2160
+ span: _ctx.span,
2161
+ title: _ctx.title,
2162
+ class: normalizeClass(_ctx.class),
2172
2163
  selected: selected.value,
2173
- options: __props.options,
2164
+ options: _ctx.options,
2174
2165
  onChange: change
2175
2166
  }, createSlots({ _: 2 }, [
2176
- __props.regular ? {
2167
+ _ctx.regular ? {
2177
2168
  name: "default",
2178
2169
  fn: withCtx((scope) => [
2179
2170
  createVNode(_component_b_view, { class: "h-24-px w-24-px round-lg pad-d5 bg-color-neutral" }, {
@@ -2206,8 +2197,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2206
2197
  }
2207
2198
  });
2208
2199
  const _hoisted_1$2 = ["state"];
2209
- const _hoisted_2 = ["innerHTML"];
2210
- const _hoisted_3 = ["innerHTML"];
2200
+ const _hoisted_2$1 = ["innerHTML"];
2201
+ const _hoisted_3$1 = ["innerHTML"];
2211
2202
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2212
2203
  __name: "tabs-wid",
2213
2204
  props: {
@@ -2220,9 +2211,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2220
2211
  noDataNotic: {}
2221
2212
  },
2222
2213
  emits: ["update:selected", "change"],
2223
- setup(__props, { emit: __emit }) {
2214
+ setup(__props, { emit }) {
2224
2215
  const props = __props;
2225
- const emit = __emit;
2226
2216
  const tabConts = reactive({});
2227
2217
  const color = computed(() => props.color ?? "blue");
2228
2218
  const tabOrder = reactive({});
@@ -2283,17 +2273,17 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2283
2273
  default: withCtx(() => [
2284
2274
  createVNode(_sfc_main$9, {
2285
2275
  options: options.value,
2286
- title: __props.title,
2276
+ title: _ctx.title,
2287
2277
  selected: selected.value,
2288
2278
  onChange: change
2289
2279
  }, createSlots({ _: 2 }, [
2290
- slots.value.length === 0 && __props.tabStyle === "grid" ? {
2280
+ slots.value.length === 0 && _ctx.tabStyle === "grid" ? {
2291
2281
  name: "default",
2292
2282
  fn: withCtx((scope) => [
2293
2283
  createElementVNode("span", { state: scope }, null, 8, _hoisted_1$2)
2294
2284
  ]),
2295
2285
  key: "0"
2296
- } : slots.value.length === 0 && __props.tabStyle === "card" ? {
2286
+ } : slots.value.length === 0 && _ctx.tabStyle === "card" ? {
2297
2287
  name: "default",
2298
2288
  fn: withCtx((scope) => [
2299
2289
  createVNode(_sfc_main$t, { class: "w-4-px b-f1-px h-1-px bg-color-neutral r-f5-px abs" })
@@ -2339,9 +2329,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2339
2329
  default: withCtx(() => [
2340
2330
  createElementVNode("div", {
2341
2331
  innerHTML: tabConts[selected.value],
2342
- class: normalizeClass(__props.smooth ? `ani-fast ani-${flipDir.value}` : ""),
2332
+ class: normalizeClass(_ctx.smooth ? `ani-fast ani-${flipDir.value}` : ""),
2343
2333
  onAnimationend: _cache[0] || (_cache[0] = ($event) => flipDir.value = "")
2344
- }, null, 42, _hoisted_2)
2334
+ }, null, 42, _hoisted_2$1)
2345
2335
  ]),
2346
2336
  _: 1
2347
2337
  })) : (openBlock(), createBlock(_sfc_main$t, {
@@ -2350,8 +2340,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2350
2340
  }, {
2351
2341
  default: withCtx(() => [
2352
2342
  createElementVNode("div", {
2353
- innerHTML: __props.noDataNotic ?? "暂未选择标签"
2354
- }, null, 8, _hoisted_3)
2343
+ innerHTML: _ctx.noDataNotic ?? "暂未选择标签"
2344
+ }, null, 8, _hoisted_3$1)
2355
2345
  ]),
2356
2346
  _: 1
2357
2347
  }))
@@ -2372,9 +2362,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2372
2362
  btnData: {}
2373
2363
  },
2374
2364
  emits: ["on_upload"],
2375
- setup(__props, { emit: __emit }) {
2365
+ setup(__props, { emit }) {
2376
2366
  const props = __props;
2377
- const emit = __emit;
2378
2367
  const $uploader = ref();
2379
2368
  const btnData = computed(() => {
2380
2369
  return {
@@ -2442,7 +2431,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2442
2431
  ref_key: "$uploader",
2443
2432
  ref: $uploader,
2444
2433
  onChange: trigerUpload,
2445
- multiple: __props.multiple
2434
+ multiple: _ctx.multiple
2446
2435
  }, null, 40, _hoisted_1$1)
2447
2436
  ]),
2448
2437
  _: 3
@@ -2450,6 +2439,175 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2450
2439
  };
2451
2440
  }
2452
2441
  });
2442
+ let t;
2443
+ const defaultStyle = `
2444
+ position: fixed;
2445
+ left: 0;
2446
+ top: 0;
2447
+ width: 100%;
2448
+ height: 100%;
2449
+ background-color: rgba(0,0,0,.2);
2450
+ transition: all .3s;
2451
+ display: flex;
2452
+ align-items: center;
2453
+ justify-content: center;
2454
+ z-index: 99;
2455
+ transition: all .3s;
2456
+ `;
2457
+ const hideStyle = defaultStyle + `
2458
+ opacity: 0;
2459
+ visibility: hidden;
2460
+ `;
2461
+ const showStyle = defaultStyle + `
2462
+ opacity: 1;
2463
+ visibility: visible;
2464
+ `;
2465
+ const showToast = (text, duration = 2e3, icon = "") => {
2466
+ clearTimeout(t);
2467
+ let bToast = document.querySelector(".b-toast");
2468
+ let bToastIcon;
2469
+ if (!bToast) {
2470
+ bToast = document.createElement("div");
2471
+ bToast.className = "b-toast";
2472
+ const bToastInner = document.createElement("div");
2473
+ bToast.appendChild(bToastInner);
2474
+ bToastIcon = document.createElement("i");
2475
+ bToastIcon.className = "b-toast-icon";
2476
+ const bToastText = document.createElement("div");
2477
+ bToastInner.appendChild(bToastIcon);
2478
+ bToastInner.appendChild(bToastText);
2479
+ bToastInner.style.cssText = `
2480
+ color: #fff;
2481
+ border-radius: 7px;
2482
+ padding: 1.2rem 1.7rem;
2483
+ text-align: center;
2484
+ background-color: rgba(0,0,0,.9);
2485
+ font-size: 1.27rem;
2486
+ `;
2487
+ bToast.style.cssText = hideStyle;
2488
+ document.body.appendChild(bToast);
2489
+ }
2490
+ bToastIcon = bToast.querySelector(".b-toast-icon");
2491
+ if (icon) {
2492
+ bToastIcon.className = `b-toast-icon ico-${icon}`;
2493
+ bToastIcon.style.cssText = `
2494
+ color: #fff;
2495
+ font-size: 3.2rem;
2496
+ margin-bottom: 1.2rem;
2497
+ `;
2498
+ } else {
2499
+ bToastIcon.style.display = "none";
2500
+ }
2501
+ bToast.childNodes[0].childNodes[1].innerText = text;
2502
+ bToast.style.cssText = showStyle;
2503
+ t = setTimeout(() => {
2504
+ bToast.style.cssText = hideStyle;
2505
+ }, duration);
2506
+ };
2507
+ const showLoadToast = (text = "数据加载中") => {
2508
+ let bToast = document.querySelector(".b-load-toast");
2509
+ if (!bToast) {
2510
+ bToast = document.createElement("div");
2511
+ bToast.className = "b-load-toast";
2512
+ const bToastInner = document.createElement("div");
2513
+ bToast.appendChild(bToastInner);
2514
+ const bToastIcon = document.createElement("i");
2515
+ bToastIcon.style.cssText = `
2516
+ color: #fff;
2517
+ font-size: 3.2rem;
2518
+ margin-bottom: 1.2rem;
2519
+ `;
2520
+ const bToastText = document.createElement("div");
2521
+ bToastInner.appendChild(bToastIcon);
2522
+ bToastInner.appendChild(bToastText);
2523
+ bToastInner.style.cssText = `
2524
+ color: #fff;
2525
+ border-radius: 7px;
2526
+ padding: 1.2rem 1.7rem;
2527
+ text-align: center;
2528
+ background-color: rgba(0,0,0,.9);
2529
+ min-width: 10rem;
2530
+ font-size: 1.27rem;
2531
+ `;
2532
+ bToast.style.cssText = hideStyle;
2533
+ document.body.appendChild(bToast);
2534
+ }
2535
+ bToast.childNodes[0].childNodes[0].className = "ico-load ani-rotate ani-loop ani-slow";
2536
+ bToast.childNodes[0].childNodes[1].innerText = text;
2537
+ bToast.style.cssText = showStyle;
2538
+ };
2539
+ const hideLoadToast = (_text, _icon) => {
2540
+ clearTimeout(t);
2541
+ let bToast = document.querySelector(".b-load-toast");
2542
+ if (!bToast)
2543
+ return;
2544
+ if (_text) {
2545
+ if (_icon)
2546
+ bToast.childNodes[0].childNodes[0].className = `ico-${_icon}`;
2547
+ bToast.childNodes[0].childNodes[1].innerText = _text;
2548
+ setTimeout(() => {
2549
+ bToast.style.cssText = hideStyle;
2550
+ }, 1e3);
2551
+ } else {
2552
+ bToast.style.cssText = hideStyle;
2553
+ }
2554
+ };
2555
+ const upload = () => {
2556
+ const $input = document.createElement("input");
2557
+ $input.type = "file";
2558
+ document.body.appendChild($input);
2559
+ return new Promise((resolve) => {
2560
+ $input.onchange = (e) => {
2561
+ const target = e.target;
2562
+ if (target.files)
2563
+ resolve(target.files);
2564
+ document.body.removeChild($input);
2565
+ };
2566
+ $input.click();
2567
+ });
2568
+ };
2569
+ const compress = (file, compress2) => {
2570
+ return new Promise((resolve, reject) => {
2571
+ const reader = new FileReader();
2572
+ reader.readAsDataURL(file);
2573
+ reader.onload = function() {
2574
+ const img = new Image();
2575
+ img.src = reader.result;
2576
+ img.onload = function() {
2577
+ const canvas = document.createElement("canvas");
2578
+ const ctx = canvas.getContext("2d");
2579
+ const { naturalHeight, naturalWidth } = img;
2580
+ const ratio = naturalWidth / naturalHeight;
2581
+ canvas.width = (compress2 == null ? void 0 : compress2.width) || naturalWidth;
2582
+ canvas.height = (compress2 == null ? void 0 : compress2.height) || canvas.width / ratio;
2583
+ ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
2584
+ canvas.toBlob((blob) => {
2585
+ resolve(new File([blob], file.name, {
2586
+ type: blob.type,
2587
+ lastModified: (/* @__PURE__ */ new Date()).getTime()
2588
+ }));
2589
+ }, file.type, (compress2 == null ? void 0 : compress2.quality) || 0.7);
2590
+ };
2591
+ img.onerror = reject;
2592
+ };
2593
+ reader.onerror = reject;
2594
+ });
2595
+ };
2596
+ const uploadImage = async (imageCompress) => {
2597
+ const files = await upload();
2598
+ const file = await compress(files[0], imageCompress);
2599
+ const fileReader = new FileReader();
2600
+ fileReader.readAsDataURL(file);
2601
+ return new Promise((resolve) => {
2602
+ fileReader.onload = (e) => {
2603
+ var _a;
2604
+ resolve({
2605
+ file,
2606
+ preview: (_a = e.target) == null ? void 0 : _a.result
2607
+ });
2608
+ };
2609
+ });
2610
+ };
2453
2611
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2454
2612
  __name: "img-upload-wid",
2455
2613
  props: {
@@ -2461,38 +2619,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2461
2619
  compress: {}
2462
2620
  },
2463
2621
  emits: ["update:preview", "on_upload"],
2464
- setup(__props, { emit: __emit }) {
2622
+ setup(__props, { emit }) {
2465
2623
  const props = __props;
2466
- const emit = __emit;
2467
- const size = computed(() => props.compress ? 1024 * 1024 * 20 : 1024 * 1024 * 2);
2468
- const compress = (file) => {
2469
- return new Promise((resolve, reject) => {
2470
- const reader = new FileReader();
2471
- reader.readAsDataURL(file);
2472
- reader.onload = function() {
2473
- const img = new Image();
2474
- img.src = reader.result;
2475
- img.onload = function() {
2476
- var _a, _b, _c;
2477
- const canvas = document.createElement("canvas");
2478
- const ctx = canvas.getContext("2d");
2479
- const { naturalHeight, naturalWidth } = img;
2480
- const ratio = naturalWidth / naturalHeight;
2481
- canvas.width = ((_a = props.compress) == null ? void 0 : _a.width) || naturalWidth;
2482
- canvas.height = ((_b = props.compress) == null ? void 0 : _b.height) || canvas.width / ratio;
2483
- ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
2484
- canvas.toBlob((blob) => {
2485
- resolve(new File([blob], file.name, {
2486
- type: blob.type,
2487
- lastModified: (/* @__PURE__ */ new Date()).getTime()
2488
- }));
2489
- }, file.type, ((_c = props == null ? void 0 : props.compress) == null ? void 0 : _c.quality) || 0.7);
2490
- };
2491
- img.onerror = reject;
2492
- };
2493
- reader.onerror = reject;
2494
- });
2495
- };
2624
+ const size = computed(() => props.compress ? 1024 * 1024 * 20 : props.size);
2496
2625
  const imgUpload = async (files, checkResult) => {
2497
2626
  if (checkResult.success) {
2498
2627
  let file = files[0];
@@ -2503,7 +2632,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2503
2632
  emit("update:preview", (_a = e.target) == null ? void 0 : _a.result);
2504
2633
  };
2505
2634
  if (props.compress)
2506
- file = await compress(files[0]);
2635
+ file = await compress(files[0], props.compress);
2507
2636
  emit("on_upload", file, checkResult);
2508
2637
  }
2509
2638
  };
@@ -2513,20 +2642,20 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2513
2642
  return openBlock(), createBlock(_sfc_main$7, {
2514
2643
  onOn_upload: imgUpload,
2515
2644
  size: size.value,
2516
- multiple: __props.multiple,
2645
+ multiple: _ctx.multiple,
2517
2646
  type: ["image/jpeg", "image/png", "image/gif"]
2518
2647
  }, {
2519
2648
  default: withCtx(() => {
2520
2649
  var _a, _b, _c, _d, _e, _f;
2521
2650
  return [
2522
- __props.preview ? (openBlock(), createBlock(_component_b_view, {
2651
+ _ctx.preview ? (openBlock(), createBlock(_component_b_view, {
2523
2652
  key: 0,
2524
- class: normalizeClass(`w-${((_a = __props.cover) == null ? void 0 : _a.width) || 7} h-${((_b = __props.cover) == null ? void 0 : _b.height) || 7} bsize-${__props.bsize || "cover"} bpos-2 round-sm bg-color-neutral`),
2525
- "bg-img": __props.preview
2653
+ class: normalizeClass(`w-${((_a = _ctx.cover) == null ? void 0 : _a.width) || 7} h-${((_b = _ctx.cover) == null ? void 0 : _b.height) || 7} bsize-${_ctx.bsize || "cover"} bpos-2 round-sm bg-color-neutral`),
2654
+ "bg-img": _ctx.preview
2526
2655
  }, null, 8, ["class", "bg-img"])) : (openBlock(), createBlock(_component_b_icon, {
2527
2656
  key: 1,
2528
2657
  icon: "add",
2529
- class: normalizeClass(`flex-5 w-${((_c = __props.cover) == null ? void 0 : _c.width) || 7} h-${((_d = __props.cover) == null ? void 0 : _d.height) || 7} ${((_e = __props.cover) == null ? void 0 : _e.color) ? "color-" + ((_f = __props.cover) == null ? void 0 : _f.color) : ""} round-sm bg-color-neutral`)
2658
+ class: normalizeClass(`flex-5 w-${((_c = _ctx.cover) == null ? void 0 : _c.width) || 7} h-${((_d = _ctx.cover) == null ? void 0 : _d.height) || 7} ${((_e = _ctx.cover) == null ? void 0 : _e.color) ? "color-" + ((_f = _ctx.cover) == null ? void 0 : _f.color) : ""} round-sm bg-color-neutral`)
2530
2659
  }, null, 8, ["class"]))
2531
2660
  ];
2532
2661
  }),
@@ -2561,7 +2690,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2561
2690
  var _a;
2562
2691
  const _component_router_view = resolveComponent("router-view");
2563
2692
  return openBlock(), createBlock(_sfc_main$t, {
2564
- class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = __props.colors) == null ? void 0 : _a.bg) || "none"}`)
2693
+ class: normalizeClass(`max fixed flex-column color-light select-none bg-color-${((_a = _ctx.colors) == null ? void 0 : _a.bg) || "none"}`)
2565
2694
  }, {
2566
2695
  default: withCtx(() => {
2567
2696
  var _a2;
@@ -2573,7 +2702,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2573
2702
  class: "abs max"
2574
2703
  }, {
2575
2704
  default: withCtx(() => [
2576
- __props.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
2705
+ _ctx.keepAlive ? (openBlock(), createBlock(KeepAlive, { key: 0 }, [
2577
2706
  createVNode(_component_router_view)
2578
2707
  ], 1024)) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
2579
2708
  ]),
@@ -2583,11 +2712,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2583
2712
  _: 1
2584
2713
  }),
2585
2714
  createVNode(_sfc_main$t, {
2586
- class: normalizeClass(`pcenter pad-t-d5 flex-1 ${__props.round ? "round-md round-t" : ""} bg-color-${((_a2 = __props.colors) == null ? void 0 : _a2.bar) || "dark"} solid-t line-neutral thick-d4 app-nav-bar`)
2715
+ 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`)
2587
2716
  }, {
2588
2717
  default: withCtx(() => [
2589
2718
  (openBlock(true), createElementBlock(Fragment, null, renderList(navs.value, (nav, i) => {
2590
- return openBlock(), createBlock(_sfc_main$r, mergeProps({ key: i }, { ref_for: true }, nav.hotData, {
2719
+ return openBlock(), createBlock(_sfc_main$r, mergeProps({ key: i }, nav.hotData, {
2591
2720
  class: "grow-1",
2592
2721
  onOn_click: ($event) => _ctx.$emit("on_toggle", nav)
2593
2722
  }), {
@@ -2601,19 +2730,19 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2601
2730
  default: withCtx(() => {
2602
2731
  var _a4, _b2, _c2, _d2;
2603
2732
  return [
2604
- createVNode(_sfc_main$l, mergeProps({ ref_for: true }, nav.iconData, {
2605
- class: `abs flex-5 solid t-f1d4 thick-2 w-5 h-5 round fsize-1d7 line-${((_b2 = (_a4 = __props.colors) == null ? void 0 : _a4.center) == null ? void 0 : _b2.line) || "neutral"} bg-color-${((_d2 = (_c2 = __props.colors) == null ? void 0 : _c2.center) == null ? void 0 : _d2.bg) || "dgray"}`
2733
+ createVNode(_sfc_main$l, mergeProps(nav.iconData, {
2734
+ 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"}`
2606
2735
  }), null, 16, ["class"])
2607
2736
  ];
2608
2737
  }),
2609
2738
  _: 2
2610
2739
  }, 1024)) : (openBlock(), createBlock(_sfc_main$t, {
2611
2740
  key: 1,
2612
- class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = __props.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
2613
- cname: ((_d = (_c = __props.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
2741
+ class: normalizeClass(`flex-column rel flex-5 color-${((_b = (_a3 = _ctx.colors) == null ? void 0 : _a3.text) == null ? void 0 : _b.normal) || "mgray"}`),
2742
+ cname: ((_d = (_c = _ctx.colors) == null ? void 0 : _c.text) == null ? void 0 : _d.act) || "light",
2614
2743
  state: curRoute.value === nav.hotData.link ? "act" : "",
2615
2744
  states: {
2616
- act: `color-${((_f = (_e = __props.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.act) || "light"}`
2745
+ act: `color-${((_f = (_e = _ctx.colors) == null ? void 0 : _e.text) == null ? void 0 : _f.act) || "light"}`
2617
2746
  }
2618
2747
  }, {
2619
2748
  default: withCtx(() => [
@@ -2630,13 +2759,13 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2630
2759
  ]),
2631
2760
  _: 2
2632
2761
  }, 1024)) : createCommentVNode("", true),
2633
- createVNode(_sfc_main$l, mergeProps({ ref_for: true }, nav.iconData, {
2762
+ createVNode(_sfc_main$l, mergeProps(nav.iconData, {
2634
2763
  cname: nav.act,
2635
2764
  state: curRoute.value === nav.hotData.link ? "act" : "",
2636
2765
  states: {
2637
2766
  act: nav.act ?? ""
2638
2767
  },
2639
- class: `w-2d7 h-2d7 ${__props.iconTransAni ? "trans-fast" : ""} fsize-1d7`
2768
+ class: `w-2d7 h-2d7 ${_ctx.iconTransAni ? "trans-fast" : ""} fsize-1d7`
2640
2769
  }), null, 16, ["cname", "state", "states", "class"]),
2641
2770
  nav.text ? (openBlock(), createBlock(_sfc_main$s, {
2642
2771
  key: 2,
@@ -2666,6 +2795,14 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2666
2795
  }
2667
2796
  });
2668
2797
  const _hoisted_1 = { open: "true" };
2798
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("div", null, "hello dialog", -1);
2799
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("div", null, [
2800
+ /* @__PURE__ */ createElementVNode("button", { onclick: "document.querySelector('dialog').close()" }, "关闭")
2801
+ ], -1);
2802
+ const _hoisted_4 = [
2803
+ _hoisted_2,
2804
+ _hoisted_3
2805
+ ];
2669
2806
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2670
2807
  __name: "confirm-wid",
2671
2808
  props: {
@@ -2703,12 +2840,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2703
2840
  $_close();
2704
2841
  });
2705
2842
  return (_ctx, _cache) => {
2706
- return openBlock(), createElementBlock("dialog", _hoisted_1, [..._cache[0] || (_cache[0] = [
2707
- createElementVNode("div", null, "hello dialog", -1),
2708
- createElementVNode("div", null, [
2709
- createElementVNode("button", { onclick: "document.querySelector('dialog').close()" }, "关闭")
2710
- ], -1)
2711
- ])]);
2843
+ return openBlock(), createElementBlock("dialog", _hoisted_1, _hoisted_4);
2712
2844
  };
2713
2845
  }
2714
2846
  });
@@ -2731,7 +2863,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2731
2863
  return (_ctx, _cache) => {
2732
2864
  const _component_b_view = resolveComponent("b-view");
2733
2865
  return openBlock(), createBlock(_component_b_view, {
2734
- class: normalizeClass(`fixed max bg-color-${__props.matteColor || "rgba_0_0_0_d2"} l-0 t-0 flex-5`),
2866
+ class: normalizeClass(`fixed max bg-color-${_ctx.matteColor || "rgba_0_0_0_d2"} l-0 t-0 flex-5`),
2735
2867
  state: visiable.value,
2736
2868
  states: {
2737
2869
  true: "alpha-1 visible",
@@ -2769,9 +2901,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2769
2901
  dir: {}
2770
2902
  },
2771
2903
  emits: ["update:visiable"],
2772
- setup(__props, { emit: __emit }) {
2904
+ setup(__props, { emit }) {
2773
2905
  const props = __props;
2774
- const emit = __emit;
2775
2906
  const dir = computed(() => props.dir || "bottom");
2776
2907
  const dirStyle = computed(() => {
2777
2908
  let layout, pannal;
@@ -2832,12 +2963,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2832
2963
  createVNode(_component_b_hot, {
2833
2964
  onOn_transend: matteAniend,
2834
2965
  onOn_click: hide,
2835
- state: __props.visiable,
2966
+ state: _ctx.visiable,
2836
2967
  states: {
2837
2968
  true: "alpha-1 visible",
2838
2969
  false: "alpha-0"
2839
2970
  },
2840
- class: normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${__props.matteColor || "C000000cc"}`)
2971
+ class: normalizeClass(`abs trans-fast max t-0 l-0 bg-color-${_ctx.matteColor || "C000000cc"}`)
2841
2972
  }, null, 8, ["state", "class"]),
2842
2973
  createVNode(_component_b_view, {
2843
2974
  class: normalizeClass(`${dirStyle.value.pannal} rel ani-mode-both`),
@@ -2878,10 +3009,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2878
3009
  default: withCtx(() => [
2879
3010
  _ctx.$slots.custom ? renderSlot(_ctx.$slots, "custom", { key: 0 }) : (openBlock(), createBlock(_component_b_view, {
2880
3011
  key: 1,
2881
- class: normalizeClass(`bg-color-${__props.pannelColor || "light"} rel pad-2 ${__props.roundEnable ? "round-md" : ""} ${dirStyle.value.pannal}`)
3012
+ class: normalizeClass(`bg-color-${_ctx.pannelColor || "light"} rel pad-2 ${_ctx.roundEnable ? "round-md" : ""} ${dirStyle.value.pannal}`)
2882
3013
  }, {
2883
3014
  default: withCtx(() => [
2884
- !__props.closeEnable ? (openBlock(), createBlock(_component_b_hot, {
3015
+ !_ctx.closeEnable ? (openBlock(), createBlock(_component_b_hot, {
2885
3016
  key: 0,
2886
3017
  class: "abs r-1 t-d7 color-mgray",
2887
3018
  onOn_click: hide
@@ -2917,7 +3048,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2917
3048
  active: {}
2918
3049
  },
2919
3050
  emits: ["on_select"],
2920
- setup(__props, { emit: __emit }) {
3051
+ setup(__props, { emit }) {
2921
3052
  const props = __props;
2922
3053
  const dataTree = ref(props.dataTree || []);
2923
3054
  const selected = inject("selected");
@@ -2948,9 +3079,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2948
3079
  createVNode(_sfc_main$r, {
2949
3080
  cname: `${item.id}-${Math.random()}`,
2950
3081
  class: normalizeClass(`flex-4 pad-v-${gap.value} pad-l-${setIndex(item.level)}`),
2951
- hover: __props.hover,
3082
+ hover: _ctx.hover,
2952
3083
  states: {
2953
- true: `${__props.active ? __props.active : ""}`,
3084
+ true: `${_ctx.active ? _ctx.active : ""}`,
2954
3085
  false: ""
2955
3086
  },
2956
3087
  state: (((_a = unref(selected)) == null ? void 0 : _a.findIndex((data) => data.id === item.id)) > -1).toString()
@@ -2984,11 +3115,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2984
3115
  state: item.spread ? "show" : "hide"
2985
3116
  }, {
2986
3117
  default: withCtx(() => [
2987
- createVNode(_component_content_node_wid, mergeProps({ ref_for: true }, { ...props, dataTree: item.children }), createSlots({ _: 2 }, [
3118
+ createVNode(_component_content_node_wid, normalizeProps(guardReactiveProps({ ...props, dataTree: item.children })), createSlots({ _: 2 }, [
2988
3119
  _ctx.$slots.default ? {
2989
3120
  name: "default",
2990
3121
  fn: withCtx((scope) => [
2991
- renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, scope))
3122
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scope)))
2992
3123
  ]),
2993
3124
  key: "0"
2994
3125
  } : void 0
@@ -3014,9 +3145,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3014
3145
  active: {}
3015
3146
  },
3016
3147
  emits: ["on_select"],
3017
- setup(__props, { emit: __emit }) {
3148
+ setup(__props, { emit }) {
3018
3149
  const props = __props;
3019
- const emit = __emit;
3020
3150
  let prefix = 0;
3021
3151
  const flatDataTree = reactive([]);
3022
3152
  const indexDataTree = reactive({});
@@ -3084,119 +3214,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3084
3214
  }
3085
3215
  });
3086
3216
  const contentWid_vue_vue_type_style_index_0_lang = "";
3087
- let t;
3088
- const defaultStyle = `
3089
- position: fixed;
3090
- left: 0;
3091
- top: 0;
3092
- width: 100%;
3093
- height: 100%;
3094
- background-color: rgba(0,0,0,.2);
3095
- transition: all .3s;
3096
- display: flex;
3097
- align-items: center;
3098
- justify-content: center;
3099
- z-index: 99;
3100
- transition: all .3s;
3101
- `;
3102
- const hideStyle = defaultStyle + `
3103
- opacity: 0;
3104
- visibility: hidden;
3105
- `;
3106
- const showStyle = defaultStyle + `
3107
- opacity: 1;
3108
- visibility: visible;
3109
- `;
3110
- const showToast = (text, duration = 2e3, icon = "") => {
3111
- clearTimeout(t);
3112
- let bToast = document.querySelector(".b-toast");
3113
- let bToastIcon;
3114
- if (!bToast) {
3115
- bToast = document.createElement("div");
3116
- bToast.className = "b-toast";
3117
- const bToastInner = document.createElement("div");
3118
- bToast.appendChild(bToastInner);
3119
- bToastIcon = document.createElement("i");
3120
- bToastIcon.className = "b-toast-icon";
3121
- const bToastText = document.createElement("div");
3122
- bToastInner.appendChild(bToastIcon);
3123
- bToastInner.appendChild(bToastText);
3124
- bToastInner.style.cssText = `
3125
- color: #fff;
3126
- border-radius: 7px;
3127
- padding: 1.2rem 1.7rem;
3128
- text-align: center;
3129
- background-color: rgba(0,0,0,.9);
3130
- font-size: 1.27rem;
3131
- `;
3132
- bToast.style.cssText = hideStyle;
3133
- document.body.appendChild(bToast);
3134
- }
3135
- bToastIcon = bToast.querySelector(".b-toast-icon");
3136
- if (icon) {
3137
- bToastIcon.className = `b-toast-icon ico-${icon}`;
3138
- bToastIcon.style.cssText = `
3139
- color: #fff;
3140
- font-size: 3.2rem;
3141
- margin-bottom: 1.2rem;
3142
- `;
3143
- } else {
3144
- bToastIcon.style.display = "none";
3145
- }
3146
- bToast.childNodes[0].childNodes[1].innerText = text;
3147
- bToast.style.cssText = showStyle;
3148
- t = setTimeout(() => {
3149
- bToast.style.cssText = hideStyle;
3150
- }, duration);
3151
- };
3152
- const showLoadToast = (text = "数据加载中") => {
3153
- let bToast = document.querySelector(".b-load-toast");
3154
- if (!bToast) {
3155
- bToast = document.createElement("div");
3156
- bToast.className = "b-load-toast";
3157
- const bToastInner = document.createElement("div");
3158
- bToast.appendChild(bToastInner);
3159
- const bToastIcon = document.createElement("i");
3160
- bToastIcon.style.cssText = `
3161
- color: #fff;
3162
- font-size: 3.2rem;
3163
- margin-bottom: 1.2rem;
3164
- `;
3165
- const bToastText = document.createElement("div");
3166
- bToastInner.appendChild(bToastIcon);
3167
- bToastInner.appendChild(bToastText);
3168
- bToastInner.style.cssText = `
3169
- color: #fff;
3170
- border-radius: 7px;
3171
- padding: 1.2rem 1.7rem;
3172
- text-align: center;
3173
- background-color: rgba(0,0,0,.9);
3174
- min-width: 10rem;
3175
- font-size: 1.27rem;
3176
- `;
3177
- bToast.style.cssText = hideStyle;
3178
- document.body.appendChild(bToast);
3179
- }
3180
- bToast.childNodes[0].childNodes[0].className = "ico-load ani-rotate ani-loop ani-slow";
3181
- bToast.childNodes[0].childNodes[1].innerText = text;
3182
- bToast.style.cssText = showStyle;
3183
- };
3184
- const hideLoadToast = (_text, _icon) => {
3185
- clearTimeout(t);
3186
- let bToast = document.querySelector(".b-load-toast");
3187
- if (!bToast)
3188
- return;
3189
- if (_text) {
3190
- if (_icon)
3191
- bToast.childNodes[0].childNodes[0].className = `ico-${_icon}`;
3192
- bToast.childNodes[0].childNodes[1].innerText = _text;
3193
- setTimeout(() => {
3194
- bToast.style.cssText = hideStyle;
3195
- }, 1e3);
3196
- } else {
3197
- bToast.style.cssText = hideStyle;
3198
- }
3199
- };
3200
3217
  const initGlobalComponents = [
3201
3218
  _sfc_main$u,
3202
3219
  _sfc_main$t,
@@ -3240,8 +3257,11 @@ const index = {
3240
3257
  }
3241
3258
  };
3242
3259
  export {
3260
+ compress,
3243
3261
  index as default,
3244
3262
  hideLoadToast,
3245
3263
  showLoadToast,
3246
- showToast
3264
+ showToast,
3265
+ upload,
3266
+ uploadImage
3247
3267
  };