@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,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component: picture
|
|
3
|
+
* -------------------------------------------------------------------------- */
|
|
4
|
+
|
|
5
|
+
:root:not(.dark) .dark-only,
|
|
6
|
+
:root:is(.dark) .light-only,
|
|
7
|
+
:root:not(.dark) img[src$='#dark'],
|
|
8
|
+
:root:is(.dark) img[src$='#light'] {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* @mdit/plugin-figure: https://mdit-plugins.github.io/zh/figure.html */
|
|
13
|
+
:root:not(.dark) .dark-only + figcaption,
|
|
14
|
+
:root:is(.dark) .light-only + figcaption,
|
|
15
|
+
:root:not(.dark) img[src$='#dark'] + figcaption,
|
|
16
|
+
:root:is(.dark) img[src$='#light'] + figcaption {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
figure {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: center;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
figure img {
|
|
28
|
+
border-radius: 0.5em;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
figure figcaption {
|
|
32
|
+
margin: 0;
|
|
33
|
+
color: var(--vp-c-text-3);
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
font-size: 0.875em;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
figure figcaption a {
|
|
39
|
+
color: var(--vp-c-text-3) !important;
|
|
40
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"esModuleInterop": true,
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"lib": ["esnext", "dom", "dom.iterable"],
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
|
+
"noUnusedLocals": true,
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"target": "esnext",
|
|
13
|
+
"typeRoots": ["./types", "./node_modules/@types"],
|
|
14
|
+
"verbatimModuleSyntax": true
|
|
15
|
+
},
|
|
16
|
+
"include": ["types/**/*.d.ts", "**/*.ts", "**/*.vue"]
|
|
17
|
+
}
|
package/types/index.d.ts
ADDED
package/types/index.ts
ADDED
package/types/shims.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface ImportMetaEnv {
|
|
2
|
+
readonly PROD: boolean;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface ImportMeta {
|
|
6
|
+
readonly env: ImportMetaEnv;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module "*.css" {
|
|
10
|
+
const content: Record<string, string>;
|
|
11
|
+
export default content;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare module "*.scss" {
|
|
15
|
+
const content: Record<string, string>;
|
|
16
|
+
export default content;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare module "*.sass" {
|
|
20
|
+
const content: Record<string, string>;
|
|
21
|
+
export default content;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module "*.vue" {
|
|
25
|
+
import type { DefineComponent } from "vue";
|
|
26
|
+
|
|
27
|
+
const component: DefineComponent<{}, {}, any>;
|
|
28
|
+
export default component;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
declare module "iconify-icon" {}
|
|
32
|
+
|
|
33
|
+
declare module "lum/*" {
|
|
34
|
+
const content: any;
|
|
35
|
+
export default content;
|
|
36
|
+
}
|
package/types/style.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module "lum/style" {}
|
|
2
|
+
declare module "lum/icon" {}
|
|
3
|
+
declare module "lum/button" {}
|
|
4
|
+
declare module "lum/colors" {}
|
|
5
|
+
declare module "lum/doc" {}
|
|
6
|
+
declare module "lum/doc-blocks" {}
|
|
7
|
+
declare module "lum/home" {}
|
|
8
|
+
declare module "lum/pic" {}
|
|
9
|
+
declare module "lum/badge" {}
|
|
10
|
+
declare module "lum/components-var" {}
|
package/types/types.ts
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
/** 图标和图片的类型 */
|
|
2
|
+
export type IconMode = string | { light: string; dark: string }
|
|
3
|
+
/** 尺寸类型 */
|
|
4
|
+
export type SizeType = null | string | number
|
|
5
|
+
/** 链接类型 */
|
|
6
|
+
export type LinkType = string | undefined
|
|
7
|
+
/** Rel 属性类型 */
|
|
8
|
+
export type RelType = string | undefined
|
|
9
|
+
/** 目标类型 */
|
|
10
|
+
export type TargetType = string | undefined
|
|
11
|
+
|
|
12
|
+
export type IconType =
|
|
13
|
+
| string
|
|
14
|
+
| { icon: string; color?: IconMode }
|
|
15
|
+
| { light: string; dark: string; color?: IconMode }
|
|
16
|
+
| { svg: IconMode }
|
|
17
|
+
|
|
18
|
+
export type ImageType =
|
|
19
|
+
| string
|
|
20
|
+
| { src: string; crop?: boolean; [prop: string]: any }
|
|
21
|
+
| { light: string; dark: string; crop?: boolean; [prop: string]: any }
|
|
22
|
+
|
|
23
|
+
/** Pill */
|
|
24
|
+
export interface PillItem {
|
|
25
|
+
/** 名称 */
|
|
26
|
+
name: string
|
|
27
|
+
/** 链接 */
|
|
28
|
+
link?: LinkType
|
|
29
|
+
/** Rel 属性 */
|
|
30
|
+
rel?: RelType
|
|
31
|
+
/** 链接的目标 */
|
|
32
|
+
target?: TargetType
|
|
33
|
+
/** 图标配置 */
|
|
34
|
+
icon?: IconType
|
|
35
|
+
/** 图片配置 */
|
|
36
|
+
image?: ImageType
|
|
37
|
+
/** 图片和图标大小 @default '14' */
|
|
38
|
+
size?: SizeType
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/** Links */
|
|
42
|
+
export interface LinkItem {
|
|
43
|
+
/** 名称 */
|
|
44
|
+
name: string
|
|
45
|
+
/** 描述 */
|
|
46
|
+
desc?: string
|
|
47
|
+
/** 链接 */
|
|
48
|
+
link?: LinkType
|
|
49
|
+
/** 链接地址描述文本 */
|
|
50
|
+
linkText?: string
|
|
51
|
+
/** Rel 属性 */
|
|
52
|
+
rel?: RelType
|
|
53
|
+
/** 链接的目标 */
|
|
54
|
+
target?: TargetType
|
|
55
|
+
/** 图标配置 */
|
|
56
|
+
icon?: IconType
|
|
57
|
+
/** 图片配置 */
|
|
58
|
+
image?: ImageType
|
|
59
|
+
/** 图片和图标大小 @default '32' */
|
|
60
|
+
size?: SizeType
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** BoxCube */
|
|
64
|
+
export interface BoxCubeItem {
|
|
65
|
+
/** 名称 */
|
|
66
|
+
name: string
|
|
67
|
+
/** 链接 */
|
|
68
|
+
link?: LinkType
|
|
69
|
+
/** Rel 属性 */
|
|
70
|
+
rel?: RelType
|
|
71
|
+
/** 链接的目标 */
|
|
72
|
+
target?: TargetType
|
|
73
|
+
/** 图标配置 */
|
|
74
|
+
icon?: IconType
|
|
75
|
+
/** 图片配置 */
|
|
76
|
+
image?: ImageType
|
|
77
|
+
/** 图片和图标大小 @default '32' */
|
|
78
|
+
size?: SizeType
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Card */
|
|
82
|
+
export interface CardItem {
|
|
83
|
+
/** 名称 */
|
|
84
|
+
name?: string
|
|
85
|
+
/** 描述 */
|
|
86
|
+
desc?: string
|
|
87
|
+
/** 链接 */
|
|
88
|
+
link?: LinkType
|
|
89
|
+
/** Rel 属性 */
|
|
90
|
+
rel?: RelType
|
|
91
|
+
/** 链接的目标 */
|
|
92
|
+
target?: TargetType
|
|
93
|
+
/** 图标配置 */
|
|
94
|
+
icon?: IconType
|
|
95
|
+
/** 图片配置 */
|
|
96
|
+
image?: ImageType
|
|
97
|
+
/** 图片和图标大小 @default '48' */
|
|
98
|
+
size?: SizeType
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** CopyText */
|
|
102
|
+
export interface CopyTextItem {
|
|
103
|
+
/** 颜色类型 @default 'auto' */
|
|
104
|
+
type?: 'auto' | 'info' | 'tip' | 'warning' | 'danger'
|
|
105
|
+
/** 显示的文本 */
|
|
106
|
+
label?: string
|
|
107
|
+
/** 复制按钮的文本内容 */
|
|
108
|
+
text: string
|
|
109
|
+
/** 复制成功后的提示文本 @default '已复制' */
|
|
110
|
+
toolTip?: string
|
|
111
|
+
/** 关闭图标 */
|
|
112
|
+
noIcon?: boolean
|
|
113
|
+
/** 图标配置 @default 'heroicons-outline:clipboard-copy' */
|
|
114
|
+
icon?: IconType
|
|
115
|
+
/** 图片配置 */
|
|
116
|
+
image?: ImageType
|
|
117
|
+
/** 提示显示的方向 @default 'top' */
|
|
118
|
+
toolTipPos?: 'top' | 'bottom' | 'left' | 'right'
|
|
119
|
+
/** 是否加粗文本 @default false */
|
|
120
|
+
bold?: boolean
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** Promo :表示一个具有活动性质的推广项 */
|
|
124
|
+
export interface Promo {
|
|
125
|
+
/** 活动标题 */
|
|
126
|
+
promo: string
|
|
127
|
+
/** 跳转链接 */
|
|
128
|
+
link?: LinkType
|
|
129
|
+
/** Rel 属性 */
|
|
130
|
+
rel?: RelType
|
|
131
|
+
/** 链接的目标 */
|
|
132
|
+
target?: TargetType
|
|
133
|
+
/** 附加信息1 */
|
|
134
|
+
info1?: string
|
|
135
|
+
/** 附加信息2 */
|
|
136
|
+
info2?: string
|
|
137
|
+
/** 图标配置 */
|
|
138
|
+
icon?: IconType
|
|
139
|
+
/** 图片配置 */
|
|
140
|
+
image?: ImageType
|
|
141
|
+
/** 图片和图标大小 @default '32' */
|
|
142
|
+
size?: SizeType
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** Normal :表示普通链接项 */
|
|
146
|
+
export interface Normal {
|
|
147
|
+
/** 名称标题 */
|
|
148
|
+
name: string
|
|
149
|
+
/** 跳转链接 */
|
|
150
|
+
link?: LinkType
|
|
151
|
+
/** Rel 属性 */
|
|
152
|
+
rel?: RelType
|
|
153
|
+
/** 链接的目标 */
|
|
154
|
+
target?: TargetType
|
|
155
|
+
/** 隐藏信息1(可用于鼠标悬停显示) */
|
|
156
|
+
hide1?: string
|
|
157
|
+
/** 隐藏信息2 */
|
|
158
|
+
hide2?: string
|
|
159
|
+
/** 图标配置 */
|
|
160
|
+
icon?: IconType
|
|
161
|
+
/** 图片配置 */
|
|
162
|
+
image?: ImageType
|
|
163
|
+
/** 图片和图标大小 @default '32' */
|
|
164
|
+
size?: SizeType
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** AsidePromo :继承 Promo,同时支持 i18n 局部多语言(排除递归) */
|
|
168
|
+
export type AsidePromo = Promo & {
|
|
169
|
+
/** 可选的多语言翻译字段,键为语言代码 */
|
|
170
|
+
i18n?: Partial<Record<string, Omit<AsidePromo, 'i18n'>>>
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** AsideNormal :继承 Normal,同时支持 i18n 局部多语言(排除递归) */
|
|
174
|
+
export type AsideNormal = Normal & {
|
|
175
|
+
/** 可选的多语言翻译字段,键为语言代码 */
|
|
176
|
+
i18n?: Partial<Record<string, Omit<AsideNormal, 'i18n'>>>
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** AsideAll :联合类型,允许是 Promo 或 Normal */
|
|
180
|
+
export type AsideAll = AsidePromo | AsideNormal
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* AsideItem :支持两种结构
|
|
184
|
+
*
|
|
185
|
+
* 单语言:直接是 AsideAll[] 数组
|
|
186
|
+
*
|
|
187
|
+
* 多语言:包裹在 i18n 对象中,按语言划分不同的 AsideAll[] 内容
|
|
188
|
+
*/
|
|
189
|
+
export type AsideItem = AsideAll[] | { i18n: Record<string, AsideAll[]> }
|
|
190
|
+
|
|
191
|
+
/** Notice */
|
|
192
|
+
export interface NoticeItem {
|
|
193
|
+
/** 链接 */
|
|
194
|
+
link?: LinkType
|
|
195
|
+
/** Rel 属性 */
|
|
196
|
+
rel?: RelType
|
|
197
|
+
/** 链接的目标 */
|
|
198
|
+
target?: TargetType
|
|
199
|
+
/** 链接的标题 */
|
|
200
|
+
title: string
|
|
201
|
+
/** 链接的内容 */
|
|
202
|
+
desc?: string
|
|
203
|
+
/** 日期 */
|
|
204
|
+
date?: string
|
|
205
|
+
/** 日期文本 */
|
|
206
|
+
dateText?: string
|
|
207
|
+
/** 日期图标 @default 'heroicons:calendar-days' */
|
|
208
|
+
dateIcon?: IconType
|
|
209
|
+
/** 日期图片 */
|
|
210
|
+
dateImage?: ImageType
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** Footer */
|
|
214
|
+
export interface FooterData {
|
|
215
|
+
i18n?: Record<string, Partial<Omit<FooterData, 'i18n'>>>
|
|
216
|
+
/** 链接分组数组 */
|
|
217
|
+
group?: Group[]
|
|
218
|
+
/** 备案信息 */
|
|
219
|
+
beian?: Beian
|
|
220
|
+
/** 作者信息 */
|
|
221
|
+
author?: Author
|
|
222
|
+
/** 外部链接图标开关 */
|
|
223
|
+
noIcon?: boolean
|
|
224
|
+
}
|
|
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
|
+
|
|
240
|
+
/** Footer_Beian */
|
|
241
|
+
export interface Beian {
|
|
242
|
+
/** ICP 备案 */
|
|
243
|
+
icp?: Icp
|
|
244
|
+
/** 公安备案 */
|
|
245
|
+
police?: Police
|
|
246
|
+
/** 是否显示图标 */
|
|
247
|
+
showIcon?: boolean
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/** Footer_Beian_Icp */
|
|
251
|
+
export interface Icp {
|
|
252
|
+
/** ICP 备案号 */
|
|
253
|
+
number?: string
|
|
254
|
+
/** ICP 图标 */
|
|
255
|
+
icon?: IconType
|
|
256
|
+
/** 图片配置 */
|
|
257
|
+
image?: ImageType
|
|
258
|
+
/** ICP网站或自定义链接 */
|
|
259
|
+
link?: LinkType
|
|
260
|
+
/** Rel 属性 */
|
|
261
|
+
rel?: RelType
|
|
262
|
+
/** 链接的目标 */
|
|
263
|
+
target?: TargetType
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/** Footer_Beian_Police */
|
|
267
|
+
export interface Police {
|
|
268
|
+
/** 公安备案号 */
|
|
269
|
+
number?: string
|
|
270
|
+
/** 公安备案图标 */
|
|
271
|
+
icon?: IconType
|
|
272
|
+
/** 图片配置 */
|
|
273
|
+
image?: ImageType
|
|
274
|
+
/** 公安备案网站或自定义链接 */
|
|
275
|
+
link?: LinkType
|
|
276
|
+
/** Rel 属性 */
|
|
277
|
+
rel?: RelType
|
|
278
|
+
/** 链接的目标 */
|
|
279
|
+
target?: TargetType
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/** Footer_Author */
|
|
283
|
+
export interface Author {
|
|
284
|
+
/** 版权图标配置 @default 'ri:copyright-line' */
|
|
285
|
+
icon?: IconType
|
|
286
|
+
/** 版权图片配置 */
|
|
287
|
+
image?: ImageType
|
|
288
|
+
/** 版权起始年份 */
|
|
289
|
+
startYear?: number
|
|
290
|
+
/** 作者姓名 */
|
|
291
|
+
name?: string
|
|
292
|
+
/** 作者链接 */
|
|
293
|
+
link?: LinkType
|
|
294
|
+
/** Rel 属性 */
|
|
295
|
+
rel?: RelType
|
|
296
|
+
/** 链接的目标 */
|
|
297
|
+
target?: TargetType
|
|
298
|
+
/** 版权文本 */
|
|
299
|
+
text?: string
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/** Footer_Link */
|
|
303
|
+
export interface Link {
|
|
304
|
+
/** 链接图标 */
|
|
305
|
+
icon?: IconType
|
|
306
|
+
/** 图片配置 */
|
|
307
|
+
image?: ImageType
|
|
308
|
+
/** 外部链接图标开关 */
|
|
309
|
+
noIcon?: boolean
|
|
310
|
+
/** 链接名称 */
|
|
311
|
+
name: string
|
|
312
|
+
/** 链接地址 */
|
|
313
|
+
link: LinkType
|
|
314
|
+
/** Rel 属性 */
|
|
315
|
+
rel?: RelType
|
|
316
|
+
/** 链接的目标 */
|
|
317
|
+
target?: TargetType
|
|
318
|
+
}
|
package/README.md
DELETED