@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
|
@@ -1,24 +1,53 @@
|
|
|
1
|
+
/** 图标主题色,对应预设的背景色 + 前景色组合 */
|
|
1
2
|
export type HlwMenuIconTheme = "orange" | "purple" | "cyan" | "emerald" | "slate" | "wechat" | "rose" | "blue" | "red";
|
|
3
|
+
/** 标签 / 角标的主题色 */
|
|
2
4
|
export type HlwMenuTagTheme = "orange" | "red" | "wechat" | "rose" | "blue";
|
|
3
5
|
export interface HlwMenuItem {
|
|
4
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* 图标的 CSS class,使用 UnoCSS / iconify 图标名。
|
|
8
|
+
* @example "i-fa6-solid-gear"
|
|
9
|
+
*/
|
|
5
10
|
icon: string;
|
|
6
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* 图标背景色主题。不传默认使用 `slate`(灰色)。
|
|
13
|
+
* @default "slate"
|
|
14
|
+
*/
|
|
7
15
|
iconTheme?: HlwMenuIconTheme;
|
|
8
|
-
/**
|
|
16
|
+
/** 菜单项文字 */
|
|
9
17
|
label: string;
|
|
10
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* 跳转路径。有值时使用 `<navigator>` 包裹,点击直接跳转,不触发 `click` 事件。
|
|
20
|
+
* @example "/pages/setting/index"
|
|
21
|
+
*/
|
|
11
22
|
url?: string;
|
|
12
|
-
/**
|
|
23
|
+
/**
|
|
24
|
+
* 右侧纯文字说明,仅列表模式显示。适合展示版本号、状态等辅助信息。
|
|
25
|
+
* @example "v1.2.0"
|
|
26
|
+
*/
|
|
13
27
|
value?: string;
|
|
14
|
-
/**
|
|
28
|
+
/**
|
|
29
|
+
* 右侧彩色标签文字(列表模式)或图标右上角角标文字(宫格模式)。
|
|
30
|
+
* @example "NEW"
|
|
31
|
+
*/
|
|
15
32
|
tag?: string;
|
|
16
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* 标签 / 角标的主题色。不传默认 `rose`(红色)。
|
|
35
|
+
* @default "rose"
|
|
36
|
+
*/
|
|
17
37
|
tagTheme?: HlwMenuTagTheme;
|
|
18
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* 标签是否呼吸闪烁动画,用于吸引用户注意。
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
19
42
|
tagPulse?: boolean;
|
|
20
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* 显示加载中转圈图标,仅列表模式生效。适合异步操作进行中的状态。
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
21
47
|
loading?: boolean;
|
|
22
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* 是否渲染该菜单项。`false` 时从列表中隐藏,不占位。
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
23
52
|
visible?: boolean;
|
|
24
53
|
}
|
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$
|
|
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$
|
|
37
|
-
const _hoisted_2$
|
|
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$
|
|
42
|
-
const _sfc_main$
|
|
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$
|
|
68
|
-
vue.createElementVNode("text", _hoisted_3$
|
|
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$
|
|
82
|
-
const _hoisted_1$
|
|
83
|
-
const _hoisted_2$
|
|
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$
|
|
88
|
-
const _hoisted_4$
|
|
89
|
-
const _hoisted_5$
|
|
90
|
-
const _hoisted_6$
|
|
91
|
-
const _hoisted_7$
|
|
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$
|
|
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$
|
|
113
|
-
_ctx.$slots.header || __props.title || __props.icon || _ctx.$slots["header-left"] || _ctx.$slots["header-right"] ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
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$
|
|
116
|
-
_ctx.$slots["header-left"] || __props.title || __props.icon ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_4$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
143
|
-
const _hoisted_1$
|
|
144
|
-
const _hoisted_2$
|
|
145
|
-
const _hoisted_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$
|
|
150
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
165
|
-
vue.createElementVNode("text", _hoisted_4$
|
|
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$
|
|
172
|
-
const _hoisted_1$
|
|
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$
|
|
176
|
+
const _hoisted_2$3 = {
|
|
177
177
|
key: 0,
|
|
178
178
|
class: "header-title header-title--center"
|
|
179
179
|
};
|
|
180
|
-
const _sfc_main$
|
|
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$
|
|
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$
|
|
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,43 +278,43 @@
|
|
|
278
278
|
};
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
|
-
const index$
|
|
282
|
-
const _hoisted_1$
|
|
283
|
-
const _hoisted_2$
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
302
|
-
const _hoisted_1$
|
|
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$
|
|
306
|
+
const _hoisted_2$1 = {
|
|
307
307
|
key: 1,
|
|
308
308
|
class: "hlw-menu-title-divider"
|
|
309
309
|
};
|
|
310
|
-
const _hoisted_3$
|
|
311
|
-
const _hoisted_4
|
|
312
|
-
const _hoisted_5
|
|
313
|
-
const _hoisted_6
|
|
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 = {
|
|
314
314
|
key: 0,
|
|
315
315
|
class: "hlw-menu-value"
|
|
316
316
|
};
|
|
317
|
-
const _hoisted_7
|
|
317
|
+
const _hoisted_7 = ["onClick"];
|
|
318
318
|
const _hoisted_8 = { class: "hlw-menu-left" };
|
|
319
319
|
const _hoisted_9 = { class: "hlw-menu-label" };
|
|
320
320
|
const _hoisted_10 = { class: "hlw-menu-right" };
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
const _hoisted_16 = ["onClick"];
|
|
336
336
|
const _hoisted_17 = { class: "hlw-menu-grid-icon-wrap" };
|
|
337
337
|
const _hoisted_18 = { class: "hlw-menu-grid-label" };
|
|
338
|
-
const _sfc_main$
|
|
338
|
+
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
339
339
|
__name: "index",
|
|
340
340
|
props: {
|
|
341
341
|
items: {},
|
|
@@ -357,10 +357,10 @@
|
|
|
357
357
|
return vue.openBlock(), vue.createElementBlock("view", {
|
|
358
358
|
class: vue.normalizeClass(["hlw-menu", { "hlw-menu--no-border": !props.border }])
|
|
359
359
|
}, [
|
|
360
|
-
props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$
|
|
360
|
+
props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
|
|
361
361
|
vue.createElementVNode("text", null, vue.toDisplayString(props.title), 1)
|
|
362
362
|
])) : vue.createCommentVNode("", true),
|
|
363
|
-
props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$
|
|
363
|
+
props.title ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_2$1)) : vue.createCommentVNode("", true),
|
|
364
364
|
props.mode === "list" ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 2 }, vue.renderList(visibleItems.value, (item, index2) => {
|
|
365
365
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
|
|
366
366
|
item.url ? (vue.openBlock(), vue.createBlock(_component_navigator, {
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"hover-class": "hlw-menu-item--active"
|
|
371
371
|
}, {
|
|
372
372
|
default: vue.withCtx(() => [
|
|
373
|
-
vue.createElementVNode("view", _hoisted_3$
|
|
373
|
+
vue.createElementVNode("view", _hoisted_3$1, [
|
|
374
374
|
vue.createElementVNode("view", {
|
|
375
375
|
class: vue.normalizeClass(["hlw-menu-icon", `hlw-menu-icon--${item.iconTheme || "slate"}`])
|
|
376
376
|
}, [
|
|
@@ -378,10 +378,10 @@
|
|
|
378
378
|
class: vue.normalizeClass(item.icon)
|
|
379
379
|
}, null, 2)
|
|
380
380
|
], 2),
|
|
381
|
-
vue.createElementVNode("text", _hoisted_4
|
|
381
|
+
vue.createElementVNode("text", _hoisted_4, vue.toDisplayString(item.label), 1)
|
|
382
382
|
]),
|
|
383
|
-
vue.createElementVNode("view", _hoisted_5
|
|
384
|
-
item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6
|
|
383
|
+
vue.createElementVNode("view", _hoisted_5, [
|
|
384
|
+
item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_6, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
|
|
385
385
|
item.tag ? (vue.openBlock(), vue.createElementBlock("text", {
|
|
386
386
|
key: 1,
|
|
387
387
|
class: vue.normalizeClass(["hlw-menu-tag", [`hlw-menu-tag--${item.tagTheme || "rose"}`, item.tagPulse ? "hlw-menu-tag-pulse" : ""]])
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
}, vue.toDisplayString(item.tag), 3)) : vue.createCommentVNode("", true),
|
|
416
416
|
_cache[1] || (_cache[1] = vue.createElementVNode("text", { class: "i-fa6-solid-chevron-right hlw-menu-arrow" }, null, -1))
|
|
417
417
|
])
|
|
418
|
-
], 8, _hoisted_7
|
|
418
|
+
], 8, _hoisted_7)),
|
|
419
419
|
index2 < visibleItems.value.length - 1 ? (vue.openBlock(), vue.createElementBlock("view", _hoisted_13)) : vue.createCommentVNode("", true)
|
|
420
420
|
], 64);
|
|
421
421
|
}), 128)) : (vue.openBlock(), vue.createElementBlock("view", {
|
|
@@ -476,59 +476,7 @@
|
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
478
|
});
|
|
479
|
-
const index$
|
|
480
|
-
const _hoisted_1$1 = { class: "hlw-menu-list" };
|
|
481
|
-
const _hoisted_2$1 = ["onTap"];
|
|
482
|
-
const _hoisted_3$1 = { class: "hlw-menu-list__left" };
|
|
483
|
-
const _hoisted_4 = {
|
|
484
|
-
key: 0,
|
|
485
|
-
class: "hlw-menu-list__icon"
|
|
486
|
-
};
|
|
487
|
-
const _hoisted_5 = { class: "hlw-menu-list__label" };
|
|
488
|
-
const _hoisted_6 = { class: "hlw-menu-list__right" };
|
|
489
|
-
const _hoisted_7 = {
|
|
490
|
-
key: 0,
|
|
491
|
-
class: "hlw-menu-list__value"
|
|
492
|
-
};
|
|
493
|
-
const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
494
|
-
__name: "index",
|
|
495
|
-
props: {
|
|
496
|
-
items: {}
|
|
497
|
-
},
|
|
498
|
-
emits: ["click"],
|
|
499
|
-
setup(__props, { emit: __emit }) {
|
|
500
|
-
const emit = __emit;
|
|
501
|
-
function onTap(item) {
|
|
502
|
-
if (item.url) {
|
|
503
|
-
uni.navigateTo({ url: item.url });
|
|
504
|
-
} else if (item.action) {
|
|
505
|
-
item.action();
|
|
506
|
-
}
|
|
507
|
-
emit("click", item);
|
|
508
|
-
}
|
|
509
|
-
return (_ctx, _cache) => {
|
|
510
|
-
return vue.openBlock(), vue.createElementBlock("view", _hoisted_1$1, [
|
|
511
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.items, (item) => {
|
|
512
|
-
return vue.openBlock(), vue.createElementBlock("view", {
|
|
513
|
-
key: item.key,
|
|
514
|
-
class: "hlw-menu-list__item",
|
|
515
|
-
onTap: ($event) => onTap(item)
|
|
516
|
-
}, [
|
|
517
|
-
vue.createElementVNode("view", _hoisted_3$1, [
|
|
518
|
-
item.icon ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_4, vue.toDisplayString(item.icon), 1)) : vue.createCommentVNode("", true),
|
|
519
|
-
vue.createElementVNode("text", _hoisted_5, vue.toDisplayString(item.label), 1)
|
|
520
|
-
]),
|
|
521
|
-
vue.createElementVNode("view", _hoisted_6, [
|
|
522
|
-
item.value ? (vue.openBlock(), vue.createElementBlock("text", _hoisted_7, vue.toDisplayString(item.value), 1)) : vue.createCommentVNode("", true),
|
|
523
|
-
_cache[0] || (_cache[0] = vue.createElementVNode("text", { class: "hlw-menu-list__arrow" }, "›", -1))
|
|
524
|
-
])
|
|
525
|
-
], 40, _hoisted_2$1);
|
|
526
|
-
}), 128))
|
|
527
|
-
]);
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
});
|
|
531
|
-
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-b3bfda9a"]]);
|
|
532
480
|
const _hoisted_1 = { class: "hlw-page" };
|
|
533
481
|
const _hoisted_2 = { class: "hlw-page-header" };
|
|
534
482
|
const _hoisted_3 = { class: "hlw-page-footer" };
|
|
@@ -574,14 +522,13 @@
|
|
|
574
522
|
}
|
|
575
523
|
});
|
|
576
524
|
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-155bc02a"]]);
|
|
577
|
-
exports2.HlwAd = _sfc_main$
|
|
578
|
-
exports2.HlwAvatar = index$
|
|
579
|
-
exports2.HlwCard = index$
|
|
580
|
-
exports2.HlwEmpty = index$
|
|
581
|
-
exports2.HlwHeader = index$
|
|
582
|
-
exports2.HlwLoading = index$
|
|
583
|
-
exports2.HlwMenu = index$
|
|
584
|
-
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;
|
|
585
532
|
exports2.HlwPage = index;
|
|
586
533
|
Object.defineProperty(exports2, Symbol.toStringTag, { value: "Module" });
|
|
587
534
|
});
|