@hlw-uni/mp-vue 1.0.20 → 1.0.22

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.
@@ -9,6 +9,8 @@ export interface HlwMenuItem {
9
9
  label: string;
10
10
  /** 跳转路径,有值则用 navigator 包裹 */
11
11
  url?: string;
12
+ /** 右侧纯文字说明(列表模式),如版本号、状态文字 */
13
+ value?: string;
12
14
  /** 右侧标签文字(列表模式)/ 角标文字(宫格模式) */
13
15
  tag?: string;
14
16
  /** 标签主题色 */
package/dist/index.d.ts CHANGED
@@ -9,6 +9,4 @@ export { default as HlwHeader } from './components/hlw-header/index.vue';
9
9
  export { default as HlwLoading } from './components/hlw-loading/index.vue';
10
10
  export { default as HlwMenu } from './components/hlw-menu/index.vue';
11
11
  export type { HlwMenuItem } from './components/hlw-menu/types';
12
- export { default as HlwMenuList } from './components/hlw-menu-list/index.vue';
13
12
  export { default as HlwPage } from './components/hlw-page/index.vue';
14
- export type { MenuItem } from './components/hlw-menu-list/types';
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue")) : typeof define === "function" && define.amd ? define(["exports", "vue"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.HlwUniVue = {}, global.vue));
3
3
  })(this, function(exports2, vue) {
4
4
  "use strict";
5
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
5
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
6
6
  ...{ name: "HlwAd" },
7
7
  __name: "index",
8
8
  props: {
@@ -33,13 +33,13 @@
33
33
  };
34
34
  }
35
35
  });
36
- const _hoisted_1$7 = ["src"];
37
- const _hoisted_2$7 = {
36
+ const _hoisted_1$6 = ["src"];
37
+ const _hoisted_2$6 = {
38
38
  key: 1,
39
39
  class: "hlw-avatar__placeholder"
40
40
  };
41
- const _hoisted_3$5 = { class: "hlw-avatar__initial" };
42
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
41
+ const _hoisted_3$4 = { class: "hlw-avatar__initial" };
42
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
43
43
  __name: "index",
44
44
  props: {
45
45
  src: {},
@@ -64,8 +64,8 @@
64
64
  src: __props.src,
65
65
  mode: "aspectFill",
66
66
  onError: _cache[0] || (_cache[0] = ($event) => loadError.value = true)
67
- }, null, 40, _hoisted_1$7)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$7, [
68
- vue.createElementVNode("text", _hoisted_3$5, vue.toDisplayString(initial.value), 1)
67
+ }, null, 40, _hoisted_1$6)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$6, [
68
+ vue.createElementVNode("text", _hoisted_3$4, vue.toDisplayString(initial.value), 1)
69
69
  ]))
70
70
  ], 2);
71
71
  };
@@ -78,22 +78,22 @@
78
78
  }
79
79
  return target;
80
80
  };
