@hlw-uni/mp-vue 1.0.34 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("pinia")) : typeof define === "function" && define.amd ? define(["exports", "vue", "pinia"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.HlwUniVue = {}, global.vue, global.pinia));
3
- })(this, function(exports2, vue, pinia) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("@hlw-uni/mp-core"), require("pinia")) : typeof define === "function" && define.amd ? define(["exports", "vue", "@hlw-uni/mp-core", "pinia"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.HlwUniVue = {}, global.vue, global.mpCore, global.pinia));
3
+ })(this, function(exports2, vue, mpCore, pinia) {
4
4
  "use strict";
5
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
5
+ const _sfc_main$h = /* @__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$6 = ["src"];
37
- const _hoisted_2$6 = {
36
+ const _hoisted_1$f = ["src"];
37
+ const _hoisted_2$d = {
38
38
  key: 1,
39
39
  class: "hlw-avatar__placeholder"
40
40
  };
41
- const _hoisted_3$4 = { class: "hlw-avatar__initial" };
42
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
41
+ const _hoisted_3$8 = { class: "hlw-avatar__initial" };
42
+ const _sfc_main$g = /* @__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$6)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$6, [
68
- vue.createElementVNode("text", _hoisted_3$4, vue.toDisplayString(initial.value), 1)
67
+ }, null, 40, _hoisted_1$f)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$d, [
68
+ vue.createElementVNode("text", _hoisted_3$8, vue.toDisplayString(initial.value), 1)
69
69
  ]))
70
70
  ], 2);
71
71
  };
@@ -78,40 +78,80 @@
78
78
  }
79
79
  return target;
80
80
  };
81
- const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-89dcbc96"]]);
82
- const _hoisted_1$5 = {
81
+ const index$g = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-89dcbc96"]]);
82
+ const _hoisted_1$e = ["disabled", "open-type"];
83
+ const _hoisted_2$c = {
84
+ key: 0,
85
+ class: "hlw-btn-spinner"
86
+ };
87
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
88
+ __name: "index",
89
+ props: {
90
+ type: { default: "primary" },
91
+ size: { default: "medium" },
92
+ loading: { type: Boolean, default: false },
93
+ disabled: { type: Boolean, default: false },
94
+ block: { type: Boolean, default: false },
95
+ round: { type: Boolean, default: false },
96
+ icon: { default: "" },
97
+ openType: { default: "" }
98
+ },
99
+ emits: ["click"],
100
+ setup(__props) {
101
+ return (_ctx, _cache) => {
102
+ return vue.openBlock(), vue.createElementBlock("button", {
103
+ class: vue.normalizeClass(["hlw-btn", [
104
+ `hlw-btn--${__props.type}`,
105
+ `hlw-btn--${__props.size}`,
106
+ { "hlw-btn--block": __props.block, "hlw-btn--round": __props.round, "hlw-btn--disabled": __props.disabled, "hlw-btn--loading": __props.loading }
107
+ ]]),
108
+ disabled: __props.disabled || __props.loading,
109
+ "open-type": __props.openType,
110
+ onTap: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
111
+ }, [
112
+ __props.loading ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$c)) : __props.icon ? (vue.openBlock(), vue.createElementBlock("view", {
113
+ key: 1,
114
+ class: vue.normalizeClass([__props.icon, "hlw-btn-icon"])
115
+ }, null, 2)) : vue.createCommentVNode("", true),
116
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
117
+ ], 42, _hoisted_1$e);
118
+ };
119
+ }
120
+ });
121
+ const index$f = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-199073be"]]);
122
+ const _hoisted_1$d = {
83
123
  key: 0,
84
124
  class: "hlw-card-header"
85
125
  };
86
- const _hoisted_2$5 = { class: "hlw-card-header-inner" };
87
- const _hoisted_3$3 = { class: "hlw-card-header-left" };
88
- const _hoisted_4$2 = {
126
+ const _hoisted_2$b = { class: "hlw-card-header-inner" };
127
+ const _hoisted_3$7 = { class: "hlw-card-header-left" };
128
+ const _hoisted_4$4 = {
89
129
  key: 0,
90
130
  class: "hlw-card-title"
91
131
  };
92
- const _hoisted_5$1 = {
132
+ const _hoisted_5$2 = {
93
133
  key: 0,
94
134
  class: "hlw-card-header-right"
95
135
  };
96
- const _hoisted_6$1 = {
136
+ const _hoisted_6$2 = {
97
137
  key: 0,
98
138
  class: "hlw-card-extra"
99
139
  };
100
- const _hoisted_7$1 = {
140
+ const _hoisted_7$2 = {
101
141
  key: 1,
102
142
  class: "hlw-card-divider"
103
143
  };
104
- const _hoisted_8$1 = {
144
+ const _hoisted_8$2 = {
105
145
  key: 2,
106
146
  class: "hlw-card-footer"
107
147
  };
108
- const _hoisted_9$1 = { class: "hlw-card-footer-inner" };
109
- const _hoisted_10$1 = { class: "hlw-card-footer-left" };
110
- const _hoisted_11$1 = {
148
+ const _hoisted_9$2 = { class: "hlw-card-footer-inner" };
149
+ const _hoisted_10$2 = { class: "hlw-card-footer-left" };
150
+ const _hoisted_11$2 = {
111
151
  key: 0,
112
152
  class: "hlw-card-footer-right"
113
153
  };
114
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
154
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
115
155
  __name: "index",
116
156
  props: {
117
157
  title: { default: "" },
@@ -142,35 +182,35 @@
142
182
  __props.border ? "hlw-card--bordered" : ""
143
183
  ]])
144
184
  }, [
145
- hasHeader.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5, [
185
+ hasHeader.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$d, [
146
186
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
147
- vue.createElementVNode("view", _hoisted_2$5, [
148
- vue.createElementVNode("view", _hoisted_3$3, [
187
+ vue.createElementVNode("view", _hoisted_2$b, [
188
+ vue.createElementVNode("view", _hoisted_3$7, [
149
189
  vue.renderSlot(_ctx.$slots, "header-left", {}, () => [
150
- __props.title ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4$2, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true)
190
+ __props.title ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4$4, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true)
151
191
  ], true)
152
192
  ]),
153
- _ctx.$slots["header-right"] || __props.extra ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$1, [
193
+ _ctx.$slots["header-right"] || __props.extra ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_5$2, [
154
194
  vue.renderSlot(_ctx.$slots, "header-right", {}, () => [
155
- __props.extra ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6$1, vue.toDisplayString(__props.extra), 1)) : vue.createCommentVNode("", true)
195
+ __props.extra ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6$2, vue.toDisplayString(__props.extra), 1)) : vue.createCommentVNode("", true)
156
196
  ], true)
157
197
  ])) : vue.createCommentVNode("", true)
158
198
  ])
159
199
  ], true)
160
200
  ])) : vue.createCommentVNode("", true),
161
- showDivider.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$1)) : vue.createCommentVNode("", true),
201
+ showDivider.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$2)) : vue.createCommentVNode("", true),
162
202
  vue.createElementVNode("view", {
163
203
  class: vue.normalizeClass(["hlw-card-body", { "hlw-card-body--padded": __props.padding }])
164
204
  }, [
165
205
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
166
206
  ], 2),
167
- hasFooter.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$1, [
207
+ hasFooter.value ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_8$2, [
168
208
  vue.renderSlot(_ctx.$slots, "footer", {}, () => [
169
- vue.createElementVNode("view", _hoisted_9$1, [
170
- vue.createElementVNode("view", _hoisted_10$1, [
209
+ vue.createElementVNode("view", _hoisted_9$2, [
210
+ vue.createElementVNode("view", _hoisted_10$2, [
171
211
  vue.renderSlot(_ctx.$slots, "footer-left", {}, void 0, true)
172
212
  ]),
173
- _ctx.$slots["footer-right"] ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$1, [
213
+ _ctx.$slots["footer-right"] ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_11$2, [
174
214
  vue.renderSlot(_ctx.$slots, "footer-right", {}, void 0, true)
175
215
  ])) : vue.createCommentVNode("", true)
176
216
  ])
@@ -180,15 +220,148 @@
180
220
  };
181
221
  }
182
222
  });
183
- const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cf55252e"]]);
184
- const _hoisted_1$4 = { class: "hlw-empty" };
185
- const _hoisted_2$4 = ["src"];
186
- const _hoisted_3$2 = {
223
+ const index$e = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-cf55252e"]]);
224
+ const _hoisted_1$c = {
225
+ key: 0,
226
+ class: "hlw-cell-icon"
227
+ };
228
+ const _hoisted_2$a = { class: "hlw-cell-body" };
229
+ const _hoisted_3$6 = { class: "hlw-cell-title" };
230
+ const _hoisted_4$3 = {
231
+ key: 0,
232
+ class: "hlw-cell-label"
233
+ };
234
+ const _hoisted_5$1 = { class: "hlw-cell-value" };
235
+ const _hoisted_6$1 = ["hover-class"];
236
+ const _hoisted_7$1 = {
237
+ key: 0,
238
+ class: "hlw-cell-icon"
239
+ };
240
+ const _hoisted_8$1 = { class: "hlw-cell-body" };
241
+ const _hoisted_9$1 = { class: "hlw-cell-title" };
242
+ const _hoisted_10$1 = {
243
+ key: 0,
244
+ class: "hlw-cell-label"
245
+ };
246
+ const _hoisted_11$1 = { class: "hlw-cell-value" };
247
+ const _hoisted_12$1 = {
248
+ key: 1,
249
+ class: "hlw-cell-arrow"
250
+ };
251
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
252
+ __name: "index",
253
+ props: {
254
+ title: { default: "" },
255
+ label: { default: "" },
256
+ value: { default: "" },
257
+ icon: { default: "" },
258
+ isLink: { type: Boolean, default: false },
259
+ url: { default: "" },
260
+ border: { type: Boolean, default: true }
261
+ },
262
+ emits: ["click"],
263
+ setup(__props) {
264
+ return (_ctx, _cache) => {
265
+ const _component_navigator = vue.resolveComponent("navigator");
266
+ return __props.url ? (vue.openBlock(), vue.createBlock(_component_navigator, {
267
+ key: 0,
268
+ url: __props.url,
269
+ class: vue.normalizeClass(["hlw-cell", { "hlw-cell--border": __props.border }]),
270
+ "hover-class": "hlw-cell--hover"
271
+ }, {
272
+ default: vue.withCtx(() => [
273
+ __props.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$c, [
274
+ vue.renderSlot(_ctx.$slots, "icon", {}, () => [
275
+ vue.createElementVNode("view", {
276
+ class: vue.normalizeClass(__props.icon)
277
+ }, null, 2)
278
+ ], true)
279
+ ])) : vue.createCommentVNode("", true),
280
+ vue.createElementVNode("view", _hoisted_2$a, [
281
+ vue.createElementVNode("view", _hoisted_3$6, [
282
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
283
+ vue.createTextVNode(vue.toDisplayString(__props.title), 1)
284
+ ], true),
285
+ __props.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$3, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true)
286
+ ]),
287
+ vue.createElementVNode("view", _hoisted_5$1, [
288
+ vue.renderSlot(_ctx.$slots, "value", {}, () => [
289
+ vue.createTextVNode(vue.toDisplayString(__props.value), 1)
290
+ ], true)
291
+ ])
292
+ ]),
293
+ _cache[1] || (_cache[1] = vue.createElementVNode("view", { class: "hlw-cell-arrow" }, null, -1))
294
+ ]),
295
+ _: 3
296
+ }, 8, ["url", "class"])) : (vue.openBlock(), vue.createElementBlock("view", {
297
+ key: 1,
298
+ class: vue.normalizeClass(["hlw-cell", { "hlw-cell--border": __props.border, "hlw-cell--link": __props.isLink }]),
299
+ "hover-class": __props.isLink ? "hlw-cell--hover" : "",
300
+ onTap: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
301
+ }, [
302
+ __props.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_7$1, [
303
+ vue.renderSlot(_ctx.$slots, "icon", {}, () => [
304
+ vue.createElementVNode("view", {
305
+ class: vue.normalizeClass(__props.icon)
306
+ }, null, 2)
307
+ ], true)
308
+ ])) : vue.createCommentVNode("", true),
309
+ vue.createElementVNode("view", _hoisted_8$1, [
310
+ vue.createElementVNode("view", _hoisted_9$1, [
311
+ vue.renderSlot(_ctx.$slots, "title", {}, () => [
312
+ vue.createTextVNode(vue.toDisplayString(__props.title), 1)
313
+ ], true),
314
+ __props.label ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_10$1, vue.toDisplayString(__props.label), 1)) : vue.createCommentVNode("", true)
315
+ ]),
316
+ vue.createElementVNode("view", _hoisted_11$1, [
317
+ vue.renderSlot(_ctx.$slots, "value", {}, () => [
318
+ vue.createTextVNode(vue.toDisplayString(__props.value), 1)
319
+ ], true)
320
+ ])
321
+ ]),
322
+ __props.isLink ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_12$1)) : vue.createCommentVNode("", true),
323
+ vue.renderSlot(_ctx.$slots, "right", {}, void 0, true)
324
+ ], 42, _hoisted_6$1));
325
+ };
326
+ }
327
+ });
328
+ const index$d = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-2bd8c24d"]]);
329
+ const _hoisted_1$b = {
330
+ key: 0,
331
+ class: "hlw-divider-text"
332
+ };
333
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
334
+ __name: "index",
335
+ props: {
336
+ text: { default: "" },
337
+ position: { default: "center" },
338
+ dashed: { type: Boolean, default: false }
339
+ },
340
+ setup(__props) {
341
+ return (_ctx, _cache) => {
342
+ return vue.openBlock(), vue.createElementBlock("view", {
343
+ class: vue.normalizeClass(["hlw-divider", [`hlw-divider--${__props.position}`, { "hlw-divider--dashed": __props.dashed }]])
344
+ }, [
345
+ _cache[0] || (_cache[0] = vue.createElementVNode("view", { class: "hlw-divider-line" }, null, -1)),
346
+ __props.text || _ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$b, [
347
+ vue.renderSlot(_ctx.$slots, "default", {}, () => [
348
+ vue.createTextVNode(vue.toDisplayString(__props.text), 1)
349
+ ], true)
350
+ ])) : vue.createCommentVNode("", true),
351
+ _cache[1] || (_cache[1] = vue.createElementVNode("view", { class: "hlw-divider-line" }, null, -1))
352
+ ], 2);
353
+ };
354
+ }
355
+ });
356
+ const index$c = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-e34c6f87"]]);
357
+ const _hoisted_1$a = { class: "hlw-empty" };
358
+ const _hoisted_2$9 = ["src"];
359
+ const _hoisted_3$5 = {
187
360
  key: 1,
188
361
  class: "hlw-empty__icon"
189
362
  };
190
- const _hoisted_4$1 = { class: "hlw-empty__text" };
191
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
363
+ const _hoisted_4$2 = { class: "hlw-empty__text" };
364
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
192
365
  __name: "index",
193
366
  props: {
194
367
  text: {},
@@ -196,29 +369,29 @@
196
369
  },
197
370
  setup(__props) {
198
371
  return (_ctx, _cache) => {
199
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$4, [
372
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$a, [
200
373
  __props.image ? (vue.openBlock(), vue.createElementBlock("image", {
201
374
  key: 0,
202
375
  class: "hlw-empty__image",
203
376
  src: __props.image,
204
377
  mode: "aspectFit"
205
- }, null, 8, _hoisted_2$4)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$2, "📦")),
206
- vue.createElementVNode("text", _hoisted_4$1, vue.toDisplayString(__props.text || "暂无数据"), 1),
378
+ }, null, 8, _hoisted_2$9)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$5, "📦")),
379
+ vue.createElementVNode("text", _hoisted_4$2, vue.toDisplayString(__props.text || "暂无数据"), 1),
207
380
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
208
381
  ]);
209
382
  };
210
383
  }
211
384
  });
212
- const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-08b8d8fe"]]);
213
- const _hoisted_1$3 = {
385
+ const index$b = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-08b8d8fe"]]);
386
+ const _hoisted_1$9 = {
214
387
  key: 0,
215
388
  class: "header-placeholder"
216
389
  };
217
- const _hoisted_2$3 = {
390
+ const _hoisted_2$8 = {
218
391
  key: 0,
219
392
  class: "header-title header-title--center"
220
393
  };
221
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
394
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
222
395
  __name: "index",
223
396
  props: {
224
397
  extraHeight: { default: 0 },
@@ -305,9 +478,9 @@
305
478
  }, vue.toDisplayString(props.title), 5)
306
479
  ], true)
307
480
  ], 2),
308
- props.titleAlign === "center" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$3)) : vue.createCommentVNode("", true)
481
+ props.titleAlign === "center" ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$9)) : vue.createCommentVNode("", true)
309
482
  ], 64)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }, () => [
310
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$3, [
483
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$8, [
311
484
  vue.createElementVNode("text", {
312
485
  class: "header-title-text",
313
486
  style: vue.normalizeStyle(titleStyle.value)
@@ -319,37 +492,37 @@
319
492
  };
320
493
  }
321
494
  });
322
- const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-fa8f2a18"]]);
323
- const _hoisted_1$2 = { class: "hlw-loading" };
324
- const _hoisted_2$2 = {
495
+ const index$a = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-fa8f2a18"]]);
496
+ const _hoisted_1$8 = { class: "hlw-loading" };
497
+ const _hoisted_2$7 = {
325
498
  key: 0,
326
499
  class: "hlw-loading__text"
327
500
  };
328
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
501
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
329
502
  __name: "index",
330
503
  props: {
331
504
  text: {}
332
505
  },
333
506
  setup(__props) {
334
507
  return (_ctx, _cache) => {
335
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$2, [
508
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$8, [
336
509
  _cache[0] || (_cache[0] = vue.createElementVNode("view", { class: "hlw-loading__spinner" }, null, -1)),
337
- __props.text ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$2, vue.toDisplayString(__props.text), 1)) : vue.createCommentVNode("", true)
510
+ __props.text ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_2$7, vue.toDisplayString(__props.text), 1)) : vue.createCommentVNode("", true)
338
511
  ]);
339
512
  };
340
513
  }
341
514
  });
342
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-14242381"]]);
343
- const _hoisted_1$1 = {
515
+ const index$9 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-14242381"]]);
516
+ const _hoisted_1$7 = {
344
517
  key: 0,
345
518
  class: "hlw-menu-title"
346
519
  };
347
- const _hoisted_2$1 = {
520
+ const _hoisted_2$6 = {
348
521
  key: 1,
349
522
  class: "hlw-menu-title-divider"
350
523
  };
351
- const _hoisted_3$1 = { class: "hlw-menu-left" };
352
- const _hoisted_4 = { class: "hlw-menu-label" };
524
+ const _hoisted_3$4 = { class: "hlw-menu-left" };
525
+ const _hoisted_4$1 = { class: "hlw-menu-label" };
353
526
  const _hoisted_5 = { class: "hlw-menu-right" };
354
527
  const _hoisted_6 = {
355
528
  key: 0,
@@ -376,7 +549,7 @@
376
549
  const _hoisted_16 = ["onClick"];
377
550
  const _hoisted_17 = { class: "hlw-menu-grid-icon-wrap" };
378
551
  const _hoisted_18 = { class: "hlw-menu-grid-label" };
379
- const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
552
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
380
553
  __name: "index",
381
554
  props: {
382
555
  items: {},
@@ -398,10 +571,10 @@
398
571
  return vue.openBlock(), vue.createElementBlock("view", {
399
572
  class: vue.normalizeClass(["hlw-menu", { "hlw-menu--no-border": !props.border }])
400
573
  }, [
401
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
574
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$7, [
402
575
  vue.createElementVNode("text", null, vue.toDisplayString(props.title), 1)
403
576
  ])) : vue.createCommentVNode("", true),
404
- props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$1)) : vue.createCommentVNode("", true),
577
+ props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$6)) : vue.createCommentVNode("", true),
405
578
  props.mode === "list" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(visibleItems.value, (item, index2) => {
406
579
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
407
580
  item.url ? (vue.openBlock(), vue.createBlock(_component_navigator, {
@@ -411,7 +584,7 @@
411
584
  "hover-class": "hlw-menu-item--active"
412
585
  }, {
413
586
  default: vue.withCtx(() => [
414
- vue.createElementVNode("view", _hoisted_3$1, [
587
+ vue.createElementVNode("view", _hoisted_3$4, [
415
588
  vue.createElementVNode("view", {
416
589
  class: vue.normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
417
590
  }, [
@@ -419,7 +592,7 @@
419
592
  class: vue.normalizeClass(item.icon)
420
593
  }, null, 2)
421
594
  ], 2),
422
- vue.createElementVNode("text", _hoisted_4, vue.toDisplayString(item.label), 1)
595
+ vue.createElementVNode("text", _hoisted_4$1, vue.toDisplayString(item.label), 1)
423
596
  ]),
424
597
  vue.createElementVNode("view", _hoisted_5, [
425
598
  item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
@@ -517,11 +690,137 @@
517
690
  };
518
691
  }
519
692
  });
520
- const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-2d7cd322"]]);
521
- const _hoisted_1 = { class: "hlw-page" };
522
- const _hoisted_2 = { class: "hlw-page-header" };
523
- const _hoisted_3 = { class: "hlw-page-footer" };
524
- const _sfc_main = /* @__PURE__ */ vue.defineComponent({
693
+ const index$8 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-2d7cd322"]]);
694
+ const _hoisted_1$6 = {
695
+ key: 0,
696
+ class: "hlw-modal-title"
697
+ };
698
+ const _hoisted_2$5 = { class: "hlw-modal-body" };
699
+ const _hoisted_3$3 = { class: "hlw-modal-footer" };
700
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
701
+ __name: "index",
702
+ props: {
703
+ show: { type: Boolean, default: false },
704
+ title: { default: "" },
705
+ showCancel: { type: Boolean, default: true },
706
+ confirmText: { default: "确定" },
707
+ cancelText: { default: "取消" },
708
+ closeOnMask: { type: Boolean, default: true }
709
+ },
710
+ emits: ["update:show", "confirm", "cancel"],
711
+ setup(__props, { emit: __emit }) {
712
+ const emit = __emit;
713
+ function close() {
714
+ emit("update:show", false);
715
+ }
716
+ function onMask() {
717
+ close();
718
+ }
719
+ function onConfirm() {
720
+ emit("confirm");
721
+ close();
722
+ }
723
+ function onCancel() {
724
+ emit("cancel");
725
+ close();
726
+ }
727
+ return (_ctx, _cache) => {
728
+ return __props.show ? (vue.openBlock(), vue.createElementBlock("view", {
729
+ key: 0,
730
+ class: "hlw-modal-mask",
731
+ onTap: vue.withModifiers(onMask, ["self"])
732
+ }, [
733
+ vue.createElementVNode("view", {
734
+ class: vue.normalizeClass(["hlw-modal", { "hlw-modal--show": __props.show }])
735
+ }, [
736
+ __props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$6, vue.toDisplayString(__props.title), 1)) : vue.createCommentVNode("", true),
737
+ vue.createElementVNode("view", _hoisted_2$5, [
738
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
739
+ ]),
740
+ vue.renderSlot(_ctx.$slots, "footer", {}, () => [
741
+ vue.createElementVNode("view", _hoisted_3$3, [
742
+ __props.showCancel ? (vue.openBlock(), vue.createElementBlock("view", {
743
+ key: 0,
744
+ class: "hlw-modal-btn hlw-modal-btn--cancel",
745
+ onTap: onCancel
746
+ }, vue.toDisplayString(__props.cancelText), 33)) : vue.createCommentVNode("", true),
747
+ vue.createElementVNode("view", {
748
+ class: "hlw-modal-btn hlw-modal-btn--confirm",
749
+ onTap: onConfirm
750
+ }, vue.toDisplayString(__props.confirmText), 33)
751
+ ])
752
+ ], true)
753
+ ], 2)
754
+ ], 32)) : vue.createCommentVNode("", true);
755
+ };
756
+ }
757
+ });
758
+ const index$7 = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-fa78c7c6"]]);
759
+ const _hoisted_1$5 = {
760
+ key: 1,
761
+ class: "hlw-notice-left-icon"
762
+ };
763
+ const _hoisted_2$4 = { class: "hlw-notice-text" };
764
+ const _hoisted_3$2 = {
765
+ key: 1,
766
+ class: "hlw-notice-text hlw-notice-text--ellipsis"
767
+ };
768
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
769
+ __name: "index",
770
+ props: {
771
+ text: { default: "" },
772
+ scrollable: { type: Boolean, default: true },
773
+ closable: { type: Boolean, default: false },
774
+ color: { default: "#ed6a0c" },
775
+ background: { default: "#fffbe8" },
776
+ speed: { default: 60 },
777
+ leftIcon: { default: "" }
778
+ },
779
+ emits: ["close", "click"],
780
+ setup(__props) {
781
+ const props = __props;
782
+ const closed = vue.ref(false);
783
+ const duration = vue.computed(() => Math.max(3, props.text.length * 20 / props.speed));
784
+ const animStyle = vue.computed(() => ({ animationDuration: `${duration.value}s` }));
785
+ function onClose() {
786
+ closed.value = true;
787
+ }
788
+ return (_ctx, _cache) => {
789
+ return !closed.value ? (vue.openBlock(), vue.createElementBlock("view", {
790
+ key: 0,
791
+ class: "hlw-notice",
792
+ style: vue.normalizeStyle({ color: __props.color, background: __props.background })
793
+ }, [
794
+ __props.leftIcon ? (vue.openBlock(), vue.createElementBlock("view", {
795
+ key: 0,
796
+ class: vue.normalizeClass([__props.leftIcon, "hlw-notice-left-icon"])
797
+ }, null, 2)) : (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$5, "📣")),
798
+ vue.createElementVNode("view", {
799
+ class: "hlw-notice-wrap",
800
+ onTap: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click"))
801
+ }, [
802
+ __props.scrollable ? (vue.openBlock(), vue.createElementBlock("view", {
803
+ key: 0,
804
+ class: "hlw-notice-scroll",
805
+ style: vue.normalizeStyle(animStyle.value)
806
+ }, [
807
+ vue.createElementVNode("text", _hoisted_2$4, vue.toDisplayString(__props.text), 1)
808
+ ], 4)) : (vue.openBlock(), vue.createElementBlock("text", _hoisted_3$2, vue.toDisplayString(__props.text), 1))
809
+ ], 32),
810
+ __props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
811
+ key: 2,
812
+ class: "hlw-notice-close",
813
+ onTap: onClose
814
+ }, "×", 32)) : vue.createCommentVNode("", true)
815
+ ], 4)) : vue.createCommentVNode("", true);
816
+ };
817
+ }
818
+ });
819
+ const index$6 = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-e3f87071"]]);
820
+ const _hoisted_1$4 = { class: "hlw-page" };
821
+ const _hoisted_2$3 = { class: "hlw-page-header" };
822
+ const _hoisted_3$1 = { class: "hlw-page-footer" };
823
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
525
824
  __name: "index",
