@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.
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$8 = /* @__PURE__ */ defineComponent({
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$7 = ["src"];
34
- const _hoisted_2$7 = {
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$5 = { class: "hlw-avatar__initial" };
39
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
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$7)) : (openBlock(), createElementBlock("view", _hoisted_2$7, [
65
- createElementVNode("text", _hoisted_3$5, toDisplayString(initial.value), 1)
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$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-7e8f98a5"]]);
79
- const _hoisted_1$6 = { class: "hlw-card" };
80
- const _hoisted_2$6 = {
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$4 = { 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$3 = { key: 0 };
86
- const _hoisted_5$2 = { class: "text-sm font-bold text-slate-800 flex items-center gap-2 tracking-wide" };
87
- const _hoisted_6$2 = { key: 1 };
88
- const _hoisted_7$2 = {
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$6 = /* @__PURE__ */ defineComponent({
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$6, [
110
- _ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (openBlock(), createElementBlock("view", _hoisted_2$6, [
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$4, [
113
- _ctx.$slots["header-left"] || __props.title || __props.icon ? (openBlock(), createElementBlock("view", _hoisted_4$3, [
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$2, [
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$2, [
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$2, toDisplayString(__props.extra), 1)) : createCommentVNode("", true)
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$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-787fc3a7"]]);
140
- const _hoisted_1$5 = { class: "hlw-empty" };
141
- const _hoisted_2$5 = ["src"];
142
- const _hoisted_3$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$2 = { class: "hlw-empty__text" };
147
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
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$5, [
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$5)) : (openBlock(), createElementBlock("text", _hoisted_3$3, "📦")),
162
- createElementVNode("text", _hoisted_4$2, toDisplayString(__props.text || "暂无数据"), 1),
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$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-72364322"]]);
169
- const _hoisted_1$4 = {
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$4 = {
173
+ const _hoisted_2$3 = {
174
174
  key: 0,
175
175
  class: "header-title header-title--center"
176
176
  };
177
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
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$4)) : createCommentVNode("", true)
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$4, [
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,56 +275,64 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
275
275
  };
276
276
  }
277
277
  });
278
- const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-9a6c839c"]]);
279
- const _hoisted_1$3 = { class: "hlw-loading" };
280
- const _hoisted_2$3 = {
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$3 = /* @__PURE__ */ defineComponent({
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$3, [
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$3, toDisplayString(__props.text), 1)) : createCommentVNode("", true)
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$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-14242381"]]);
299
- const _hoisted_1$2 = {
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$2 = {
303
+ const _hoisted_2$1 = {
304
304
  key: 1,
305
305
  class: "hlw-menu-title-divider"
306
306
  };
307
- const _hoisted_3$2 = { class: "hlw-menu-left" };
308
- const _hoisted_4$1 = { class: "hlw-menu-label" };
309
- const _hoisted_5$1 = { class: "hlw-menu-right" };
310
- const _hoisted_6$1 = ["onClick"];
311
- const _hoisted_7$1 = { class: "hlw-menu-left" };
312
- const _hoisted_8 = { class: "hlw-menu-label" };
313
- const _hoisted_9 = { class: "hlw-menu-right" };
314
- const _hoisted_10 = {
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 = {
315
311
  key: 0,
316
- class: "i-fa6-solid-circle-notch hlw-menu-spin hlw-menu-muted"
312
+ class: "hlw-menu-value"
317
313
  };
314
+ const _hoisted_7 = ["onClick"];
315
+ const _hoisted_8 = { class: "hlw-menu-left" };
316
+ const _hoisted_9 = { class: "hlw-menu-label" };
317
+ const _hoisted_10 = { class: "hlw-menu-right" };
318
318
  const _hoisted_11 = {
319
+ key: 0,
320
+ class: "i-fa6-solid-circle-notch hlw-menu-spin hlw-menu-muted"
321
+ };
322
+ const _hoisted_12 = {
323
+ key: 1,
324
+ class: "hlw-menu-value"
325
+ };
326
+ const _hoisted_13 = {
319
327
  key: 2,
320
328
  class: "hlw-menu-divider"
321
329
  };
322
- const _hoisted_12 = { class: "hlw-menu-grid-icon-wrap" };
323
- const _hoisted_13 = { class: "hlw-menu-grid-label" };
324
- const _hoisted_14 = ["onClick"];
325
- const _hoisted_15 = { class: "hlw-menu-grid-icon-wrap" };
326
- const _hoisted_16 = { class: "hlw-menu-grid-label" };
327
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
330
+ const _hoisted_14 = { class: "hlw-menu-grid-icon-wrap" };
331
+ const _hoisted_15 = { class: "hlw-menu-grid-label" };
332
+ const _hoisted_16 = ["onClick"];
333
+ const _hoisted_17 = { class: "hlw-menu-grid-icon-wrap" };
334
+ const _hoisted_18 = { class: "hlw-menu-grid-label" };
335
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
328
336
  __name: "index",
329
337
  props: {
330
338
  items: {},
@@ -346,10 +354,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
346
354
  return openBlock(), createElementBlock("view", {
347
355
  class: normalizeClass(["hlw-menu", { "hlw-menu--no-border": !props.border }])
348
356
  }, [
349
- props.title ? (openBlock(), createElementBlock("view", _hoisted_1$2, [
357
+ props.title ? (openBlock(), createElementBlock("view", _hoisted_1$1, [
350
358
  createElementVNode("text", null, toDisplayString(props.title), 1)
351
359
  ])) : createCommentVNode("", true),
352
- props.title ? (openBlock(), createElementBlock("view", _hoisted_2$2)) : createCommentVNode("", true),
360
+ props.title ? (openBlock(), createElementBlock("view", _hoisted_2$1)) : createCommentVNode("", true),
353
361
  props.mode === "list" ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(visibleItems.value, (item, index2) => {
354
362
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
355
363
  item.url ? (openBlock(), createBlock(_component_navigator, {
@@ -359,7 +367,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
359
367
  "hover-class": "hlw-menu-item--active"
360
368
  }, {
361
369
  default: withCtx(() => [
362
- createElementVNode("view", _hoisted_3$2, [
370
+ createElementVNode("view", _hoisted_3$1, [
363
371
  createElementVNode("view", {
364
372
  class: normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
365
373
  }, [
@@ -367,11 +375,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
367
375
  class: normalizeClass(item.icon)
368
376
  }, null, 2)
369
377
  ], 2),
370
- createElementVNode("text", _hoisted_4$1, toDisplayString(item.label), 1)
378
+ createElementVNode("text", _hoisted_4, toDisplayString(item.label), 1)
371
379
  ]),
372
- createElementVNode("view", _hoisted_5$1, [
380
+ createElementVNode("view", _hoisted_5, [
381
+ item.value ? (openBlock(), createElementBlock("text", _hoisted_6, toDisplayString(item.value), 1)) : createCommentVNode("", true),
373
382
  item.tag ? (openBlock(), createElementBlock("text", {
374
- key: 0,
383
+ key: 1,
375
384
  class: normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
376
385
  }, toDisplayString(item.tag), 3)) : createCommentVNode("", true),
377
386
  _cache[0] || (_cache[0] = createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
@@ -384,7 +393,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
384
393
  "hover-class": "hlw-menu-item--active",
385
394
  onClick: ($event) => handleClick(item)
386
395
  }, [
387
- createElementVNode("view", _hoisted_7$1, [
396
+ createElementVNode("view", _hoisted_8, [
388
397
  createElementVNode("view", {
389
398
  class: normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
390
399
  }, [
@@ -392,18 +401,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
392
401
  class: normalizeClass(item.icon)
393
402
  }, null, 2)
394
403
  ], 2),
395
- createElementVNode("text", _hoisted_8, toDisplayString(item.label), 1)
404
+ createElementVNode("text", _hoisted_9, toDisplayString(item.label), 1)
396
405
  ]),
397
- createElementVNode("view", _hoisted_9, [
398
- item.loading ? (openBlock(), createElementBlock("text", _hoisted_10)) : createCommentVNode("", true),
406
+ createElementVNode("view", _hoisted_10, [
407
+ item.loading ? (openBlock(), createElementBlock("text", _hoisted_11)) : createCommentVNode("", true),
408
+ item.value ? (openBlock(), createElementBlock("text", _hoisted_12, toDisplayString(item.value), 1)) : createCommentVNode("", true),
399
409
  item.tag ? (openBlock(), createElementBlock("text", {
400
- key: 1,
410
+ key: 2,
401
411
  class: normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
402
412
  }, toDisplayString(item.tag), 3)) : createCommentVNode("", true),
403
413
  _cache[1] || (_cache[1] = createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
404
414
  ])
405
- ], 8, _hoisted_6$1)),
406
- index2 < visibleItems.value.length - 1 ? (openBlock(), createElementBlock("view", _hoisted_11)) : createCommentVNode("", true)
415
+ ], 8, _hoisted_7)),
416
+ index2 < visibleItems.value.length - 1 ? (openBlock(), createElementBlock("view", _hoisted_13)) : createCommentVNode("", true)
407
417
  ], 64);
408
418
  }), 128)) : (openBlock(), createElementBlock("view", {
409
419
  key: 3,
@@ -419,7 +429,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
419
429
  "hover-class": "hlw-menu-grid-item--active"
420
430
  }, {
421
431
  default: withCtx(() => [
422
- createElementVNode("view", _hoisted_12, [
432
+ createElementVNode("view", _hoisted_14, [
423
433
  createElementVNode("view", {
424
434
  class: normalizeClass(["hlw-menu-icon hlw-menu-icon--grid", `hlw-menu-icon--${item.iconTheme || "slate"}`])
425
435
  }, [
@@ -432,7 +442,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
432
442
  class: normalizeClass(["hlw-menu-badge", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
433
443
  }, toDisplayString(item.tag), 3)) : createCommentVNode("", true)
434
444
  ]),
435
- createElementVNode("text", _hoisted_13, toDisplayString(item.label), 1)
445
+ createElementVNode("text", _hoisted_15, toDisplayString(item.label), 1)
436
446
  ]),
437
447
  _: 2
438
448
  }, 1032, ["url"])) : (openBlock(), createElementBlock("view", {
@@ -441,7 +451,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
441
451
  "hover-class": "hlw-menu-grid-item--active",
442
452
  onClick: ($event) => handleClick(item)
443
453
  }, [
444
- createElementVNode("view", _hoisted_15, [
454
+ createElementVNode("view", _hoisted_17, [
445
455
  createElementVNode("view", {
446
456
  class: normalizeClass(["hlw-menu-icon hlw-menu-icon--grid", `hlw-menu-icon--${item.iconTheme || "slate"}`])
447
457
  }, [
@@ -454,8 +464,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
454
464
  class: normalizeClass(["hlw-menu-badge", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
455
465
  }, toDisplayString(item.tag), 3)) : createCommentVNode("", true)
456
466
  ]),
457
- createElementVNode("text", _hoisted_16, toDisplayString(item.label), 1)
458
- ], 8, _hoisted_14))
467
+ createElementVNode("text", _hoisted_18, toDisplayString(item.label), 1)
468
+ ], 8, _hoisted_16))
459
469
  ], 64);
460
470
  }), 128))
461
471
  ], 4))
@@ -463,59 +473,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
463
473
  };
464
474
  }
465
475
  });
466
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-2fb4d4c7"]]);
467
- const _hoisted_1$1 = { class: "hlw-menu-list" };
468
- const _hoisted_2$1 = ["onTap"];
469
- const _hoisted_3$1 = { class: "hlw-menu-list__left" };
470
- const _hoisted_4 = {
471
- key: 0,
472
- class: "hlw-menu-list__icon"
473
- };
474
- const _hoisted_5 = { class: "hlw-menu-list__label" };
475
- const _hoisted_6 = { class: "hlw-menu-list__right" };
476
- const _hoisted_7 = {
477
- key: 0,
478
- class: "hlw-menu-list__value"
479
- };
480
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
481
- __name: "index",
482
- props: {
483
- items: {}
484
- },
485
- emits: ["click"],
486
- setup(__props, { emit: __emit }) {
487
- const emit = __emit;
488
- function onTap(item) {
489
- if (item.url) {
490
- uni.navigateTo({ url: item.url });
491
- } else if (item.action) {
492
- item.action();
493
- }
494
- emit("click", item);
495
- }
496
- return (_ctx, _cache) => {
497
- return openBlock(), createElementBlock("view", _hoisted_1$1, [
498
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
499
- return openBlock(), createElementBlock("view", {
500
- key: item.key,
501
- class: "hlw-menu-list__item",
502
- onTap: ($event) => onTap(item)
503
- }, [
504
- createElementVNode("view", _hoisted_3$1, [
505
- item.icon ? (openBlock(), createElementBlock("text", _hoisted_4, toDisplayString(item.icon), 1)) : createCommentVNode("", true),
506
- createElementVNode("text", _hoisted_5, toDisplayString(item.label), 1)
507
- ]),
508
- createElementVNode("view", _hoisted_6, [
509
- item.value ? (openBlock(), createElementBlock("text", _hoisted_7, toDisplayString(item.value), 1)) : createCommentVNode("", true),
510
- _cache[0] || (_cache[0] = createElementVNode("text", { class: "hlw-menu-list__arrow" }, "›", -1))
511
- ])
512
- ], 40, _hoisted_2$1);
513
- }), 128))
514
- ]);
515
- };
516
- }
517
- });
518
- 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-1e8beec7"]]);
519
477
  const _hoisted_1 = { class: "hlw-page" };
520
478
  const _hoisted_2 = { class: "hlw-page-header" };
521
479
  const _hoisted_3 = { class: "hlw-page-footer" };
@@ -562,13 +520,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
562
520
  });
563
521
  const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-155bc02a"]]);
564
522
  export {
565
- _sfc_main$8 as HlwAd,
566
- index$7 as HlwAvatar,
567
- index$6 as HlwCard,
568
- index$5 as HlwEmpty,
569
- index$4 as HlwHeader,
570
- index$3 as HlwLoading,
571
- index$2 as HlwMenu,
572
- 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,
573
530
  index as HlwPage
574
531
  };