81
- const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-7e8f98a5"]]);
82
- const _hoisted_1$6 = { class: "hlw-card" };
83
- const _hoisted_2$6 = {
81
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-7e8f98a5"]]);
82
+ const _hoisted_1$5 = { class: "hlw-card" };
83
+ const _hoisted_2$5 = {
84
84
  key: 0,
85
85
  class: "hlw-card-header"
86
86
  };
87
- const _hoisted_3$4 = { class: "flex items-center justify-between px-5 py-4 border-0 border-b border-dashed border-slate-200 bg-slate-50/30" };
88
- const _hoisted_4$3 = { key: 0 };
89
- const _hoisted_5$2 = { class: "text-sm font-bold text-slate-800 flex items-center gap-2 tracking-wide" };
90
- const _hoisted_6$2 = { key: 1 };
91
- const _hoisted_7$2 = {
87
+ 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" };
88
+ const _hoisted_4$2 = { key: 0 };
89
+ const _hoisted_5$1 = { class: "text-sm font-bold text-slate-800 flex items-center gap-2 tracking-wide" };
90
+ const _hoisted_6$1 = { key: 1 };
91
+ const _hoisted_7$1 = {
92
92
  key: 0,
93
93
  class: "text-[10px] text-slate-400 bg-slate-50 px-2 py-1 rounded border border-slate-100 tracking-wide"
94
94
  };
95
95
  const _hoisted_8$1 = { class: "hlw-card-body" };
96
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
96
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
97
97
  ...{
98
98
  options: {
99
99
  styleIsolation: "shared",
@@ -109,13 +109,13 @@
109
109
  },
110
110
  setup(__props) {
111
111
  return (_ctx, _cache) => {
112
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$6, [
113
- _ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$6, [
112
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5, [
113
+ _ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$5, [
114
114
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
115
- vue.createElementVNode("view", _hoisted_3$4, [
116
- _ctx.$slots["header-left"] || __props.title || __props.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$3, [
115
+ vue.createElementVNode("view", _hoisted_3$3, [
116
+ _ctx.$slots["header-left"] || __props.title || __props.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$2, [
117
117
  vue.renderSlot(_ctx.$slots, "header-left", {}, () => [
118
- vue.createElementVNode("view", _hoisted_5$2, [
118
+ vue.createElementVNode("view", _hoisted_5$1, [
119
119
  __props.icon ? (vue.openBlock(), vue.createElementBlock("text", {
120
120
  key: 0,
121
121
  class: vue.normalizeClass([__props.icon, __props.iconColor])
@@ -124,9 +124,9 @@
124
124
  ])
125
125
  ], true)
126
126
  ])) : vue.createCommentVNode("", true),
127
- _ctx.$slots["header-right"] || __props.extra ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$2, [
127
+ _ctx.$slots["header-right"] || __props.extra ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_6$1, [
128
128
  vue.renderSlot(_ctx.$slots, "header-right", {}, () => [
129
- __props.extra ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$2, vue.toDisplayString(__props.extra), 1)) : vue.createCommentVNode("", true)
129
+ __props.extra ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7$1, vue.toDisplayString(__props.extra), 1)) : vue.createCommentVNode("", true)
130
130
  ], true)
131
131
  ])) : vue.createCommentVNode("", true)
132
132
  ])
@@ -139,15 +139,15 @@
139
139
  };
140
140
  }
141
141
  });
142
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-787fc3a7"]]);
143
- const _hoisted_1$5 = { class: "hlw-empty" };
144
- const _hoisted_2$5 = ["src"];
145
- const _hoisted_3$3 = {
142
+ const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-787fc3a7"]]);
143
+ const _hoisted_1$4 = { class: "hlw-empty" };
144
+ const _hoisted_2$4 = ["src"];
145
+ const _hoisted_3$2 = {
146
146
  key: 1,
147
147
  class: "hlw-empty__icon"
148
148
  };
149
- const _hoisted_4$2 = { class: "hlw-empty__text" };
150
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
149
+ const _hoisted_4$1 = { class: "hlw-empty__text" };
150
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
151
151
  __name: "index",
152
152
  props: {
153
153
  text: {},
@@ -155,29 +155,29 @@
155
155
  },
156
156
  setup(__props) {
157
157
  return (_ctx, _cache) => {
158
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5, [
158
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$4, [
159
159
  __props.image ? (vue.openBlock(), vue.createElementBlock("image", {
160
160
  key: 0,
161
161
  class: "hlw-empty__image",
162
162
  src: __props.image,
163
163
  mode: "aspectFit"
164
- }, null, 8, _hoisted_2$5)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$3, "📦")),
165
- vue.createElementVNode("text", _hoisted_4$2, vue.toDisplayString(__props.text || "暂无数据"), 1),
164
+ }, null, 8, _hoisted_2$4)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$2, "📦")),
165
+ vue.createElementVNode("text", _hoisted_4$1, vue.toDisplayString(__props.text || "暂无数据"), 1),
166
166
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
167
167
  ]);
168
168
  };
169
169
  }
170
170
  });
171
- const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-72364322"]]);
172
- const _hoisted_1$4 = {
171
+ const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-72364322"]]);
172
+ const _hoisted_1$3 = {
173
173
  key: 0,
174
174
  class: "header-placeholder"
175
175
  };
176
- const _hoisted_2$4 = {
176
+ const _hoisted_2$3 = {
177
177
  key: 0,
178
178
  class: "header-title header-title--center"
179
179
  };
180
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
180
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
181
181
  __name: "index",
182
182
  props: {
183
183
  extraHeight: { default: 0 },
@@ -264,9 +264,9 @@
264
264
  }, vue.toDisplayString(props.title), 5)
265
265
  ], true)
266
266
  ], 2),
267
- props.titleAlign === "center" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$4)) : vue.createCommentVNode("", true)
267
+ props.titleAlign === "center" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$3)) : vue.createCommentVNode("", true)
268
268
  ], 64)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
269
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$4, [
269
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$3, [
270
270
  vue.createElementVNode("text", {
271
271
  class: "header-title-text",
272
272
  style: vue.normalizeStyle(titleStyle.value)
@@ -278,56 +278,64 @@
278
278
  };
279
279
  }
280
280
  });
