@hlw-uni/mp-vue 1.1.0 → 1.1.2
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 +39 -33
- package/dist/index.mjs +39 -33
- package/dist/style.css +155 -154
- package/package.json +1 -1
- package/src/components/hlw-avatar/index.vue +15 -0
- package/src/components/hlw-button/index.vue +25 -0
- package/src/components/hlw-cell/index.vue +30 -0
- package/src/components/hlw-divider/index.vue +20 -0
- package/src/components/hlw-empty/index.vue +3 -2
- package/src/components/hlw-header/index.vue +28 -0
- package/src/components/hlw-loading/index.vue +13 -0
- package/src/components/hlw-modal/index.vue +14 -4
- package/src/components/hlw-notice-bar/index.vue +5 -5
- package/src/components/hlw-page/index.vue +24 -0
- package/src/components/hlw-popup/index.vue +3 -3
- package/src/components/hlw-search/index.vue +6 -6
- package/src/components/hlw-skeleton/index.vue +23 -0
- package/src/components/hlw-tabs/index.vue +22 -0
- package/src/components/hlw-tag/index.vue +2 -2
package/dist/index.js
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
};
|
|
81
|
-
const index$g = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
81
|
+
const index$g = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-19006b2d"]]);
|
|
82
82
|
const _hoisted_1$e = ["disabled", "open-type"];
|
|
83
83
|
const _hoisted_2$c = {
|
|
84
84
|
key: 0,
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
|
-
const index$f = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
121
|
+
const index$f = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-19a9c118"]]);
|
|
122
122
|
const _hoisted_1$d = {
|
|
123
123
|
key: 0,
|
|
124
124
|
class: "hlw-card-header"
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
});
|
|
328
|
-
const index$d = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
328
|
+
const index$d = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-996053be"]]);
|
|
329
329
|
const _hoisted_1$b = {
|
|
330
330
|
key: 0,
|
|
331
331
|
class: "hlw-divider-text"
|
|
@@ -353,12 +353,12 @@
|
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
|
-
const index$c = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
356
|
+
const index$c = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-beaa0298"]]);
|
|
357
357
|
const _hoisted_1$a = { class: "hlw-empty" };
|
|
358
358
|
const _hoisted_2$9 = ["src"];
|
|
359
359
|
const _hoisted_3$5 = {
|
|
360
360
|
key: 1,
|
|
361
|
-
class: "hlw-empty__icon"
|
|
361
|
+
class: "hlw-empty__icon i-fa6-solid-box-open"
|
|
362
362
|
};
|
|
363
363
|
const _hoisted_4$2 = { class: "hlw-empty__text" };
|
|
364
364
|
const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -375,14 +375,14 @@
|
|
|
375
375
|
class: "hlw-empty__image",
|
|
376
376
|
src: __props.image,
|
|
377
377
|
mode: "aspectFit"
|
|
378
|
-
}, null, 8, _hoisted_2$9)) : (vue.openBlock(), vue.createElementBlock("
|
|
378
|
+
}, null, 8, _hoisted_2$9)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_3$5)),
|
|
379
379
|
vue.createElementVNode("text", _hoisted_4$2, vue.toDisplayString(__props.text || "暂无数据"), 1),
|
|
380
380
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
381
381
|
]);
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
});
|
|
385
|
-
const index$b = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
385
|
+
const index$b = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-94fefc47"]]);
|
|
386
386
|
const _hoisted_1$9 = {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "header-placeholder"
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
};
|
|
493
493
|
}
|
|
494
494
|
});
|
|
495
|
-
const index$a = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
495
|
+
const index$a = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b85e90ac"]]);
|
|
496
496
|
const _hoisted_1$8 = { class: "hlw-loading" };
|
|
497
497
|
const _hoisted_2$7 = {
|
|
498
498
|
key: 0,
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
};
|
|
513
513
|
}
|
|
514
514
|
});
|
|
515
|
-
const index$9 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
515
|
+
const index$9 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-fd9272d5"]]);
|
|
516
516
|
const _hoisted_1$7 = {
|
|
517
517
|
key: 0,
|
|
518
518
|
class: "hlw-menu-title"
|
|
@@ -709,11 +709,14 @@
|
|
|
709
709
|
},
|
|
710
710
|
emits: ["update:show", "confirm", "cancel"],
|
|
711
711
|
setup(__props, { emit: __emit }) {
|
|
712
|
+
const props = __props;
|
|
712
713
|
const emit = __emit;
|
|
713
714
|
function close() {
|
|
714
715
|
emit("update:show", false);
|
|
715
716
|
}
|
|
716
717
|
function onMask() {
|
|
718
|
+
if (!props.closeOnMask)
|
|
719
|
+
return;
|
|
717
720
|
close();
|
|
718
721
|
}
|
|
719
722
|
function onConfirm() {
|
|
@@ -731,7 +734,9 @@
|
|
|
731
734
|
onTap: vue.withModifiers(onMask, ["self"])
|
|
732
735
|
}, [
|
|
733
736
|
vue.createElementVNode("view", {
|
|
734
|
-
class: vue.normalizeClass(["hlw-modal", { "hlw-modal--show": __props.show }])
|
|
737
|
+
class: vue.normalizeClass(["hlw-modal", { "hlw-modal--show": __props.show }]),
|
|
738
|
+
onTap: _cache[0] || (_cache[0] = vue.withModifiers(() => {
|
|
739
|
+
}, ["stop"]))
|
|
735
740
|
}, [
|
|
736
741
|
__props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$6, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
|
|
737
742
|
vue.createElementVNode("view", _hoisted_2$5, [
|
|
@@ -742,23 +747,23 @@
|
|
|
742
747
|
__props.showCancel ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
743
748
|
key: 0,
|
|
744
749
|
class: "hlw-modal-btn hlw-modal-btn--cancel",
|
|
745
|
-
onTap: onCancel
|
|
750
|
+
onTap: vue.withModifiers(onCancel, ["stop"])
|
|
746
751
|
}, vue.toDisplayString(__props.cancelText), 33)) : vue.createCommentVNode("", true),
|
|
747
752
|
vue.createElementVNode("view", {
|
|
748
753
|
class: "hlw-modal-btn hlw-modal-btn--confirm",
|
|
749
|
-
onTap: onConfirm
|
|
754
|
+
onTap: vue.withModifiers(onConfirm, ["stop"])
|
|
750
755
|
}, vue.toDisplayString(__props.confirmText), 33)
|
|
751
756
|
])
|
|
752
757
|
], true)
|
|
753
|
-
],
|
|
758
|
+
], 34)
|
|
754
759
|
], 32)) : vue.createCommentVNode("", true);
|
|
755
760
|
};
|
|
756
761
|
}
|
|
757
762
|
});
|
|
758
|
-
const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
763
|
+
const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-91d9e108"]]);
|
|
759
764
|
const _hoisted_1$5 = {
|
|
760
765
|
key: 1,
|
|
761
|
-
class: "hlw-notice-left-icon"
|
|
766
|
+
class: "hlw-notice-left-icon i-fa6-solid-bullhorn"
|
|
762
767
|
};
|
|
763
768
|
const _hoisted_2$4 = { class: "hlw-notice-text" };
|
|
764
769
|
const _hoisted_3$2 = {
|
|
@@ -794,7 +799,7 @@
|
|
|
794
799
|
__props.leftIcon ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
795
800
|
key: 0,
|
|
796
801
|
class: vue.normalizeClass([__props.leftIcon, "hlw-notice-left-icon"])
|
|
797
|
-
}, null, 2)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5
|
|
802
|
+
}, null, 2)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5)),
|
|
798
803
|
vue.createElementVNode("view", {
|
|
799
804
|
class: "hlw-notice-wrap",
|
|
800
805
|
onTap: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
|
@@ -809,14 +814,14 @@
|
|
|
809
814
|
], 32),
|
|
810
815
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
811
816
|
key: 2,
|
|
812
|
-
class: "hlw-notice-close",
|
|
817
|
+
class: "hlw-notice-close i-fa6-solid-xmark",
|
|
813
818
|
onTap: onClose
|
|
814
|
-
},
|
|
819
|
+
}, null, 32)) : vue.createCommentVNode("", true)
|
|
815
820
|
], 4)) : vue.createCommentVNode("", true);
|
|
816
821
|
};
|
|
817
822
|
}
|
|
818
823
|
});
|
|
819
|
-
const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
824
|
+
const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a758299"]]);
|
|
820
825
|
const _hoisted_1$4 = { class: "hlw-page" };
|
|
821
826
|
const _hoisted_2$3 = { class: "hlw-page-header" };
|
|
822
827
|
const _hoisted_3$1 = { class: "hlw-page-footer" };
|
|
@@ -862,7 +867,7 @@
|
|
|
862
867
|
};
|
|
863
868
|
}
|
|
864
869
|
});
|
|
865
|
-
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
870
|
+
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0cf37585"]]);
|
|
866
871
|
const _hoisted_1$3 = {
|
|
867
872
|
key: 0,
|
|
868
873
|
class: "hlw-popup-header"
|
|
@@ -898,9 +903,9 @@
|
|
|
898
903
|
vue.createElementVNode("text", _hoisted_2$2, vue.toDisplayString(__props.title), 1),
|
|
899
904
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
900
905
|
key: 0,
|
|
901
|
-
class: "hlw-popup-close",
|
|
906
|
+
class: "hlw-popup-close i-fa6-solid-xmark",
|
|
902
907
|
onTap: onClose
|
|
903
|
-
},
|
|
908
|
+
}, null, 32)) : vue.createCommentVNode("", true)
|
|
904
909
|
])) : vue.createCommentVNode("", true),
|
|
905
910
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
906
911
|
], 2)
|
|
@@ -908,7 +913,7 @@
|
|
|
908
913
|
};
|
|
909
914
|
}
|
|
910
915
|
});
|
|
911
|
-
const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
916
|
+
const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2d71ef9b"]]);
|
|
912
917
|
const _hoisted_1$2 = ["value", "placeholder", "disabled"];
|
|
913
918
|
const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
|
|
914
919
|
__name: "index",
|
|
@@ -924,7 +929,8 @@
|
|
|
924
929
|
setup(__props, { emit: __emit }) {
|
|
925
930
|
const emit = __emit;
|
|
926
931
|
function onInput(e) {
|
|
927
|
-
|
|
932
|
+
var _a;
|
|
933
|
+
emit("update:modelValue", ((_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value) ?? "");
|
|
928
934
|
}
|
|
929
935
|
function onClear() {
|
|
930
936
|
emit("update:modelValue", "");
|
|
@@ -938,7 +944,7 @@
|
|
|
938
944
|
vue.createElementVNode("view", {
|
|
939
945
|
class: vue.normalizeClass(["hlw-search-box", { "hlw-search-box--round": __props.shape === "round" }])
|
|
940
946
|
}, [
|
|
941
|
-
_cache[3] || (_cache[3] = vue.createElementVNode("view", { class: "hlw-search-icon" },
|
|
947
|
+
_cache[3] || (_cache[3] = vue.createElementVNode("view", { class: "hlw-search-icon i-fa6-solid-magnifying-glass" }, null, -1)),
|
|
942
948
|
vue.createElementVNode("input", {
|
|
943
949
|
class: "hlw-search-input",
|
|
944
950
|
type: "text",
|
|
@@ -953,15 +959,15 @@
|
|
|
953
959
|
}, null, 40, _hoisted_1$2),
|
|
954
960
|
__props.clearable && __props.modelValue ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
955
961
|
key: 0,
|
|
956
|
-
class: "hlw-search-clear",
|
|
962
|
+
class: "hlw-search-clear i-fa6-solid-xmark",
|
|
957
963
|
onTap: onClear
|
|
958
|
-
},
|
|
964
|
+
}, null, 32)) : vue.createCommentVNode("", true)
|
|
959
965
|
], 2)
|
|
960
966
|
], 4);
|
|
961
967
|
};
|
|
962
968
|
}
|
|
963
969
|
});
|
|
964
|
-
const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
970
|
+
const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4fe1bfab"]]);
|
|
965
971
|
const _hoisted_1$1 = { class: "hlw-skeleton-content" };
|
|
966
972
|
const _hoisted_2$1 = {
|
|
967
973
|
key: 0,
|
|
@@ -1001,7 +1007,7 @@
|
|
|
1001
1007
|
};
|
|
1002
1008
|
}
|
|
1003
1009
|
});
|
|
1004
|
-
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
1010
|
+
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-bc3155a2"]]);
|
|
1005
1011
|
const _hoisted_1 = { class: "hlw-tabs-wrap" };
|
|
1006
1012
|
const _hoisted_2 = ["onTap"];
|
|
1007
1013
|
const _hoisted_3 = { class: "hlw-tab-text" };
|
|
@@ -1056,7 +1062,7 @@
|
|
|
1056
1062
|
};
|
|
1057
1063
|
}
|
|
1058
1064
|
});
|
|
1059
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1065
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5a47c034"]]);
|
|
1060
1066
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
1061
1067
|
__name: "index",
|
|
1062
1068
|
props: {
|
|
@@ -1084,14 +1090,14 @@
|
|
|
1084
1090
|
vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1085
1091
|
__props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
|
|
1086
1092
|
key: 0,
|
|
1087
|
-
class: "hlw-tag-close",
|
|
1093
|
+
class: "hlw-tag-close i-fa6-solid-xmark",
|
|
1088
1094
|
onTap: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.$emit("close"), ["stop"]))
|
|
1089
|
-
},
|
|
1095
|
+
}, null, 32)) : vue.createCommentVNode("", true)
|
|
1090
1096
|
], 38);
|
|
1091
1097
|
};
|
|
1092
1098
|
}
|
|
1093
1099
|
});
|
|
1094
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1100
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd774288"]]);
|
|
1095
1101
|
const FONT_SCALE_KEY = "hlw_font_scale";
|
|
1096
1102
|
const FONT_PRESETS = {
|
|
1097
1103
|
small: {
|
package/dist/index.mjs
CHANGED
|
@@ -77,7 +77,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
77
77
|
}
|
|
78
78
|
return target;
|
|
79
79
|
};
|
|
80
|
-
const index$g = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-
|
|
80
|
+
const index$g = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-19006b2d"]]);
|
|
81
81
|
const _hoisted_1$e = ["disabled", "open-type"];
|
|
82
82
|
const _hoisted_2$c = {
|
|
83
83
|
key: 0,
|
|
@@ -117,7 +117,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
-
const index$f = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
120
|
+
const index$f = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-19a9c118"]]);
|
|
121
121
|
const _hoisted_1$d = {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: "hlw-card-header"
|
|
@@ -324,7 +324,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
|
-
const index$d = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
327
|
+
const index$d = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-996053be"]]);
|
|
328
328
|
const _hoisted_1$b = {
|
|
329
329
|
key: 0,
|
|
330
330
|
class: "hlw-divider-text"
|
|
@@ -352,12 +352,12 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
});
|
|
355
|
-
const index$c = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-
|
|
355
|
+
const index$c = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-beaa0298"]]);
|
|
356
356
|
const _hoisted_1$a = { class: "hlw-empty" };
|
|
357
357
|
const _hoisted_2$9 = ["src"];
|
|
358
358
|
const _hoisted_3$5 = {
|
|
359
359
|
key: 1,
|
|
360
|
-
class: "hlw-empty__icon"
|
|
360
|
+
class: "hlw-empty__icon i-fa6-solid-box-open"
|
|
361
361
|
};
|
|
362
362
|
const _hoisted_4$2 = { class: "hlw-empty__text" };
|
|
363
363
|
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
@@ -374,14 +374,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
374
374
|
class: "hlw-empty__image",
|
|
375
375
|
src: __props.image,
|
|
376
376
|
mode: "aspectFit"
|
|
377
|
-
}, null, 8, _hoisted_2$9)) : (openBlock(), createElementBlock("
|
|
377
|
+
}, null, 8, _hoisted_2$9)) : (openBlock(), createElementBlock("view", _hoisted_3$5)),
|
|
378
378
|
createElementVNode("text", _hoisted_4$2, toDisplayString(__props.text || "暂无数据"), 1),
|
|
379
379
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
380
380
|
]);
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
383
|
});
|
|
384
|
-
const index$b = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
384
|
+
const index$b = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-94fefc47"]]);
|
|
385
385
|
const _hoisted_1$9 = {
|
|
386
386
|
key: 0,
|
|
387
387
|
class: "header-placeholder"
|
|
@@ -491,7 +491,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
|
-
const index$a = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-
|
|
494
|
+
const index$a = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-b85e90ac"]]);
|
|
495
495
|
const _hoisted_1$8 = { class: "hlw-loading" };
|
|
496
496
|
const _hoisted_2$7 = {
|
|
497
497
|
key: 0,
|
|
@@ -511,7 +511,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
});
|
|
514
|
-
const index$9 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-
|
|
514
|
+
const index$9 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-fd9272d5"]]);
|
|
515
515
|
const _hoisted_1$7 = {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "hlw-menu-title"
|
|
@@ -708,11 +708,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
708
708
|
},
|
|
709
709
|
emits: ["update:show", "confirm", "cancel"],
|
|
710
710
|
setup(__props, { emit: __emit }) {
|
|
711
|
+
const props = __props;
|
|
711
712
|
const emit = __emit;
|
|
712
713
|
function close() {
|
|
713
714
|
emit("update:show", false);
|
|
714
715
|
}
|
|
715
716
|
function onMask() {
|
|
717
|
+
if (!props.closeOnMask)
|
|
718
|
+
return;
|
|
716
719
|
close();
|
|
717
720
|
}
|
|
718
721
|
function onConfirm() {
|
|
@@ -730,7 +733,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
730
733
|
onTap: withModifiers(onMask, ["self"])
|
|
731
734
|
}, [
|
|
732
735
|
createElementVNode("view", {
|
|
733
|
-
class: normalizeClass(["hlw-modal", { "hlw-modal--show": __props.show }])
|
|
736
|
+
class: normalizeClass(["hlw-modal", { "hlw-modal--show": __props.show }]),
|
|
737
|
+
onTap: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
738
|
+
}, ["stop"]))
|
|
734
739
|
}, [
|
|
735
740
|
__props.title ? (openBlock(), createElementBlock("view", _hoisted_1$6, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
736
741
|
createElementVNode("view", _hoisted_2$5, [
|
|
@@ -741,23 +746,23 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
741
746
|
__props.showCancel ? (openBlock(), createElementBlock("view", {
|
|
742
747
|
key: 0,
|
|
743
748
|
class: "hlw-modal-btn hlw-modal-btn--cancel",
|
|
744
|
-
onTap: onCancel
|
|
749
|
+
onTap: withModifiers(onCancel, ["stop"])
|
|
745
750
|
}, toDisplayString(__props.cancelText), 33)) : createCommentVNode("", true),
|
|
746
751
|
createElementVNode("view", {
|
|
747
752
|
class: "hlw-modal-btn hlw-modal-btn--confirm",
|
|
748
|
-
onTap: onConfirm
|
|
753
|
+
onTap: withModifiers(onConfirm, ["stop"])
|
|
749
754
|
}, toDisplayString(__props.confirmText), 33)
|
|
750
755
|
])
|
|
751
756
|
], true)
|
|
752
|
-
],
|
|
757
|
+
], 34)
|
|
753
758
|
], 32)) : createCommentVNode("", true);
|
|
754
759
|
};
|
|
755
760
|
}
|
|
756
761
|
});
|
|
757
|
-
const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
762
|
+
const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-91d9e108"]]);
|
|
758
763
|
const _hoisted_1$5 = {
|
|
759
764
|
key: 1,
|
|
760
|
-
class: "hlw-notice-left-icon"
|
|
765
|
+
class: "hlw-notice-left-icon i-fa6-solid-bullhorn"
|
|
761
766
|
};
|
|
762
767
|
const _hoisted_2$4 = { class: "hlw-notice-text" };
|
|
763
768
|
const _hoisted_3$2 = {
|
|
@@ -793,7 +798,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
793
798
|
__props.leftIcon ? (openBlock(), createElementBlock("view", {
|
|
794
799
|
key: 0,
|
|
795
800
|
class: normalizeClass([__props.leftIcon, "hlw-notice-left-icon"])
|
|
796
|
-
}, null, 2)) : (openBlock(), createElementBlock("view", _hoisted_1$5
|
|
801
|
+
}, null, 2)) : (openBlock(), createElementBlock("view", _hoisted_1$5)),
|
|
797
802
|
createElementVNode("view", {
|
|
798
803
|
class: "hlw-notice-wrap",
|
|
799
804
|
onTap: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
|
|
@@ -808,14 +813,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
808
813
|
], 32),
|
|
809
814
|
__props.closable ? (openBlock(), createElementBlock("view", {
|
|
810
815
|
key: 2,
|
|
811
|
-
class: "hlw-notice-close",
|
|
816
|
+
class: "hlw-notice-close i-fa6-solid-xmark",
|
|
812
817
|
onTap: onClose
|
|
813
|
-
},
|
|
818
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
814
819
|
], 4)) : createCommentVNode("", true);
|
|
815
820
|
};
|
|
816
821
|
}
|
|
817
822
|
});
|
|
818
|
-
const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-
|
|
823
|
+
const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7a758299"]]);
|
|
819
824
|
const _hoisted_1$4 = { class: "hlw-page" };
|
|
820
825
|
const _hoisted_2$3 = { class: "hlw-page-header" };
|
|
821
826
|
const _hoisted_3$1 = { class: "hlw-page-footer" };
|
|
@@ -861,7 +866,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
861
866
|
};
|
|
862
867
|
}
|
|
863
868
|
});
|
|
864
|
-
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
869
|
+
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-0cf37585"]]);
|
|
865
870
|
const _hoisted_1$3 = {
|
|
866
871
|
key: 0,
|
|
867
872
|
class: "hlw-popup-header"
|
|
@@ -897,9 +902,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
897
902
|
createElementVNode("text", _hoisted_2$2, toDisplayString(__props.title), 1),
|
|
898
903
|
__props.closable ? (openBlock(), createElementBlock("view", {
|
|
899
904
|
key: 0,
|
|
900
|
-
class: "hlw-popup-close",
|
|
905
|
+
class: "hlw-popup-close i-fa6-solid-xmark",
|
|
901
906
|
onTap: onClose
|
|
902
|
-
},
|
|
907
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
903
908
|
])) : createCommentVNode("", true),
|
|
904
909
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
905
910
|
], 2)
|
|
@@ -907,7 +912,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
907
912
|
};
|
|
908
913
|
}
|
|
909
914
|
});
|
|
910
|
-
const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
915
|
+
const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-2d71ef9b"]]);
|
|
911
916
|
const _hoisted_1$2 = ["value", "placeholder", "disabled"];
|
|
912
917
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
913
918
|
__name: "index",
|
|
@@ -923,7 +928,8 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
923
928
|
setup(__props, { emit: __emit }) {
|
|
924
929
|
const emit = __emit;
|
|
925
930
|
function onInput(e) {
|
|
926
|
-
|
|
931
|
+
var _a;
|
|
932
|
+
emit("update:modelValue", ((_a = e == null ? void 0 : e.detail) == null ? void 0 : _a.value) ?? "");
|
|
927
933
|
}
|
|
928
934
|
function onClear() {
|
|
929
935
|
emit("update:modelValue", "");
|
|
@@ -937,7 +943,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
937
943
|
createElementVNode("view", {
|
|
938
944
|
class: normalizeClass(["hlw-search-box", { "hlw-search-box--round": __props.shape === "round" }])
|
|
939
945
|
}, [
|
|
940
|
-
_cache[3] || (_cache[3] = createElementVNode("view", { class: "hlw-search-icon" },
|
|
946
|
+
_cache[3] || (_cache[3] = createElementVNode("view", { class: "hlw-search-icon i-fa6-solid-magnifying-glass" }, null, -1)),
|
|
941
947
|
createElementVNode("input", {
|
|
942
948
|
class: "hlw-search-input",
|
|
943
949
|
type: "text",
|
|
@@ -952,15 +958,15 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
952
958
|
}, null, 40, _hoisted_1$2),
|
|
953
959
|
__props.clearable && __props.modelValue ? (openBlock(), createElementBlock("view", {
|
|
954
960
|
key: 0,
|
|
955
|
-
class: "hlw-search-clear",
|
|
961
|
+
class: "hlw-search-clear i-fa6-solid-xmark",
|
|
956
962
|
onTap: onClear
|
|
957
|
-
},
|
|
963
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
958
964
|
], 2)
|
|
959
965
|
], 4);
|
|
960
966
|
};
|
|
961
967
|
}
|
|
962
968
|
});
|
|
963
|
-
const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
969
|
+
const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-4fe1bfab"]]);
|
|
964
970
|
const _hoisted_1$1 = { class: "hlw-skeleton-content" };
|
|
965
971
|
const _hoisted_2$1 = {
|
|
966
972
|
key: 0,
|
|
@@ -1000,7 +1006,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
1000
1006
|
};
|
|
1001
1007
|
}
|
|
1002
1008
|
});
|
|
1003
|
-
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
1009
|
+
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-bc3155a2"]]);
|
|
1004
1010
|
const _hoisted_1 = { class: "hlw-tabs-wrap" };
|
|
1005
1011
|
const _hoisted_2 = ["onTap"];
|
|
1006
1012
|
const _hoisted_3 = { class: "hlw-tab-text" };
|
|
@@ -1055,7 +1061,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
1055
1061
|
};
|
|
1056
1062
|
}
|
|
1057
1063
|
});
|
|
1058
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
1064
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5a47c034"]]);
|
|
1059
1065
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1060
1066
|
__name: "index",
|
|
1061
1067
|
props: {
|
|
@@ -1083,14 +1089,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1083
1089
|
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
1084
1090
|
__props.closable ? (openBlock(), createElementBlock("view", {
|
|
1085
1091
|
key: 0,
|
|
1086
|
-
class: "hlw-tag-close",
|
|
1092
|
+
class: "hlw-tag-close i-fa6-solid-xmark",
|
|
1087
1093
|
onTap: _cache[0] || (_cache[0] = withModifiers(($event) => _ctx.$emit("close"), ["stop"]))
|
|
1088
|
-
},
|
|
1094
|
+
}, null, 32)) : createCommentVNode("", true)
|
|
1089
1095
|
], 38);
|
|
1090
1096
|
};
|
|
1091
1097
|
}
|
|
1092
1098
|
});
|
|
1093
|
-
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
1099
|
+
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fd774288"]]);
|
|
1094
1100
|
const FONT_SCALE_KEY = "hlw_font_scale";
|
|
1095
1101
|
const FONT_PRESETS = {
|
|
1096
1102
|
small: {
|