@hlw-uni/mp-vue 1.0.21 → 1.0.23
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/components/hlw-menu/types.d.ts +39 -10
- package/dist/index.d.ts +0 -2
- package/dist/index.js +68 -121
- package/dist/index.mjs +68 -121
- package/dist/style.css +46 -90
- package/package.json +1 -1
- package/src/components/hlw-menu/index.vue +50 -4
- package/src/components/hlw-menu/types.ts +40 -10
- package/src/index.ts +9 -11
- package/dist/components/hlw-menu-list/types.d.ts +0 -8
- package/src/components/hlw-menu-list/index.vue +0 -94
- package/src/components/hlw-menu-list/types.ts +0 -8
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, ref, computed, createElementBlock, normalizeClass, createElementVNode, toDisplayString, renderSlot, createCommentVNode, useSlots, normalizeStyle, unref, Fragment, renderList, withCtx, createVNode } from "vue";
|
|
2
|
-
const _sfc_main$
|
|
2
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
3
3
|
...{ name: "HlwAd" },
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
|
@@ -30,13 +30,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
|
-
const _hoisted_1$
|
|
34
|
-
const _hoisted_2$
|
|
33
|
+
const _hoisted_1$6 = ["src"];
|
|
34
|
+
const _hoisted_2$6 = {
|
|
35
35
|
key: 1,
|
|
36
36
|
class: "hlw-avatar__placeholder"
|
|
37
37
|
};
|
|
38
|
-
const _hoisted_3$
|
|
39
|
-
const _sfc_main$
|
|
38
|
+
const _hoisted_3$4 = { class: "hlw-avatar__initial" };
|
|
39
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
40
40
|
__name: "index",
|
|
41
41
|
props: {
|
|
42
42
|
src: {},
|
|
@@ -61,8 +61,8 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
src: __props.src,
|
|
62
62
|
mode: "aspectFill",
|
|
63
63
|
onError: _cache[0] || (_cache[0] = ($event) => loadError.value = true)
|
|
64
|
-
}, null, 40, _hoisted_1$
|
|
65
|
-
createElementVNode("text", _hoisted_3$
|
|
64
|
+
}, null, 40, _hoisted_1$6)) : (openBlock(), createElementBlock("view", _hoisted_2$6, [
|
|
65
|
+
createElementVNode("text", _hoisted_3$4, toDisplayString(initial.value), 1)
|
|
66
66
|
]))
|
|
67
67
|
], 2);
|
|
68
68
|
};
|
|
@@ -75,22 +75,22 @@ const _export_sfc = (sfc, props) => {
|
|
|
75
75
|
}
|
|
76
76
|
return target;
|
|
77
77
|
};
|
|
78
|
-
const index$
|
|
79
|
-
const _hoisted_1$
|
|
80
|
-
const _hoisted_2$
|
|
78
|
+
const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7e8f98a5"]]);
|
|
79
|
+
const _hoisted_1$5 = { class: "hlw-card" };
|
|
80
|
+
const _hoisted_2$5 = {
|
|
81
81
|
key: 0,
|
|
82
82
|
class: "hlw-card-header"
|
|
83
83
|
};
|
|
84
|
-
const _hoisted_3$
|
|
85
|
-
const _hoisted_4$
|
|
86
|
-
const _hoisted_5$
|
|
87
|
-
const _hoisted_6$
|
|
88
|
-
const _hoisted_7$
|
|
84
|
+
const _hoisted_3$3 = { class: "flex items-center justify-between px-5 py-4 border-0 border-b border-dashed border-slate-200 bg-slate-50/30" };
|
|
85
|
+
const _hoisted_4$2 = { key: 0 };
|
|
86
|
+
const _hoisted_5$1 = { class: "text-sm font-bold text-slate-800 flex items-center gap-2 tracking-wide" };
|
|
87
|
+
const _hoisted_6$1 = { key: 1 };
|
|
88
|
+
const _hoisted_7$1 = {
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "text-[10px] text-slate-400 bg-slate-50 px-2 py-1 rounded border border-slate-100 tracking-wide"
|
|
91
91
|
};
|
|
92
92
|
const _hoisted_8$1 = { class: "hlw-card-body" };
|
|
93
|
-
const _sfc_main$
|
|
93
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
94
94
|
...{
|
|
95
95
|
options: {
|
|
96
96
|
styleIsolation: "shared",
|
|
@@ -106,13 +106,13 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
106
106
|
},
|
|
107
107
|
setup(__props) {
|
|
108
108
|
return (_ctx, _cache) => {
|
|
109
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
110
|
-
_ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
109
|
+
return openBlock(), createElementBlock("view", _hoisted_1$5, [
|
|
110
|
+
_ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (openBlock(), createElementBlock("view", _hoisted_2$5, [
|
|
111
111
|
renderSlot(_ctx.$slots, "header", {}, () => [
|
|
112
|
-
createElementVNode("view", _hoisted_3$
|
|
113
|
-
_ctx.$slots["header-left"] || __props.title || __props.icon ? (openBlock(), createElementBlock("view", _hoisted_4$
|
|
112
|
+
createElementVNode("view", _hoisted_3$3, [
|
|
113
|
+
_ctx.$slots["header-left"] || __props.title || __props.icon ? (openBlock(), createElementBlock("view", _hoisted_4$2, [
|
|
114
114
|
renderSlot(_ctx.$slots, "header-left", {}, () => [
|
|
115
|
-
createElementVNode("view", _hoisted_5$
|
|
115
|
+
createElementVNode("view", _hoisted_5$1, [
|
|
116
116
|
__props.icon ? (openBlock(), createElementBlock("text", {
|
|
117
117
|
key: 0,
|
|
118
118
|
class: normalizeClass([__props.icon, __props.iconColor])
|
|
@@ -121,9 +121,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
])
|
|
122
122
|
], true)
|
|
123
123
|
])) : createCommentVNode("", true),
|
|
124
|
-
_ctx.$slots["header-right"] || __props.extra ? (openBlock(), createElementBlock("view", _hoisted_6$
|
|
124
|
+
_ctx.$slots["header-right"] || __props.extra ? (openBlock(), createElementBlock("view", _hoisted_6$1, [
|
|
125
125
|
renderSlot(_ctx.$slots, "header-right", {}, () => [
|
|
126
|
-
__props.extra ? (openBlock(), createElementBlock("text", _hoisted_7$
|
|
126
|
+
__props.extra ? (openBlock(), createElementBlock("text", _hoisted_7$1, toDisplayString(__props.extra), 1)) : createCommentVNode("", true)
|
|
127
127
|
], true)
|
|
128
128
|
])) : createCommentVNode("", true)
|
|
129
129
|
])
|
|
@@ -136,15 +136,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
|
-
const index$
|
|
140
|
-
const _hoisted_1$
|
|
141
|
-
const _hoisted_2$
|
|
142
|
-
const _hoisted_3$
|
|
139
|
+
const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-787fc3a7"]]);
|
|
140
|
+
const _hoisted_1$4 = { class: "hlw-empty" };
|
|
141
|
+
const _hoisted_2$4 = ["src"];
|
|
142
|
+
const _hoisted_3$2 = {
|
|
143
143
|
key: 1,
|
|
144
144
|
class: "hlw-empty__icon"
|
|
145
145
|
};
|
|
146
|
-
const _hoisted_4$
|
|
147
|
-
const _sfc_main$
|
|
146
|
+
const _hoisted_4$1 = { class: "hlw-empty__text" };
|
|
147
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
148
148
|
__name: "index",
|
|
149
149
|
props: {
|
|
150
150
|
text: {},
|
|
@@ -152,29 +152,29 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
},
|
|
153
153
|
setup(__props) {
|
|
154
154
|
return (_ctx, _cache) => {
|
|
155
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
155
|
+
return openBlock(), createElementBlock("view", _hoisted_1$4, [
|
|
156
156
|
__props.image ? (openBlock(), createElementBlock("image", {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "hlw-empty__image",
|
|
159
159
|
src: __props.image,
|
|
160
160
|
mode: "aspectFit"
|
|
161
|
-
}, null, 8, _hoisted_2$
|
|
162
|
-
createElementVNode("text", _hoisted_4$
|
|
161
|
+
}, null, 8, _hoisted_2$4)) : (openBlock(), createElementBlock("text", _hoisted_3$2, "📦")),
|
|
162
|
+
createElementVNode("text", _hoisted_4$1, toDisplayString(__props.text || "暂无数据"), 1),
|
|
163
163
|
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
164
164
|
]);
|
|
165
165
|
};
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
|
-
const index$
|
|
169
|
-
const _hoisted_1$
|
|
168
|
+
const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-72364322"]]);
|
|
169
|
+
const _hoisted_1$3 = {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "header-placeholder"
|
|
172
172
|
};
|
|
173
|
-
const _hoisted_2$
|
|
173
|
+
const _hoisted_2$3 = {
|
|
174
174
|
key: 0,
|
|
175
175
|
class: "header-title header-title--center"
|
|
176
176
|
};
|
|
177
|
-
const _sfc_main$
|
|
177
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
178
178
|
__name: "index",
|
|
179
179
|
props: {
|
|
180
180
|
extraHeight: { default: 0 },
|
|
@@ -261,9 +261,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
261
261
|
}, toDisplayString(props.title), 5)
|
|
262
262
|
], true)
|
|
263
263
|
], 2),
|
|
264
|
-
props.titleAlign === "center" ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
264
|
+
props.titleAlign === "center" ? (openBlock(), createElementBlock("view", _hoisted_1$3)) : createCommentVNode("", true)
|
|
265
265
|
], 64)) : renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
|
|
266
|
-
props.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
266
|
+
props.title ? (openBlock(), createElementBlock("view", _hoisted_2$3, [
|
|
267
267
|
createElementVNode("text", {
|
|
268
268
|
class: "header-title-text",
|
|
269
269
|
style: normalizeStyle(titleStyle.value)
|
|
@@ -275,43 +275,43 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
|
-
const index$
|
|
279
|
-
const _hoisted_1$
|
|
280
|
-
const _hoisted_2$
|
|
278
|
+
const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9a6c839c"]]);
|
|
279
|
+
const _hoisted_1$2 = { class: "hlw-loading" };
|
|
280
|
+
const _hoisted_2$2 = {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "hlw-loading__text"
|
|
283
283
|
};
|
|
284
|
-
const _sfc_main$
|
|
284
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
285
285
|
__name: "index",
|
|
286
286
|
props: {
|
|
287
287
|
text: {}
|
|
288
288
|
},
|
|
289
289
|
setup(__props) {
|
|
290
290
|
return (_ctx, _cache) => {
|
|
291
|
-
return openBlock(), createElementBlock("view", _hoisted_1$
|
|
291
|
+
return openBlock(), createElementBlock("view", _hoisted_1$2, [
|
|
292
292
|
_cache[0] || (_cache[0] = createElementVNode("view", { class: "hlw-loading__spinner" }, null, -1)),
|
|
293
|
-
__props.text ? (openBlock(), createElementBlock("text", _hoisted_2$
|
|
293
|
+
__props.text ? (openBlock(), createElementBlock("text", _hoisted_2$2, toDisplayString(__props.text), 1)) : createCommentVNode("", true)
|
|
294
294
|
]);
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
const index$
|
|
299
|
-
const _hoisted_1$
|
|
298
|
+
const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14242381"]]);
|
|
299
|
+
const _hoisted_1$1 = {
|
|
300
300
|
key: 0,
|
|
301
301
|
class: "hlw-menu-title"
|
|
302
302
|
};
|
|
303
|
-
const _hoisted_2$
|
|
303
|
+
const _hoisted_2$1 = {
|
|
304
304
|
key: 1,
|
|
305
305
|
class: "hlw-menu-title-divider"
|
|
306
306
|
};
|
|
307
|
-
const _hoisted_3$
|
|
308
|
-
const _hoisted_4
|
|
309
|
-
const _hoisted_5
|
|
310
|
-
const _hoisted_6
|
|
307
|
+
const _hoisted_3$1 = { class: "hlw-menu-left" };
|
|
308
|
+
const _hoisted_4 = { class: "hlw-menu-label" };
|
|
309
|
+
const _hoisted_5 = { class: "hlw-menu-right" };
|
|
310
|
+
const _hoisted_6 = {
|
|
311
311
|
key: 0,
|
|
312
312
|
class: "hlw-menu-value"
|
|
313
313
|
};
|
|
314
|
-
const _hoisted_7
|
|
314
|
+
const _hoisted_7 = ["onClick"];
|
|
315
315
|
const _hoisted_8 = { class: "hlw-menu-left" };
|
|
316
316
|
const _hoisted_9 = { class: "hlw-menu-label" };
|
|
317
317
|
const _hoisted_10 = { class: "hlw-menu-right" };
|
|
@@ -332,7 +332,7 @@ const _hoisted_15 = { class: "hlw-menu-grid-label" };
|
|
|
332
332
|
const _hoisted_16 = ["onClick"];
|
|
333
333
|
const _hoisted_17 = { class: "hlw-menu-grid-icon-wrap" };
|
|
334
334
|
const _hoisted_18 = { class: "hlw-menu-grid-label" };
|
|
335
|
-
const _sfc_main$
|
|
335
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
336
336
|
__name: "index",
|
|
337
337
|
props: {
|
|
338
338
|
items: {},
|
|
@@ -354,10 +354,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
354
354
|
return openBlock(), createElementBlock("view", {
|
|
355
355
|
class: normalizeClass(["hlw-menu", { "hlw-menu--no-border": !props.border }])
|
|
356
356
|
}, [
|
|
357
|
-
props.title ? (openBlock(), createElementBlock("view", _hoisted_1$
|
|
357
|
+
props.title ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
358
358
|
createElementVNode("text", null, toDisplayString(props.title), 1)
|
|
359
359
|
])) : createCommentVNode("", true),
|
|
360
|
-
props.title ? (openBlock(), createElementBlock("view", _hoisted_2$
|
|
360
|
+
props.title ? (openBlock(), createElementBlock("view", _hoisted_2$1)) : createCommentVNode("", true),
|
|
361
361
|
props.mode === "list" ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(visibleItems.value, (item, index2) => {
|
|
362
362
|
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
363
363
|
item.url ? (openBlock(), createBlock(_component_navigator, {
|
|
@@ -367,7 +367,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
367
367
|
"hover-class": "hlw-menu-item--active"
|
|
368
368
|
}, {
|
|
369
369
|
default: withCtx(() => [
|
|
370
|
-
createElementVNode("view", _hoisted_3$
|
|
370
|
+
createElementVNode("view", _hoisted_3$1, [
|
|
371
371
|
createElementVNode("view", {
|
|
372
372
|
class: normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
|
|
373
373
|
}, [
|
|
@@ -375,10 +375,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
375
375
|
class: normalizeClass(item.icon)
|
|
376
376
|
}, null, 2)
|
|
377
377
|
], 2),
|
|
378
|
-
createElementVNode("text", _hoisted_4
|
|
378
|
+
createElementVNode("text", _hoisted_4, toDisplayString(item.label), 1)
|
|
379
379
|
]),
|
|
380
|
-
createElementVNode("view", _hoisted_5
|
|
381
|
-
item.value ? (openBlock(), createElementBlock("text", _hoisted_6
|
|
380
|
+
createElementVNode("view", _hoisted_5, [
|
|
381
|
+
item.value ? (openBlock(), createElementBlock("text", _hoisted_6, toDisplayString(item.value), 1)) : createCommentVNode("", true),
|
|
382
382
|
item.tag ? (openBlock(), createElementBlock("text", {
|
|
383
383
|
key: 1,
|
|
384
384
|
class: normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
|
|
@@ -412,7 +412,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
412
412
|
}, toDisplayString(item.tag), 3)) : createCommentVNode("", true),
|
|
413
413
|
_cache[1] || (_cache[1] = createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
|
|
414
414
|
])
|
|
415
|
-
], 8, _hoisted_7
|
|
415
|
+
], 8, _hoisted_7)),
|
|
416
416
|
index2 < visibleItems.value.length - 1 ? (openBlock(), createElementBlock("view", _hoisted_13)) : createCommentVNode("", true)
|
|
417
417
|
], 64);
|
|
418
418
|
}), 128)) : (openBlock(), createElementBlock("view", {
|
|
@@ -473,59 +473,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
|
-
const index$
|
|
477
|
-
const _hoisted_1$1 = { class: "hlw-menu-list" };
|
|
478
|
-
const _hoisted_2$1 = ["onTap"];
|
|
479
|
-
const _hoisted_3$1 = { class: "hlw-menu-list__left" };
|
|
480
|
-
const _hoisted_4 = {
|
|
481
|
-
key: 0,
|
|
482
|
-
class: "hlw-menu-list__icon"
|
|
483
|
-
};
|
|
484
|
-
const _hoisted_5 = { class: "hlw-menu-list__label" };
|
|
485
|
-
const _hoisted_6 = { class: "hlw-menu-list__right" };
|
|
486
|
-
const _hoisted_7 = {
|
|
487
|
-
key: 0,
|
|
488
|
-
class: "hlw-menu-list__value"
|
|
489
|
-
};
|
|
490
|
-
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
491
|
-
__name: "index",
|
|
492
|
-
props: {
|
|
493
|
-
items: {}
|
|
494
|
-
},
|
|
495
|
-
emits: ["click"],
|
|
496
|
-
setup(__props, { emit: __emit }) {
|
|
497
|
-
const emit = __emit;
|
|
498
|
-
function onTap(item) {
|
|
499
|
-
if (item.url) {
|
|
500
|
-
uni.navigateTo({ url: item.url });
|
|
501
|
-
} else if (item.action) {
|
|
502
|
-
item.action();
|
|
503
|
-
}
|
|
504
|
-
emit("click", item);
|
|
505
|
-
}
|
|
506
|
-
return (_ctx, _cache) => {
|
|
507
|
-
return openBlock(), createElementBlock("view", _hoisted_1$1, [
|
|
508
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
509
|
-
return openBlock(), createElementBlock("view", {
|
|
510
|
-
key: item.key,
|
|
511
|
-
class: "hlw-menu-list__item",
|
|
512
|
-
onTap: ($event) => onTap(item)
|
|
513
|
-
}, [
|
|
514
|
-
createElementVNode("view", _hoisted_3$1, [
|
|
515
|
-
item.icon ? (openBlock(), createElementBlock("text", _hoisted_4, toDisplayString(item.icon), 1)) : createCommentVNode("", true),
|
|
516
|
-
createElementVNode("text", _hoisted_5, toDisplayString(item.label), 1)
|
|
517
|
-
]),
|
|
518
|
-
createElementVNode("view", _hoisted_6, [
|
|
519
|
-
item.value ? (openBlock(), createElementBlock("text", _hoisted_7, toDisplayString(item.value), 1)) : createCommentVNode("", true),
|
|
520
|
-
_cache[0] || (_cache[0] = createElementVNode("text", { class: "hlw-menu-list__arrow" }, "›", -1))
|
|
521
|
-
])
|
|
522
|
-
], 40, _hoisted_2$1);
|
|
523
|
-
}), 128))
|
|
524
|
-
]);
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e465b0b4"]]);
|
|
476
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b3bfda9a"]]);
|
|
529
477
|
const _hoisted_1 = { class: "hlw-page" };
|
|
530
478
|
const _hoisted_2 = { class: "hlw-page-header" };
|
|
531
479
|
const _hoisted_3 = { class: "hlw-page-footer" };
|
|
@@ -572,13 +520,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
572
520
|
});
|
|
573
521
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-155bc02a"]]);
|
|
574
522
|
export {
|
|
575
|
-
_sfc_main$
|
|
576
|
-
index$
|
|
577
|
-
index$
|
|
578
|
-
index$
|
|
579
|
-
index$
|
|
580
|
-
index$
|
|
581
|
-
index$
|
|
582
|
-
index$1 as HlwMenuList,
|
|
523
|
+
_sfc_main$7 as HlwAd,
|
|
524
|
+
index$6 as HlwAvatar,
|
|
525
|
+
index$5 as HlwCard,
|
|
526
|
+
index$4 as HlwEmpty,
|
|
527
|
+
index$3 as HlwHeader,
|
|
528
|
+
index$2 as HlwLoading,
|
|
529
|
+
index$1 as HlwMenu,
|
|
583
530
|
index as HlwPage
|
|
584
531
|
};
|
package/dist/style.css
CHANGED
|
@@ -145,78 +145,78 @@ to { transform: rotate(360deg);
|
|
|
145
145
|
color: #999;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.hlw-menu[data-v-
|
|
148
|
+
.hlw-menu[data-v-b3bfda9a] {
|
|
149
149
|
background: #fff;
|
|
150
150
|
border-radius: var(--radius-lg, 24rpx);
|
|
151
151
|
border: 1rpx solid var(--border-color, #e2e8f0);
|
|
152
152
|
overflow: hidden;
|
|
153
153
|
width: 100%;
|
|
154
154
|
}
|
|
155
|
-
.hlw-menu--no-border[data-v-
|
|
155
|
+
.hlw-menu--no-border[data-v-b3bfda9a] {
|
|
156
156
|
border: none;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/* 标题 */
|
|
160
|
-
.hlw-menu-title[data-v-
|
|
160
|
+
.hlw-menu-title[data-v-b3bfda9a] {
|
|
161
161
|
padding: 24rpx 32rpx;
|
|
162
162
|
}
|
|
163
|
-
.hlw-menu-title text[data-v-
|
|
163
|
+
.hlw-menu-title text[data-v-b3bfda9a] {
|
|
164
164
|
font-size: 24rpx;
|
|
165
165
|
font-weight: 600;
|
|
166
166
|
color: #94a3b8;
|
|
167
167
|
letter-spacing: 1rpx;
|
|
168
168
|
}
|
|
169
|
-
.hlw-menu-title-divider[data-v-
|
|
169
|
+
.hlw-menu-title-divider[data-v-b3bfda9a] {
|
|
170
170
|
height: 0;
|
|
171
171
|
border-bottom: 1rpx dashed var(--border-color, #e2e8f0);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
/* ========== 列表模式 ========== */
|
|
175
|
-
.hlw-menu-item[data-v-
|
|
175
|
+
.hlw-menu-item[data-v-b3bfda9a] {
|
|
176
176
|
display: flex;
|
|
177
177
|
align-items: center;
|
|
178
178
|
justify-content: space-between;
|
|
179
179
|
padding: 24rpx 32rpx;
|
|
180
180
|
}
|
|
181
|
-
.hlw-menu-item--active[data-v-
|
|
181
|
+
.hlw-menu-item--active[data-v-b3bfda9a] {
|
|
182
182
|
background: #f8fafc;
|
|
183
183
|
}
|
|
184
|
-
.hlw-menu-divider[data-v-
|
|
184
|
+
.hlw-menu-divider[data-v-b3bfda9a] {
|
|
185
185
|
margin: 0 32rpx;
|
|
186
186
|
height: 0;
|
|
187
187
|
border-bottom: 1rpx dashed var(--border-color, #e2e8f0);
|
|
188
188
|
}
|
|
189
|
-
.hlw-menu-left[data-v-
|
|
189
|
+
.hlw-menu-left[data-v-b3bfda9a] {
|
|
190
190
|
display: flex;
|
|
191
191
|
align-items: center;
|
|
192
192
|
gap: 24rpx;
|
|
193
193
|
}
|
|
194
|
-
.hlw-menu-right[data-v-
|
|
194
|
+
.hlw-menu-right[data-v-b3bfda9a] {
|
|
195
195
|
display: flex;
|
|
196
196
|
align-items: center;
|
|
197
197
|
gap: 16rpx;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
/* ========== 宫格模式 ========== */
|
|
201
|
-
.hlw-menu-grid[data-v-
|
|
201
|
+
.hlw-menu-grid[data-v-b3bfda9a] {
|
|
202
202
|
display: grid;
|
|
203
203
|
padding: 6rpx 0 24rpx;
|
|
204
204
|
}
|
|
205
|
-
.hlw-menu-grid-item[data-v-
|
|
205
|
+
.hlw-menu-grid-item[data-v-b3bfda9a] {
|
|
206
206
|
display: flex;
|
|
207
207
|
flex-direction: column;
|
|
208
208
|
align-items: center;
|
|
209
209
|
gap: 10rpx;
|
|
210
210
|
padding: 12rpx 8rpx;
|
|
211
211
|
}
|
|
212
|
-
.hlw-menu-grid-item--active[data-v-
|
|
212
|
+
.hlw-menu-grid-item--active[data-v-b3bfda9a] {
|
|
213
213
|
background: #f8fafc;
|
|
214
214
|
}
|
|
215
|
-
.hlw-menu-grid-icon-wrap[data-v-
|
|
215
|
+
.hlw-menu-grid-icon-wrap[data-v-b3bfda9a] {
|
|
216
216
|
position: relative;
|
|
217
217
|
padding-top: 20rpx; /* 预留徽标空间,保证所有格子图标水平对齐 */
|
|
218
218
|
}
|
|
219
|
-
.hlw-menu-badge[data-v-
|
|
219
|
+
.hlw-menu-badge[data-v-b3bfda9a] {
|
|
220
220
|
position: absolute;
|
|
221
221
|
top: 0;
|
|
222
222
|
right: -8rpx;
|
|
@@ -229,14 +229,14 @@ to { transform: rotate(360deg);
|
|
|
229
229
|
line-height: 28rpx;
|
|
230
230
|
height: 28rpx;
|
|
231
231
|
}
|
|
232
|
-
.hlw-menu-grid-label[data-v-
|
|
232
|
+
.hlw-menu-grid-label[data-v-b3bfda9a] {
|
|
233
233
|
font-size: 24rpx;
|
|
234
234
|
color: #334155;
|
|
235
235
|
text-align: center;
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/* ========== 图标 ========== */
|
|
239
|
-
.hlw-menu-icon[data-v-
|
|
239
|
+
.hlw-menu-icon[data-v-b3bfda9a] {
|
|
240
240
|
width: 64rpx;
|
|
241
241
|
height: 64rpx;
|
|
242
242
|
border-radius: var(--radius-md, 16rpx);
|
|
@@ -245,90 +245,90 @@ to { transform: rotate(360deg);
|
|
|
245
245
|
justify-content: center;
|
|
246
246
|
flex-shrink: 0;
|
|
247
247
|
}
|
|
248
|
-
.hlw-menu-icon text[data-v-
|
|
248
|
+
.hlw-menu-icon text[data-v-b3bfda9a] {
|
|
249
249
|
font-size: 20rpx;
|
|
250
250
|
}
|
|
251
|
-
.hlw-menu-icon--grid[data-v-
|
|
251
|
+
.hlw-menu-icon--grid[data-v-b3bfda9a] {
|
|
252
252
|
width: 88rpx;
|
|
253
253
|
height: 88rpx;
|
|
254
254
|
border-radius: var(--radius-lg, 24rpx);
|
|
255
255
|
}
|
|
256
|
-
.hlw-menu-icon--grid text[data-v-
|
|
256
|
+
.hlw-menu-icon--grid text[data-v-b3bfda9a] {
|
|
257
257
|
font-size: 32rpx;
|
|
258
258
|
}
|
|
259
|
-
.hlw-menu-icon--orange[data-v-
|
|
259
|
+
.hlw-menu-icon--orange[data-v-b3bfda9a] {
|
|
260
260
|
background: #fff7ed;
|
|
261
261
|
color: #f97316;
|
|
262
262
|
}
|
|
263
|
-
.hlw-menu-icon--purple[data-v-
|
|
263
|
+
.hlw-menu-icon--purple[data-v-b3bfda9a] {
|
|
264
264
|
background: #faf5ff;
|
|
265
265
|
color: #a855f7;
|
|
266
266
|
}
|
|
267
|
-
.hlw-menu-icon--wechat[data-v-
|
|
267
|
+
.hlw-menu-icon--wechat[data-v-b3bfda9a] {
|
|
268
268
|
background: #f0fdf4;
|
|
269
269
|
color: #07c160;
|
|
270
270
|
}
|
|
271
|
-
.hlw-menu-icon--cyan[data-v-
|
|
271
|
+
.hlw-menu-icon--cyan[data-v-b3bfda9a] {
|
|
272
272
|
background: #ecfeff;
|
|
273
273
|
color: #06b6d4;
|
|
274
274
|
}
|
|
275
|
-
.hlw-menu-icon--emerald[data-v-
|
|
275
|
+
.hlw-menu-icon--emerald[data-v-b3bfda9a] {
|
|
276
276
|
background: #ecfdf5;
|
|
277
277
|
color: #10b981;
|
|
278
278
|
}
|
|
279
|
-
.hlw-menu-icon--slate[data-v-
|
|
279
|
+
.hlw-menu-icon--slate[data-v-b3bfda9a] {
|
|
280
280
|
background: #f1f5f9;
|
|
281
281
|
color: #64748b;
|
|
282
282
|
}
|
|
283
|
-
.hlw-menu-icon--rose[data-v-
|
|
283
|
+
.hlw-menu-icon--rose[data-v-b3bfda9a] {
|
|
284
284
|
background: #fff1f2;
|
|
285
285
|
color: #f43f5e;
|
|
286
286
|
}
|
|
287
|
-
.hlw-menu-icon--blue[data-v-
|
|
287
|
+
.hlw-menu-icon--blue[data-v-b3bfda9a] {
|
|
288
288
|
background: #eff6ff;
|
|
289
289
|
color: #3b82f6;
|
|
290
290
|
}
|
|
291
|
-
.hlw-menu-icon--red[data-v-
|
|
291
|
+
.hlw-menu-icon--red[data-v-b3bfda9a] {
|
|
292
292
|
background: #fef2f2;
|
|
293
293
|
color: #ef4444;
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
/* ========== 标签 / 角标 ========== */
|
|
297
|
-
.hlw-menu-label[data-v-
|
|
297
|
+
.hlw-menu-label[data-v-b3bfda9a] {
|
|
298
298
|
font-size: 28rpx;
|
|
299
299
|
font-weight: 500;
|
|
300
300
|
color: #334155;
|
|
301
301
|
}
|
|
302
|
-
.hlw-menu-value[data-v-
|
|
302
|
+
.hlw-menu-value[data-v-b3bfda9a] {
|
|
303
303
|
font-size: 26rpx;
|
|
304
304
|
color: #94a3b8;
|
|
305
305
|
}
|
|
306
|
-
.hlw-menu-tag[data-v-
|
|
306
|
+
.hlw-menu-tag[data-v-b3bfda9a] {
|
|
307
307
|
font-size: 20rpx;
|
|
308
308
|
color: #fff;
|
|
309
309
|
padding: 2rpx 12rpx;
|
|
310
310
|
border-radius: 9999rpx;
|
|
311
311
|
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
|
|
312
312
|
}
|
|
313
|
-
.hlw-menu-tag--orange[data-v-
|
|
313
|
+
.hlw-menu-tag--orange[data-v-b3bfda9a] {
|
|
314
314
|
background: #fb923c;
|
|
315
315
|
}
|
|
316
|
-
.hlw-menu-tag--red[data-v-
|
|
316
|
+
.hlw-menu-tag--red[data-v-b3bfda9a] {
|
|
317
317
|
background: #ef4444;
|
|
318
318
|
}
|
|
319
|
-
.hlw-menu-tag--wechat[data-v-
|
|
319
|
+
.hlw-menu-tag--wechat[data-v-b3bfda9a] {
|
|
320
320
|
background: #07c160;
|
|
321
321
|
}
|
|
322
|
-
.hlw-menu-tag--rose[data-v-
|
|
322
|
+
.hlw-menu-tag--rose[data-v-b3bfda9a] {
|
|
323
323
|
background: #f43f5e;
|
|
324
324
|
}
|
|
325
|
-
.hlw-menu-tag--blue[data-v-
|
|
325
|
+
.hlw-menu-tag--blue[data-v-b3bfda9a] {
|
|
326
326
|
background: #3b82f6;
|
|
327
327
|
}
|
|
328
|
-
.hlw-menu-tag-pulse[data-v-
|
|
329
|
-
animation: tag-pulse-
|
|
328
|
+
.hlw-menu-tag-pulse[data-v-b3bfda9a] {
|
|
329
|
+
animation: tag-pulse-b3bfda9a 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
330
330
|
}
|
|
331
|
-
@keyframes tag-pulse-
|
|
331
|
+
@keyframes tag-pulse-b3bfda9a {
|
|
332
332
|
0%, 100% {
|
|
333
333
|
opacity: 1;
|
|
334
334
|
}
|
|
@@ -336,69 +336,25 @@ to { transform: rotate(360deg);
|
|
|
336
336
|
opacity: 0.5;
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
.hlw-menu-arrow[data-v-
|
|
339
|
+
.hlw-menu-arrow[data-v-b3bfda9a] {
|
|
340
340
|
color: #d1d5db;
|
|
341
341
|
font-size: 20rpx;
|
|
342
342
|
}
|
|
343
|
-
.hlw-menu-spin[data-v-
|
|
344
|
-
animation: icon-spin-
|
|
343
|
+
.hlw-menu-spin[data-v-b3bfda9a] {
|
|
344
|
+
animation: icon-spin-b3bfda9a 1s linear infinite;
|
|
345
345
|
}
|
|
346
|
-
.hlw-menu-muted[data-v-
|
|
346
|
+
.hlw-menu-muted[data-v-b3bfda9a] {
|
|
347
347
|
color: #94a3b8;
|
|
348
348
|
font-size: 20rpx;
|
|
349
349
|
}
|
|
350
|
-
@keyframes icon-spin-
|
|
350
|
+
@keyframes icon-spin-b3bfda9a {
|
|
351
351
|
from {
|
|
352
352
|
transform: rotate(0deg);
|
|
353
353
|
}
|
|
354
354
|
to {
|
|
355
355
|
transform: rotate(360deg);
|
|
356
356
|
}
|
|
357
|
-
}
|
|
358
|
-
.hlw-menu-list[data-v-e465b0b4] {
|
|
359
|
-
background: #fff;
|
|
360
|
-
border-radius: 16rpx;
|
|
361
|
-
overflow: hidden;
|
|
362
|
-
}
|
|
363
|
-
.hlw-menu-list__item[data-v-e465b0b4] {
|
|
364
|
-
display: flex;
|
|
365
|
-
align-items: center;
|
|
366
|
-
justify-content: space-between;
|
|
367
|
-
padding: 28rpx 32rpx;
|
|
368
|
-
border-bottom: 1rpx solid #f5f5f5;
|
|
369
|
-
}
|
|
370
|
-
.hlw-menu-list__item[data-v-e465b0b4]:last-child {
|
|
371
|
-
border-bottom: none;
|
|
372
|
-
}
|
|
373
|
-
.hlw-menu-list__left[data-v-e465b0b4] {
|
|
374
|
-
display: flex;
|
|
375
|
-
align-items: center;
|
|
376
|
-
gap: 16rpx;
|
|
377
|
-
}
|
|
378
|
-
.hlw-menu-list__icon[data-v-e465b0b4] {
|
|
379
|
-
font-size: 36rpx;
|
|
380
|
-
width: 44rpx;
|
|
381
|
-
text-align: center;
|
|
382
|
-
}
|
|
383
|
-
.hlw-menu-list__label[data-v-e465b0b4] {
|
|
384
|
-
font-size: 30rpx;
|
|
385
|
-
color: #333;
|
|
386
|
-
}
|
|
387
|
-
.hlw-menu-list__right[data-v-e465b0b4] {
|
|
388
|
-
display: flex;
|
|
389
|
-
align-items: center;
|
|
390
|
-
gap: 8rpx;
|
|
391
|
-
}
|
|
392
|
-
.hlw-menu-list__value[data-v-e465b0b4] {
|
|
393
|
-
font-size: 28rpx;
|
|
394
|
-
color: #999;
|
|
395
|
-
}
|
|
396
|
-
.hlw-menu-list__arrow[data-v-e465b0b4] {
|
|
397
|
-
font-size: 36rpx;
|
|
398
|
-
color: #ccc;
|
|
399
|
-
line-height: 1;
|
|
400
|
-
}
|
|
401
|
-
.hlw-page[data-v-155bc02a] {
|
|
357
|
+
}.hlw-page[data-v-155bc02a] {
|
|
402
358
|
width: 100%;
|
|
403
359
|
height: 100vh;
|
|
404
360
|
display: flex;
|