281
- const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-9a6c839c"]]);
282
- const _hoisted_1$3 = { class: "hlw-loading" };
283
- const _hoisted_2$3 = {
281
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-9a6c839c"]]);
282
+ const _hoisted_1$2 = { class: "hlw-loading" };
283
+ const _hoisted_2$2 = {
284
284
  key: 0,
285
285
  class: "hlw-loading__text"
286
286
  };
287
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
287
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
288
288
  __name: "index",
289
289
  props: {
290
290
  text: {}
291
291
  },
292
292
  setup(__props) {
293
293
  return (_ctx, _cache) => {
294
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$3, [
294
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$2, [
295
295
  _cache[0] || (_cache[0] = vue.createElementVNode("view", { class: "hlw-loading__spinner" }, null, -1)),
296
- __props.text ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$3, vue.toDisplayString(__props.text), 1)) : vue.createCommentVNode("", true)
296
+ __props.text ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$2, vue.toDisplayString(__props.text), 1)) : vue.createCommentVNode("", true)
297
297
  ]);
298
298
  };
299
299
  }
300
300
  });
301
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-14242381"]]);
302
- const _hoisted_1$2 = {
301
+ const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14242381"]]);
302
+ const _hoisted_1$1 = {
303
303
  key: 0,
304
304
  class: "hlw-menu-title"
305
305
  };
306
- const _hoisted_2$2 = {
306
+ const _hoisted_2$1 = {
307
307
  key: 1,
308
308
  class: "hlw-menu-title-divider"
309
309
  };
310
- const _hoisted_3$2 = { class: "hlw-menu-left" };
311
- const _hoisted_4$1 = { class: "hlw-menu-label" };
312
- const _hoisted_5$1 = { class: "hlw-menu-right" };
313
- const _hoisted_6$1 = ["onClick"];
314
- const _hoisted_7$1 = { class: "hlw-menu-left" };
315
- const _hoisted_8 = { class: "hlw-menu-label" };
316
- const _hoisted_9 = { class: "hlw-menu-right" };
317
- const _hoisted_10 = {
310
+ const _hoisted_3$1 = { class: "hlw-menu-left" };
311
+ const _hoisted_4 = { class: "hlw-menu-label" };
312
+ const _hoisted_5 = { class: "hlw-menu-right" };
313
+ const _hoisted_6 = {
318
314
  key: 0,
319
- class: "i-fa6-solid-circle-notch hlw-menu-spin hlw-menu-muted"
315
+ class: "hlw-menu-value"
320
316
  };
317
+ const _hoisted_7 = ["onClick"];
318
+ const _hoisted_8 = { class: "hlw-menu-left" };
319
+ const _hoisted_9 = { class: "hlw-menu-label" };
320
+ const _hoisted_10 = { class: "hlw-menu-right" };
321
321
  const _hoisted_11 = {
322
+ key: 0,
323
+ class: "i-fa6-solid-circle-notch hlw-menu-spin hlw-menu-muted"
324
+ };
325
+ const _hoisted_12 = {
326
+ key: 1,
327
+ class: "hlw-menu-value"
328
+ };
329
+ const _hoisted_13 = {
322
330
  key: 2,
323
331
  class: "hlw-menu-divider"
324
332
  };
325
- const _hoisted_12 = { class: "hlw-menu-grid-icon-wrap" };
326
- const _hoisted_13 = { class: "hlw-menu-grid-label" };
327
- const _hoisted_14 = ["onClick"];
328
- const _hoisted_15 = { class: "hlw-menu-grid-icon-wrap" };
329
- const _hoisted_16 = { class: "hlw-menu-grid-label" };
330
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
333
+ const _hoisted_14 = { class: "hlw-menu-grid-icon-wrap" };
334
+ const _hoisted_15 = { class: "hlw-menu-grid-label" };
335
+ const _hoisted_16 = ["onClick"];
336
+ const _hoisted_17 = { class: "hlw-menu-grid-icon-wrap" };
337
+ const _hoisted_18 = { class: "hlw-menu-grid-label" };
338
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
331
339
  __name: "index",
332
340
  props: {
333
341
  items: {},
@@ -349,10 +357,10 @@
349
357
  return vue.openBlock(), vue.createElementBlock("view", {
350
358
  class: vue.normalizeClass(["hlw-menu", { "hlw-menu--no-border": !props.border }])
351
359
  }, [
352
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$2, [
360
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
353
361
  vue.createElementVNode("text", null, vue.toDisplayString(props.title), 1)
354
362
  ])) : vue.createCommentVNode("", true),
355
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$2)) : vue.createCommentVNode("", true),
363
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$1)) : vue.createCommentVNode("", true),
356
364
  props.mode === "list" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(visibleItems.value, (item, index2) => {
357
365
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
358
366
  item.url ? (vue.openBlock(), vue.createBlock(_component_navigator, {
@@ -362,7 +370,7 @@
362
370
  "hover-class": "hlw-menu-item--active"
363
371
  }, {
364
372
  default: vue.withCtx(() => [
365
- vue.createElementVNode("view", _hoisted_3$2, [
373
+ vue.createElementVNode("view", _hoisted_3$1, [
366
374
  vue.createElementVNode("view", {
367
375
  class: vue.normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
368
376
  }, [
@@ -370,11 +378,12 @@
370
378
  class: vue.normalizeClass(item.icon)
371
379
  }, null, 2)
372
380
  ], 2),
373
- vue.createElementVNode("text", _hoisted_4$1, vue.toDisplayString(item.label), 1)
381
+ vue.createElementVNode("text", _hoisted_4, vue.toDisplayString(item.label), 1)
374
382
  ]),
375
- vue.createElementVNode("view", _hoisted_5$1, [
383
+ vue.createElementVNode("view", _hoisted_5, [
384
+ item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
376
385
  item.tag ? (vue.openBlock(), vue.createElementBlock("text", {
377
- key: 0,
386
+ key: 1,
378
387
  class: vue.normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
379
388
  }, vue.toDisplayString(item.tag), 3)) : vue.createCommentVNode("", true),
380
389
  _cache[0] || (_cache[0] = vue.createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
@@ -387,7 +396,7 @@
387
396
  "hover-class": "hlw-menu-item--active",
388
397
  onClick: ($event) => handleClick(item)
389
398
  }, [
390
- vue.createElementVNode("view", _hoisted_7$1, [
399
+ vue.createElementVNode("view", _hoisted_8, [
391
400
  vue.createElementVNode("view", {
392
401
  class: vue.normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
393
402
  }, [
@@ -395,18 +404,19 @@
395
404
  class: vue.normalizeClass(item.icon)
396
405
  }, null, 2)
397
406
  ], 2),
398
- vue.createElementVNode("text", _hoisted_8, vue.toDisplayString(item.label), 1)
407
+ vue.createElementVNode("text", _hoisted_9, vue.toDisplayString(item.label), 1)
399
408
  ]),
400
- vue.createElementVNode("view", _hoisted_9, [
401
- item.loading ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_10)) : vue.createCommentVNode("", true),
409
+ vue.createElementVNode("view", _hoisted_10, [
410
+ item.loading ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_11)) : vue.createCommentVNode("", true),
411
+ item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_12, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
402
412
  item.tag ? (vue.openBlock(), vue.createElementBlock("text", {
403
- key: 1,
413
+ key: 2,
404
414
  class: vue.normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
405
415
  }, vue.toDisplayString(item.tag), 3)) : vue.createCommentVNode("", true),
406
416
  _cache[1] || (_cache[1] = vue.createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
407
417
  ])
408
- ], 8, _hoisted_6$1)),
409
- index2 < visibleItems.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11)) : vue.createCommentVNode("", true)
418
+ ], 8, _hoisted_7)),
419
+ index2 < visibleItems.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13)) : vue.createCommentVNode("", true)
410
420
  ], 64);