526
825
  props: {
527
826
  title: { default: "" },
@@ -533,8 +832,8 @@
533
832
  return (_ctx, _cache) => {
534
833
  const _component_hlw_header = vue.resolveComponent("hlw-header");
535
834
  const _component_scroll_view = vue.resolveComponent("scroll-view");
536
- return vue.openBlock(), vue.createElementBlock("view", _hoisted_1, [
537
- vue.createElementVNode("view", _hoisted_2, [
835
+ return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$4, [
836
+ vue.createElementVNode("view", _hoisted_2$3, [
538
837
  vue.renderSlot(_ctx.$slots, "header", {}, () => [
539
838
  props.title || props.isBack ? (vue.openBlock(), vue.createBlock(_component_hlw_header, {
540
839
  key: 0,
@@ -556,32 +855,244 @@
556
855
  ]),
557
856
  _: 3
558
857
  }),
559
- vue.createElementVNode("view", _hoisted_3, [
858
+ vue.createElementVNode("view", _hoisted_3$1, [
560
859
  vue.renderSlot(_ctx.$slots, "footer", {}, void 0, true)
561
860
  ])
562
861
  ]);
563
862
  };
564
863
  }
565
864
  });
566
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d8833363"]]);
567
- function varsToStyle(vars) {
568
- return Object.entries(vars).map(([k, v]) => `${k}:${v}`).join(";") + ";";
569
- }
570
- function hexToRgba(hex, alpha) {
571
- const r = parseInt(hex.slice(1, 3), 16);
572
- const g = parseInt(hex.slice(3, 5), 16);
573
- const b = parseInt(hex.slice(5, 7), 16);
574
- return `rgba(${r},${g},${b},${alpha})`;
575
- }
576
- function darkenHex(hex, amount = 0.15) {
577
- const r = Math.max(0, Math.round(parseInt(hex.slice(1, 3), 16) * (1 - amount)));
578
- const g = Math.max(0, Math.round(parseInt(hex.slice(3, 5), 16) * (1 - amount)));
579
- const b = Math.max(0, Math.round(parseInt(hex.slice(5, 7), 16) * (1 - amount)));
580
- return `#${r.toString(16).padStart(2, "0")}${g.toString(16).padStart(2, "0")}${b.toString(16).padStart(2, "0")}`;
581
- }
865
+ const index$5 = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-d8833363"]]);
866
+ const _hoisted_1$3 = {
867
+ key: 0,
868
+ class: "hlw-popup-header"
869
+ };
870
+ const _hoisted_2$2 = { class: "hlw-popup-title" };
871
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
872
+ __name: "index",
873
+ props: {
874
+ show: { type: Boolean, default: false },
875
+ position: { default: "bottom" },
876
+ round: { type: Boolean, default: true },
877
+ closable: { type: Boolean, default: true },
878
+ title: { default: "" }
879
+ },
880
+ emits: ["update:show", "close"],
881
+ setup(__props, { emit: __emit }) {
882
+ const emit = __emit;
883
+ function onClose() {
884
+ emit("update:show", false);
885
+ emit("close");
886
+ }
887
+ return (_ctx, _cache) => {
888
+ return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
889
+ __props.show ? (vue.openBlock(), vue.createElementBlock("view", {
890
+ key: 0,
891
+ class: "hlw-popup-mask",
892
+ onTap: vue.withModifiers(onClose, ["self"])
893
+ }, null, 32)) : vue.createCommentVNode("", true),
894
+ vue.createElementVNode("view", {
895
+ class: vue.normalizeClass(["hlw-popup", [`hlw-popup--${__props.position}`, { "hlw-popup--show": __props.show, "hlw-popup--round": __props.round }]])
896
+ }, [
897
+ __props.title || __props.closable ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$3, [
898
+ vue.createElementVNode("text", _hoisted_2$2, vue.toDisplayString(__props.title), 1),
899
+ __props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
900
+ key: 0,
901
+ class: "hlw-popup-close",
902
+ onTap: onClose
903
+ }, "×", 32)) : vue.createCommentVNode("", true)
904
+ ])) : vue.createCommentVNode("", true),
905
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
906
+ ], 2)
907
+ ], 64);
908
+ };
909
+ }
910
+ });
911
+ const index$4 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-a6f8d1a5"]]);
912
+ const _hoisted_1$2 = ["value", "placeholder", "disabled"];
913
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
914
+ __name: "index",
915
+ props: {
916
+ modelValue: { default: "" },
917
+ placeholder: { default: "搜索" },
918
+ disabled: { type: Boolean, default: false },
919
+ clearable: { type: Boolean, default: true },
920
+ shape: { default: "round" },
921
+ background: { default: "" }
922
+ },
923
+ emits: ["update:modelValue", "search", "clear", "focus", "blur"],
924
+ setup(__props, { emit: __emit }) {
925
+ const emit = __emit;
926
+ function onInput(e) {
927
+ emit("update:modelValue", e.detail.value);
928
+ }
929
+ function onClear() {
930
+ emit("update:modelValue", "");
931
+ emit("clear");
932
+ }
933
+ return (_ctx, _cache) => {
934
+ return vue.openBlock(), vue.createElementBlock("view", {
935
+ class: "hlw-search",
936
+ style: vue.normalizeStyle(__props.background ? { background: __props.background } : {})
937
+ }, [
938
+ vue.createElementVNode("view", {
939
+ class: vue.normalizeClass(["hlw-search-box", { "hlw-search-box--round": __props.shape === "round" }])
940
+ }, [
941
+ _cache[3] || (_cache[3] = vue.createElementVNode("view", { class: "hlw-search-icon" }, "🔍", -1)),
942
+ vue.createElementVNode("input", {
943
+ class: "hlw-search-input",
944
+ type: "text",
945
+ value: __props.modelValue,
946
+ placeholder: __props.placeholder,
947
+ disabled: __props.disabled,
948
+ "confirm-type": "search",
949
+ onInput,
950
+ onConfirm: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("search", __props.modelValue)),
951
+ onFocus: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("focus")),
952
+ onBlur: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("blur"))
953
+ }, null, 40, _hoisted_1$2),
954
+ __props.clearable && __props.modelValue ? (vue.openBlock(), vue.createElementBlock("view", {
955
+ key: 0,
956
+ class: "hlw-search-clear",
957
+ onTap: onClear
958
+ }, "×", 32)) : vue.createCommentVNode("", true)
959
+ ], 2)
960
+ ], 4);
961
+ };
962
+ }
963
+ });
964
+ const index$3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-761affc9"]]);
965
+ const _hoisted_1$1 = { class: "hlw-skeleton-content" };
966
+ const _hoisted_2$1 = {
967
+ key: 0,
968
+ class: "hlw-skeleton-title"
969
+ };
970
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
971
+ __name: "index",
972
+ props: {
973
+ loading: { type: Boolean, default: true },
974
+ rows: { default: 3 },
975
+ avatar: { type: Boolean, default: false },
976
+ title: { type: Boolean, default: true },
977
+ animate: { type: Boolean, default: true },
978
+ avatarSize: { default: "medium" }
979
+ },
980
+ setup(__props) {
981
+ return (_ctx, _cache) => {
982
+ return __props.loading ? (vue.openBlock(), vue.createElementBlock("view", {
983
+ key: 0,
984
+ class: vue.normalizeClass(["hlw-skeleton", { "hlw-skeleton--animate": __props.animate }])
985
+ }, [
986
+ __props.avatar ? (vue.openBlock(), vue.createElementBlock("view", {
987
+ key: 0,
988
+ class: vue.normalizeClass(["hlw-skeleton-avatar", `hlw-skeleton-avatar--${__props.avatarSize}`])
989
+ }, null, 2)) : vue.createCommentVNode("", true),
990
+ vue.createElementVNode("view", _hoisted_1$1, [
991
+ __props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$1)) : vue.createCommentVNode("", true),
992
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.rows, (i) => {
993
+ return vue.openBlock(), vue.createElementBlock("view", {
994
+ key: i,
995
+ class: "hlw-skeleton-row",
996
+ style: vue.normalizeStyle({ width: i === __props.rows ? "60%" : "100%" })
997
+ }, null, 4);
998
+ }), 128))
999
+ ])
1000
+ ], 2)) : vue.renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true);
1001
+ };
1002
+ }
1003
+ });
1004
+ const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-c2d1fca4"]]);
1005
+ const _hoisted_1 = { class: "hlw-tabs-wrap" };
1006
+ const _hoisted_2 = ["onTap"];
1007
+ const _hoisted_3 = { class: "hlw-tab-text" };
1008
+ const _hoisted_4 = {
1009
+ key: 0,
1010
+ class: "hlw-tab-badge"
1011
+ };
1012
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1013
+ __name: "index",
1014
+ props: {
1015
+ modelValue: { default: 0 },
1016
+ items: { default: () => [] },
1017
+ scrollable: { type: Boolean, default: false },
1018
+ lineWidth: { default: "40rpx" }
1019
+ },
1020
+ emits: ["update:modelValue", "change"],
1021
+ setup(__props, { emit: __emit }) {
1022
+ const emit = __emit;
1023
+ function onChange(index2) {
1024
+ emit("update:modelValue", index2);
1025
+ emit("change", index2);
1026
+ }
1027
+ return (_ctx, _cache) => {
1028
+ const _component_scroll_view = vue.resolveComponent("scroll-view");
1029
+ return vue.openBlock(), vue.createBlock(_component_scroll_view, {
1030
+ class: "hlw-tabs",
1031
+ "scroll-x": __props.scrollable,
1032
+ enhanced: true,
1033
+ "show-scrollbar": false
1034
+ }, {
1035
+ default: vue.withCtx(() => [
1036
+ vue.createElementVNode("view", _hoisted_1, [
1037
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item, index2) => {
1038
+ return vue.openBlock(), vue.createElementBlock("view", {
1039
+ key: index2,
1040
+ class: vue.normalizeClass(["hlw-tab", { "hlw-tab--active": __props.modelValue === index2 }]),
1041
+ onTap: ($event) => onChange(index2)
1042
+ }, [
1043
+ vue.createElementVNode("text", _hoisted_3, vue.toDisplayString(typeof item === "string" ? item : item.label), 1),
1044
+ typeof item !== "string" && item.badge ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4, vue.toDisplayString(item.badge), 1)) : vue.createCommentVNode("", true),
1045
+ __props.modelValue === index2 ? (vue.openBlock(), vue.createElementBlock("view", {
1046
+ key: 1,
1047
+ class: "hlw-tab-line",
1048
+ style: vue.normalizeStyle({ width: __props.lineWidth })
1049
+ }, null, 4)) : vue.createCommentVNode("", true)
1050
+ ], 42, _hoisted_2);
1051
+ }), 128))
1052
+ ])
1053
+ ]),
1054
+ _: 1
1055
+ }, 8, ["scroll-x"]);
1056
+ };
1057
+ }
1058
+ });
1059
+ const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f6f0b949"]]);
1060
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1061
+ __name: "index",
1062
+ props: {
1063
+ type: { default: "primary" },
1064
+ plain: { type: Boolean, default: false },
1065
+ closable: { type: Boolean, default: false },
1066
+ size: { default: "medium" },
1067
+ round: { type: Boolean, default: false },
1068
+ color: { default: "" }
1069
+ },
1070
+ emits: ["click", "close"],
1071
+ setup(__props) {
1072
+ const props = __props;
1073
+ const customStyle = vue.computed(() => {
1074
+ if (!props.color)
1075
+ return {};
1076
+ return props.plain ? { color: props.color, borderColor: props.color, background: "transparent" } : { background: props.color, color: "#fff", borderColor: props.color };
1077
+ });
1078
+ return (_ctx, _cache) => {
1079
+ return vue.openBlock(), vue.createElementBlock("view", {
1080
+ class: vue.normalizeClass(["hlw-tag", [`hlw-tag--${__props.type}`, `hlw-tag--${__props.size}`, { "hlw-tag--plain": __props.plain, "hlw-tag--round": __props.round }]]),
1081
+ style: vue.normalizeStyle(customStyle.value),
1082
+ onTap: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("click"))
1083
+ }, [
1084
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true),
1085
+ __props.closable ? (vue.openBlock(), vue.createElementBlock("view", {
1086
+ key: 0,
1087
+ class: "hlw-tag-close",
1088
+ onTap: _cache[0] || (_cache[0] = vue.withModifiers(($event) => _ctx.$emit("close"), ["stop"]))
1089
+ }, "×", 32)) : vue.createCommentVNode("", true)
1090
+ ], 38);
1091
+ };
1092
+ }
1093
+ });
1094
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-42e75bd0"]]);
582
1095
  const FONT_SCALE_KEY = "hlw_font_scale";
