ai-front-base 0.2.3 → 0.2.6
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/AiDatePicker/index.vue.mjs +62 -9
- package/dist/components/AiDatePicker/types.ts +9 -12
- package/dist/components/AiDateRangePicker/index.mjs +7 -0
- package/dist/components/AiDateRangePicker/index.vue.mjs +33 -0
- package/dist/components/AiDateRangePicker/types.ts +33 -0
- package/dist/components/AiForm/README.md +35 -0
- package/dist/components/AiForm/index.mjs +4 -1
- package/dist/components/AiForm/index.vue.mjs +145 -36
- package/dist/components/AiForm/types.ts +402 -22
- package/dist/components/AiInput/index.vue.mjs +46 -11
- package/dist/components/AiInput/types.ts +7 -6
- package/dist/components/AiSelect/index.vue.mjs +98 -17
- package/dist/components/AiSelect/types.ts +10 -17
- package/dist/components/AiTable/index.mjs +5 -2
- package/dist/components/AiTable/index.vue.mjs +213 -22
- package/dist/components/AiTable/types.ts +196 -16
- package/dist/components/AiTag/types.ts +6 -7
- package/dist/components/README.md +1 -26
- package/dist/components/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/dist/components/install.mjs +15 -0
- package/dist/index.mjs +14 -50
- package/dist/layouts/README.md +17 -14
- package/dist/layouts/default.md +238 -0
- package/dist/styles/README.md +18 -139
- package/dist/styles/index.scss +5 -0
- package/dist/styles/light.scss +102 -0
- package/package.json +2 -1
- package/dist/components/AiAside/index.mjs +0 -4
- package/dist/components/AiAside/index.vue.mjs +0 -20
- package/dist/components/AiAside/types.ts +0 -6
- package/dist/components/AiBadge/index.mjs +0 -4
- package/dist/components/AiBadge/index.vue.mjs +0 -20
- package/dist/components/AiBadge/types.ts +0 -10
- package/dist/components/AiBreadcrumb/index.mjs +0 -4
- package/dist/components/AiBreadcrumb/index.vue.mjs +0 -20
- package/dist/components/AiBreadcrumb/types.ts +0 -7
- package/dist/components/AiCheckbox/index.mjs +0 -4
- package/dist/components/AiCheckbox/index.vue.mjs +0 -20
- package/dist/components/AiCheckbox/types.ts +0 -14
- package/dist/components/AiContainer/index.mjs +0 -4
- package/dist/components/AiContainer/index.vue.mjs +0 -20
- package/dist/components/AiContainer/types.ts +0 -6
- package/dist/components/AiDialog/index.mjs +0 -4
- package/dist/components/AiDialog/index.vue.mjs +0 -20
- package/dist/components/AiDialog/types.ts +0 -11
- package/dist/components/AiFooter/index.mjs +0 -4
- package/dist/components/AiFooter/index.vue.mjs +0 -20
- package/dist/components/AiFooter/types.ts +0 -6
- package/dist/components/AiHeader/index.mjs +0 -4
- package/dist/components/AiHeader/index.vue.mjs +0 -20
- package/dist/components/AiHeader/types.ts +0 -6
- package/dist/components/AiLoading/index.mjs +0 -5
- package/dist/components/AiLoading/types.ts +0 -7
- package/dist/components/AiMain/index.mjs +0 -4
- package/dist/components/AiMain/index.vue.mjs +0 -20
- package/dist/components/AiMain/types.ts +0 -4
- package/dist/components/AiMenu/index.mjs +0 -4
- package/dist/components/AiMenu/index.vue.mjs +0 -20
- package/dist/components/AiMenu/types.ts +0 -9
- package/dist/components/AiMessage/index.mjs +0 -5
- package/dist/components/AiMessage/types.ts +0 -9
- package/dist/components/AiNotification/index.mjs +0 -5
- package/dist/components/AiNotification/types.ts +0 -10
- package/dist/components/AiPagination/index.mjs +0 -4
- package/dist/components/AiPagination/index.vue.mjs +0 -15
- package/dist/components/AiPagination/types.ts +0 -9
- package/dist/components/AiProgress/index.mjs +0 -4
- package/dist/components/AiProgress/index.vue.mjs +0 -15
- package/dist/components/AiProgress/types.ts +0 -10
- package/dist/components/AiRadio/index.mjs +0 -4
- package/dist/components/AiRadio/index.vue.mjs +0 -20
- package/dist/components/AiRadio/types.ts +0 -8
- package/dist/components/AiSwitch/index.mjs +0 -4
- package/dist/components/AiSwitch/index.vue.mjs +0 -15
- package/dist/components/AiSwitch/types.ts +0 -9
- package/dist/components/AiTabs/index.mjs +0 -4
- package/dist/components/AiTabs/index.vue.mjs +0 -20
- package/dist/components/AiTabs/types.ts +0 -9
- package/dist/components/AiTimePicker/index.mjs +0 -4
- package/dist/components/AiTimePicker/index.vue.mjs +0 -15
- package/dist/components/AiTimePicker/types.ts +0 -16
- package/dist/components/AiUpload/index.mjs +0 -4
- package/dist/components/AiUpload/index.vue.mjs +0 -20
- package/dist/components/AiUpload/types.ts +0 -11
- package/dist/layouts/government.md +0 -223
- package/dist/layouts/union.md +0 -229
- package/dist/styles/blue.scss +0 -71
- package/dist/styles/dark.scss +0 -71
- package/dist/styles/element-plus-theme.css +0 -52
- package/dist/styles/index.css +0 -77
- package/dist/styles/light-blue.scss +0 -71
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
# 政务服务布局规则(PC端)
|
|
2
|
-
|
|
3
|
-
## 场景概述
|
|
4
|
-
|
|
5
|
-
**适用场景**:政务服务平台、行政审批系统、公共服务门户
|
|
6
|
-
**平台**:PC端
|
|
7
|
-
**核心特点**:现代专业、清晰透明、高效便捷
|
|
8
|
-
|
|
9
|
-
## 颜色方案
|
|
10
|
-
|
|
11
|
-
**默认主题**:`blue`
|
|
12
|
-
|
|
13
|
-
**推荐主题**:
|
|
14
|
-
- `blue` - 蓝色专业主题
|
|
15
|
-
- `dark` - 深色科技主题
|
|
16
|
-
|
|
17
|
-
## 整体布局结构
|
|
18
|
-
|
|
19
|
-
### 标准后台布局
|
|
20
|
-
```
|
|
21
|
-
┌─────────────────────────────────────┐
|
|
22
|
-
│ Header (60px) │
|
|
23
|
-
├──────┬──────────────────────────────┤
|
|
24
|
-
│ │ │
|
|
25
|
-
│ Aside│ Main │
|
|
26
|
-
│(200px│ Content │
|
|
27
|
-
│ │ │
|
|
28
|
-
├──────┴──────────────────────────────┤
|
|
29
|
-
│ Footer (60px) │
|
|
30
|
-
└─────────────────────────────────────┘
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**布局规范**:
|
|
34
|
-
- Header高度:60px,固定定位
|
|
35
|
-
- Aside宽度:200px(收起时64px)
|
|
36
|
-
- Main内边距:24px
|
|
37
|
-
- Footer高度:60px
|
|
38
|
-
|
|
39
|
-
### 页面内容区布局
|
|
40
|
-
```
|
|
41
|
-
┌─────────────────────────────────────┐
|
|
42
|
-
│ 面包屑导航 (margin-bottom: 16px) │
|
|
43
|
-
├─────────────────────────────────────┤
|
|
44
|
-
│ 页面标题 + 操作按钮 │
|
|
45
|
-
│ (margin-bottom: 24px) │
|
|
46
|
-
├─────────────────────────────────────┤
|
|
47
|
-
│ │
|
|
48
|
-
│ 主内容区 │
|
|
49
|
-
│ (padding: 24px) │
|
|
50
|
-
│ │
|
|
51
|
-
└─────────────────────────────────────┘
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
## 页面类型布局指导
|
|
55
|
-
|
|
56
|
-
### 1. 列表页
|
|
57
|
-
|
|
58
|
-
**结构**:
|
|
59
|
-
- 搜索区:padding 24px,背景色 bg-light
|
|
60
|
-
- 表格区:margin-top 16px
|
|
61
|
-
- 分页器:margin-top 16px,居右对齐
|
|
62
|
-
|
|
63
|
-
**间距规范**:
|
|
64
|
-
- 搜索表单项间距:16px
|
|
65
|
-
- 表格行高:48px
|
|
66
|
-
- 操作按钮间距:8px
|
|
67
|
-
|
|
68
|
-
**组件使用**:
|
|
69
|
-
```vue
|
|
70
|
-
<AiContainer>
|
|
71
|
-
<AiMain>
|
|
72
|
-
<!-- 搜索区 -->
|
|
73
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-light)">
|
|
74
|
-
<AiForm :inline="true">
|
|
75
|
-
<AiInput placeholder="搜索" />
|
|
76
|
-
<AiSelect placeholder="状态" />
|
|
77
|
-
</AiForm>
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<!-- 表格区 -->
|
|
81
|
-
<AiTable :data="list" style="margin-top: var(--ai-margin-md)" />
|
|
82
|
-
|
|
83
|
-
<!-- 分页 -->
|
|
84
|
-
<AiPagination style="margin-top: var(--ai-margin-md)" />
|
|
85
|
-
</AiMain>
|
|
86
|
-
</AiContainer>
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### 2. 详情页
|
|
90
|
-
|
|
91
|
-
**结构**:
|
|
92
|
-
- 基本信息卡片:margin-bottom 16px
|
|
93
|
-
- 详细信息卡片:margin-bottom 16px
|
|
94
|
-
- 操作历史:margin-bottom 16px
|
|
95
|
-
|
|
96
|
-
**间距规范**:
|
|
97
|
-
- 卡片内边距:24px
|
|
98
|
-
- 信息项间距:16px
|
|
99
|
-
- 标签与值间距:8px
|
|
100
|
-
|
|
101
|
-
**组件使用**:
|
|
102
|
-
```vue
|
|
103
|
-
<AiContainer>
|
|
104
|
-
<AiMain>
|
|
105
|
-
<!-- 基本信息 -->
|
|
106
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base); border-radius: var(--ai-radius-base); margin-bottom: var(--ai-margin-md)">
|
|
107
|
-
<h3>基本信息</h3>
|
|
108
|
-
<div style="margin-top: var(--ai-margin-md)">
|
|
109
|
-
<div style="margin-bottom: var(--ai-margin-md)">
|
|
110
|
-
<span>姓名:</span><span>张三</span>
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
</div>
|
|
114
|
-
</AiMain>
|
|
115
|
-
</AiContainer>
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
### 3. 表单页
|
|
119
|
-
|
|
120
|
-
**结构**:
|
|
121
|
-
- 表单容器:padding 24px
|
|
122
|
-
- 表单项:margin-bottom 24px
|
|
123
|
-
- 按钮组:margin-top 32px,居中或居右
|
|
124
|
-
|
|
125
|
-
**间距规范**:
|
|
126
|
-
- 表单项间距:24px
|
|
127
|
-
- 标签宽度:120px
|
|
128
|
-
- 按钮间距:16px
|
|
129
|
-
|
|
130
|
-
**组件使用**:
|
|
131
|
-
```vue
|
|
132
|
-
<AiContainer>
|
|
133
|
-
<AiMain>
|
|
134
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base)">
|
|
135
|
-
<AiForm :label-width="120">
|
|
136
|
-
<AiInput label="姓名" />
|
|
137
|
-
<AiSelect label="部门" />
|
|
138
|
-
<div style="margin-top: var(--ai-margin-xl); text-align: center">
|
|
139
|
-
<el-button type="primary">提交</el-button>
|
|
140
|
-
<el-button>取消</el-button>
|
|
141
|
-
</div>
|
|
142
|
-
</AiForm>
|
|
143
|
-
</div>
|
|
144
|
-
</AiMain>
|
|
145
|
-
</AiContainer>
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### 4. 看板页
|
|
149
|
-
|
|
150
|
-
**结构**:
|
|
151
|
-
- 统计卡片行:margin-bottom 16px
|
|
152
|
-
- 图表区:2列或3列布局
|
|
153
|
-
- 卡片间距:16px
|
|
154
|
-
|
|
155
|
-
**间距规范**:
|
|
156
|
-
- 卡片内边距:20px
|
|
157
|
-
- 卡片间距:16px
|
|
158
|
-
- 标题与内容间距:16px
|
|
159
|
-
|
|
160
|
-
**组件使用**:
|
|
161
|
-
```vue
|
|
162
|
-
<AiContainer>
|
|
163
|
-
<AiMain>
|
|
164
|
-
<!-- 统计卡片 -->
|
|
165
|
-
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ai-spacing-md); margin-bottom: var(--ai-margin-md)">
|
|
166
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base)">
|
|
167
|
-
<AiStatistic title="总数" :value="1000" />
|
|
168
|
-
</div>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<!-- 图表区 -->
|
|
172
|
-
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ai-spacing-md)">
|
|
173
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base)">
|
|
174
|
-
图表内容
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</AiMain>
|
|
178
|
-
</AiContainer>
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### 5. 弹窗
|
|
182
|
-
|
|
183
|
-
**间距规范**:
|
|
184
|
-
- 弹窗内边距:24px
|
|
185
|
-
- 标题与内容间距:20px
|
|
186
|
-
- 按钮组间距:16px
|
|
187
|
-
|
|
188
|
-
**组件使用**:
|
|
189
|
-
```vue
|
|
190
|
-
<AiDialog title="标题" width="600px">
|
|
191
|
-
<div style="padding: var(--ai-padding-lg)">
|
|
192
|
-
内容区
|
|
193
|
-
</div>
|
|
194
|
-
<template #footer>
|
|
195
|
-
<el-button type="primary">确定</el-button>
|
|
196
|
-
<el-button>取消</el-button>
|
|
197
|
-
</template>
|
|
198
|
-
</AiDialog>
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
## 间距规范总结
|
|
202
|
-
|
|
203
|
-
| 场景 | 间距值 | CSS变量 |
|
|
204
|
-
|------|--------|---------|
|
|
205
|
-
| 页面内边距 | 24px | --ai-padding-lg |
|
|
206
|
-
| 卡片间距 | 16px | --ai-margin-md |
|
|
207
|
-
| 表单项间距 | 24px | --ai-margin-lg |
|
|
208
|
-
| 按钮间距 | 8px | --ai-margin-sm |
|
|
209
|
-
| 小元素间距 | 4px | --ai-margin-xs |
|
|
210
|
-
|
|
211
|
-
## 响应式规则
|
|
212
|
-
|
|
213
|
-
**断点**:
|
|
214
|
-
- 大屏:>1920px
|
|
215
|
-
- 标准:1440px-1920px
|
|
216
|
-
- 小屏:1280px-1440px
|
|
217
|
-
- 最小:<1280px
|
|
218
|
-
|
|
219
|
-
**适配规则**:
|
|
220
|
-
- 大屏:Main内边距增加到32px
|
|
221
|
-
- 标准:使用默认24px
|
|
222
|
-
- 小屏:Aside收起,Main内边距减少到16px
|
|
223
|
-
- 最小:不支持,提示使用更大屏幕
|
package/dist/layouts/union.md
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
# 工会系统布局规则(PC端)
|
|
2
|
-
|
|
3
|
-
## 场景概述
|
|
4
|
-
|
|
5
|
-
**适用场景**:工会管理系统、职工服务平台、工会活动管理
|
|
6
|
-
**平台**:PC端
|
|
7
|
-
**核心特点**:柔和友好、易用性强、温馨服务导向
|
|
8
|
-
|
|
9
|
-
## 颜色方案
|
|
10
|
-
|
|
11
|
-
**默认主题**:`light-blue`
|
|
12
|
-
|
|
13
|
-
**推荐主题**:
|
|
14
|
-
- `light-blue` - 浅蓝温馨主题
|
|
15
|
-
- `blue` - 蓝色专业主题
|
|
16
|
-
|
|
17
|
-
## 整体布局结构
|
|
18
|
-
|
|
19
|
-
### 标准后台布局
|
|
20
|
-
```
|
|
21
|
-
┌─────────────────────────────────────┐
|
|
22
|
-
│ Header (64px) │
|
|
23
|
-
├──────┬──────────────────────────────┤
|
|
24
|
-
│ │ │
|
|
25
|
-
│ Aside│ Main │
|
|
26
|
-
│(220px│ Content │
|
|
27
|
-
│ │ │
|
|
28
|
-
├──────┴──────────────────────────────┤
|
|
29
|
-
│ Footer (64px) │
|
|
30
|
-
└─────────────────────────────────────┘
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**布局规范**:
|
|
34
|
-
- Header高度:64px,固定定位
|
|
35
|
-
- Aside宽度:220px(收起时80px)
|
|
36
|
-
- Main内边距:24px
|
|
37
|
-
- Footer高度:64px
|
|
38
|
-
- 圆角:使用较大圆角(8px-12px)
|
|
39
|
-
|
|
40
|
-
### 页面内容区布局
|
|
41
|
-
```
|
|
42
|
-
┌─────────────────────────────────────┐
|
|
43
|
-
│ 面包屑导航 (margin-bottom: 20px) │
|
|
44
|
-
├─────────────────────────────────────┤
|
|
45
|
-
│ 页面标题 + 操作按钮 │
|
|
46
|
-
│ (margin-bottom: 24px) │
|
|
47
|
-
├─────────────────────────────────────┤
|
|
48
|
-
│ │
|
|
49
|
-
│ 主内容区 │
|
|
50
|
-
│ (padding: 24px) │
|
|
51
|
-
│ │
|
|
52
|
-
└─────────────────────────────────────┘
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## 页面类型布局指导
|
|
56
|
-
|
|
57
|
-
### 1. 列表页
|
|
58
|
-
|
|
59
|
-
**结构**:
|
|
60
|
-
- 搜索区:padding 24px,背景色 bg-base,圆角 8px
|
|
61
|
-
- 表格区:margin-top 20px
|
|
62
|
-
- 分页器:margin-top 20px,居中对齐
|
|
63
|
-
|
|
64
|
-
**间距规范**:
|
|
65
|
-
- 搜索表单项间距:20px
|
|
66
|
-
- 表格行高:52px
|
|
67
|
-
- 操作按钮间距:12px
|
|
68
|
-
|
|
69
|
-
**组件使用**:
|
|
70
|
-
```vue
|
|
71
|
-
<AiContainer>
|
|
72
|
-
<AiMain>
|
|
73
|
-
<!-- 搜索区 -->
|
|
74
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base); border-radius: var(--ai-radius-lg)">
|
|
75
|
-
<AiForm :inline="true">
|
|
76
|
-
<AiInput placeholder="搜索" />
|
|
77
|
-
<AiSelect placeholder="状态" />
|
|
78
|
-
</AiForm>
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<!-- 表格区 -->
|
|
82
|
-
<AiTable :data="list" style="margin-top: var(--ai-margin-lg)" />
|
|
83
|
-
|
|
84
|
-
<!-- 分页 -->
|
|
85
|
-
<div style="margin-top: var(--ai-margin-lg); text-align: center">
|
|
86
|
-
<AiPagination />
|
|
87
|
-
</div>
|
|
88
|
-
</AiMain>
|
|
89
|
-
</AiContainer>
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
### 2. 详情页
|
|
93
|
-
|
|
94
|
-
**结构**:
|
|
95
|
-
- 基本信息卡片:margin-bottom 20px,圆角 12px
|
|
96
|
-
- 详细信息卡片:margin-bottom 20px,圆角 12px
|
|
97
|
-
- 操作历史:margin-bottom 20px
|
|
98
|
-
|
|
99
|
-
**间距规范**:
|
|
100
|
-
- 卡片内边距:24px
|
|
101
|
-
- 信息项间距:20px
|
|
102
|
-
- 标签与值间距:12px
|
|
103
|
-
|
|
104
|
-
**组件使用**:
|
|
105
|
-
```vue
|
|
106
|
-
<AiContainer>
|
|
107
|
-
<AiMain>
|
|
108
|
-
<!-- 基本信息 -->
|
|
109
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base); border-radius: var(--ai-radius-xl); margin-bottom: var(--ai-margin-lg)">
|
|
110
|
-
<h3>基本信息</h3>
|
|
111
|
-
<div style="margin-top: var(--ai-margin-lg)">
|
|
112
|
-
<div style="margin-bottom: var(--ai-margin-lg)">
|
|
113
|
-
<span>姓名:</span><span>张三</span>
|
|
114
|
-
</div>
|
|
115
|
-
</div>
|
|
116
|
-
</div>
|
|
117
|
-
</AiMain>
|
|
118
|
-
</AiContainer>
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### 3. 表单页
|
|
122
|
-
|
|
123
|
-
**结构**:
|
|
124
|
-
- 表单容器:padding 24px,圆角 12px
|
|
125
|
-
- 表单项:margin-bottom 24px
|
|
126
|
-
- 按钮组:margin-top 32px,居中对齐
|
|
127
|
-
|
|
128
|
-
**间距规范**:
|
|
129
|
-
- 表单项间距:24px
|
|
130
|
-
- 标签宽度:100px
|
|
131
|
-
- 按钮间距:16px
|
|
132
|
-
|
|
133
|
-
**组件使用**:
|
|
134
|
-
```vue
|
|
135
|
-
<AiContainer>
|
|
136
|
-
<AiMain>
|
|
137
|
-
<div style="padding: var(--ai-padding-xl); background: var(--ai-bg-base); border-radius: var(--ai-radius-xl)">
|
|
138
|
-
<AiForm :label-width="100">
|
|
139
|
-
<AiInput label="姓名" />
|
|
140
|
-
<AiSelect label="部门" />
|
|
141
|
-
<div style="margin-top: var(--ai-margin-xl); text-align: center">
|
|
142
|
-
<el-button type="primary" size="large">提交</el-button>
|
|
143
|
-
<el-button size="large">取消</el-button>
|
|
144
|
-
</div>
|
|
145
|
-
</AiForm>
|
|
146
|
-
</div>
|
|
147
|
-
</AiMain>
|
|
148
|
-
</AiContainer>
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
### 4. 看板页
|
|
152
|
-
|
|
153
|
-
**结构**:
|
|
154
|
-
- 统计卡片行:margin-bottom 20px
|
|
155
|
-
- 图表区:2列布局
|
|
156
|
-
- 卡片间距:20px
|
|
157
|
-
|
|
158
|
-
**间距规范**:
|
|
159
|
-
- 卡片内边距:24px
|
|
160
|
-
- 卡片间距:20px
|
|
161
|
-
- 标题与内容间距:20px
|
|
162
|
-
|
|
163
|
-
**组件使用**:
|
|
164
|
-
```vue
|
|
165
|
-
<AiContainer>
|
|
166
|
-
<AiMain>
|
|
167
|
-
<!-- 统计卡片 -->
|
|
168
|
-
<div style="display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ai-spacing-lg); margin-bottom: var(--ai-margin-lg)">
|
|
169
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base); border-radius: var(--ai-radius-lg)">
|
|
170
|
-
<AiStatistic title="总数" :value="1000" />
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
|
|
174
|
-
<!-- 图表区 -->
|
|
175
|
-
<div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--ai-spacing-lg)">
|
|
176
|
-
<div style="padding: var(--ai-padding-lg); background: var(--ai-bg-base); border-radius: var(--ai-radius-lg)">
|
|
177
|
-
图表内容
|
|
178
|
-
</div>
|
|
179
|
-
</div>
|
|
180
|
-
</AiMain>
|
|
181
|
-
</AiContainer>
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 5. 弹窗
|
|
185
|
-
|
|
186
|
-
**间距规范**:
|
|
187
|
-
- 弹窗内边距:24px
|
|
188
|
-
- 标题与内容间距:20px
|
|
189
|
-
- 按钮组间距:16px
|
|
190
|
-
- 圆角:12px
|
|
191
|
-
|
|
192
|
-
**组件使用**:
|
|
193
|
-
```vue
|
|
194
|
-
<AiDialog title="标题" width="600px">
|
|
195
|
-
<div style="padding: var(--ai-padding-lg)">
|
|
196
|
-
内容区
|
|
197
|
-
</div>
|
|
198
|
-
<template #footer>
|
|
199
|
-
<div style="text-align: center">
|
|
200
|
-
<el-button type="primary" size="large">确定</el-button>
|
|
201
|
-
<el-button size="large">取消</el-button>
|
|
202
|
-
</div>
|
|
203
|
-
</template>
|
|
204
|
-
</AiDialog>
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
## 间距规范总结
|
|
208
|
-
|
|
209
|
-
| 场景 | 间距值 | CSS变量 |
|
|
210
|
-
|------|--------|---------|
|
|
211
|
-
| 页面内边距 | 24px | --ai-padding-lg |
|
|
212
|
-
| 卡片间距 | 20px | --ai-margin-lg |
|
|
213
|
-
| 表单项间距 | 24px | --ai-margin-lg |
|
|
214
|
-
| 按钮间距 | 12px | --ai-margin-md |
|
|
215
|
-
| 小元素间距 | 8px | --ai-margin-sm |
|
|
216
|
-
|
|
217
|
-
## 响应式规则
|
|
218
|
-
|
|
219
|
-
**断点**:
|
|
220
|
-
- 大屏:>1920px
|
|
221
|
-
- 标准:1440px-1920px
|
|
222
|
-
- 小屏:1280px-1440px
|
|
223
|
-
- 最小:<1280px
|
|
224
|
-
|
|
225
|
-
**适配规则**:
|
|
226
|
-
- 大屏:Main内边距增加到32px,卡片间距增加到24px
|
|
227
|
-
- 标准:使用默认24px
|
|
228
|
-
- 小屏:Aside收起,Main内边距减少到16px
|
|
229
|
-
- 最小:不支持,提示使用更大屏幕
|
package/dist/styles/blue.scss
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
body[data-theme="blue"] {
|
|
2
|
-
// 主色系
|
|
3
|
-
--ai-primary: #1890ff;
|
|
4
|
-
--ai-success: #52c41a;
|
|
5
|
-
--ai-warning: #faad14;
|
|
6
|
-
--ai-danger: #ff4d4f;
|
|
7
|
-
--ai-info: #1890ff;
|
|
8
|
-
|
|
9
|
-
// 背景色
|
|
10
|
-
--ai-bg-base: #ffffff;
|
|
11
|
-
--ai-bg-light: #fafafa;
|
|
12
|
-
--ai-bg-dark: #f5f5f5;
|
|
13
|
-
--ai-bg-overlay: rgba(0, 0, 0, 0.45);
|
|
14
|
-
|
|
15
|
-
// 文字色
|
|
16
|
-
--ai-text-primary: #262626;
|
|
17
|
-
--ai-text-regular: #595959;
|
|
18
|
-
--ai-text-secondary: #8c8c8c;
|
|
19
|
-
--ai-text-placeholder: #bfbfbf;
|
|
20
|
-
--ai-text-disabled: #d9d9d9;
|
|
21
|
-
|
|
22
|
-
// 边框色
|
|
23
|
-
--ai-border-base: #d9d9d9;
|
|
24
|
-
--ai-border-light: #e8e8e8;
|
|
25
|
-
--ai-border-dark: #bfbfbf;
|
|
26
|
-
|
|
27
|
-
// 功能色
|
|
28
|
-
--ai-link: #1890ff;
|
|
29
|
-
--ai-hover: #40a9ff;
|
|
30
|
-
--ai-active: #096dd9;
|
|
31
|
-
--ai-disabled: #f5f5f5;
|
|
32
|
-
|
|
33
|
-
// 间距
|
|
34
|
-
--ai-spacing-xs: 4px;
|
|
35
|
-
--ai-spacing-sm: 8px;
|
|
36
|
-
--ai-spacing-md: 16px;
|
|
37
|
-
--ai-spacing-lg: 24px;
|
|
38
|
-
--ai-spacing-xl: 32px;
|
|
39
|
-
--ai-padding-xs: 4px;
|
|
40
|
-
--ai-padding-sm: 8px;
|
|
41
|
-
--ai-padding-md: 16px;
|
|
42
|
-
--ai-padding-lg: 24px;
|
|
43
|
-
--ai-padding-xl: 32px;
|
|
44
|
-
--ai-margin-xs: 4px;
|
|
45
|
-
--ai-margin-sm: 8px;
|
|
46
|
-
--ai-margin-md: 16px;
|
|
47
|
-
--ai-margin-lg: 24px;
|
|
48
|
-
--ai-margin-xl: 32px;
|
|
49
|
-
|
|
50
|
-
// 尺寸
|
|
51
|
-
--ai-radius-sm: 2px;
|
|
52
|
-
--ai-radius-base: 4px;
|
|
53
|
-
--ai-radius-lg: 8px;
|
|
54
|
-
--ai-radius-xl: 12px;
|
|
55
|
-
--ai-font-xs: 12px;
|
|
56
|
-
--ai-font-sm: 14px;
|
|
57
|
-
--ai-font-base: 16px;
|
|
58
|
-
--ai-font-lg: 18px;
|
|
59
|
-
--ai-font-xl: 20px;
|
|
60
|
-
--ai-line-height-sm: 1.2;
|
|
61
|
-
--ai-line-height-base: 1.5;
|
|
62
|
-
--ai-line-height-lg: 1.8;
|
|
63
|
-
--ai-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
|
|
64
|
-
--ai-shadow-base: 0 4px 8px rgba(0, 0, 0, 0.12);
|
|
65
|
-
--ai-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
|
|
66
|
-
|
|
67
|
-
// 动画
|
|
68
|
-
--ai-transition-fast: 0.1s;
|
|
69
|
-
--ai-transition-base: 0.3s;
|
|
70
|
-
--ai-transition-slow: 0.5s;
|
|
71
|
-
}
|
package/dist/styles/dark.scss
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
body[data-theme="dark"] {
|
|
2
|
-
// 主色系 - 深蓝暗黑主题
|
|
3
|
-
--ai-primary: #1668dc;
|
|
4
|
-
--ai-success: #49aa19;
|
|
5
|
-
--ai-warning: #d89614;
|
|
6
|
-
--ai-danger: #d32029;
|
|
7
|
-
--ai-info: #1668dc;
|
|
8
|
-
|
|
9
|
-
// 背景色
|
|
10
|
-
--ai-bg-base: #141414;
|
|
11
|
-
--ai-bg-light: #1f1f1f;
|
|
12
|
-
--ai-bg-dark: #0a0a0a;
|
|
13
|
-
--ai-bg-overlay: rgba(0, 0, 0, 0.65);
|
|
14
|
-
|
|
15
|
-
// 文字色
|
|
16
|
-
--ai-text-primary: #ffffff;
|
|
17
|
-
--ai-text-regular: #d9d9d9;
|
|
18
|
-
--ai-text-secondary: #8c8c8c;
|
|
19
|
-
--ai-text-placeholder: #595959;
|
|
20
|
-
--ai-text-disabled: #434343;
|
|
21
|
-
|
|
22
|
-
// 边框色
|
|
23
|
-
--ai-border-base: #434343;
|
|
24
|
-
--ai-border-light: #303030;
|
|
25
|
-
--ai-border-dark: #595959;
|
|
26
|
-
|
|
27
|
-
// 功能色
|
|
28
|
-
--ai-link: #1668dc;
|
|
29
|
-
--ai-hover: #3c9ae8;
|
|
30
|
-
--ai-active: #0958d9;
|
|
31
|
-
--ai-disabled: #262626;
|
|
32
|
-
|
|
33
|
-
// 间距
|
|
34
|
-
--ai-spacing-xs: 4px;
|
|
35
|
-
--ai-spacing-sm: 8px;
|
|
36
|
-
--ai-spacing-md: 16px;
|
|
37
|
-
--ai-spacing-lg: 24px;
|
|
38
|
-
--ai-spacing-xl: 32px;
|
|
39
|
-
--ai-padding-xs: 4px;
|
|
40
|
-
--ai-padding-sm: 8px;
|
|
41
|
-
--ai-padding-md: 16px;
|
|
42
|
-
--ai-padding-lg: 24px;
|
|
43
|
-
--ai-padding-xl: 32px;
|
|
44
|
-
--ai-margin-xs: 4px;
|
|
45
|
-
--ai-margin-sm: 8px;
|
|
46
|
-
--ai-margin-md: 16px;
|
|
47
|
-
--ai-margin-lg: 24px;
|
|
48
|
-
--ai-margin-xl: 32px;
|
|
49
|
-
|
|
50
|
-
// 尺寸
|
|
51
|
-
--ai-radius-sm: 2px;
|
|
52
|
-
--ai-radius-base: 4px;
|
|
53
|
-
--ai-radius-lg: 8px;
|
|
54
|
-
--ai-radius-xl: 12px;
|
|
55
|
-
--ai-font-xs: 12px;
|
|
56
|
-
--ai-font-sm: 14px;
|
|
57
|
-
--ai-font-base: 16px;
|
|
58
|
-
--ai-font-lg: 18px;
|
|
59
|
-
--ai-font-xl: 20px;
|
|
60
|
-
--ai-line-height-sm: 1.2;
|
|
61
|
-
--ai-line-height-base: 1.5;
|
|
62
|
-
--ai-line-height-lg: 1.8;
|
|
63
|
-
--ai-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.24);
|
|
64
|
-
--ai-shadow-base: 0 4px 8px rgba(0, 0, 0, 0.32);
|
|
65
|
-
--ai-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.48);
|
|
66
|
-
|
|
67
|
-
// 动画
|
|
68
|
-
--ai-transition-fast: 0.1s;
|
|
69
|
-
--ai-transition-base: 0.3s;
|
|
70
|
-
--ai-transition-slow: 0.5s;
|
|
71
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/* Element Plus 主题覆盖 - 使用ai-front-base主题变量 */
|
|
2
|
-
|
|
3
|
-
:root {
|
|
4
|
-
/* 主色 */
|
|
5
|
-
--el-color-primary: var(--ai-primary);
|
|
6
|
-
--el-color-success: var(--ai-success);
|
|
7
|
-
--el-color-warning: var(--ai-warning);
|
|
8
|
-
--el-color-danger: var(--ai-danger);
|
|
9
|
-
--el-color-info: var(--ai-info);
|
|
10
|
-
|
|
11
|
-
/* 背景色 */
|
|
12
|
-
--el-bg-color: var(--ai-bg-base);
|
|
13
|
-
--el-bg-color-page: var(--ai-bg-light);
|
|
14
|
-
--el-bg-color-overlay: var(--ai-bg-overlay);
|
|
15
|
-
|
|
16
|
-
/* 文字色 */
|
|
17
|
-
--el-text-color-primary: var(--ai-text-primary);
|
|
18
|
-
--el-text-color-regular: var(--ai-text-regular);
|
|
19
|
-
--el-text-color-secondary: var(--ai-text-secondary);
|
|
20
|
-
--el-text-color-placeholder: var(--ai-text-placeholder);
|
|
21
|
-
--el-text-color-disabled: var(--ai-text-disabled);
|
|
22
|
-
|
|
23
|
-
/* 边框色 */
|
|
24
|
-
--el-border-color: var(--ai-border-base);
|
|
25
|
-
--el-border-color-light: var(--ai-border-light);
|
|
26
|
-
--el-border-color-lighter: var(--ai-border-light);
|
|
27
|
-
--el-border-color-extra-light: var(--ai-border-light);
|
|
28
|
-
--el-border-color-dark: var(--ai-border-dark);
|
|
29
|
-
--el-border-color-darker: var(--ai-border-dark);
|
|
30
|
-
|
|
31
|
-
/* 圆角 */
|
|
32
|
-
--el-border-radius-base: var(--ai-radius-base);
|
|
33
|
-
--el-border-radius-small: var(--ai-radius-sm);
|
|
34
|
-
--el-border-radius-round: var(--ai-radius-xl);
|
|
35
|
-
|
|
36
|
-
/* 字号 */
|
|
37
|
-
--el-font-size-extra-small: var(--ai-font-xs);
|
|
38
|
-
--el-font-size-small: var(--ai-font-sm);
|
|
39
|
-
--el-font-size-base: var(--ai-font-base);
|
|
40
|
-
--el-font-size-medium: var(--ai-font-base);
|
|
41
|
-
--el-font-size-large: var(--ai-font-lg);
|
|
42
|
-
--el-font-size-extra-large: var(--ai-font-xl);
|
|
43
|
-
|
|
44
|
-
/* 阴影 */
|
|
45
|
-
--el-box-shadow-light: var(--ai-shadow-sm);
|
|
46
|
-
--el-box-shadow: var(--ai-shadow-base);
|
|
47
|
-
--el-box-shadow-dark: var(--ai-shadow-lg);
|
|
48
|
-
|
|
49
|
-
/* 过渡 */
|
|
50
|
-
--el-transition-duration: var(--ai-transition-base);
|
|
51
|
-
--el-transition-duration-fast: var(--ai-transition-fast);
|
|
52
|
-
}
|