af-mobile-client-vue3 1.1.5 → 1.1.7
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/.env +6 -6
- package/.env.development +4 -4
- package/.env.envoiceShow +6 -6
- package/.env.production +6 -6
- package/.husky/commit-msg +1 -1
- package/.husky/pre-commit +1 -1
- package/.vscode/settings.json +61 -61
- package/build/vite/index.ts +105 -91
- package/mock/modules/user.mock.ts +152 -152
- package/package.json +3 -1
- package/public/favicon.svg +4 -4
- package/public/safari-pinned-tab.svg +32 -32
- package/scripts/verifyCommit.js +19 -19
- package/src/App.vue +43 -43
- package/src/api/user/index.ts +40 -40
- package/src/bootstrap.ts +18 -18
- package/src/components/core/NavBar/index.vue +12 -12
- package/src/components/core/Tabbar/index.vue +38 -38
- package/src/components/core/Uploader/index.vue +2 -2
- package/src/components/core/XGridDropOption/index.vue +151 -151
- package/src/components/core/XMultiSelect/index.vue +183 -183
- package/src/components/data/XCellDetail/index.vue +106 -106
- package/src/components/data/XForm/index.vue +5 -0
- package/src/components/data/XFormItem/index.vue +48 -14
- package/src/components/data/XOlMap/README.md +0 -2
- package/src/components/data/XOlMap/XLocationPicker/index.vue +21 -9
- package/src/components/data/XOlMap/index.vue +81 -74
- package/src/components/data/XOlMap/types.ts +0 -4
- package/src/components/data/XOlMap/utils/wgs84ToGcj02.js +154 -154
- package/src/components/data/XReportForm/XReportFormJsonRender.vue +220 -220
- package/src/components/data/XReportForm/index.vue +1079 -1079
- package/src/components/data/XReportGrid/XAddReport/index.ts +1 -1
- package/src/components/data/XReportGrid/XReportDrawer/index.ts +1 -1
- package/src/components/data/XSignature/index.vue +285 -285
- package/src/components/data/XTag/index.vue +10 -10
- package/src/components/layout/NormalDataLayout/index.vue +70 -70
- package/src/components/layout/TabBarLayout/index.vue +40 -40
- package/src/components.d.ts +53 -53
- package/src/env.d.ts +16 -16
- package/src/font-style/font.css +3 -3
- package/src/hooks/useCommon.ts +9 -9
- package/src/locales/en-US.json +25 -25
- package/src/locales/zh-CN.json +25 -25
- package/src/plugins/AppData.ts +38 -38
- package/src/router/guards.ts +59 -59
- package/src/router/index.ts +61 -61
- package/src/router/invoiceRoutes.ts +33 -33
- package/src/router/routes.ts +6 -0
- package/src/services/api/common.ts +109 -109
- package/src/services/api/manage.ts +8 -8
- package/src/services/api/search.ts +16 -16
- package/src/services/restTools.ts +56 -56
- package/src/services/v3Api.ts +11 -11
- package/src/stores/modules/setting.ts +52 -52
- package/src/stores/mutation-type.ts +7 -7
- package/src/utils/authority-utils.ts +84 -84
- package/src/utils/crypto.ts +39 -39
- package/src/utils/i18n.ts +41 -41
- package/src/utils/indexedDB.ts +180 -180
- package/src/utils/mobileUtil.ts +26 -26
- package/src/utils/routerUtil.ts +271 -271
- package/src/utils/runEvalFunction.ts +13 -13
- package/src/utils/wechatUtil.ts +9 -9
- package/src/views/common/LoadError.vue +64 -64
- package/src/views/common/NotFound.vue +68 -68
- package/src/views/component/EvaluateRecordView/index.vue +40 -40
- package/src/views/component/IconifyView/index.vue +507 -0
- package/src/views/component/XCellDetailView/index.vue +217 -217
- package/src/views/component/XOlMapView/XLocationPicker/index.vue +120 -120
- package/src/views/component/XOlMapView/index.vue +0 -1
- package/src/views/component/XReportFormIframeView/index.vue +47 -47
- package/src/views/component/XReportFormView/index.vue +13 -13
- package/src/views/component/XSignatureView/index.vue +50 -50
- package/src/views/component/index.vue +4 -0
- package/src/views/component/menu.vue +117 -117
- package/src/views/component/notice.vue +46 -46
- package/src/views/component/topNav.vue +36 -36
- package/src/views/invoiceShow/index.vue +61 -61
- package/src/views/user/login/ForgetPasswordForm.vue +94 -94
- package/src/views/user/login/LoginTitle.vue +68 -68
- package/src/views/user/login/index.vue +22 -22
- package/src/views/user/my/index.vue +230 -230
- package/src/vue-router.d.ts +9 -9
- package/tsconfig.json +43 -43
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Icon } from '@iconify/vue'
|
|
3
|
+
import {
|
|
4
|
+
Cell as VanCell,
|
|
5
|
+
CellGroup as VanCellGroup,
|
|
6
|
+
Col as VanCol,
|
|
7
|
+
Divider as VanDivider,
|
|
8
|
+
Field as VanField,
|
|
9
|
+
Grid as VanGrid,
|
|
10
|
+
GridItem as VanGridItem,
|
|
11
|
+
NavBar as VanNavBar,
|
|
12
|
+
Row as VanRow,
|
|
13
|
+
Tab as VanTab,
|
|
14
|
+
Tabs as VanTabs,
|
|
15
|
+
} from 'vant'
|
|
16
|
+
import { computed, ref } from 'vue'
|
|
17
|
+
import { useRouter } from 'vue-router'
|
|
18
|
+
|
|
19
|
+
const router = useRouter()
|
|
20
|
+
const searchKeyword = ref('')
|
|
21
|
+
const activeTab = ref(0)
|
|
22
|
+
|
|
23
|
+
// 图标分类展示
|
|
24
|
+
const iconCategories = [
|
|
25
|
+
{
|
|
26
|
+
title: '常用图标',
|
|
27
|
+
icons: [
|
|
28
|
+
{ name: 'mdi:home', label: '首页' },
|
|
29
|
+
{ name: 'mdi:account', label: '用户' },
|
|
30
|
+
{ name: 'mdi:bell', label: '通知' },
|
|
31
|
+
{ name: 'mdi:cog', label: '设置' },
|
|
32
|
+
{ name: 'mdi:magnify', label: '搜索' },
|
|
33
|
+
{ name: 'mdi:plus', label: '添加' },
|
|
34
|
+
{ name: 'mdi:check', label: '确认' },
|
|
35
|
+
{ name: 'mdi:close', label: '关闭' },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
title: '方向图标',
|
|
40
|
+
icons: [
|
|
41
|
+
{ name: 'mdi:arrow-up', label: '向上' },
|
|
42
|
+
{ name: 'mdi:arrow-right', label: '向右' },
|
|
43
|
+
{ name: 'mdi:arrow-down', label: '向下' },
|
|
44
|
+
{ name: 'mdi:arrow-left', label: '向左' },
|
|
45
|
+
{ name: 'mdi:chevron-up', label: '上箭头' },
|
|
46
|
+
{ name: 'mdi:chevron-right', label: '右箭头' },
|
|
47
|
+
{ name: 'mdi:chevron-down', label: '下箭头' },
|
|
48
|
+
{ name: 'mdi:chevron-left', label: '左箭头' },
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title: '文件图标',
|
|
53
|
+
icons: [
|
|
54
|
+
{ name: 'mdi:file', label: '文件' },
|
|
55
|
+
{ name: 'mdi:file-document', label: '文档' },
|
|
56
|
+
{ name: 'mdi:file-excel', label: 'Excel' },
|
|
57
|
+
{ name: 'mdi:file-pdf', label: 'PDF' },
|
|
58
|
+
{ name: 'mdi:file-image', label: '图片' },
|
|
59
|
+
{ name: 'mdi:file-video', label: '视频' },
|
|
60
|
+
{ name: 'mdi:file-music', label: '音频' },
|
|
61
|
+
{ name: 'mdi:folder', label: '文件夹' },
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: '通信图标',
|
|
66
|
+
icons: [
|
|
67
|
+
{ name: 'mdi:email', label: '邮件' },
|
|
68
|
+
{ name: 'mdi:phone', label: '电话' },
|
|
69
|
+
{ name: 'mdi:message', label: '消息' },
|
|
70
|
+
{ name: 'mdi:chat', label: '聊天' },
|
|
71
|
+
{ name: 'mdi:wifi', label: 'WiFi' },
|
|
72
|
+
{ name: 'mdi:bluetooth', label: '蓝牙' },
|
|
73
|
+
{ name: 'mdi:share', label: '分享' },
|
|
74
|
+
{ name: 'mdi:cloud', label: '云' },
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
// UnoCSS图标示例
|
|
80
|
+
const unocssIcons = [
|
|
81
|
+
{ name: 'i-mdi:home', label: '首页' },
|
|
82
|
+
{ name: 'i-mdi:account', label: '用户' },
|
|
83
|
+
{ name: 'i-mdi:bell', label: '通知' },
|
|
84
|
+
{ name: 'i-mdi:cog', label: '设置' },
|
|
85
|
+
{ name: 'i-mdi:magnify', label: '搜索' },
|
|
86
|
+
{ name: 'i-mdi:plus', label: '添加' },
|
|
87
|
+
{ name: 'i-mdi:check', label: '确认' },
|
|
88
|
+
{ name: 'i-mdi:close', label: '关闭' },
|
|
89
|
+
{ name: 'i-mdi:arrow-up', label: '向上' },
|
|
90
|
+
{ name: 'i-mdi:arrow-right', label: '向右' },
|
|
91
|
+
{ name: 'i-mdi:arrow-down', label: '向下' },
|
|
92
|
+
{ name: 'i-mdi:arrow-left', label: '向左' },
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
// 样式设置示例
|
|
96
|
+
const styleExamples = [
|
|
97
|
+
{ name: 'mdi:home', label: '默认样式', style: {} },
|
|
98
|
+
{ name: 'mdi:home', label: '大尺寸', style: { fontSize: '32px' } },
|
|
99
|
+
{ name: 'mdi:home', label: '自定义颜色', style: { color: '#1989fa' } },
|
|
100
|
+
{ name: 'mdi:home', label: '旋转效果', style: { transform: 'rotate(45deg)' } },
|
|
101
|
+
{ name: 'mdi:home', label: '背景填充', style: { backgroundColor: '#eee', padding: '5px', borderRadius: '4px' } },
|
|
102
|
+
{ name: 'mdi:home', label: '悬停效果', class: 'hover-effect', style: {} },
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
// UnoCSS样式设例
|
|
106
|
+
const unocssStyleExamples = [
|
|
107
|
+
{ name: 'i-mdi:home', label: '默认样式', classes: '' },
|
|
108
|
+
{ name: 'i-mdi:home', label: '大尺寸 (text-3xl)', classes: 'text-3xl' },
|
|
109
|
+
{ name: 'i-mdi:home', label: '自定义颜色 (text-blue-500)', classes: 'text-blue-500' },
|
|
110
|
+
{ name: 'i-mdi:home', label: '旋转效果 (transform rotate-45)', classes: 'transform rotate-45' },
|
|
111
|
+
{ name: 'i-mdi:home', label: '背景填充 (bg-gray-200 p-1 rounded)', classes: 'bg-gray-200 p-1 rounded' },
|
|
112
|
+
{ name: 'i-mdi:home', label: '悬停效果 (hover:scale-125)', classes: 'transition hover:scale-125' },
|
|
113
|
+
]
|
|
114
|
+
|
|
115
|
+
// 使用方法示例代码
|
|
116
|
+
const usageExamples = [
|
|
117
|
+
{
|
|
118
|
+
title: '基本使用',
|
|
119
|
+
code: '<Icon icon="mdi:home" />',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title: '设置尺寸',
|
|
123
|
+
code: '<Icon icon="mdi:home" :width="24" :height="24" />',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
title: '自定义样式',
|
|
127
|
+
code: '<Icon icon="mdi:home" style="color: red; font-size: 24px;" />',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
title: '内联样式',
|
|
131
|
+
code: '<Icon icon="mdi:home" :style="{ color: \'#1989fa\', fontSize: \'24px\' }" />',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
title: '自定义类名',
|
|
135
|
+
code: '<Icon icon="mdi:home" class="custom-icon" />',
|
|
136
|
+
},
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
// UnoCSS使用方法示例代码
|
|
140
|
+
const unocssUsageExamples = [
|
|
141
|
+
{
|
|
142
|
+
title: '基本使用',
|
|
143
|
+
code: '<div class="i-mdi:home"></div>',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
title: '设置尺寸',
|
|
147
|
+
code: '<div class="i-mdi:home text-2xl"></div>',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: '自定义颜色',
|
|
151
|
+
code: '<div class="i-mdi:home text-red-500"></div>',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
title: '添加多个样式',
|
|
155
|
+
code: '<div class="i-mdi:home p-1 bg-gray-100 rounded text-blue-500"></div>',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
title: '交互效果',
|
|
159
|
+
code: '<div class="i-mdi:home transition hover:text-green-500 hover:scale-125"></div>',
|
|
160
|
+
},
|
|
161
|
+
]
|
|
162
|
+
|
|
163
|
+
// 过滤显示的图标
|
|
164
|
+
const filteredCategories = computed(() => {
|
|
165
|
+
if (!searchKeyword.value) {
|
|
166
|
+
return iconCategories
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return iconCategories.map((category) => {
|
|
170
|
+
const filteredIcons = category.icons.filter(icon =>
|
|
171
|
+
icon.name.toLowerCase().includes(searchKeyword.value.toLowerCase())
|
|
172
|
+
|| icon.label.toLowerCase().includes(searchKeyword.value.toLowerCase()),
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
...category,
|
|
177
|
+
icons: filteredIcons,
|
|
178
|
+
}
|
|
179
|
+
}).filter(category => category.icons.length > 0)
|
|
180
|
+
})
|
|
181
|
+
|
|
182
|
+
// 过滤UnoCSS图标
|
|
183
|
+
const filteredUnocssIcons = computed(() => {
|
|
184
|
+
if (!searchKeyword.value) {
|
|
185
|
+
return unocssIcons
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return unocssIcons.filter(icon =>
|
|
189
|
+
icon.name.toLowerCase().includes(searchKeyword.value.toLowerCase())
|
|
190
|
+
|| icon.label.toLowerCase().includes(searchKeyword.value.toLowerCase()),
|
|
191
|
+
)
|
|
192
|
+
})
|
|
193
|
+
</script>
|
|
194
|
+
|
|
195
|
+
<template>
|
|
196
|
+
<div class="iconify-view">
|
|
197
|
+
<VanNavBar
|
|
198
|
+
title="Iconify 图标使用示例"
|
|
199
|
+
left-arrow
|
|
200
|
+
@click-left="router.back()"
|
|
201
|
+
/>
|
|
202
|
+
|
|
203
|
+
<div class="container">
|
|
204
|
+
<section class="intro-section">
|
|
205
|
+
<h2>Iconify 图标使用</h2>
|
|
206
|
+
<p>
|
|
207
|
+
Iconify 是一个开源的图标框架,提供超过 100,000 个开源图标。在本项目中有两种使用方式:
|
|
208
|
+
</p>
|
|
209
|
+
</section>
|
|
210
|
+
|
|
211
|
+
<VanTabs v-model:active="activeTab" animated>
|
|
212
|
+
<VanTab title="@iconify/vue 组件">
|
|
213
|
+
<section class="intro-section">
|
|
214
|
+
<p>
|
|
215
|
+
使用 @iconify/vue 提供的 Icon 组件可以直接在模板中渲染图标。
|
|
216
|
+
</p>
|
|
217
|
+
</section>
|
|
218
|
+
|
|
219
|
+
<section class="icons-section">
|
|
220
|
+
<div v-for="(category, index) in filteredCategories" :key="index" class="icon-category">
|
|
221
|
+
<h3>{{ category.title }}</h3>
|
|
222
|
+
<VanGrid :column-num="4" :border="false">
|
|
223
|
+
<VanGridItem v-for="(icon, iconIndex) in category.icons" :key="iconIndex">
|
|
224
|
+
<div class="icon-item">
|
|
225
|
+
<Icon :icon="icon.name" width="28" height="28" />
|
|
226
|
+
<div class="icon-label">
|
|
227
|
+
{{ icon.label }}
|
|
228
|
+
</div>
|
|
229
|
+
<div class="icon-name">
|
|
230
|
+
{{ icon.name }}
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
</VanGridItem>
|
|
234
|
+
</VanGrid>
|
|
235
|
+
</div>
|
|
236
|
+
</section>
|
|
237
|
+
|
|
238
|
+
<VanDivider />
|
|
239
|
+
|
|
240
|
+
<section class="style-section">
|
|
241
|
+
<h3>样式自定义示例</h3>
|
|
242
|
+
<VanGrid :column-num="3" :border="false">
|
|
243
|
+
<VanGridItem v-for="(example, index) in styleExamples" :key="index">
|
|
244
|
+
<div class="style-example">
|
|
245
|
+
<Icon
|
|
246
|
+
:icon="example.name"
|
|
247
|
+
width="28"
|
|
248
|
+
height="28"
|
|
249
|
+
:style="example.style"
|
|
250
|
+
:class="example.class"
|
|
251
|
+
/>
|
|
252
|
+
<div class="style-label">
|
|
253
|
+
{{ example.label }}
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</VanGridItem>
|
|
257
|
+
</VanGrid>
|
|
258
|
+
</section>
|
|
259
|
+
|
|
260
|
+
<VanDivider />
|
|
261
|
+
|
|
262
|
+
<section class="usage-section">
|
|
263
|
+
<h3>使用方法</h3>
|
|
264
|
+
<VanCellGroup inset>
|
|
265
|
+
<VanCell v-for="(example, index) in usageExamples" :key="index" :title="example.title">
|
|
266
|
+
<template #value>
|
|
267
|
+
<code class="code-example">{{ example.code }}</code>
|
|
268
|
+
</template>
|
|
269
|
+
</VanCell>
|
|
270
|
+
</VanCellGroup>
|
|
271
|
+
</section>
|
|
272
|
+
|
|
273
|
+
<section class="usage-guide">
|
|
274
|
+
<h3>使用指南</h3>
|
|
275
|
+
<div class="guide-content">
|
|
276
|
+
<h4>1. 安装</h4>
|
|
277
|
+
<code class="code-block">npm install @iconify/vue</code>
|
|
278
|
+
|
|
279
|
+
<h4>2. 导入</h4>
|
|
280
|
+
<code class="code-block">import { Icon } from '@iconify/vue'</code>
|
|
281
|
+
|
|
282
|
+
<h4>3. 在模板中使用</h4>
|
|
283
|
+
<code class="code-block"><Icon icon="mdi:home" /></code>
|
|
284
|
+
</div>
|
|
285
|
+
</section>
|
|
286
|
+
</VanTab>
|
|
287
|
+
|
|
288
|
+
<VanTab title="UnoCSS 图标类">
|
|
289
|
+
<section class="intro-section">
|
|
290
|
+
<p>
|
|
291
|
+
使用 UnoCSS 的图标预设,可以通过类名直接使用图标,无需导入组件。
|
|
292
|
+
</p>
|
|
293
|
+
</section>
|
|
294
|
+
|
|
295
|
+
<VanDivider />
|
|
296
|
+
|
|
297
|
+
<section class="style-section">
|
|
298
|
+
<h3>样式自定义示例</h3>
|
|
299
|
+
<VanGrid :column-num="3" :border="false">
|
|
300
|
+
<VanGridItem v-for="(example, index) in unocssStyleExamples" :key="index">
|
|
301
|
+
<div class="style-example">
|
|
302
|
+
<div :class="`${example.name} ${example.classes}`" />
|
|
303
|
+
<div class="style-label">
|
|
304
|
+
{{ example.label }}
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</VanGridItem>
|
|
308
|
+
</VanGrid>
|
|
309
|
+
</section>
|
|
310
|
+
|
|
311
|
+
<VanDivider />
|
|
312
|
+
|
|
313
|
+
<section class="usage-section">
|
|
314
|
+
<h3>使用方法</h3>
|
|
315
|
+
<VanCellGroup inset>
|
|
316
|
+
<VanCell v-for="(example, index) in unocssUsageExamples" :key="index" :title="example.title">
|
|
317
|
+
<template #value>
|
|
318
|
+
<code class="code-example">{{ example.code }}</code>
|
|
319
|
+
</template>
|
|
320
|
+
</VanCell>
|
|
321
|
+
</VanCellGroup>
|
|
322
|
+
</section>
|
|
323
|
+
|
|
324
|
+
<section class="usage-guide">
|
|
325
|
+
<h3>使用指南</h3>
|
|
326
|
+
<div class="guide-content">
|
|
327
|
+
<h4>项目配置</h4>
|
|
328
|
+
<p>本项目已通过 Vite 配置了 UnoCSS 的图标预设:</p>
|
|
329
|
+
<code class="code-block">
|
|
330
|
+
{{ `
|
|
331
|
+
// build/vite/index.ts
|
|
332
|
+
UnoCSS({
|
|
333
|
+
presets: [
|
|
334
|
+
presetIcons({
|
|
335
|
+
scale: 1.2,
|
|
336
|
+
warn: true,
|
|
337
|
+
extraProperties: {
|
|
338
|
+
'display': 'inline-block',
|
|
339
|
+
'vertical-align': 'middle',
|
|
340
|
+
// ...
|
|
341
|
+
},
|
|
342
|
+
}),
|
|
343
|
+
],
|
|
344
|
+
}),
|
|
345
|
+
` }}
|
|
346
|
+
</code>
|
|
347
|
+
|
|
348
|
+
<h4>使用方式</h4>
|
|
349
|
+
<p>直接在 HTML 元素上使用图标类名,格式为:<code>i-{collection}:{name}</code></p>
|
|
350
|
+
<code class="code-block"><div class="i-mdi:home"></div></code>
|
|
351
|
+
|
|
352
|
+
<h4>结合其他 UnoCSS 类</h4>
|
|
353
|
+
<p>可以结合 UnoCSS 的其他工具类设置图标样式:</p>
|
|
354
|
+
<code class="code-block"><div class="i-mdi:home text-blue-500 text-2xl"></div></code>
|
|
355
|
+
</div>
|
|
356
|
+
</section>
|
|
357
|
+
</VanTab>
|
|
358
|
+
</VanTabs>
|
|
359
|
+
|
|
360
|
+
<VanDivider />
|
|
361
|
+
|
|
362
|
+
<section class="usage-guide">
|
|
363
|
+
<h3>图标集</h3>
|
|
364
|
+
<div class="guide-content">
|
|
365
|
+
<p>Iconify 支持多个图标集,格式为 "集合名:图标名"。例如:</p>
|
|
366
|
+
<ul>
|
|
367
|
+
<li>mdi:home - Material Design Icons</li>
|
|
368
|
+
<li>fa:user - Font Awesome</li>
|
|
369
|
+
<li>carbon:settings - Carbon</li>
|
|
370
|
+
<li>更多图标集可访问 <a href="https://icon-sets.iconify.design/" target="_blank">Iconify Icon Sets</a></li>
|
|
371
|
+
</ul>
|
|
372
|
+
</div>
|
|
373
|
+
</section>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
</template>
|
|
377
|
+
|
|
378
|
+
<style scoped lang="less">
|
|
379
|
+
.iconify-view {
|
|
380
|
+
background-color: #f7f8fa;
|
|
381
|
+
min-height: 100vh;
|
|
382
|
+
|
|
383
|
+
.container {
|
|
384
|
+
padding: var(--base-interval-2);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.intro-section,
|
|
388
|
+
.icons-section,
|
|
389
|
+
.style-section,
|
|
390
|
+
.usage-section,
|
|
391
|
+
.usage-guide {
|
|
392
|
+
margin-bottom: 20px;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
h2 {
|
|
396
|
+
font-size: 20px;
|
|
397
|
+
margin-bottom: 12px;
|
|
398
|
+
color: #323233;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
h3 {
|
|
402
|
+
font-size: 16px;
|
|
403
|
+
margin-bottom: 12px;
|
|
404
|
+
color: #323233;
|
|
405
|
+
padding-left: 12px;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
h4 {
|
|
409
|
+
font-size: 14px;
|
|
410
|
+
margin: 12px 0 8px;
|
|
411
|
+
color: #323233;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
p {
|
|
415
|
+
font-size: 14px;
|
|
416
|
+
color: #646566;
|
|
417
|
+
line-height: 1.5;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.icon-category {
|
|
421
|
+
margin-bottom: 16px;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.icon-item {
|
|
425
|
+
display: flex;
|
|
426
|
+
flex-direction: column;
|
|
427
|
+
align-items: center;
|
|
428
|
+
padding: 12px 0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.icon-label {
|
|
432
|
+
margin-top: 8px;
|
|
433
|
+
font-size: 12px;
|
|
434
|
+
color: #323233;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.icon-name {
|
|
438
|
+
margin-top: 4px;
|
|
439
|
+
font-size: 10px;
|
|
440
|
+
color: #969799;
|
|
441
|
+
overflow: hidden;
|
|
442
|
+
text-overflow: ellipsis;
|
|
443
|
+
white-space: nowrap;
|
|
444
|
+
max-width: 90%;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.style-example {
|
|
448
|
+
display: flex;
|
|
449
|
+
flex-direction: column;
|
|
450
|
+
align-items: center;
|
|
451
|
+
padding: 12px 0;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.style-label {
|
|
455
|
+
margin-top: 8px;
|
|
456
|
+
font-size: 12px;
|
|
457
|
+
color: #323233;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.code-example {
|
|
461
|
+
font-size: 12px;
|
|
462
|
+
color: #333;
|
|
463
|
+
background-color: #f5f5f5;
|
|
464
|
+
padding: 2px 4px;
|
|
465
|
+
border-radius: 2px;
|
|
466
|
+
overflow-wrap: break-word;
|
|
467
|
+
word-break: break-all;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.code-block {
|
|
471
|
+
display: block;
|
|
472
|
+
font-size: 12px;
|
|
473
|
+
color: #333;
|
|
474
|
+
background-color: #f5f5f5;
|
|
475
|
+
padding: 8px 12px;
|
|
476
|
+
border-radius: 4px;
|
|
477
|
+
margin: 8px 0;
|
|
478
|
+
overflow-x: auto;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.guide-content {
|
|
482
|
+
background-color: white;
|
|
483
|
+
padding: 16px;
|
|
484
|
+
border-radius: 8px;
|
|
485
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.guide-content ul {
|
|
489
|
+
padding-left: 16px;
|
|
490
|
+
margin: 8px 0;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.guide-content li {
|
|
494
|
+
font-size: 13px;
|
|
495
|
+
color: #646566;
|
|
496
|
+
line-height: 1.6;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.hover-effect {
|
|
500
|
+
transition: transform 0.3s ease;
|
|
501
|
+
|
|
502
|
+
&:hover {
|
|
503
|
+
transform: scale(1.2);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
</style>
|