@mooncellwiki/prts-design-vue 0.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/LICENSE +21 -0
- package/README.md +21 -0
- package/dist/components/Accordion/AkCollapse.vue.d.ts +31 -0
- package/dist/components/Accordion/AkCollapseItem.vue.d.ts +27 -0
- package/dist/components/Accordion/context.d.ts +7 -0
- package/dist/components/Archive/AkArchive.vue.d.ts +35 -0
- package/dist/components/Archive/AkArchivePlay.vue.d.ts +18 -0
- package/dist/components/Attrs/AkAttr.vue.d.ts +26 -0
- package/dist/components/Attrs/AkAttrs.vue.d.ts +18 -0
- package/dist/components/Avatar/AkAvatar.vue.d.ts +30 -0
- package/dist/components/Avatar/AkAvatarGroup.vue.d.ts +35 -0
- package/dist/components/Avatar/context.d.ts +6 -0
- package/dist/components/Badge/AkBadge.vue.d.ts +35 -0
- package/dist/components/Breadcrumb/AkBreadcrumb.vue.d.ts +25 -0
- package/dist/components/Breadcrumb/AkBreadcrumbItem.vue.d.ts +20 -0
- package/dist/components/Button/AkButton.vue.d.ts +47 -0
- package/dist/components/Button/AkButtonGroup.vue.d.ts +21 -0
- package/dist/components/Button/context.d.ts +7 -0
- package/dist/components/Camp/AkCamp.vue.d.ts +18 -0
- package/dist/components/Card/AkCard.vue.d.ts +54 -0
- package/dist/components/Card/AkCardGrid.vue.d.ts +13 -0
- package/dist/components/Cbox/AkCbox.vue.d.ts +33 -0
- package/dist/components/Checkbox/AkCheckbox.vue.d.ts +39 -0
- package/dist/components/Checkbox/AkCheckboxGroup.vue.d.ts +43 -0
- package/dist/components/Checkbox/context.d.ts +15 -0
- package/dist/components/Chip/AkChip.vue.d.ts +35 -0
- package/dist/components/Dialog/AkDialog.vue.d.ts +57 -0
- package/dist/components/Dialogue/AkDialogue.vue.d.ts +14 -0
- package/dist/components/Dialogue/AkDialogueLine.vue.d.ts +20 -0
- package/dist/components/Divider/AkDivider.vue.d.ts +21 -0
- package/dist/components/Dossier/AkDossier.vue.d.ts +28 -0
- package/dist/components/Dossier/AkRedacted.vue.d.ts +21 -0
- package/dist/components/Dropdown/AkDropdown.vue.d.ts +47 -0
- package/dist/components/Dropdown/MenuItem.vue.d.ts +14 -0
- package/dist/components/Dropdown/types.d.ts +27 -0
- package/dist/components/Elite/AkElite.vue.d.ts +33 -0
- package/dist/components/Empty/AkEmpty.vue.d.ts +37 -0
- package/dist/components/Enemy/AkEnemy.vue.d.ts +34 -0
- package/dist/components/Event/AkCountdown.vue.d.ts +25 -0
- package/dist/components/Event/AkEvent.vue.d.ts +34 -0
- package/dist/components/Fab/AkBackTop.vue.d.ts +36 -0
- package/dist/components/Field/AkField.vue.d.ts +35 -0
- package/dist/components/Field/context.d.ts +48 -0
- package/dist/components/Heading/AkHeading.vue.d.ts +35 -0
- package/dist/components/Hero/AkHero.vue.d.ts +41 -0
- package/dist/components/Icon/AkIcon.vue.d.ts +15 -0
- package/dist/components/Input/AkInput.vue.d.ts +54 -0
- package/dist/components/Input/AkInputGroup.vue.d.ts +19 -0
- package/dist/components/Input/context.d.ts +6 -0
- package/dist/components/InputNumber/AkInputNumber.vue.d.ts +37 -0
- package/dist/components/Item/AkItem.vue.d.ts +47 -0
- package/dist/components/Item/AkItemList.vue.d.ts +19 -0
- package/dist/components/Item/context.d.ts +6 -0
- package/dist/components/Kbd/AkKbd.vue.d.ts +14 -0
- package/dist/components/Kv/AkKv.vue.d.ts +23 -0
- package/dist/components/Kv/AkKvItem.vue.d.ts +20 -0
- package/dist/components/Kv/context.d.ts +5 -0
- package/dist/components/Level/AkLevel.vue.d.ts +11 -0
- package/dist/components/Materials/AkMaterials.vue.d.ts +17 -0
- package/dist/components/Materials/AkMaterialsDivider.vue.d.ts +14 -0
- package/dist/components/Materials/AkMaterialsRow.vue.d.ts +19 -0
- package/dist/components/Message/AkMessage.vue.d.ts +52 -0
- package/dist/components/Module/AkModule.vue.d.ts +62 -0
- package/dist/components/Module/AkModuleStage.vue.d.ts +22 -0
- package/dist/components/Module/AkModuleUnlock.vue.d.ts +20 -0
- package/dist/components/News/AkNews.vue.d.ts +25 -0
- package/dist/components/OpCard/AkOpCard.vue.d.ts +52 -0
- package/dist/components/OpCard/AkOpGrid.vue.d.ts +13 -0
- package/dist/components/OpRow/AkOpRow.vue.d.ts +33 -0
- package/dist/components/Pagination/AkPagination.vue.d.ts +51 -0
- package/dist/components/Panel/AkPanel.vue.d.ts +43 -0
- package/dist/components/PhaseTabs/AkPhaseTabs.vue.d.ts +28 -0
- package/dist/components/PotList/AkPot.vue.d.ts +27 -0
- package/dist/components/PotList/AkPotList.vue.d.ts +18 -0
- package/dist/components/PotList/context.d.ts +5 -0
- package/dist/components/Potential/AkPotential.vue.d.ts +16 -0
- package/dist/components/Potential/AkSpecialization.vue.d.ts +16 -0
- package/dist/components/Profession/AkProfession.vue.d.ts +22 -0
- package/dist/components/Profession/AkProfessionLabel.vue.d.ts +28 -0
- package/dist/components/Progress/AkProgress.vue.d.ts +40 -0
- package/dist/components/Radio/AkRadio.vue.d.ts +39 -0
- package/dist/components/Radio/AkRadioButton.vue.d.ts +33 -0
- package/dist/components/Radio/AkRadioGroup.vue.d.ts +40 -0
- package/dist/components/Radio/context.d.ts +12 -0
- package/dist/components/Range/AkRange.vue.d.ts +19 -0
- package/dist/components/Rarity/AkRarity.vue.d.ts +24 -0
- package/dist/components/RichText/AkRichText.vue.d.ts +40 -0
- package/dist/components/RichText/parse.d.ts +33 -0
- package/dist/components/Scope/AkScope.vue.d.ts +27 -0
- package/dist/components/Search/AkSearch.vue.d.ts +31 -0
- package/dist/components/Select/AkSelect.vue.d.ts +46 -0
- package/dist/components/Skeleton/AkSkeleton.vue.d.ts +21 -0
- package/dist/components/Skill/AkSkill.vue.d.ts +65 -0
- package/dist/components/Skill/LevelLabel.vue.d.ts +15 -0
- package/dist/components/SkillLevels/AkSkillLevels.vue.d.ts +26 -0
- package/dist/components/SkillMatrix/AkSkillMatrix.vue.d.ts +58 -0
- package/dist/components/SkillSheet/AkSkillSheet.vue.d.ts +50 -0
- package/dist/components/Slider/AkSlider.vue.d.ts +36 -0
- package/dist/components/Sp/AkSp.vue.d.ts +23 -0
- package/dist/components/Sp/AkSpTrigger.vue.d.ts +21 -0
- package/dist/components/Sp/AkSpValue.vue.d.ts +25 -0
- package/dist/components/Sp/sp.d.ts +19 -0
- package/dist/components/Spinner/AkSpinner.vue.d.ts +33 -0
- package/dist/components/Stage/AkSanity.vue.d.ts +10 -0
- package/dist/components/Stage/AkStage.vue.d.ts +36 -0
- package/dist/components/Stage/AkStageCode.vue.d.ts +22 -0
- package/dist/components/Stat/AkStat.vue.d.ts +36 -0
- package/dist/components/Stat/AkStatRow.vue.d.ts +14 -0
- package/dist/components/Stepper/AkStep.vue.d.ts +24 -0
- package/dist/components/Stepper/AkSteps.vue.d.ts +25 -0
- package/dist/components/Switch/AkSwitch.vue.d.ts +37 -0
- package/dist/components/Table/AkDataTable.vue.d.ts +48 -0
- package/dist/components/Table/types.d.ts +21 -0
- package/dist/components/Tabs/AkTab.vue.d.ts +25 -0
- package/dist/components/Tabs/AkTabPane.vue.d.ts +29 -0
- package/dist/components/Tabs/AkTabs.vue.d.ts +36 -0
- package/dist/components/Tag/AkTag.vue.d.ts +35 -0
- package/dist/components/Talent/AkTalent.vue.d.ts +28 -0
- package/dist/components/TalentTable/AkCalc.vue.d.ts +8 -0
- package/dist/components/TalentTable/AkTalentTable.vue.d.ts +66 -0
- package/dist/components/Timeline/AkTimeline.vue.d.ts +17 -0
- package/dist/components/Timeline/AkTimelineItem.vue.d.ts +32 -0
- package/dist/components/Toast/AkToastProvider.vue.d.ts +35 -0
- package/dist/components/Toast/useToast.d.ts +39 -0
- package/dist/components/Tooltip/AkPopover.vue.d.ts +52 -0
- package/dist/components/Tooltip/AkTooltip.vue.d.ts +48 -0
- package/dist/components/Tooltip/trigger.d.ts +13 -0
- package/dist/components/Tooltip/usePopover.d.ts +25 -0
- package/dist/components/Trust/AkTrust.vue.d.ts +11 -0
- package/dist/components/Voice/AkVoice.vue.d.ts +23 -0
- package/dist/components/Voice/AkVoiceList.vue.d.ts +36 -0
- package/dist/components/Voice/context.d.ts +19 -0
- package/dist/components/Voice/player.d.ts +8 -0
- package/dist/icons.d.ts +50 -0
- package/dist/index.d.ts +135 -0
- package/dist/index.js +6455 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 游戏内富文本:gamedata 里技能 / 天赋 / 关卡描述的原始标记 → 结点树(AkRichText 再画成 .ak-rt-* 的 span)。
|
|
3
|
+
*
|
|
4
|
+
* <@ba.vup>…</> 样式标签(gamedata_const.richTextStyles)→ .ak-rt-vup;命名空间不论(cc.vup / ba.vup 同色),认不得的样式只留文字
|
|
5
|
+
* <$ba.stun>…</> 术语(termDescriptionDict)→ .ak-rt-term,说明作悬停提示
|
|
6
|
+
* {atk_scale:0%} blackboard 占位符:前缀 - 取负;:0% 乘 100 加 %、:0.0 保留一位(# 位去掉末尾的 0);没有格式就原样
|
|
7
|
+
* 换行 → <br>
|
|
8
|
+
*
|
|
9
|
+
* 标签可以嵌套(<@ba.kw><$ba.stun>晕眩</></>);没闭合的在末尾自动闭合,多出来的 </> 忽略。
|
|
10
|
+
*/
|
|
11
|
+
export type RtNode = {
|
|
12
|
+
type: "text";
|
|
13
|
+
text: string;
|
|
14
|
+
} | {
|
|
15
|
+
type: "br";
|
|
16
|
+
} | {
|
|
17
|
+
type: "var";
|
|
18
|
+
key: string;
|
|
19
|
+
negative: boolean;
|
|
20
|
+
format?: string;
|
|
21
|
+
raw: string;
|
|
22
|
+
} | {
|
|
23
|
+
type: "style" | "term";
|
|
24
|
+
key: string;
|
|
25
|
+
children: RtNode[];
|
|
26
|
+
};
|
|
27
|
+
export declare function parseRichText(src: string): RtNode[];
|
|
28
|
+
/** <@ns.name> → 类名;认不得的返回 undefined(只留文字) */
|
|
29
|
+
export declare function styleClass(key: string): string | undefined;
|
|
30
|
+
/** 占位符取值 → 文字:{atk_scale:0%} + 2.6 → "260%",{-cost:0.0} + 1.25 → "-1.3" */
|
|
31
|
+
export declare function formatVar(value: number | string, format?: string, negative?: boolean): string;
|
|
32
|
+
/** 一两句话的说明(术语 / SP 说明)用可折行的宽气泡 .ak-tip--wide,短的一行放下 */
|
|
33
|
+
export declare const isWideTip: (tip: string | undefined) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 作用域根:组件的排版基线(字体 / 字号 / 行高 / 前景色)挂在这一层,不靠宿主页面的 body 继承——prts.wiki 上别的皮肤(Vector 2022 …)、
|
|
3
|
+
* 站外页面里,widget 的根节点包一层,就和 Arknights 皮肤上看起来一样;theme 让这一块局部走终端(暗)/ 档案(亮)配色。
|
|
4
|
+
* Arknights 皮肤上 body.skin-arknights 本身就是作用域,包不包都一样。样式在 CSS 实现的 scope.css(= class="ak-scope")。
|
|
5
|
+
*/
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
/** 局部主题:dark 终端 · light 档案(连画布底色一起换);不传 = 跟随宿主页面(html 上的 clientpref 类 / data-theme,都没有就跟随系统) */
|
|
8
|
+
theme?: "light" | "dark";
|
|
9
|
+
/** 根元素标签 */
|
|
10
|
+
tag?: string;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_Slots = {
|
|
13
|
+
/** 作用域里的内容:widget 的整棵组件树 */
|
|
14
|
+
default?: () => unknown;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
+
theme: "light" | "dark";
|
|
18
|
+
tag: string;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 占位提示 */
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
/** 尺寸:sm 30 · md 36 · lg 44(px 高) */
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
/** 禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 可访问名(aria-label);在带标签的 AkField 里时由标签给,否则默认「搜索」 */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** 聚焦快捷键(单个按键,如 "/"):右侧显示键帽(有字时隐去),在页面上别处按下它就聚焦到这里(正在别的输入框里打字时不抢) */
|
|
11
|
+
shortcut?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_ModelProps = {
|
|
14
|
+
/** 搜索词 */
|
|
15
|
+
modelValue?: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
search: (query: string) => any;
|
|
20
|
+
"update:modelValue": (value: string | undefined) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
onSearch?: ((query: string) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
size: "sm" | "md" | "lg";
|
|
26
|
+
label: string;
|
|
27
|
+
placeholder: string;
|
|
28
|
+
shortcut: string;
|
|
29
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ValidationStatus } from "../Field/context";
|
|
2
|
+
export type SelectValue = string | number;
|
|
3
|
+
/** 一个选项(同 Naive 的 SelectOption) */
|
|
4
|
+
export interface SelectOption {
|
|
5
|
+
label: string;
|
|
6
|
+
value: SelectValue;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** 一组选项,渲染成 <optgroup>(同 Naive 的 SelectGroupOption) */
|
|
10
|
+
export interface SelectGroupOption {
|
|
11
|
+
type: "group";
|
|
12
|
+
label: string;
|
|
13
|
+
children: SelectOption[];
|
|
14
|
+
}
|
|
15
|
+
/** 原生 <select> 换肤(与裸 <select> 同一枚 ▾):下拉列表、键盘、读屏都是浏览器自己的。其余属性(name、@change …)落到 <select> 上 */
|
|
16
|
+
type __VLS_Props = {
|
|
17
|
+
/** 选项(同 Naive 的 options):{ label, value, disabled };{ type: "group", label, children } 是一组(<optgroup>) */
|
|
18
|
+
options: (SelectOption | SelectGroupOption)[];
|
|
19
|
+
/** 没选时显示的提示(一个选不到的空选项);不写则默认选中第一项的样子 */
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
/** 尺寸:sm 30 · md 36 · lg 44(px 高),与输入框同一刻度 */
|
|
22
|
+
size?: "sm" | "md" | "lg";
|
|
23
|
+
/** 校验状态:error 红边(aria-invalid)· success 绿边;不写时跟 AkField 的 validation-status */
|
|
24
|
+
status?: ValidationStatus;
|
|
25
|
+
/** 禁用 */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
/** 可访问名(aria-label):不在 AkField 里、旁边也没有 <label> 时必填 */
|
|
28
|
+
label?: string;
|
|
29
|
+
};
|
|
30
|
+
type __VLS_ModelProps = {
|
|
31
|
+
/** 选中项的 value;没选是 null / undefined */
|
|
32
|
+
modelValue?: SelectValue | null;
|
|
33
|
+
};
|
|
34
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
35
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (value: SelectValue | null | undefined) => any;
|
|
37
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: SelectValue | null | undefined) => any) | undefined;
|
|
39
|
+
}>, {
|
|
40
|
+
size: "sm" | "md" | "lg";
|
|
41
|
+
label: string;
|
|
42
|
+
status: ValidationStatus;
|
|
43
|
+
placeholder: string;
|
|
44
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
|
+
declare const _default: typeof __VLS_export;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 文字行:.9em 高、上下 .35em 间距;一组里最后一行 60% 宽 */
|
|
3
|
+
text?: boolean;
|
|
4
|
+
/** 圆形(头像占位):宽高相等,由 width 定 */
|
|
5
|
+
circle?: boolean;
|
|
6
|
+
/** 方形(道具 / 头像占位):宽高相等,由 width 定 */
|
|
7
|
+
square?: boolean;
|
|
8
|
+
/** 重复几个(同 Naive):配 text 画一段文字 */
|
|
9
|
+
repeat?: number;
|
|
10
|
+
/** 宽度:数字按 px,字符串原样("60%");不写时占满一行 */
|
|
11
|
+
width?: number | string;
|
|
12
|
+
/** 高度:数字按 px;不写时 1em(text 时 .9em,圆 / 方形跟宽度) */
|
|
13
|
+
height?: number | string;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
repeat: number;
|
|
17
|
+
width: number | string;
|
|
18
|
+
height: number | string;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { SpType } from "../Sp/sp";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 技能名 */
|
|
4
|
+
name: string;
|
|
5
|
+
/** 别名,跟在技能名后的灰色小字(干员页全等级表的表头):en 英文名(Bender 大写)· ja 日文名;要放别的内容用 #alias 插槽 */
|
|
6
|
+
alias?: {
|
|
7
|
+
en?: string;
|
|
8
|
+
ja?: string;
|
|
9
|
+
};
|
|
10
|
+
/** 技能图标地址(游戏 skill_icon,64px 见方) */
|
|
11
|
+
icon?: string;
|
|
12
|
+
/** 技力回复方式:决定图标描边 + 底条色与 SP 标签;auto 自动回复 · attack 攻击回复 · hit 受击回复 · passive 被动 */
|
|
13
|
+
spType?: SpType;
|
|
14
|
+
/** 触发方式:manual 手动触发 · auto 自动触发;不写不显示(被动技能) */
|
|
15
|
+
trigger?: "manual" | "auto";
|
|
16
|
+
/** 技力消耗;不写不显示 */
|
|
17
|
+
cost?: number | string;
|
|
18
|
+
/** 初始技力;不写不显示 */
|
|
19
|
+
init?: number | string;
|
|
20
|
+
/** 持续时间:数字按秒写成「25s」,字符串原样(「—」);不写不显示 */
|
|
21
|
+
duration?: number | string;
|
|
22
|
+
/** 开放条件(「技能2 · 精英一开放」),显示在右侧槽 */
|
|
23
|
+
unlock?: string;
|
|
24
|
+
/** 开放条件前的精英化图标地址 */
|
|
25
|
+
unlockIcon?: string;
|
|
26
|
+
/** 选中(蓝框 + 左上角标,游戏内 selected_back) */
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
/** 未解锁:图标灰化 + 锁 */
|
|
29
|
+
locked?: boolean;
|
|
30
|
+
/** 技能名的标题级别(干员页正文里是 3,列表 / 侧栏里一般是 4) */
|
|
31
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_Slots = {
|
|
34
|
+
/** 技能描述(游戏原始标记可以套 AkRichText) */
|
|
35
|
+
default?: () => unknown;
|
|
36
|
+
/** 技能名后的别名(代替 alias),放进 .ak-skill__alias */
|
|
37
|
+
alias?: () => unknown;
|
|
38
|
+
/** 名称行末尾的附加内容(「未解锁」标签等) */
|
|
39
|
+
"header-extra"?: () => unknown;
|
|
40
|
+
/** 右侧槽(开放条件之后):技能范围等;写了就是三栏的宽卡(.ak-skill--wide) */
|
|
41
|
+
aside?: () => unknown;
|
|
42
|
+
};
|
|
43
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
44
|
+
icon: string;
|
|
45
|
+
trigger: "manual" | "auto";
|
|
46
|
+
duration: number | string;
|
|
47
|
+
cost: number | string;
|
|
48
|
+
init: number | string;
|
|
49
|
+
spType: SpType;
|
|
50
|
+
alias: {
|
|
51
|
+
en?: string;
|
|
52
|
+
ja?: string;
|
|
53
|
+
};
|
|
54
|
+
unlock: string;
|
|
55
|
+
unlockIcon: string;
|
|
56
|
+
headingLevel: 2 | 3 | 4 | 5 | 6;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
59
|
+
declare const _default: typeof __VLS_export;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* (内部)技能等级的写法,等级选择器 / 全等级表 / 参数矩阵共用:1–7 是数字,8–10 是专精 Ⅰ–Ⅲ。
|
|
3
|
+
* 专精画游戏图标(specialized_tiny_N,由调用方给地址);numeral 时图标后再跟罗马数字(表格里);没给图标时写 M1–M3。
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** 1–10(8–10 = 专精 Ⅰ–Ⅲ) */
|
|
7
|
+
level: number;
|
|
8
|
+
/** 专精 Ⅰ–Ⅲ 的图标地址 */
|
|
9
|
+
icons?: readonly string[];
|
|
10
|
+
/** 图标后跟罗马数字 */
|
|
11
|
+
numeral?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 最高等级:7 = 只有 1–7(三星及以下 / 未精二),10 = 再加专精 Ⅰ–Ⅲ */
|
|
3
|
+
max?: number;
|
|
4
|
+
/** 专精 Ⅰ–Ⅲ 的图标地址(游戏 specialized_tiny_1–3);不给时写 M1–M3 */
|
|
5
|
+
masteryIcons?: readonly string[];
|
|
6
|
+
/** 读屏用的组名 */
|
|
7
|
+
label?: string;
|
|
8
|
+
/** 整组禁用 */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_ModelProps = {
|
|
12
|
+
/** 当前等级 1–10(8–10 = 专精 Ⅰ–Ⅲ);不绑定时没有选中项 */
|
|
13
|
+
modelValue?: number;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
label: string;
|
|
22
|
+
max: number;
|
|
23
|
+
masteryIcons: readonly string[];
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { SpValueKind } from "../Sp/sp";
|
|
2
|
+
/** 矩阵的一行:一个参数在各级的值 */
|
|
3
|
+
export interface SkillMatrixRow {
|
|
4
|
+
/** 描述模板里的占位符名({key});写了这一行就对应描述里的一个变量位 */
|
|
5
|
+
key?: string;
|
|
6
|
+
/** 参数名(「伤害倍率」「晕眩(秒)」);sp 行是芯片里的字 */
|
|
7
|
+
label: string;
|
|
8
|
+
/** 用 SP 芯片当参数名:init 初始 · cost 消耗 · duration 持续 */
|
|
9
|
+
sp?: SpValueKind;
|
|
10
|
+
/** 各级的值(已经写好的字,「200%」):第 i 项 = 等级 i+1,第 8–10 项 = 专精 Ⅰ–Ⅲ */
|
|
11
|
+
values: (number | string)[];
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** 参数行 */
|
|
15
|
+
rows: SkillMatrixRow[];
|
|
16
|
+
/** 描述模板(游戏原始标记):只写一遍,{key} 变量位画成 .ak-var——平时是区间(200%→320%),悬停 / 选中某一列时换成该级的值 */
|
|
17
|
+
description?: string;
|
|
18
|
+
/** 专精 Ⅰ–Ⅲ 的图标地址(游戏 specialized_tiny_1–3);不给时写 M1–M3 */
|
|
19
|
+
masteryIcons?: readonly string[];
|
|
20
|
+
/** 术语说明(termDescriptionDict),给描述里 <$ba.xxx> 的悬停提示 */
|
|
21
|
+
terms?: Record<string, string>;
|
|
22
|
+
/** 表格的可访问名(如「鞘击 · 各等级参数」) */
|
|
23
|
+
label?: string;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_Slots = {
|
|
26
|
+
/** 表头卡:一般放 <AkSkill>(名称 / SP 类型 / 开放条件 / 范围) */
|
|
27
|
+
header?: () => unknown;
|
|
28
|
+
/** 表下的注释(.ak-skill-sheet__note,每条一个 <p>) */
|
|
29
|
+
footer?: () => unknown;
|
|
30
|
+
/** 自己画描述(代替 description):level = 正在看的等级(没有是 undefined),value(key) = 该变量此刻该显示的字 */
|
|
31
|
+
description?: (p: {
|
|
32
|
+
level: number | undefined;
|
|
33
|
+
value: (key: string) => string;
|
|
34
|
+
}) => unknown;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_ModelProps = {
|
|
37
|
+
/** 钉住的一列(等级 1–10,没有是 undefined):点列里任一格 / 列头按钮钉住、再点取消;可以和 AkSkillLevels 绑同一个值 */
|
|
38
|
+
modelValue?: number;
|
|
39
|
+
};
|
|
40
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
41
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
43
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
44
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
label: string;
|
|
47
|
+
description: string;
|
|
48
|
+
terms: Record<string, string>;
|
|
49
|
+
masteryIcons: readonly string[];
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** 一个技能等级(第 i 项 = 等级 i+1,第 8–10 项 = 专精 Ⅰ–Ⅲ) */
|
|
2
|
+
export interface SkillSheetLevel {
|
|
3
|
+
/** 描述:游戏原始标记(<@ba.vup>…</>、{atk_scale:0%}),由 AkRichText 渲染 */
|
|
4
|
+
description: string;
|
|
5
|
+
/** 描述里占位符的取值(这一级的 blackboard) */
|
|
6
|
+
vars?: Record<string, number | string>;
|
|
7
|
+
/** 初始技力 */
|
|
8
|
+
init?: number | string;
|
|
9
|
+
/** 技力消耗 */
|
|
10
|
+
cost?: number | string;
|
|
11
|
+
/** 持续时间(秒);没有就空着(表里显示「—」) */
|
|
12
|
+
duration?: number | string;
|
|
13
|
+
}
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
/** 各级数据:1–7 级,之后是专精 Ⅰ–Ⅲ(三星及以下只有 7 项) */
|
|
16
|
+
levels: SkillSheetLevel[];
|
|
17
|
+
/** 高亮一行(当前等级,1–10);常与 AkSkillLevels 的 v-model 绑同一个值 */
|
|
18
|
+
highlight?: number;
|
|
19
|
+
/** 专精 Ⅰ–Ⅲ 的图标地址(游戏 specialized_tiny_1–3);不给时写 M1–M3 */
|
|
20
|
+
masteryIcons?: readonly string[];
|
|
21
|
+
/** 术语说明(termDescriptionDict),给描述里 <$ba.xxx> 的悬停提示 */
|
|
22
|
+
terms?: Record<string, string>;
|
|
23
|
+
/** 表格的可访问名(如「鞘击 · 各等级数据」) */
|
|
24
|
+
label?: string;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_Slots = {
|
|
27
|
+
/** 表头卡:一般放 <AkSkill>(名称 / SP 类型 / 开放条件 / 范围),不写 cost / init,名称行居中对齐图标 */
|
|
28
|
+
header?: () => unknown;
|
|
29
|
+
/** 表下的注释(.ak-skill-sheet__note,每条一个 <p>:「※不可对空」) */
|
|
30
|
+
footer?: () => unknown;
|
|
31
|
+
/** 自己画某一级的描述(代替 AkRichText):{ row, level } */
|
|
32
|
+
description?: (p: {
|
|
33
|
+
row: SkillSheetLevel;
|
|
34
|
+
level: number;
|
|
35
|
+
}) => unknown;
|
|
36
|
+
};
|
|
37
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
38
|
+
label: string;
|
|
39
|
+
terms: Record<string, string>;
|
|
40
|
+
masteryIcons: readonly string[];
|
|
41
|
+
highlight: number;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
44
|
+
declare const _default: typeof __VLS_export;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 滑杆(同 Naive 的 NSlider):原生 <input type="range" class="ak-slider">,方形滑块、4px 轨道。
|
|
3
|
+
* 键盘(←→↑↓ 一步、PageUp/PageDown、Home/End)和读屏都是浏览器自己的。其余属性落到 <input> 上。
|
|
4
|
+
*/
|
|
5
|
+
type __VLS_Props = {
|
|
6
|
+
/** 最小值 */
|
|
7
|
+
min?: number;
|
|
8
|
+
/** 最大值 */
|
|
9
|
+
max?: number;
|
|
10
|
+
/** 步长 */
|
|
11
|
+
step?: number;
|
|
12
|
+
/** 禁用 */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** 可访问名(aria-label):不在 AkField 里、旁边也没有 <label> 时必填 */
|
|
15
|
+
label?: string;
|
|
16
|
+
/** 读屏念的值(aria-valuetext),如 v => `信赖 ${v}%`;不写就念数字 */
|
|
17
|
+
formatValue?: (value: number) => string;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_ModelProps = {
|
|
20
|
+
/** 当前值 */
|
|
21
|
+
modelValue?: number;
|
|
22
|
+
};
|
|
23
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
28
|
+
}>, {
|
|
29
|
+
label: string;
|
|
30
|
+
max: number;
|
|
31
|
+
step: number;
|
|
32
|
+
min: number;
|
|
33
|
+
formatValue: (value: number) => string;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type SpType } from "./sp";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 技力回复方式:auto 自动回复(绿)· attack 攻击回复(橙)· hit 受击回复(黄)· passive 被动(灰) */
|
|
4
|
+
spType?: SpType;
|
|
5
|
+
/** 悬停提示(data-ak-tip):默认是游戏内的说明(「每次攻击回复1点技力」),可改写;false 关掉 */
|
|
6
|
+
tip?: string | false;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_Slots = {
|
|
9
|
+
/** 文字;默认「自动回复」「攻击回复」「受击回复」「被动」 */
|
|
10
|
+
default?: () => unknown;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
13
|
+
tip: string | false;
|
|
14
|
+
spType: SpType;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 自动触发(灰底);默认手动触发(黑白反转) */
|
|
3
|
+
auto?: boolean;
|
|
4
|
+
/** 悬停提示(data-ak-tip):默认是游戏内的说明,可改写;false 关掉 */
|
|
5
|
+
tip?: string | false;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_Slots = {
|
|
8
|
+
/** 文字;默认「手动触发」/「自动触发」 */
|
|
9
|
+
default?: () => unknown;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
12
|
+
tip: string | false;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type SpValueKind } from "./sp";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
/** 哪一枚芯片:cost 消耗(荧光绿闪电)· init 初始(▶)· duration 持续(⏱) */
|
|
4
|
+
kind: SpValueKind;
|
|
5
|
+
/** 数值;也可以写在默认插槽里(表头图例写「消耗」「初始」这种字) */
|
|
6
|
+
value?: number | string;
|
|
7
|
+
/** 悬停提示(data-ak-tip):默认是这一项的说明(「消耗:该技能所需要消耗的技力数」),可改写;false 关掉 */
|
|
8
|
+
tip?: string | false;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
/** 芯片里的字(代替 value) */
|
|
12
|
+
default?: () => unknown;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
+
tip: string | false;
|
|
16
|
+
value: number | string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** 技力回复方式(游戏内 spType):自动回复 绿 · 攻击回复 橙 · 受击回复 黄 · 被动 灰 */
|
|
2
|
+
export type SpType = "auto" | "attack" | "hit" | "passive";
|
|
3
|
+
/** SP 数值芯片:cost 消耗(荧光绿闪电)· init 初始(▶)· duration 持续(⏱) */
|
|
4
|
+
export type SpValueKind = "cost" | "init" | "duration";
|
|
5
|
+
export declare const SP_TYPE_TEXT: Record<SpType, string>;
|
|
6
|
+
/** 游戏内的技力说明(prts.wiki 干员页的悬停提示);被动技能没有技力,不给 */
|
|
7
|
+
export declare const SP_TYPE_TIP: Record<SpType, string | undefined>;
|
|
8
|
+
export declare const TRIGGER_TEXT: {
|
|
9
|
+
readonly manual: "手动触发";
|
|
10
|
+
readonly auto: "自动触发";
|
|
11
|
+
};
|
|
12
|
+
export declare const TRIGGER_TIP: {
|
|
13
|
+
readonly manual: "技力达到需求并满足开启条件后,需要玩家手动开启的技能";
|
|
14
|
+
readonly auto: "技力达到需求并满足开启条件后,自动开启的技能";
|
|
15
|
+
};
|
|
16
|
+
export declare const SP_VALUE_CLASS: Record<SpValueKind, string>;
|
|
17
|
+
/** 读屏用的名字(芯片的图形是 CSS mask,读不出来) */
|
|
18
|
+
export declare const SP_VALUE_NAME: Record<SpValueKind, string>;
|
|
19
|
+
export declare const SP_VALUE_TIP: Record<SpValueKind, string>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 样子:diamond 菱形涟漪(游戏内 loading,默认)· bars 三根竖条(行内、更轻) */
|
|
3
|
+
variant?: "diamond" | "bars";
|
|
4
|
+
/** 说明文字,排在图形下方(同 Naive) */
|
|
5
|
+
description?: string;
|
|
6
|
+
/** 包住内容时是否在加载(同 Naive);不包内容时无效,要藏起来直接 v-if */
|
|
7
|
+
show?: boolean;
|
|
8
|
+
/** 换色:写到 CSS 的 --_c(只对 diamond 生效),如 "var(--ak-yellow-500)" */
|
|
9
|
+
color?: string;
|
|
10
|
+
/** 读屏文本;有 description 时念 description */
|
|
11
|
+
label?: string;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_Slots = {
|
|
14
|
+
/** 正在加载的内容:加载层叠在它上面 */
|
|
15
|
+
default?: () => unknown;
|
|
16
|
+
/** 说明(代替 description) */
|
|
17
|
+
description?: () => unknown;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
label: string;
|
|
21
|
+
variant: "diamond" | "bars";
|
|
22
|
+
show: boolean;
|
|
23
|
+
description: string;
|
|
24
|
+
color: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
|
+
declare const _default: typeof __VLS_export;
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
30
|
+
new (): {
|
|
31
|
+
$slots: S;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 理智消耗:六边形 + 数字(游戏内理智图标的剪影,不用图片)。读屏念「理智 6」——六边形是纯装饰,前缀字藏在 sr-only 里。
|
|
3
|
+
*/
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** 消耗的理智 */
|
|
6
|
+
value: number | string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 关卡编号(1-7 / H6-4 / TO-EX-1),展示字大号 */
|
|
3
|
+
code: string;
|
|
4
|
+
/** 关卡名 */
|
|
5
|
+
name?: string;
|
|
6
|
+
/** 编号下的小字:章节 / 类型(Main · Chapter 1 / Hard / Story) */
|
|
7
|
+
caption?: string;
|
|
8
|
+
/** 左侧类型色条:hard 磨难红 · ex 深红 · story 灰;default 无色条。按活动分好组的列表里关卡码已说明类型,不必再上色 */
|
|
9
|
+
variant?: "default" | "hard" | "ex" | "story";
|
|
10
|
+
/** 理智消耗:元信息行里的六边形 + 数字 */
|
|
11
|
+
sanity?: number | string;
|
|
12
|
+
/** 推荐等级(LV.30 / E2 LV.40),元信息行里显示为「推荐 LV.30」 */
|
|
13
|
+
level?: string;
|
|
14
|
+
/** 链接到关卡页:整张卡是链接(悬停描边变强调色) */
|
|
15
|
+
href?: string;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_Slots = {
|
|
18
|
+
/** 元信息行末尾追加的项(剧情关卡 / 前往关卡页 »),每项一个元素,行内 flex 间距 10 */
|
|
19
|
+
meta?: () => unknown;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
22
|
+
name: string;
|
|
23
|
+
caption: string;
|
|
24
|
+
variant: "default" | "hard" | "ex" | "story";
|
|
25
|
+
href: string;
|
|
26
|
+
level: string;
|
|
27
|
+
sanity: number | string;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 行内关卡号:黑白反转的小方块(展示字),放在正文 / 解锁条件里(「3星通关主题曲 5-8」)。关卡号写在默认插槽里。
|
|
3
|
+
*/
|
|
4
|
+
type __VLS_Props = {
|
|
5
|
+
/** hard = 红底(磨难 / 险地关卡号) */
|
|
6
|
+
variant?: "default" | "hard";
|
|
7
|
+
/** 链接到关卡页 */
|
|
8
|
+
href?: string;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
/** 关卡号(5-8 / H6-4) */
|
|
12
|
+
default?: () => unknown;
|
|
13
|
+
};
|
|
14
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|