411
421
  }), 128)) : (vue.openBlock(), vue.createElementBlock("view", {
412
422
  key: 3,
@@ -422,7 +432,7 @@
422
432
  "hover-class": "hlw-menu-grid-item--active"
423
433
  }, {
424
434
  default: vue.withCtx(() => [
425
- vue.createElementVNode("view", _hoisted_12, [
435
+ vue.createElementVNode("view", _hoisted_14, [
426
436
  vue.createElementVNode("view", {
427
437
  class: vue.normalizeClass(["hlw-menu-icon hlw-menu-icon--grid", `hlw-menu-icon--${item.iconTheme || "slate"}`])
428
438
  }, [
@@ -435,7 +445,7 @@
435
445
  class: vue.normalizeClass(["hlw-menu-badge", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
436
446
  }, vue.toDisplayString(item.tag), 3)) : vue.createCommentVNode("", true)
437
447
  ]),
438
- vue.createElementVNode("text", _hoisted_13, vue.toDisplayString(item.label), 1)
448
+ vue.createElementVNode("text", _hoisted_15, vue.toDisplayString(item.label), 1)
439
449
  ]),
440
450
  _: 2
441
451
  }, 1032, ["url"])) : (vue.openBlock(), vue.createElementBlock("view", {
@@ -444,7 +454,7 @@
444
454
  "hover-class": "hlw-menu-grid-item--active",
445
455
  onClick: ($event) => handleClick(item)
446
456
  }, [
447
- vue.createElementVNode("view", _hoisted_15, [
457
+ vue.createElementVNode("view", _hoisted_17, [
448
458
  vue.createElementVNode("view", {
449
459
  class: vue.normalizeClass(["hlw-menu-icon hlw-menu-icon--grid", `hlw-menu-icon--${item.iconTheme || "slate"}`])
450
460
  }, [
@@ -457,8 +467,8 @@
457
467
  class: vue.normalizeClass(["hlw-menu-badge", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
458
468
  }, vue.toDisplayString(item.tag), 3)) : vue.createCommentVNode("", true)
459
469
  ]),
460
- vue.createElementVNode("text", _hoisted_16, vue.toDisplayString(item.label), 1)
461
- ], 8, _hoisted_14))
470
+ vue.createElementVNode("text", _hoisted_18, vue.toDisplayString(item.label), 1)
471
+ ], 8, _hoisted_16))
462
472
  ], 64);
463
473
  }), 128))
