@mooncellwiki/prts-design-vue 0.1.0 → 0.1.1
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/Voice/AkVoice.vue.d.ts +12 -2
- package/dist/components/Voice/AkVoiceList.vue.d.ts +17 -5
- package/dist/components/Voice/context.d.ts +10 -1
- package/dist/icons.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +181 -109
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ var icons = {
|
|
|
25
25
|
"list": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M4 7h16M4 12h16M4 17h10\"/>",
|
|
26
26
|
"print": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M7 8V3h10v5M5 8h14a2 2 0 0 1 2 2v6h-4v-3H7v3H3v-6a2 2 0 0 1 2-2zm2 8v5h10v-5\"/>",
|
|
27
27
|
"upload": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M12 16V4m-5 5 5-5 5 5M4 20h16\"/>",
|
|
28
|
+
"download": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M12 4v12m-5-5 5 5 5-5M4 20h16\"/>",
|
|
28
29
|
"grid": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M4 4h6v6H4zm10 0h6v6h-6zM4 14h6v6H4zm10 0h6v6h-6z\"/>",
|
|
29
30
|
"refresh": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M20 12a8 8 0 1 1-2.3-5.7M20 4v5h-5\"/>",
|
|
30
31
|
"quote": "<path fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" d=\"M6 16h3l2-4V7H5v5h3zm9 0h3l2-4V7h-6v5h3z\"/>",
|
|
@@ -219,7 +220,8 @@ var AkButtonGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
219
220
|
return openBlock(), createElementBlock("div", {
|
|
220
221
|
class: "ak-btn-group",
|
|
221
222
|
role: "group",
|
|
222
|
-
"aria-label": __props.label
|
|
223
|
+
"aria-label": __props.label,
|
|
224
|
+
"data-no-toggle": ""
|
|
223
225
|
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1$97);
|
|
224
226
|
};
|
|
225
227
|
}
|
|
@@ -713,7 +715,7 @@ var _hoisted_5$22 = {
|
|
|
713
715
|
key: 0,
|
|
714
716
|
class: "ak-card__eyebrow"
|
|
715
717
|
};
|
|
716
|
-
var _hoisted_6$
|
|
718
|
+
var _hoisted_6$17 = {
|
|
717
719
|
key: 1,
|
|
718
720
|
class: "ak-card__footer"
|
|
719
721
|
};
|
|
@@ -777,7 +779,7 @@ var AkCard_default = /* @__PURE__ */ defineComponent({
|
|
|
777
779
|
default: withCtx(() => [renderSlot(_ctx.$slots, "header", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])]),
|
|
778
780
|
_: 3
|
|
779
781
|
})) : createCommentVNode("", true)], 64)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")]),
|
|
780
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
782
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_6$17, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
|
|
781
783
|
]),
|
|
782
784
|
_: 3
|
|
783
785
|
}, 8, ["class", "href"]);
|
|
@@ -1171,13 +1173,13 @@ var _hoisted_5$20 = {
|
|
|
1171
1173
|
key: 1,
|
|
1172
1174
|
class: "ak-sr-only"
|
|
1173
1175
|
};
|
|
1174
|
-
var _hoisted_6$
|
|
1176
|
+
var _hoisted_6$16 = {
|
|
1175
1177
|
key: 1,
|
|
1176
1178
|
class: "ak-spin",
|
|
1177
1179
|
role: "status"
|
|
1178
1180
|
};
|
|
1179
|
-
var _hoisted_7$
|
|
1180
|
-
var _hoisted_8$
|
|
1181
|
+
var _hoisted_7$12 = { class: "ak-spin__desc" };
|
|
1182
|
+
var _hoisted_8$10 = ["aria-label"];
|
|
1181
1183
|
//#endregion
|
|
1182
1184
|
//#region src/components/Spinner/AkSpinner.vue
|
|
1183
1185
|
var AkSpinner_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1216,7 +1218,7 @@ var AkSpinner_default = /* @__PURE__ */ defineComponent({
|
|
|
1216
1218
|
_cache[0] || (_cache[0] = createElementVNode("i", null, null, -1)),
|
|
1217
1219
|
_cache[1] || (_cache[1] = createElementVNode("i", null, null, -1)),
|
|
1218
1220
|
_cache[2] || (_cache[2] = createElementVNode("i", null, null, -1))
|
|
1219
|
-
], 64)) : createCommentVNode("", true)], 6), __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4$28, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : (openBlock(), createElementBlock("span", _hoisted_5$20, toDisplayString(__props.label), 1))])) : createCommentVNode("", true)], 8, _hoisted_1$80)) : __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1221
|
+
], 64)) : createCommentVNode("", true)], 6), __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_4$28, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : (openBlock(), createElementBlock("span", _hoisted_5$20, toDisplayString(__props.label), 1))])) : createCommentVNode("", true)], 8, _hoisted_1$80)) : __props.description || _ctx.$slots.description ? (openBlock(), createElementBlock("div", _hoisted_6$16, [createElementVNode("span", {
|
|
1220
1222
|
class: normalizeClass(graphicClass.value),
|
|
1221
1223
|
style: normalizeStyle(graphicStyle.value),
|
|
1222
1224
|
"aria-hidden": "true"
|
|
@@ -1224,7 +1226,7 @@ var AkSpinner_default = /* @__PURE__ */ defineComponent({
|
|
|
1224
1226
|
_cache[3] || (_cache[3] = createElementVNode("i", null, null, -1)),
|
|
1225
1227
|
_cache[4] || (_cache[4] = createElementVNode("i", null, null, -1)),
|
|
1226
1228
|
_cache[5] || (_cache[5] = createElementVNode("i", null, null, -1))
|
|
1227
|
-
], 64)) : createCommentVNode("", true)], 6), createElementVNode("span", _hoisted_7$
|
|
1229
|
+
], 64)) : createCommentVNode("", true)], 6), createElementVNode("span", _hoisted_7$12, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])])) : (openBlock(), createElementBlock("span", {
|
|
1228
1230
|
key: 2,
|
|
1229
1231
|
class: normalizeClass(graphicClass.value),
|
|
1230
1232
|
style: normalizeStyle(graphicStyle.value),
|
|
@@ -1234,7 +1236,7 @@ var AkSpinner_default = /* @__PURE__ */ defineComponent({
|
|
|
1234
1236
|
_cache[6] || (_cache[6] = createElementVNode("i", null, null, -1)),
|
|
1235
1237
|
_cache[7] || (_cache[7] = createElementVNode("i", null, null, -1)),
|
|
1236
1238
|
_cache[8] || (_cache[8] = createElementVNode("i", null, null, -1))
|
|
1237
|
-
], 64)) : createCommentVNode("", true)], 14, _hoisted_8$
|
|
1239
|
+
], 64)) : createCommentVNode("", true)], 14, _hoisted_8$10));
|
|
1238
1240
|
};
|
|
1239
1241
|
}
|
|
1240
1242
|
});
|
|
@@ -1599,7 +1601,7 @@ var _hoisted_4$26 = {
|
|
|
1599
1601
|
"aria-hidden": "true"
|
|
1600
1602
|
};
|
|
1601
1603
|
var _hoisted_5$19 = { role: "none" };
|
|
1602
|
-
var _hoisted_6$
|
|
1604
|
+
var _hoisted_6$15 = {
|
|
1603
1605
|
key: 0,
|
|
1604
1606
|
class: "ak-menu__sep",
|
|
1605
1607
|
role: "separator"
|
|
@@ -1775,7 +1777,7 @@ var AkDropdown_default = /* @__PURE__ */ defineComponent({
|
|
|
1775
1777
|
role: "group",
|
|
1776
1778
|
"aria-label": o.label
|
|
1777
1779
|
}, [createElementVNode("div", _hoisted_4$26, toDisplayString(o.label), 1), createElementVNode("ul", _hoisted_5$19, [(openBlock(true), createElementBlock(Fragment, null, renderList(o.children, (c, j) => {
|
|
1778
|
-
return openBlock(), createElementBlock(Fragment, { key: c.key ?? `_${j}` }, [c.type === "divider" ? (openBlock(), createElementBlock("li", _hoisted_6$
|
|
1780
|
+
return openBlock(), createElementBlock(Fragment, { key: c.key ?? `_${j}` }, [c.type === "divider" ? (openBlock(), createElementBlock("li", _hoisted_6$15)) : (openBlock(), createBlock(MenuItem_default, {
|
|
1779
1781
|
key: 1,
|
|
1780
1782
|
option: c,
|
|
1781
1783
|
value: __props.value,
|
|
@@ -1812,7 +1814,7 @@ var _hoisted_4$25 = {
|
|
|
1812
1814
|
class: "ak-dialog__title"
|
|
1813
1815
|
};
|
|
1814
1816
|
var _hoisted_5$18 = { class: "ak-dialog__body" };
|
|
1815
|
-
var _hoisted_6$
|
|
1817
|
+
var _hoisted_6$14 = {
|
|
1816
1818
|
key: 1,
|
|
1817
1819
|
class: "ak-dialog__foot"
|
|
1818
1820
|
};
|
|
@@ -1929,7 +1931,7 @@ var AkDialog_default = /* @__PURE__ */ defineComponent({
|
|
|
1929
1931
|
onClick: _cache[0] || (_cache[0] = ($event) => model.value = false)
|
|
1930
1932
|
})) : createCommentVNode("", true)])) : createCommentVNode("", true),
|
|
1931
1933
|
createElementVNode("div", _hoisted_5$18, [renderSlot(_ctx.$slots, "default")]),
|
|
1932
|
-
_ctx.$slots.footer || __props.positiveText || __props.negativeText ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
1934
|
+
_ctx.$slots.footer || __props.positiveText || __props.negativeText ? (openBlock(), createElementBlock("div", _hoisted_6$14, [renderSlot(_ctx.$slots, "footer", {}, () => [__props.negativeText ? (openBlock(), createBlock(AkButton_default, {
|
|
1933
1935
|
key: 0,
|
|
1934
1936
|
onClick: onNegative
|
|
1935
1937
|
}, {
|
|
@@ -1975,7 +1977,7 @@ var _hoisted_4$24 = {
|
|
|
1975
1977
|
class: "ak-toast__title"
|
|
1976
1978
|
};
|
|
1977
1979
|
var _hoisted_5$17 = ["onClick"];
|
|
1978
|
-
var _hoisted_6$
|
|
1980
|
+
var _hoisted_6$13 = {
|
|
1979
1981
|
key: 1,
|
|
1980
1982
|
class: "ak-toast__progress",
|
|
1981
1983
|
"aria-hidden": "true"
|
|
@@ -2109,7 +2111,7 @@ var AkToastProvider_default = /* @__PURE__ */ defineComponent({
|
|
|
2109
2111
|
"aria-label": "关闭",
|
|
2110
2112
|
onClick: ($event) => destroy(t.key)
|
|
2111
2113
|
}, "✕", 8, _hoisted_5$17)) : createCommentVNode("", true),
|
|
2112
|
-
t.duration > 0 ? (openBlock(), createElementBlock("i", _hoisted_6$
|
|
2114
|
+
t.duration > 0 ? (openBlock(), createElementBlock("i", _hoisted_6$13)) : createCommentVNode("", true)
|
|
2113
2115
|
], 46, _hoisted_2$46);
|
|
2114
2116
|
}), 128))], 8, _hoisted_1$73)], 8, ["to", "disabled"]))], 64);
|
|
2115
2117
|
};
|
|
@@ -2122,7 +2124,7 @@ var _hoisted_2$45 = { key: 0 };
|
|
|
2122
2124
|
var _hoisted_3$33 = ["aria-labelledby"];
|
|
2123
2125
|
var _hoisted_4$23 = { class: "ak-progress-label" };
|
|
2124
2126
|
var _hoisted_5$16 = ["id"];
|
|
2125
|
-
var _hoisted_6$
|
|
2127
|
+
var _hoisted_6$12 = { key: 0 };
|
|
2126
2128
|
//#endregion
|
|
2127
2129
|
//#region src/components/Progress/AkProgress.vue
|
|
2128
2130
|
var AkProgress_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2175,7 +2177,7 @@ var AkProgress_default = /* @__PURE__ */ defineComponent({
|
|
|
2175
2177
|
"aria-label": __props.label,
|
|
2176
2178
|
class: ["ak-ring", __props.variant !== "accent" && `ak-ring--${__props.variant}`],
|
|
2177
2179
|
style: { "--_v": pct.value }
|
|
2178
|
-
}), [__props.showIndicator || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$45, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(pct.value) + "%", 1)])])) : createCommentVNode("", true)], 16, _hoisted_1$72)) : __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, aria.value, { "aria-labelledby": __props.label ? `${unref(id)}-label` : void 0 }), [createElementVNode("div", _hoisted_4$23, [createElementVNode("span", { id: `${unref(id)}-label` }, toDisplayString(__props.label), 9, _hoisted_5$16), __props.showIndicator || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_6$
|
|
2180
|
+
}), [__props.showIndicator || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_2$45, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(pct.value) + "%", 1)])])) : createCommentVNode("", true)], 16, _hoisted_1$72)) : __props.label || _ctx.$slots.default ? (openBlock(), createElementBlock("div", mergeProps({ key: 1 }, aria.value, { "aria-labelledby": __props.label ? `${unref(id)}-label` : void 0 }), [createElementVNode("div", _hoisted_4$23, [createElementVNode("span", { id: `${unref(id)}-label` }, toDisplayString(__props.label), 9, _hoisted_5$16), __props.showIndicator || _ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_6$12, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(pct.value) + "%", 1)])])) : createCommentVNode("", true)]), createElementVNode("div", {
|
|
2179
2181
|
class: normalizeClass(barClasses.value),
|
|
2180
2182
|
style: normalizeStyle(barStyle.value)
|
|
2181
2183
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (n) => {
|
|
@@ -3590,6 +3592,7 @@ var AkRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
3590
3592
|
const stop = enabled.includes(model.value) ? model.value : enabled[0];
|
|
3591
3593
|
return h("div", mergeProps(common, {
|
|
3592
3594
|
class: "ak-btn-group",
|
|
3595
|
+
"data-no-toggle": "",
|
|
3593
3596
|
onKeydown: onKey
|
|
3594
3597
|
}), nodes.map((n) => n.type === AkRadioButton_default ? cloneVNode(n, { tabindex: n.props?.value === stop ? 0 : -1 }) : n));
|
|
3595
3598
|
};
|
|
@@ -4081,6 +4084,7 @@ var AkPhaseTabs_default = /* @__PURE__ */ defineComponent({
|
|
|
4081
4084
|
class: "ak-phase-tabs",
|
|
4082
4085
|
role: "radiogroup",
|
|
4083
4086
|
"aria-label": __props.label,
|
|
4087
|
+
"data-no-toggle": "",
|
|
4084
4088
|
onKeydown: onKey
|
|
4085
4089
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(phases.value, (p) => {
|
|
4086
4090
|
return openBlock(), createElementBlock("button", {
|
|
@@ -4194,13 +4198,13 @@ var _hoisted_5$13 = {
|
|
|
4194
4198
|
key: 0,
|
|
4195
4199
|
class: "ak-op-card__prof"
|
|
4196
4200
|
};
|
|
4197
|
-
var _hoisted_6$
|
|
4198
|
-
var _hoisted_7$
|
|
4201
|
+
var _hoisted_6$11 = ["src", "alt"];
|
|
4202
|
+
var _hoisted_7$11 = {
|
|
4199
4203
|
key: 1,
|
|
4200
4204
|
class: "ak-op-card__elite"
|
|
4201
4205
|
};
|
|
4202
|
-
var _hoisted_8$
|
|
4203
|
-
var _hoisted_9$
|
|
4206
|
+
var _hoisted_8$9 = ["src", "alt"];
|
|
4207
|
+
var _hoisted_9$6 = {
|
|
4204
4208
|
key: 2,
|
|
4205
4209
|
class: "ak-op-card__badge"
|
|
4206
4210
|
};
|
|
@@ -4271,12 +4275,12 @@ var AkOpCard_default = /* @__PURE__ */ defineComponent({
|
|
|
4271
4275
|
__props.professionIcon ? (openBlock(), createElementBlock("span", _hoisted_5$13, [createElementVNode("img", {
|
|
4272
4276
|
src: __props.professionIcon,
|
|
4273
4277
|
alt: __props.profession ?? ""
|
|
4274
|
-
}, null, 8, _hoisted_6$
|
|
4275
|
-
__props.eliteIcon ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4278
|
+
}, null, 8, _hoisted_6$11)])) : createCommentVNode("", true),
|
|
4279
|
+
__props.eliteIcon ? (openBlock(), createElementBlock("span", _hoisted_7$11, [createElementVNode("img", {
|
|
4276
4280
|
src: __props.eliteIcon,
|
|
4277
4281
|
alt: __props.elite === void 0 ? "" : `精英${CN[__props.elite]}`
|
|
4278
|
-
}, null, 8, _hoisted_8$
|
|
4279
|
-
_ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
4282
|
+
}, null, 8, _hoisted_8$9)])) : createCommentVNode("", true),
|
|
4283
|
+
_ctx.$slots.badge ? (openBlock(), createElementBlock("span", _hoisted_9$6, [renderSlot(_ctx.$slots, "badge")])) : createCommentVNode("", true)
|
|
4280
4284
|
]), createElementVNode("span", _hoisted_10$4, [createTextVNode(toDisplayString(__props.name), 1), __props.sub ? (openBlock(), createElementBlock("span", _hoisted_11$4, toDisplayString(__props.sub), 1)) : createCommentVNode("", true)])]),
|
|
4281
4285
|
_: 3
|
|
4282
4286
|
}, 8, [
|
|
@@ -4620,13 +4624,13 @@ var _hoisted_5$12 = {
|
|
|
4620
4624
|
key: 1,
|
|
4621
4625
|
lang: "ja"
|
|
4622
4626
|
};
|
|
4623
|
-
var _hoisted_6$
|
|
4627
|
+
var _hoisted_6$10 = {
|
|
4624
4628
|
key: 0,
|
|
4625
4629
|
class: "ak-skill__stats"
|
|
4626
4630
|
};
|
|
4627
|
-
var _hoisted_7$
|
|
4628
|
-
var _hoisted_8$
|
|
4629
|
-
var _hoisted_9$
|
|
4631
|
+
var _hoisted_7$10 = { key: 0 };
|
|
4632
|
+
var _hoisted_8$8 = { key: 1 };
|
|
4633
|
+
var _hoisted_9$5 = { key: 2 };
|
|
4630
4634
|
var _hoisted_10$3 = {
|
|
4631
4635
|
key: 0,
|
|
4632
4636
|
class: "ak-skill__aside"
|
|
@@ -4692,16 +4696,16 @@ var AkSkill_default = /* @__PURE__ */ defineComponent({
|
|
|
4692
4696
|
auto: __props.trigger === "auto"
|
|
4693
4697
|
}, null, 8, ["auto"])) : createCommentVNode("", true),
|
|
4694
4698
|
renderSlot(_ctx.$slots, "header-extra")
|
|
4695
|
-
]), hasStats.value ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
4696
|
-
__props.cost !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
4699
|
+
]), hasStats.value ? (openBlock(), createElementBlock("div", _hoisted_6$10, [
|
|
4700
|
+
__props.cost !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_7$10, [createVNode(AkSpValue_default, {
|
|
4697
4701
|
kind: "cost",
|
|
4698
4702
|
value: __props.cost
|
|
4699
4703
|
}, null, 8, ["value"])])) : createCommentVNode("", true),
|
|
4700
|
-
__props.init !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_8$
|
|
4704
|
+
__props.init !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_8$8, [createVNode(AkSpValue_default, {
|
|
4701
4705
|
kind: "init",
|
|
4702
4706
|
value: __props.init
|
|
4703
4707
|
}, null, 8, ["value"])])) : createCommentVNode("", true),
|
|
4704
|
-
__props.duration !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
4708
|
+
__props.duration !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_9$5, [_cache[0] || (_cache[0] = createTextVNode("持续 ", -1)), createElementVNode("b", null, toDisplayString(durationText.value), 1)])) : createCommentVNode("", true)
|
|
4705
4709
|
])) : createCommentVNode("", true)]),
|
|
4706
4710
|
wide.value ? (openBlock(), createElementBlock("div", _hoisted_10$3, [__props.unlock ? (openBlock(), createElementBlock("span", _hoisted_11$3, [__props.unlockIcon ? (openBlock(), createElementBlock("img", {
|
|
4707
4711
|
key: 0,
|
|
@@ -4798,6 +4802,7 @@ var AkSkillLevels_default = /* @__PURE__ */ defineComponent({
|
|
|
4798
4802
|
role: "radiogroup",
|
|
4799
4803
|
"aria-label": __props.label,
|
|
4800
4804
|
"aria-disabled": __props.disabled || void 0,
|
|
4805
|
+
"data-no-toggle": "",
|
|
4801
4806
|
onKeydown: onKey
|
|
4802
4807
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(levels.value, (lv) => {
|
|
4803
4808
|
return openBlock(), createElementBlock("button", {
|
|
@@ -4833,10 +4838,10 @@ var _hoisted_5$11 = {
|
|
|
4833
4838
|
class: "num",
|
|
4834
4839
|
scope: "col"
|
|
4835
4840
|
};
|
|
4836
|
-
var _hoisted_6$
|
|
4837
|
-
var _hoisted_7$
|
|
4838
|
-
var _hoisted_8$
|
|
4839
|
-
var _hoisted_9$
|
|
4841
|
+
var _hoisted_6$9 = ["aria-current"];
|
|
4842
|
+
var _hoisted_7$9 = { class: "lv" };
|
|
4843
|
+
var _hoisted_8$7 = { class: "desc" };
|
|
4844
|
+
var _hoisted_9$4 = ["textContent"];
|
|
4840
4845
|
var _hoisted_10$2 = ["textContent"];
|
|
4841
4846
|
var _hoisted_11$2 = ["textContent"];
|
|
4842
4847
|
var _hoisted_12$2 = {
|
|
@@ -4893,12 +4898,12 @@ var AkSkillSheet_default = /* @__PURE__ */ defineComponent({
|
|
|
4893
4898
|
class: normalizeClass(rowClass(i + 1)),
|
|
4894
4899
|
"aria-current": i + 1 === __props.highlight || void 0
|
|
4895
4900
|
}, [
|
|
4896
|
-
createElementVNode("td", _hoisted_7$
|
|
4901
|
+
createElementVNode("td", _hoisted_7$9, [createVNode(LevelLabel_default, {
|
|
4897
4902
|
level: i + 1,
|
|
4898
4903
|
icons: __props.masteryIcons,
|
|
4899
4904
|
numeral: ""
|
|
4900
4905
|
}, null, 8, ["level", "icons"])]),
|
|
4901
|
-
createElementVNode("td", _hoisted_8$
|
|
4906
|
+
createElementVNode("td", _hoisted_8$7, [renderSlot(_ctx.$slots, "description", {
|
|
4902
4907
|
row,
|
|
4903
4908
|
level: i + 1
|
|
4904
4909
|
}, () => [createVNode(AkRichText_default, {
|
|
@@ -4913,7 +4918,7 @@ var AkSkillSheet_default = /* @__PURE__ */ defineComponent({
|
|
|
4913
4918
|
createElementVNode("td", {
|
|
4914
4919
|
class: "num",
|
|
4915
4920
|
textContent: toDisplayString(num(row.init))
|
|
4916
|
-
}, null, 8, _hoisted_9$
|
|
4921
|
+
}, null, 8, _hoisted_9$4),
|
|
4917
4922
|
createElementVNode("td", {
|
|
4918
4923
|
class: "num",
|
|
4919
4924
|
textContent: toDisplayString(num(row.cost))
|
|
@@ -4922,7 +4927,7 @@ var AkSkillSheet_default = /* @__PURE__ */ defineComponent({
|
|
|
4922
4927
|
class: "num",
|
|
4923
4928
|
textContent: toDisplayString(num(row.duration))
|
|
4924
4929
|
}, null, 8, _hoisted_11$2)
|
|
4925
|
-
], 10, _hoisted_6$
|
|
4930
|
+
], 10, _hoisted_6$9);
|
|
4926
4931
|
}), 128))])], 8, _hoisted_2$18),
|
|
4927
4932
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_12$2, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
|
|
4928
4933
|
]);
|
|
@@ -4944,9 +4949,9 @@ var _hoisted_5$10 = [
|
|
|
4944
4949
|
"onFocus",
|
|
4945
4950
|
"onKeydown"
|
|
4946
4951
|
];
|
|
4947
|
-
var _hoisted_6$
|
|
4948
|
-
var _hoisted_7$
|
|
4949
|
-
var _hoisted_8$
|
|
4952
|
+
var _hoisted_6$8 = ["data-var"];
|
|
4953
|
+
var _hoisted_7$8 = { scope: "row" };
|
|
4954
|
+
var _hoisted_8$6 = {
|
|
4950
4955
|
key: 1,
|
|
4951
4956
|
class: "ak-skill-sheet__note"
|
|
4952
4957
|
};
|
|
@@ -5040,6 +5045,7 @@ var AkSkillMatrix_default = /* @__PURE__ */ defineComponent({
|
|
|
5040
5045
|
createElementVNode("table", {
|
|
5041
5046
|
class: "ak-skill-matrix",
|
|
5042
5047
|
"aria-label": __props.label,
|
|
5048
|
+
"data-no-toggle": "",
|
|
5043
5049
|
onMouseover: onOver,
|
|
5044
5050
|
onMouseleave: _cache[1] || (_cache[1] = ($event) => hovered.value = void 0),
|
|
5045
5051
|
onClick
|
|
@@ -5067,7 +5073,7 @@ var AkSkillMatrix_default = /* @__PURE__ */ defineComponent({
|
|
|
5067
5073
|
return openBlock(), createElementBlock("tr", {
|
|
5068
5074
|
key: row.key ?? r,
|
|
5069
5075
|
"data-var": row.key
|
|
5070
|
-
}, [createElementVNode("th", _hoisted_7$
|
|
5076
|
+
}, [createElementVNode("th", _hoisted_7$8, [row.sp ? (openBlock(), createBlock(AkSpValue_default, {
|
|
5071
5077
|
key: 0,
|
|
5072
5078
|
kind: row.sp
|
|
5073
5079
|
}, {
|
|
@@ -5078,10 +5084,10 @@ var AkSkillMatrix_default = /* @__PURE__ */ defineComponent({
|
|
|
5078
5084
|
key: lv,
|
|
5079
5085
|
class: normalizeClass(cellClass(lv, { "is-up": isUp(row, lv - 1) }))
|
|
5080
5086
|
}, toDisplayString(row.values[lv - 1]), 3);
|
|
5081
|
-
}), 128))], 8, _hoisted_6$
|
|
5087
|
+
}), 128))], 8, _hoisted_6$8);
|
|
5082
5088
|
}), 128))])
|
|
5083
5089
|
], 40, _hoisted_4$14),
|
|
5084
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$
|
|
5090
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_8$6, [renderSlot(_ctx.$slots, "footer")])) : createCommentVNode("", true)
|
|
5085
5091
|
]);
|
|
5086
5092
|
};
|
|
5087
5093
|
}
|
|
@@ -5105,13 +5111,13 @@ var _hoisted_4$13 = {
|
|
|
5105
5111
|
class: "ak-potential ak-potential--bare"
|
|
5106
5112
|
};
|
|
5107
5113
|
var _hoisted_5$9 = ["src"];
|
|
5108
|
-
var _hoisted_6$
|
|
5114
|
+
var _hoisted_6$7 = {
|
|
5109
5115
|
key: 1,
|
|
5110
5116
|
class: "ak-check ak-talent-table__toggle"
|
|
5111
5117
|
};
|
|
5112
|
-
var _hoisted_7$
|
|
5113
|
-
var _hoisted_8$
|
|
5114
|
-
var _hoisted_9$
|
|
5118
|
+
var _hoisted_7$7 = ["rowspan"];
|
|
5119
|
+
var _hoisted_8$5 = { class: "cond" };
|
|
5120
|
+
var _hoisted_9$3 = { class: "desc" };
|
|
5115
5121
|
var _hoisted_10$1 = { class: "ak-talent-table__base" };
|
|
5116
5122
|
var _hoisted_11$1 = { class: "ak-talent-table__pot" };
|
|
5117
5123
|
var _hoisted_12$1 = { key: 0 };
|
|
@@ -5200,7 +5206,7 @@ var AkTalentTable_default = /* @__PURE__ */ defineComponent({
|
|
|
5200
5206
|
createTextVNode(" 潜能" + toDisplayString(__props.potentialRank), 1),
|
|
5201
5207
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "ak-sr-only" }, "加成", -1))
|
|
5202
5208
|
])) : createCommentVNode("", true),
|
|
5203
|
-
__props.calcToggle ? (openBlock(), createElementBlock("label", _hoisted_6$
|
|
5209
|
+
__props.calcToggle ? (openBlock(), createElementBlock("label", _hoisted_6$7, [withDirectives(createElementVNode("input", {
|
|
5204
5210
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => calc.value = $event),
|
|
5205
5211
|
type: "checkbox"
|
|
5206
5212
|
}, null, 512), [[vModelCheckbox, calc.value]]), _cache[3] || (_cache[3] = createTextVNode("算法", -1))])) : createCommentVNode("", true)
|
|
@@ -5212,12 +5218,12 @@ var AkTalentTable_default = /* @__PURE__ */ defineComponent({
|
|
|
5212
5218
|
key: 0,
|
|
5213
5219
|
class: "name",
|
|
5214
5220
|
rowspan: spans.value[i] > 1 ? spans.value[i] : void 0
|
|
5215
|
-
}, toDisplayString(row.name), 9, _hoisted_7$
|
|
5216
|
-
createElementVNode("td", _hoisted_8$
|
|
5221
|
+
}, toDisplayString(row.name), 9, _hoisted_7$7)) : createCommentVNode("", true),
|
|
5222
|
+
createElementVNode("td", _hoisted_8$5, [renderSlot(_ctx.$slots, "condition", {
|
|
5217
5223
|
row,
|
|
5218
5224
|
index: i
|
|
5219
5225
|
}, () => [createTextVNode(toDisplayString(row.condition), 1)])]),
|
|
5220
|
-
createElementVNode("td", _hoisted_9$
|
|
5226
|
+
createElementVNode("td", _hoisted_9$3, [row.potential !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_10$1, [renderSlot(_ctx.$slots, "description", {
|
|
5221
5227
|
row,
|
|
5222
5228
|
index: i,
|
|
5223
5229
|
potential: false
|
|
@@ -5498,10 +5504,10 @@ var _hoisted_5$8 = {
|
|
|
5498
5504
|
key: 0,
|
|
5499
5505
|
class: "ak-module__type"
|
|
5500
5506
|
};
|
|
5501
|
-
var _hoisted_6$
|
|
5502
|
-
var _hoisted_7$
|
|
5503
|
-
var _hoisted_8$
|
|
5504
|
-
var _hoisted_9 = ["id"];
|
|
5507
|
+
var _hoisted_6$6 = ["src"];
|
|
5508
|
+
var _hoisted_7$6 = { class: "ak-module__name" };
|
|
5509
|
+
var _hoisted_8$4 = ["data-ak-tip"];
|
|
5510
|
+
var _hoisted_9$2 = ["id"];
|
|
5505
5511
|
var _hoisted_10 = {
|
|
5506
5512
|
key: 1,
|
|
5507
5513
|
class: "ak-module__more"
|
|
@@ -5571,21 +5577,21 @@ var AkModule_default = /* @__PURE__ */ defineComponent({
|
|
|
5571
5577
|
key: 0,
|
|
5572
5578
|
src: __props.typeIcon,
|
|
5573
5579
|
alt: ""
|
|
5574
|
-
}, null, 8, _hoisted_6$
|
|
5575
|
-
createElementVNode("h4", _hoisted_7$
|
|
5580
|
+
}, null, 8, _hoisted_6$6)) : createCommentVNode("", true), createTextVNode(toDisplayString(__props.typeName), 1)])) : createCommentVNode("", true),
|
|
5581
|
+
createElementVNode("h4", _hoisted_7$6, toDisplayString(__props.name), 1),
|
|
5576
5582
|
__props.hint ? (openBlock(), createElementBlock("span", {
|
|
5577
5583
|
key: 1,
|
|
5578
5584
|
class: "ak-module__hint ak-tip--wide",
|
|
5579
5585
|
"data-ak-tip": __props.hint,
|
|
5580
5586
|
tabindex: "0"
|
|
5581
|
-
}, "说明 ⓘ", 8, _hoisted_8$
|
|
5587
|
+
}, "说明 ⓘ", 8, _hoisted_8$4)) : createCommentVNode("", true),
|
|
5582
5588
|
renderSlot(_ctx.$slots, "header-extra")
|
|
5583
5589
|
]),
|
|
5584
5590
|
_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
5585
5591
|
key: 0,
|
|
5586
5592
|
id: `${unref(id)}-story`,
|
|
5587
5593
|
class: "ak-module__story"
|
|
5588
|
-
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_9)) : createCommentVNode("", true),
|
|
5594
|
+
}, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_9$2)) : createCommentVNode("", true),
|
|
5589
5595
|
__props.collapsible && _ctx.$slots.default ? (openBlock(), createElementBlock("label", _hoisted_10, [
|
|
5590
5596
|
withDirectives(createElementVNode("input", {
|
|
5591
5597
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => open.value = $event),
|
|
@@ -5622,8 +5628,8 @@ var _hoisted_2$11 = { class: "ak-module__lv" };
|
|
|
5622
5628
|
var _hoisted_3$10 = { "aria-hidden": "true" };
|
|
5623
5629
|
var _hoisted_4$9 = { class: "stats" };
|
|
5624
5630
|
var _hoisted_5$7 = { class: "ak-module__stats" };
|
|
5625
|
-
var _hoisted_6$
|
|
5626
|
-
var _hoisted_7$
|
|
5631
|
+
var _hoisted_6$5 = { class: "ak-rt-vup" };
|
|
5632
|
+
var _hoisted_7$5 = {
|
|
5627
5633
|
key: 0,
|
|
5628
5634
|
class: "ak-module__kicker"
|
|
5629
5635
|
};
|
|
@@ -5647,9 +5653,9 @@ var AkModuleStage_default = /* @__PURE__ */ defineComponent({
|
|
|
5647
5653
|
}, null, 2);
|
|
5648
5654
|
}), 64))])])]),
|
|
5649
5655
|
createElementVNode("td", _hoisted_4$9, [createElementVNode("span", _hoisted_5$7, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.stats, (v, k) => {
|
|
5650
|
-
return openBlock(), createElementBlock("span", { key: k }, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_6$
|
|
5656
|
+
return openBlock(), createElementBlock("span", { key: k }, [createTextVNode(toDisplayString(k) + " ", 1), createElementVNode("span", _hoisted_6$5, toDisplayString(v), 1)]);
|
|
5651
5657
|
}), 128))])]),
|
|
5652
|
-
createElementVNode("td", null, [__props.kicker ? (openBlock(), createElementBlock("span", _hoisted_7$
|
|
5658
|
+
createElementVNode("td", null, [__props.kicker ? (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(__props.kicker), 1)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "default")])
|
|
5653
5659
|
]);
|
|
5654
5660
|
};
|
|
5655
5661
|
}
|
|
@@ -5683,7 +5689,7 @@ var AkModuleUnlock_default = /* @__PURE__ */ defineComponent({
|
|
|
5683
5689
|
});
|
|
5684
5690
|
//#endregion
|
|
5685
5691
|
//#region src/components/Voice/context.ts
|
|
5686
|
-
/** AkVoiceList 给 AkVoice
|
|
5692
|
+
/** AkVoiceList 给 AkVoice 的:当前语种(及其徽标)、文本语言选项与选中的几种 */
|
|
5687
5693
|
var voiceListKey = Symbol("AkVoiceList");
|
|
5688
5694
|
/** 游戏语种键 → HTML lang(读屏按语种发音);不认识的键不写 lang */
|
|
5689
5695
|
var HTML_LANG = {
|
|
@@ -5695,41 +5701,79 @@ var HTML_LANG = {
|
|
|
5695
5701
|
};
|
|
5696
5702
|
//#endregion
|
|
5697
5703
|
//#region src/components/Voice/AkVoiceList.vue?vue&type=script&setup=true&lang.ts
|
|
5698
|
-
var _hoisted_1$13 =
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5704
|
+
var _hoisted_1$13 = {
|
|
5705
|
+
key: 0,
|
|
5706
|
+
class: "ak-voice-toolbar ak-not-prose",
|
|
5707
|
+
"data-no-toggle": ""
|
|
5708
|
+
};
|
|
5709
|
+
var _hoisted_2$9 = ["aria-labelledby"];
|
|
5710
|
+
var _hoisted_3$8 = ["id"];
|
|
5711
|
+
var _hoisted_4$7 = ["aria-pressed", "onClick"];
|
|
5712
|
+
var _hoisted_5$6 = ["aria-labelledby"];
|
|
5713
|
+
var _hoisted_6$4 = ["id"];
|
|
5714
|
+
var _hoisted_7$4 = ["aria-pressed", "onClick"];
|
|
5715
|
+
var _hoisted_8$3 = { key: 0 };
|
|
5716
|
+
var _hoisted_9$1 = { class: "ak-voice-list ak-not-prose" };
|
|
5703
5717
|
//#endregion
|
|
5704
5718
|
//#region src/components/Voice/AkVoiceList.vue
|
|
5705
5719
|
var AkVoiceList_default = /* @__PURE__ */ defineComponent({
|
|
5706
5720
|
__name: "AkVoiceList",
|
|
5707
|
-
props: /*@__PURE__*/ mergeModels({
|
|
5721
|
+
props: /*@__PURE__*/ mergeModels({
|
|
5722
|
+
languages: { default: () => [] },
|
|
5723
|
+
texts: { default: () => [] }
|
|
5724
|
+
}, {
|
|
5708
5725
|
"modelValue": {},
|
|
5709
|
-
"modelModifiers": {}
|
|
5726
|
+
"modelModifiers": {},
|
|
5727
|
+
"shownTexts": {},
|
|
5728
|
+
"shownTextsModifiers": {}
|
|
5710
5729
|
}),
|
|
5711
|
-
emits: ["update:modelValue"],
|
|
5730
|
+
emits: ["update:modelValue", "update:shownTexts"],
|
|
5712
5731
|
setup(__props) {
|
|
5713
5732
|
const props = __props;
|
|
5714
5733
|
/** 当前语种(languages 里的 value);不绑定时是第一个 */
|
|
5715
5734
|
const lang = useModel(__props, "modelValue");
|
|
5735
|
+
/** 选中的文本语言(texts 里的 value,可多个、可为空);不绑定时默认第一个 */
|
|
5736
|
+
const shownTexts = useModel(__props, "shownTexts");
|
|
5716
5737
|
const current = computed(() => lang.value ?? props.languages[0]?.value);
|
|
5738
|
+
const shown = computed(() => shownTexts.value ?? (props.texts[0] ? [props.texts[0].value] : []));
|
|
5739
|
+
function toggleText(value) {
|
|
5740
|
+
const on = !shown.value.includes(value);
|
|
5741
|
+
shownTexts.value = props.texts.map((t) => t.value).filter((v) => v === value ? on : shown.value.includes(v));
|
|
5742
|
+
}
|
|
5717
5743
|
provide(voiceListKey, computed(() => ({
|
|
5718
5744
|
lang: current.value,
|
|
5719
|
-
languages: props.languages
|
|
5745
|
+
languages: props.languages,
|
|
5746
|
+
texts: props.texts,
|
|
5747
|
+
shownTexts: shown.value
|
|
5720
5748
|
})));
|
|
5721
5749
|
const id = useId();
|
|
5722
5750
|
return (_ctx, _cache) => {
|
|
5723
|
-
return openBlock(), createElementBlock("div", null, [__props.languages.length ? (openBlock(), createElementBlock("div", {
|
|
5751
|
+
return openBlock(), createElementBlock("div", null, [__props.texts.length || __props.languages.length ? (openBlock(), createElementBlock("div", _hoisted_1$13, [__props.texts.length ? (openBlock(), createElementBlock("div", {
|
|
5724
5752
|
key: 0,
|
|
5725
|
-
class: "ak-voice-langs
|
|
5753
|
+
class: "ak-voice-langs",
|
|
5754
|
+
role: "group",
|
|
5755
|
+
"aria-labelledby": `${unref(id)}-texts`
|
|
5756
|
+
}, [createElementVNode("span", {
|
|
5757
|
+
id: `${unref(id)}-texts`,
|
|
5758
|
+
class: "ak-overline"
|
|
5759
|
+
}, "文本", 8, _hoisted_3$8), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.texts, (t) => {
|
|
5760
|
+
return openBlock(), createElementBlock("button", {
|
|
5761
|
+
key: t.value,
|
|
5762
|
+
type: "button",
|
|
5763
|
+
class: normalizeClass(["ak-chip", { "is-active": shown.value.includes(t.value) }]),
|
|
5764
|
+
"aria-pressed": shown.value.includes(t.value),
|
|
5765
|
+
onClick: ($event) => toggleText(t.value)
|
|
5766
|
+
}, toDisplayString(t.label), 11, _hoisted_4$7);
|
|
5767
|
+
}), 128))], 8, _hoisted_2$9)) : createCommentVNode("", true), __props.languages.length ? (openBlock(), createElementBlock("div", {
|
|
5768
|
+
key: 1,
|
|
5769
|
+
class: "ak-voice-langs",
|
|
5726
5770
|
role: "group",
|
|
5727
5771
|
"aria-labelledby": `${unref(id)}-langs`
|
|
5728
5772
|
}, [
|
|
5729
5773
|
createElementVNode("span", {
|
|
5730
5774
|
id: `${unref(id)}-langs`,
|
|
5731
5775
|
class: "ak-overline"
|
|
5732
|
-
}, "语种", 8,
|
|
5776
|
+
}, "语种", 8, _hoisted_6$4),
|
|
5733
5777
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.languages, (l) => {
|
|
5734
5778
|
return openBlock(), createElementBlock("button", {
|
|
5735
5779
|
key: l.value,
|
|
@@ -5737,10 +5781,10 @@ var AkVoiceList_default = /* @__PURE__ */ defineComponent({
|
|
|
5737
5781
|
class: normalizeClass(["ak-chip", { "is-active": l.value === current.value }]),
|
|
5738
5782
|
"aria-pressed": l.value === current.value,
|
|
5739
5783
|
onClick: ($event) => lang.value = l.value
|
|
5740
|
-
}, [createTextVNode(toDisplayString(l.label), 1), l.cv ? (openBlock(), createElementBlock("small",
|
|
5784
|
+
}, [createTextVNode(toDisplayString(l.label), 1), l.cv ? (openBlock(), createElementBlock("small", _hoisted_8$3, toDisplayString(l.cv), 1)) : createCommentVNode("", true)], 10, _hoisted_7$4);
|
|
5741
5785
|
}), 128)),
|
|
5742
5786
|
renderSlot(_ctx.$slots, "header-extra")
|
|
5743
|
-
], 8,
|
|
5787
|
+
], 8, _hoisted_5$6)) : createCommentVNode("", true)])) : createCommentVNode("", true), createElementVNode("div", _hoisted_9$1, [renderSlot(_ctx.$slots, "default")])]);
|
|
5744
5788
|
};
|
|
5745
5789
|
}
|
|
5746
5790
|
});
|
|
@@ -5779,25 +5823,31 @@ var _hoisted_2$8 = [
|
|
|
5779
5823
|
"aria-pressed",
|
|
5780
5824
|
"disabled"
|
|
5781
5825
|
];
|
|
5782
|
-
var _hoisted_3$7 =
|
|
5783
|
-
|
|
5826
|
+
var _hoisted_3$7 = [
|
|
5827
|
+
"href",
|
|
5828
|
+
"download",
|
|
5829
|
+
"aria-label",
|
|
5830
|
+
"title"
|
|
5831
|
+
];
|
|
5832
|
+
var _hoisted_4$6 = { class: "ak-voice__title" };
|
|
5833
|
+
var _hoisted_5$5 = {
|
|
5784
5834
|
key: 0,
|
|
5785
5835
|
class: "ak-voice__lang"
|
|
5786
5836
|
};
|
|
5787
|
-
var
|
|
5837
|
+
var _hoisted_6$3 = {
|
|
5788
5838
|
key: 1,
|
|
5789
5839
|
class: "ak-voice__cond"
|
|
5790
5840
|
};
|
|
5791
|
-
var
|
|
5841
|
+
var _hoisted_7$3 = {
|
|
5792
5842
|
key: 2,
|
|
5793
5843
|
class: "ak-code-id"
|
|
5794
5844
|
};
|
|
5795
|
-
var
|
|
5845
|
+
var _hoisted_8$2 = {
|
|
5796
5846
|
key: 3,
|
|
5797
5847
|
class: "ak-voice__wave",
|
|
5798
5848
|
"aria-hidden": "true"
|
|
5799
5849
|
};
|
|
5800
|
-
var
|
|
5850
|
+
var _hoisted_9 = ["lang"];
|
|
5801
5851
|
//#endregion
|
|
5802
5852
|
//#region src/components/Voice/AkVoice.vue
|
|
5803
5853
|
var AkVoice_default = /* @__PURE__ */ defineComponent({
|
|
@@ -5808,7 +5858,9 @@ var AkVoice_default = /* @__PURE__ */ defineComponent({
|
|
|
5808
5858
|
src: { default: void 0 },
|
|
5809
5859
|
code: { default: void 0 },
|
|
5810
5860
|
unlock: { default: void 0 },
|
|
5811
|
-
lang: { default: void 0 }
|
|
5861
|
+
lang: { default: void 0 },
|
|
5862
|
+
download: { default: void 0 },
|
|
5863
|
+
downloadName: { default: void 0 }
|
|
5812
5864
|
},
|
|
5813
5865
|
setup(__props) {
|
|
5814
5866
|
const props = __props;
|
|
@@ -5818,8 +5870,13 @@ var AkVoice_default = /* @__PURE__ */ defineComponent({
|
|
|
5818
5870
|
if (v === void 0 || typeof v === "string") return v;
|
|
5819
5871
|
return (lang.value !== void 0 ? v[lang.value] : void 0) ?? Object.values(v)[0];
|
|
5820
5872
|
}
|
|
5821
|
-
const text = computed(() =>
|
|
5873
|
+
const text = computed(() => {
|
|
5874
|
+
const v = props.text;
|
|
5875
|
+
if (typeof v === "string" || !list?.value.texts.length) return pick(v);
|
|
5876
|
+
return list.value.shownTexts.map((k) => v[k]).filter(Boolean).join("\n");
|
|
5877
|
+
});
|
|
5822
5878
|
const src = computed(() => pick(props.src));
|
|
5879
|
+
const download = computed(() => pick(props.download));
|
|
5823
5880
|
const badge = computed(() => {
|
|
5824
5881
|
const k = lang.value;
|
|
5825
5882
|
return k && (list?.value.languages.find((l) => l.value === k)?.badge ?? k.toUpperCase());
|
|
@@ -5831,25 +5888,40 @@ var AkVoice_default = /* @__PURE__ */ defineComponent({
|
|
|
5831
5888
|
if (src.value) toggle(id, src.value);
|
|
5832
5889
|
}
|
|
5833
5890
|
return (_ctx, _cache) => {
|
|
5834
|
-
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5891
|
+
return openBlock(), createElementBlock("div", _hoisted_1$12, [
|
|
5892
|
+
createElementVNode("button", {
|
|
5893
|
+
type: "button",
|
|
5894
|
+
class: normalizeClass(["ak-voice__play", { "is-playing": isPlaying.value }]),
|
|
5895
|
+
"aria-label": `播放 ${__props.title}`,
|
|
5896
|
+
"aria-pressed": isPlaying.value,
|
|
5897
|
+
disabled: !src.value,
|
|
5898
|
+
"data-no-toggle": "",
|
|
5899
|
+
onClick
|
|
5900
|
+
}, null, 10, _hoisted_2$8),
|
|
5901
|
+
download.value ? (openBlock(), createElementBlock("a", {
|
|
5902
|
+
key: 0,
|
|
5903
|
+
class: "ak-voice__download",
|
|
5904
|
+
href: download.value,
|
|
5905
|
+
download: __props.downloadName ?? "",
|
|
5906
|
+
"aria-label": `下载 ${__props.title}`,
|
|
5907
|
+
title: `下载 ${__props.title}`
|
|
5908
|
+
}, [createVNode(AkIcon_default, {
|
|
5909
|
+
name: "download",
|
|
5910
|
+
size: 16
|
|
5911
|
+
})], 8, _hoisted_3$7)) : createCommentVNode("", true),
|
|
5912
|
+
createElementVNode("div", null, [createElementVNode("div", _hoisted_4$6, [
|
|
5913
|
+
createTextVNode(toDisplayString(__props.title) + " ", 1),
|
|
5914
|
+
badge.value ? (openBlock(), createElementBlock("span", _hoisted_5$5, toDisplayString(badge.value), 1)) : createCommentVNode("", true),
|
|
5915
|
+
__props.unlock ? (openBlock(), createElementBlock("span", _hoisted_6$3, toDisplayString(__props.unlock), 1)) : createCommentVNode("", true),
|
|
5916
|
+
__props.code ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString(__props.code), 1)) : createCommentVNode("", true),
|
|
5917
|
+
isPlaying.value ? (openBlock(), createElementBlock("span", _hoisted_8$2, [(openBlock(), createElementBlock(Fragment, null, renderList(5, (n) => {
|
|
5918
|
+
return createElementVNode("i", { key: n });
|
|
5919
|
+
}), 64))])) : createCommentVNode("", true)
|
|
5920
|
+
]), createElementVNode("div", {
|
|
5921
|
+
class: "ak-voice__text",
|
|
5922
|
+
lang: lang.value && unref(HTML_LANG)[lang.value]
|
|
5923
|
+
}, toDisplayString(text.value), 9, _hoisted_9)])
|
|
5924
|
+
]);
|
|
5853
5925
|
};
|
|
5854
5926
|
}
|
|
5855
5927
|
});
|