583
- const THEME_COLOR_KEY = "hlw_theme_color";
584
- const THEME_CHANGE_EVENT = "hlw:theme-change";
585
1096
  const FONT_PRESETS = {
586
1097
  small: {
587
1098
  label: "小字体",
@@ -640,6 +1151,8 @@
640
1151
  function getCurrentFontVars() {
641
1152
  return FONT_PRESETS[getCurrentFontScale()].vars;
642
1153
  }
1154
+ const { hexToRgba, darkenHex } = mpCore.useColor();
1155
+ const THEME_COLOR_KEY = "hlw_theme_color";
643
1156
  const DEFAULT_THEMES = [
644
1157
  { label: "默认蓝", value: "#3b82f6" },
645
1158
  { label: "活力橙", value: "#f97316" },
@@ -665,6 +1178,8 @@
665
1178
  "--primary-dark": darkenHex(color)
666
1179
  };
667
1180
  }
1181
+ const { varsToStyle } = mpCore.useColor();
1182
+ const THEME_CHANGE_EVENT = "hlw:theme-change";
668
1183
  function buildThemeStyle() {
669
1184
  return varsToStyle({
670
1185
  ...getCurrentFontVars(),
@@ -720,14 +1235,24 @@
720
1235
  exports2.DEFAULT_THEMES = DEFAULT_THEMES;
721
1236
  exports2.FONT_PRESETS = FONT_PRESETS;
722
1237
  exports2.FONT_SCALE_KEY = FONT_SCALE_KEY;
723
- exports2.HlwAd = _sfc_main$7;
724
- exports2.HlwAvatar = index$6;
725
- exports2.HlwCard = index$5;
726
- exports2.HlwEmpty = index$4;
727
- exports2.HlwHeader = index$3;
728
- exports2.HlwLoading = index$2;
729
- exports2.HlwMenu = index$1;
730
- exports2.HlwPage = index;
1238
+ exports2.HlwAd = _sfc_main$h;
1239
+ exports2.HlwAvatar = index$g;
1240
+ exports2.HlwButton = index$f;
1241
+ exports2.HlwCard = index$e;
1242
+ exports2.HlwCell = index$d;
1243
+ exports2.HlwDivider = index$c;
1244
+ exports2.HlwEmpty = index$b;
1245
+ exports2.HlwHeader = index$a;
1246
+ exports2.HlwLoading = index$9;
1247
+ exports2.HlwMenu = index$8;
1248
+ exports2.HlwModal = index$7;
1249
+ exports2.HlwNoticeBar = index$6;
1250
+ exports2.HlwPage = index$5;
1251
+ exports2.HlwPopup = index$4;
1252
+ exports2.HlwSearch = index$3;
1253
+ exports2.HlwSkeleton = index$2;
1254
+ exports2.HlwTabs = index$1;
1255
+ exports2.HlwTag = index;
731
1256
  exports2.THEME_CHANGE_EVENT = THEME_CHANGE_EVENT;
732
1257
  exports2.THEME_COLOR_KEY = THEME_COLOR_KEY;
733
1258
  exports2.buildThemeStyle = buildThemeStyle;