464
474
  ], 4))
@@ -466,59 +476,7 @@
466
476
  };
467
477
  }
468
478
  });
469
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2fb4d4c7"]]);
470
- const _hoisted_1$1 = { class: "hlw-menu-list" };
471
- const _hoisted_2$1 = ["onTap"];
472
- const _hoisted_3$1 = { class: "hlw-menu-list__left" };
473
- const _hoisted_4 = {
474
- key: 0,
475
- class: "hlw-menu-list__icon"
476
- };
477
- const _hoisted_5 = { class: "hlw-menu-list__label" };
478
- const _hoisted_6 = { class: "hlw-menu-list__right" };
479
- const _hoisted_7 = {
480
- key: 0,
481
- class: "hlw-menu-list__value"
482
- };
483
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
484
- __name: "index",
485
- props: {
486
- items: {}
487
- },
488
- emits: ["click"],
489
- setup(__props, { emit: __emit }) {
490
- const emit = __emit;
491
- function onTap(item) {
492
- if (item.url) {
493
- uni.navigateTo({ url: item.url });
494
- } else if (item.action) {
495
- item.action();
496
- }
497
- emit("click", item);
498
- }
499
- return (_ctx, _cache) => {
500
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
501
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item) => {
502
- return vue.openBlock(), vue.createElementBlock("view", {
503
- key: item.key,
504
- class: "hlw-menu-list__item",
505
- onTap: ($event) => onTap(item)
506
- }, [
507
- vue.createElementVNode("view", _hoisted_3$1, [
508
- item.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4, vue.toDisplayString(item.icon), 1)) : vue.createCommentVNode("", true),
509
- vue.createElementVNode("text", _hoisted_5, vue.toDisplayString(item.label), 1)
510
- ]),
511
- vue.createElementVNode("view", _hoisted_6, [
512
- item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
513
- _cache[0] || (_cache[0] = vue.createElementVNode("text", { class: "hlw-menu-list__arrow" }, "›", -1))
514
- ])
515
- ], 40, _hoisted_2$1);
516
- }), 128))
517
- ]);
518
- };
519
- }
520
- });
521
- const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-e465b0b4"]]);
479
+ const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-1e8beec7"]]);
522
480
  const _hoisted_1 = { class: "hlw-page" };
523
481
  const _hoisted_2 = { class: "hlw-page-header" };
524
482
  const _hoisted_3 = { class: "hlw-page-footer" };
@@ -564,14 +522,13 @@
564
522
  }
565
523
  });
566
524
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-155bc02a"]]);
567
- exports2.HlwAd = _sfc_main$8;
568
- exports2.HlwAvatar = index$7;
569
- exports2.HlwCard = index$6;
570
- exports2.HlwEmpty = index$5;
571
- exports2.HlwHeader = index$4;
572
- exports2.HlwLoading = index$3;
573
- exports2.HlwMenu = index$2;
574
- exports2.HlwMenuList = index$1;
525
+ exports2.HlwAd = _sfc_main$7;
526
+ exports2.HlwAvatar = index$6;
527
+ exports2.HlwCard = index$5;
528
+ exports2.HlwEmpty = index$4;
529
+ exports2.HlwHeader = index$3;
530
+ exports2.HlwLoading = index$2;
531
+ exports2.HlwMenu = index$1;
575
532
  exports2.HlwPage = index;
576
533
  Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
577
534
  });