@hefou/lum 0.0.0-stage → 1.0.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/components/Aside.vue +130 -0
- package/components/BoxCube.vue +89 -0
- package/components/Card.vue +111 -0
- package/components/CopyText.vue +214 -0
- package/components/Footer.vue +194 -0
- package/components/Links.vue +121 -0
- package/components/Notice.vue +85 -0
- package/components/Pill.vue +108 -0
- package/components/Underline.vue +22 -0
- package/components/common/Icon.vue +67 -0
- package/components/common/Image.vue +94 -0
- package/components/common/Link.vue +33 -0
- package/components/common/Svg.vue +28 -0
- package/components/common/index.ts +4 -0
- package/components/index.ts +9 -0
- package/composables/baiduAnalytics.ts +60 -0
- package/composables/googleAnalytics.ts +26 -0
- package/composables/index.ts +4 -0
- package/composables/umamiAnalytics.ts +49 -0
- package/composables/utils.ts +61 -0
- package/dist/cjs/_virtual/_plugin-vue_export-helper.cjs +1 -0
- package/dist/cjs/components/Aside.cjs +1 -0
- package/dist/cjs/components/Aside.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/BoxCube.cjs +1 -0
- package/dist/cjs/components/BoxCube.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Card.cjs +1 -0
- package/dist/cjs/components/Card.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/CopyText.cjs +1 -0
- package/dist/cjs/components/CopyText.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Footer.cjs +1 -0
- package/dist/cjs/components/Footer.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Links.cjs +1 -0
- package/dist/cjs/components/Links.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Notice.cjs +1 -0
- package/dist/cjs/components/Notice.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Pill.cjs +1 -0
- package/dist/cjs/components/Pill.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/Underline.cjs +1 -0
- package/dist/cjs/components/Underline.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Icon.cjs +1 -0
- package/dist/cjs/components/common/Icon.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Image.cjs +1 -0
- package/dist/cjs/components/common/Image.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Link.cjs +1 -0
- package/dist/cjs/components/common/Link.vue_vue_type_script_setup_true_lang.cjs +1 -0
- package/dist/cjs/components/common/Svg.cjs +1 -0
- package/dist/cjs/composables/baiduAnalytics.cjs +1 -0
- package/dist/cjs/composables/googleAnalytics.cjs +1 -0
- package/dist/cjs/composables/umamiAnalytics.cjs +1 -0
- package/dist/cjs/composables/utils.cjs +1 -0
- package/dist/cjs/index.cjs +1 -0
- package/dist/cjs/lum.css +2 -0
- package/dist/cjs/node_modules/.pnpm/@iconify_vue@5.0.5_vue@3.5.45_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.cjs +1 -0
- package/dist/cjs/node_modules/.pnpm/iconify-icon@3.0.5/node_modules/iconify-icon/dist/iconify-icon.cjs +1 -0
- package/dist/esm/_virtual/_plugin-vue_export-helper.js +7 -0
- package/dist/esm/components/Aside.js +6 -0
- package/dist/esm/components/Aside.vue_vue_type_script_setup_true_lang.js +85 -0
- package/dist/esm/components/BoxCube.js +6 -0
- package/dist/esm/components/BoxCube.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/esm/components/Card.js +6 -0
- package/dist/esm/components/Card.vue_vue_type_script_setup_true_lang.js +50 -0
- package/dist/esm/components/CopyText.js +6 -0
- package/dist/esm/components/CopyText.vue_vue_type_script_setup_true_lang.js +63 -0
- package/dist/esm/components/Footer.js +6 -0
- package/dist/esm/components/Footer.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/esm/components/Links.js +6 -0
- package/dist/esm/components/Links.vue_vue_type_script_setup_true_lang.js +59 -0
- package/dist/esm/components/Notice.js +6 -0
- package/dist/esm/components/Notice.vue_vue_type_script_setup_true_lang.js +61 -0
- package/dist/esm/components/Pill.js +6 -0
- package/dist/esm/components/Pill.vue_vue_type_script_setup_true_lang.js +51 -0
- package/dist/esm/components/Underline.js +6 -0
- package/dist/esm/components/Underline.vue_vue_type_script_setup_true_lang.js +13 -0
- package/dist/esm/components/common/Icon.js +4 -0
- package/dist/esm/components/common/Icon.vue_vue_type_script_setup_true_lang.js +53 -0
- package/dist/esm/components/common/Image.js +6 -0
- package/dist/esm/components/common/Image.vue_vue_type_script_setup_true_lang.js +79 -0
- package/dist/esm/components/common/Link.js +4 -0
- package/dist/esm/components/common/Link.vue_vue_type_script_setup_true_lang.js +36 -0
- package/dist/esm/components/common/Svg.js +19 -0
- package/dist/esm/composables/baiduAnalytics.js +23 -0
- package/dist/esm/composables/googleAnalytics.js +12 -0
- package/dist/esm/composables/umamiAnalytics.js +12 -0
- package/dist/esm/composables/utils.js +24 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/lum.css +2 -0
- package/dist/esm/node_modules/.pnpm/@iconify_vue@5.0.5_vue@3.5.45_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.js +988 -0
- package/dist/esm/node_modules/.pnpm/iconify-icon@3.0.5/node_modules/iconify-icon/dist/iconify-icon.js +1209 -0
- package/dist/types/bump.config.d.ts +2 -0
- package/dist/types/changelogithub.config.d.ts +26 -0
- package/dist/types/components/Aside.vue.d.ts +7 -0
- package/dist/types/components/BoxCube.vue.d.ts +8 -0
- package/dist/types/components/Card.vue.d.ts +8 -0
- package/dist/types/components/CopyText.vue.d.ts +15 -0
- package/dist/types/components/Footer.vue.d.ts +7 -0
- package/dist/types/components/Links.vue.d.ts +8 -0
- package/dist/types/components/Notice.vue.d.ts +3 -0
- package/dist/types/components/Pill.vue.d.ts +13 -0
- package/dist/types/components/Underline.vue.d.ts +3 -0
- package/dist/types/components/common/Icon.vue.d.ts +9 -0
- package/dist/types/components/common/Image.vue.d.ts +8 -0
- package/dist/types/components/common/Link.vue.d.ts +23 -0
- package/dist/types/components/common/Svg.vue.d.ts +3 -0
- package/dist/types/components/common/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +9 -0
- package/dist/types/composables/baiduAnalytics.d.ts +17 -0
- package/dist/types/composables/googleAnalytics.d.ts +12 -0
- package/dist/types/composables/index.d.ts +4 -0
- package/dist/types/composables/umamiAnalytics.d.ts +13 -0
- package/dist/types/composables/utils.d.ts +30 -0
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/types.d.ts +313 -0
- package/dist/types/vite.config.d.ts +2 -0
- package/package.json +131 -3
- package/readme.md +39 -0
- package/style/all.css +9 -0
- package/style/badge.css +21 -0
- package/style/button.css +48 -0
- package/style/colors.css +59 -0
- package/style/components-var.css +173 -0
- package/style/doc-blocks.css +136 -0
- package/style/doc.css +17 -0
- package/style/home.css +34 -0
- package/style/icon.css +11 -0
- package/style/picture.css +40 -0
- package/tsconfig.json +17 -0
- package/types/index.d.ts +3 -0
- package/types/index.ts +6 -0
- package/types/shims.d.ts +36 -0
- package/types/style.d.ts +10 -0
- package/types/types.ts +318 -0
- package/README.md +0 -3
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
types: {
|
|
3
|
+
feat: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
fix: {
|
|
7
|
+
title: string;
|
|
8
|
+
};
|
|
9
|
+
style: {
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
refactor: {
|
|
13
|
+
title: string;
|
|
14
|
+
};
|
|
15
|
+
perf: {
|
|
16
|
+
title: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
titles: {
|
|
20
|
+
breakingChanges: string;
|
|
21
|
+
};
|
|
22
|
+
contributors: boolean;
|
|
23
|
+
capitalize: boolean;
|
|
24
|
+
group: boolean;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AsideItem } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
Aside_Data: AsideItem;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BoxCubeItem } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: BoxCubeItem[];
|
|
4
|
+
grid?: number;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CardItem } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: CardItem[];
|
|
4
|
+
grid?: number;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { IconType, ImageType } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
type?: 'auto' | 'info' | 'tip' | 'warning' | 'danger';
|
|
4
|
+
label?: string;
|
|
5
|
+
text: string;
|
|
6
|
+
toolTip?: string;
|
|
7
|
+
noIcon?: boolean;
|
|
8
|
+
icon?: IconType;
|
|
9
|
+
image?: ImageType;
|
|
10
|
+
toolTipPos?: 'top' | 'bottom' | 'left' | 'right';
|
|
11
|
+
bold?: 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,7 @@
|
|
|
1
|
+
import type { FooterData } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
Footer_Data: FooterData;
|
|
4
|
+
};
|
|
5
|
+
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>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { LinkItem } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
items: LinkItem[];
|
|
4
|
+
grid?: number;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IconType, ImageType, LinkType, RelType, SizeType, TargetType } from '../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name: string;
|
|
4
|
+
link?: LinkType;
|
|
5
|
+
rel?: RelType;
|
|
6
|
+
target?: TargetType;
|
|
7
|
+
icon?: IconType;
|
|
8
|
+
image?: ImageType;
|
|
9
|
+
size?: SizeType;
|
|
10
|
+
};
|
|
11
|
+
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>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IconMode, IconType, SizeType } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
icon: IconType;
|
|
4
|
+
color?: IconMode;
|
|
5
|
+
size?: SizeType;
|
|
6
|
+
};
|
|
7
|
+
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>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ImageType, SizeType } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
image: ImageType;
|
|
4
|
+
size?: SizeType;
|
|
5
|
+
};
|
|
6
|
+
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>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { LinkType, RelType, TargetType } from '../../types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
tag?: string;
|
|
4
|
+
href: LinkType;
|
|
5
|
+
rel?: RelType;
|
|
6
|
+
target?: TargetType;
|
|
7
|
+
noIcon?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_template: () => {
|
|
10
|
+
__VLS_Slots: {
|
|
11
|
+
default?: (props: {}) => any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
15
|
+
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>;
|
|
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,3 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as Aside } from "./Aside.vue";
|
|
2
|
+
export { default as BoxCube } from "./BoxCube.vue";
|
|
3
|
+
export { default as Card } from "./Card.vue";
|
|
4
|
+
export { default as CopyText } from "./CopyText.vue";
|
|
5
|
+
export { default as Footer } from "./Footer.vue";
|
|
6
|
+
export { default as Links } from "./Links.vue";
|
|
7
|
+
export { default as Notice } from "./Notice.vue";
|
|
8
|
+
export { default as Pill } from "./Pill.vue";
|
|
9
|
+
export { default as Underline } from "./Underline.vue";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
_hmt: any[];
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export interface BaiduAnalyticsOptions {
|
|
7
|
+
baiduId: string;
|
|
8
|
+
}
|
|
9
|
+
/** 注册百度统计 */
|
|
10
|
+
export declare function baiduAnalytics(options: BaiduAnalyticsOptions): void;
|
|
11
|
+
/**
|
|
12
|
+
* 上报页面视图
|
|
13
|
+
*
|
|
14
|
+
* @param baiduId - 百度统计 ID
|
|
15
|
+
* @param pageUrl - 页面 URL
|
|
16
|
+
*/
|
|
17
|
+
export declare function trackPageview(baiduId: string, pageUrl: string): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const dataLayer: any[];
|
|
2
|
+
declare const gtag: (...args: any[]) => void;
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
dataLayer?: typeof dataLayer;
|
|
6
|
+
gtag?: typeof gtag;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
declare const _default: ({ id }: {
|
|
10
|
+
id: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
umami: Function;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export interface Umami {
|
|
7
|
+
id: string;
|
|
8
|
+
src: string;
|
|
9
|
+
domains?: string;
|
|
10
|
+
}
|
|
11
|
+
export type UmamiOption = Umami | Umami[];
|
|
12
|
+
declare const _default: (options: UmamiOption) => void;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
import type { NoticeItem } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* 提取 frontmatter 中 hero 配置的 `Notice` 属性。
|
|
5
|
+
*
|
|
6
|
+
* @returns 包含 `NoticeItem` 对象或 `undefined` 的计算属性
|
|
7
|
+
*/
|
|
8
|
+
export declare const useNotice: () => ComputedRef<NoticeItem | undefined>;
|
|
9
|
+
/** 匹配外部链接的正则:以协议(如 http:、https:、mailto:)或 `//` 开头 */
|
|
10
|
+
export declare const EXTERNAL_URL_RE: RegExp;
|
|
11
|
+
/**
|
|
12
|
+
* 判断给定路径是否为外部链接。
|
|
13
|
+
*
|
|
14
|
+
* @param path - 链接路径字符串
|
|
15
|
+
* @returns 是外部链接返回 true,否则 false
|
|
16
|
+
*/
|
|
17
|
+
export declare function isExternal(path: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* 将指定 refName 的 DOM 元素移动到目标容器,并在组件卸载时复原。
|
|
20
|
+
*
|
|
21
|
+
* @param refName - 需要移动的 ref 名称
|
|
22
|
+
* @param targetSelector - 目标容器的选择器,默认为 '.VPHero .text'
|
|
23
|
+
*/
|
|
24
|
+
export declare function moveDomElements(refName: string, targetSelector?: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* 获取当前激活的 locale key(如 `root`、`en`)。
|
|
27
|
+
*
|
|
28
|
+
* @returns 当前激活的 locale key
|
|
29
|
+
*/
|
|
30
|
+
export declare function getLocaleKey(): ComputedRef<string>;
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
/** 图标和图片的类型 */
|
|
2
|
+
export type IconMode = string | {
|
|
3
|
+
light: string;
|
|
4
|
+
dark: string;
|
|
5
|
+
};
|
|
6
|
+
/** 尺寸类型 */
|
|
7
|
+
export type SizeType = null | string | number;
|
|
8
|
+
/** 链接类型 */
|
|
9
|
+
export type LinkType = string | undefined;
|
|
10
|
+
/** Rel 属性类型 */
|
|
11
|
+
export type RelType = string | undefined;
|
|
12
|
+
/** 目标类型 */
|
|
13
|
+
export type TargetType = string | undefined;
|
|
14
|
+
export type IconType = string | {
|
|
15
|
+
icon: string;
|
|
16
|
+
color?: IconMode;
|
|
17
|
+
} | {
|
|
18
|
+
light: string;
|
|
19
|
+
dark: string;
|
|
20
|
+
color?: IconMode;
|
|
21
|
+
} | {
|
|
22
|
+
svg: IconMode;
|
|
23
|
+
};
|
|
24
|
+
export type ImageType = string | {
|
|
25
|
+
src: string;
|
|
26
|
+
crop?: boolean;
|
|
27
|
+
[prop: string]: any;
|
|
28
|
+
} | {
|
|
29
|
+
light: string;
|
|
30
|
+
dark: string;
|
|
31
|
+
crop?: boolean;
|
|
32
|
+
[prop: string]: any;
|
|
33
|
+
};
|
|
34
|
+
/** Pill */
|
|
35
|
+
export interface PillItem {
|
|
36
|
+
/** 名称 */
|
|
37
|
+
name: string;
|
|
38
|
+
/** 链接 */
|
|
39
|
+
link?: LinkType;
|
|
40
|
+
/** Rel 属性 */
|
|
41
|
+
rel?: RelType;
|
|
42
|
+
/** 链接的目标 */
|
|
43
|
+
target?: TargetType;
|
|
44
|
+
/** 图标配置 */
|
|
45
|
+
icon?: IconType;
|
|
46
|
+
/** 图片配置 */
|
|
47
|
+
image?: ImageType;
|
|
48
|
+
/** 图片和图标大小 @default '14' */
|
|
49
|
+
size?: SizeType;
|
|
50
|
+
}
|
|
51
|
+
/** Links */
|
|
52
|
+
export interface LinkItem {
|
|
53
|
+
/** 名称 */
|
|
54
|
+
name: string;
|
|
55
|
+
/** 描述 */
|
|
56
|
+
desc?: string;
|
|
57
|
+
/** 链接 */
|
|
58
|
+
link?: LinkType;
|
|
59
|
+
/** 链接地址描述文本 */
|
|
60
|
+
linkText?: string;
|
|
61
|
+
/** Rel 属性 */
|
|
62
|
+
rel?: RelType;
|
|
63
|
+
/** 链接的目标 */
|
|
64
|
+
target?: TargetType;
|
|
65
|
+
/** 图标配置 */
|
|
66
|
+
icon?: IconType;
|
|
67
|
+
/** 图片配置 */
|
|
68
|
+
image?: ImageType;
|
|
69
|
+
/** 图片和图标大小 @default '32' */
|
|
70
|
+
size?: SizeType;
|
|
71
|
+
}
|
|
72
|
+
/** BoxCube */
|
|
73
|
+
export interface BoxCubeItem {
|
|
74
|
+
/** 名称 */
|
|
75
|
+
name: string;
|
|
76
|
+
/** 链接 */
|
|
77
|
+
link?: LinkType;
|
|
78
|
+
/** Rel 属性 */
|
|
79
|
+
rel?: RelType;
|
|
80
|
+
/** 链接的目标 */
|
|
81
|
+
target?: TargetType;
|
|
82
|
+
/** 图标配置 */
|
|
83
|
+
icon?: IconType;
|
|
84
|
+
/** 图片配置 */
|
|
85
|
+
image?: ImageType;
|
|
86
|
+
/** 图片和图标大小 @default '32' */
|
|
87
|
+
size?: SizeType;
|
|
88
|
+
}
|
|
89
|
+
/** Card */
|
|
90
|
+
export interface CardItem {
|
|
91
|
+
/** 名称 */
|
|
92
|
+
name?: string;
|
|
93
|
+
/** 描述 */
|
|
94
|
+
desc?: string;
|
|
95
|
+
/** 链接 */
|
|
96
|
+
link?: LinkType;
|
|
97
|
+
/** Rel 属性 */
|
|
98
|
+
rel?: RelType;
|
|
99
|
+
/** 链接的目标 */
|
|
100
|
+
target?: TargetType;
|
|
101
|
+
/** 图标配置 */
|
|
102
|
+
icon?: IconType;
|
|
103
|
+
/** 图片配置 */
|
|
104
|
+
image?: ImageType;
|
|
105
|
+
/** 图片和图标大小 @default '48' */
|
|
106
|
+
size?: SizeType;
|
|
107
|
+
}
|
|
108
|
+
/** CopyText */
|
|
109
|
+
export interface CopyTextItem {
|
|
110
|
+
/** 颜色类型 @default 'auto' */
|
|
111
|
+
type?: 'auto' | 'info' | 'tip' | 'warning' | 'danger';
|
|
112
|
+
/** 显示的文本 */
|
|
113
|
+
label?: string;
|
|
114
|
+
/** 复制按钮的文本内容 */
|
|
115
|
+
text: string;
|
|
116
|
+
/** 复制成功后的提示文本 @default '已复制' */
|
|
117
|
+
toolTip?: string;
|
|
118
|
+
/** 关闭图标 */
|
|
119
|
+
noIcon?: boolean;
|
|
120
|
+
/** 图标配置 @default 'heroicons-outline:clipboard-copy' */
|
|
121
|
+
icon?: IconType;
|
|
122
|
+
/** 图片配置 */
|
|
123
|
+
image?: ImageType;
|
|
124
|
+
/** 提示显示的方向 @default 'top' */
|
|
125
|
+
toolTipPos?: 'top' | 'bottom' | 'left' | 'right';
|
|
126
|
+
/** 是否加粗文本 @default false */
|
|
127
|
+
bold?: boolean;
|
|
128
|
+
}
|
|
129
|
+
/** Promo :表示一个具有活动性质的推广项 */
|
|
130
|
+
export interface Promo {
|
|
131
|
+
/** 活动标题 */
|
|
132
|
+
promo: string;
|
|
133
|
+
/** 跳转链接 */
|
|
134
|
+
link?: LinkType;
|
|
135
|
+
/** Rel 属性 */
|
|
136
|
+
rel?: RelType;
|
|
137
|
+
/** 链接的目标 */
|
|
138
|
+
target?: TargetType;
|
|
139
|
+
/** 附加信息1 */
|
|
140
|
+
info1?: string;
|
|
141
|
+
/** 附加信息2 */
|
|
142
|
+
info2?: string;
|
|
143
|
+
/** 图标配置 */
|
|
144
|
+
icon?: IconType;
|
|
145
|
+
/** 图片配置 */
|
|
146
|
+
image?: ImageType;
|
|
147
|
+
/** 图片和图标大小 @default '32' */
|
|
148
|
+
size?: SizeType;
|
|
149
|
+
}
|
|
150
|
+
/** Normal :表示普通链接项 */
|
|
151
|
+
export interface Normal {
|
|
152
|
+
/** 名称标题 */
|
|
153
|
+
name: string;
|
|
154
|
+
/** 跳转链接 */
|
|
155
|
+
link?: LinkType;
|
|
156
|
+
/** Rel 属性 */
|
|
157
|
+
rel?: RelType;
|
|
158
|
+
/** 链接的目标 */
|
|
159
|
+
target?: TargetType;
|
|
160
|
+
/** 隐藏信息1(可用于鼠标悬停显示) */
|
|
161
|
+
hide1?: string;
|
|
162
|
+
/** 隐藏信息2 */
|
|
163
|
+
hide2?: string;
|
|
164
|
+
/** 图标配置 */
|
|
165
|
+
icon?: IconType;
|
|
166
|
+
/** 图片配置 */
|
|
167
|
+
image?: ImageType;
|
|
168
|
+
/** 图片和图标大小 @default '32' */
|
|
169
|
+
size?: SizeType;
|
|
170
|
+
}
|
|
171
|
+
/** AsidePromo :继承 Promo,同时支持 i18n 局部多语言(排除递归) */
|
|
172
|
+
export type AsidePromo = Promo & {
|
|
173
|
+
/** 可选的多语言翻译字段,键为语言代码 */
|
|
174
|
+
i18n?: Partial<Record<string, Omit<AsidePromo, 'i18n'>>>;
|
|
175
|
+
};
|
|
176
|
+
/** AsideNormal :继承 Normal,同时支持 i18n 局部多语言(排除递归) */
|
|
177
|
+
export type AsideNormal = Normal & {
|
|
178
|
+
/** 可选的多语言翻译字段,键为语言代码 */
|
|
179
|
+
i18n?: Partial<Record<string, Omit<AsideNormal, 'i18n'>>>;
|
|
180
|
+
};
|
|
181
|
+
/** AsideAll :联合类型,允许是 Promo 或 Normal */
|
|
182
|
+
export type AsideAll = AsidePromo | AsideNormal;
|
|
183
|
+
/**
|
|
184
|
+
* AsideItem :支持两种结构
|
|
185
|
+
*
|
|
186
|
+
* 单语言:直接是 AsideAll[] 数组
|
|
187
|
+
*
|
|
188
|
+
* 多语言:包裹在 i18n 对象中,按语言划分不同的 AsideAll[] 内容
|
|
189
|
+
*/
|
|
190
|
+
export type AsideItem = AsideAll[] | {
|
|
191
|
+
i18n: Record<string, AsideAll[]>;
|
|
192
|
+
};
|
|
193
|
+
/** Notice */
|
|
194
|
+
export interface NoticeItem {
|
|
195
|
+
/** 链接 */
|
|
196
|
+
link?: LinkType;
|
|
197
|
+
/** Rel 属性 */
|
|
198
|
+
rel?: RelType;
|
|
199
|
+
/** 链接的目标 */
|
|
200
|
+
target?: TargetType;
|
|
201
|
+
/** 链接的标题 */
|
|
202
|
+
title: string;
|
|
203
|
+
/** 链接的内容 */
|
|
204
|
+
desc?: string;
|
|
205
|
+
/** 日期 */
|
|
206
|
+
date?: string;
|
|
207
|
+
/** 日期文本 */
|
|
208
|
+
dateText?: string;
|
|
209
|
+
/** 日期图标 @default 'heroicons:calendar-days' */
|
|
210
|
+
dateIcon?: IconType;
|
|
211
|
+
/** 日期图片 */
|
|
212
|
+
dateImage?: ImageType;
|
|
213
|
+
}
|
|
214
|
+
/** Footer */
|
|
215
|
+
export interface FooterData {
|
|
216
|
+
i18n?: Record<string, Partial<Omit<FooterData, 'i18n'>>>;
|
|
217
|
+
/** 链接分组数组 */
|
|
218
|
+
group?: Group[];
|
|
219
|
+
/** 备案信息 */
|
|
220
|
+
beian?: Beian;
|
|
221
|
+
/** 作者信息 */
|
|
222
|
+
author?: Author;
|
|
223
|
+
/** 外部链接图标开关 */
|
|
224
|
+
noIcon?: boolean;
|
|
225
|
+
}
|
|
226
|
+
/** Footer_Group */
|
|
227
|
+
export interface Group {
|
|
228
|
+
/** 图标配置 */
|
|
229
|
+
icon?: IconType;
|
|
230
|
+
/** 图片配置 */
|
|
231
|
+
image?: ImageType;
|
|
232
|
+
/** 外部链接图标开关 */
|
|
233
|
+
noIcon?: boolean;
|
|
234
|
+
/** 分组标题 */
|
|
235
|
+
title: string;
|
|
236
|
+
/** 链接数组 */
|
|
237
|
+
links: Link[];
|
|
238
|
+
}
|
|
239
|
+
/** Footer_Beian */
|
|
240
|
+
export interface Beian {
|
|
241
|
+
/** ICP 备案 */
|
|
242
|
+
icp?: Icp;
|
|
243
|
+
/** 公安备案 */
|
|
244
|
+
police?: Police;
|
|
245
|
+
/** 是否显示图标 */
|
|
246
|
+
showIcon?: boolean;
|
|
247
|
+
}
|
|
248
|
+
/** Footer_Beian_Icp */
|
|
249
|
+
export interface Icp {
|
|
250
|
+
/** ICP 备案号 */
|
|
251
|
+
number?: string;
|
|
252
|
+
/** ICP 图标 */
|
|
253
|
+
icon?: IconType;
|
|
254
|
+
/** 图片配置 */
|
|
255
|
+
image?: ImageType;
|
|
256
|
+
/** ICP网站或自定义链接 */
|
|
257
|
+
link?: LinkType;
|
|
258
|
+
/** Rel 属性 */
|
|
259
|
+
rel?: RelType;
|
|
260
|
+
/** 链接的目标 */
|
|
261
|
+
target?: TargetType;
|
|
262
|
+
}
|
|
263
|
+
/** Footer_Beian_Police */
|
|
264
|
+
export interface Police {
|
|
265
|
+
/** 公安备案号 */
|
|
266
|
+
number?: string;
|
|
267
|
+
/** 公安备案图标 */
|
|
268
|
+
icon?: IconType;
|
|
269
|
+
/** 图片配置 */
|
|
270
|
+
image?: ImageType;
|
|
271
|
+
/** 公安备案网站或自定义链接 */
|
|
272
|
+
link?: LinkType;
|
|
273
|
+
/** Rel 属性 */
|
|
274
|
+
rel?: RelType;
|
|
275
|
+
/** 链接的目标 */
|
|
276
|
+
target?: TargetType;
|
|
277
|
+
}
|
|
278
|
+
/** Footer_Author */
|
|
279
|
+
export interface Author {
|
|
280
|
+
/** 版权图标配置 @default 'ri:copyright-line' */
|
|
281
|
+
icon?: IconType;
|
|
282
|
+
/** 版权图片配置 */
|
|
283
|
+
image?: ImageType;
|
|
284
|
+
/** 版权起始年份 */
|
|
285
|
+
startYear?: number;
|
|
286
|
+
/** 作者姓名 */
|
|
287
|
+
name?: string;
|
|
288
|
+
/** 作者链接 */
|
|
289
|
+
link?: LinkType;
|
|
290
|
+
/** Rel 属性 */
|
|
291
|
+
rel?: RelType;
|
|
292
|
+
/** 链接的目标 */
|
|
293
|
+
target?: TargetType;
|
|
294
|
+
/** 版权文本 */
|
|
295
|
+
text?: string;
|
|
296
|
+
}
|
|
297
|
+
/** Footer_Link */
|
|
298
|
+
export interface Link {
|
|
299
|
+
/** 链接图标 */
|
|
300
|
+
icon?: IconType;
|
|
301
|
+
/** 图片配置 */
|
|
302
|
+
image?: ImageType;
|
|
303
|
+
/** 外部链接图标开关 */
|
|
304
|
+
noIcon?: boolean;
|
|
305
|
+
/** 链接名称 */
|
|
306
|
+
name: string;
|
|
307
|
+
/** 链接地址 */
|
|
308
|
+
link: LinkType;
|
|
309
|
+
/** Rel 属性 */
|
|
310
|
+
rel?: RelType;
|
|
311
|
+
/** 链接的目标 */
|
|
312
|
+
target?: TargetType;
|
|
313
|
+
}
|