Skip to content

Commit 68a7a0f

Browse files
perf: Optimize icons
1 parent 2f0df1f commit 68a7a0f

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

ui/src/components/app-icon/icons/document.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,29 @@ export default {
9696
])
9797
},
9898
},
99+
'app-import-doc': {
100+
iconReader: () => {
101+
return h('i', [
102+
h(
103+
'svg',
104+
{
105+
style: { height: '100%', width: '100%' },
106+
viewBox: '0 0 1024 1024',
107+
version: '1.1',
108+
xmlns: 'http://www.w3.org/2000/svg',
109+
},
110+
[
111+
h('path', {
112+
d: 'M128 935.594667A45.653333 45.653333 0 0 0 173.482667 981.333333h338.346666v-85.76H213.248V128H810.24v426.666667h85.333333V87.978667A45.653333 45.653333 0 0 0 850.005333 42.24H173.482667A45.653333 45.653333 0 0 0 128 87.978667v847.616z',
113+
fill: 'currentColor',
114+
}),
115+
h('path', {
116+
d: 'M298.922667 480.768c0-6.314667 5.12-11.434667 11.392-11.434667h403.626666c6.314667 0 11.392 5.12 11.392 11.434667v62.890667c0 6.314667-5.12 11.434667-11.392 11.434666h-403.626666a11.392 11.392 0 0 1-11.392-11.434666v-62.890667zM310.4 298.666667a11.392 11.392 0 0 0-11.392 11.434666v62.890667c0 6.314667 5.12 11.434667 11.392 11.434667h190.208c6.314667 0 11.392-5.12 11.392-11.434667V310.101333A11.392 11.392 0 0 0 500.608 298.666667H310.4zM725.333333 661.333333a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V768h106.666666a21.333333 21.333333 0 0 1 21.333334 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333334 21.333333H810.666667v106.666667a21.333333 21.333333 0 0 1-21.333334 21.333333h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333333V853.333333h-106.666666a21.333333 21.333333 0 0 1-21.333334-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333334-21.333333H725.333333v-106.666667z',
117+
fill: 'currentColor',
118+
}),
119+
],
120+
),
121+
])
122+
},
123+
},
99124
}

ui/src/views/knowledge-workflow/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<template #dropdown>
5151
<el-dropdown-menu>
5252
<el-dropdown-item @click="toImportDoc">
53-
<AppIcon iconName="app-create-chat" class="color-secondary"></AppIcon>
53+
<AppIcon iconName="app-import-doc" class="color-secondary"></AppIcon>
5454
{{ $t('views.workflow.operation.toImportDoc') }}
5555
</el-dropdown-item>
5656

0 commit comments

Comments
 (0)