Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
manulife-weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2026-02-09 11:47:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d82b11f239b595721fe30d4b8cb6ec4e964f1ed6
d82b11f2
1 parent
8d838a1f
fix(ui): PDF 图标使用专用图标
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
2 deletions
components.d.ts
src/assets/images/icon/doc/pdf.svg
src/utils/documentIcons.js
components.d.ts
View file @
d82b11f
...
...
@@ -40,7 +40,7 @@ declare module 'vue' {
PdfPreview
:
typeof
import
(
'./src/components/PdfPreview.vue'
)[
'default'
]
Picker
:
typeof
import
(
'./src/components/time-picker-data/picker.vue'
)[
'default'
]
PlanFormContainer
:
typeof
import
(
'./src/components/PlanFormContainer.vue'
)[
'default'
]
PlanPopup
:
typeof
import
(
'./src/components/Plan
Schemes/PlanPopup
.vue'
)[
'default'
]
PlanPopup
:
typeof
import
(
'./src/components/Plan
Popup/index
.vue'
)[
'default'
]
PlanPopupNew
:
typeof
import
(
'./src/components/PlanPopupNew.vue'
)[
'default'
]
PosterBuilder
:
typeof
import
(
'./src/components/PosterBuilder/index.vue'
)[
'default'
]
ProductCard
:
typeof
import
(
'./src/components/ProductCard.vue'
)[
'default'
]
...
...
src/assets/images/icon/doc/pdf.svg
0 → 100644
View file @
d82b11f
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg
version=
"1.1"
id=
"图层_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
x=
"0px"
y=
"0px"
width=
"256px"
height=
"256px"
viewBox=
"0 0 256 256"
style=
"enable-background:new 0 0 256 256;"
xml:space=
"preserve"
>
<style
type=
"text/css"
>
.st0{fill:#EBECF0;}
.st1{fill:#C1C7D0;}
.st2{fill:#FF5630;}
.st3{fill:#DE350B;}
.st4{fill:#FFFFFF;}
</style>
<g>
<path
class=
"st0"
d=
"M221.9,227.8c0,3.1-1.2,6.1-3.4,8.3c-2.2,2.2-5.2,3.4-8.3,3.4H45.7c-3.1,0-6.1-1.2-8.3-3.4
c-2.2-2.2-3.4-5.2-3.4-8.3V16.4c0-3.1,1.2-6.1,3.4-8.3c2.2-2.2,5.2-3.4,8.3-3.4h100.9c3.1,0,6.1,1.2,8.3,3.4l63.5,63.5
c2.2,2.2,3.4,5.2,3.4,8.3V227.8z
M221.9,227.8"
/>
<path
class=
"st1"
d=
"M221.9,227.8v11.7c0,3.1-1.2,6.1-3.4,8.3c-2.2,2.2-5.2,3.4-8.3,3.4H45.7c-6.5,0-11.7-5.3-11.7-11.7v-11.7
c0,3.1,1.2,6.1,3.4,8.3c2.2,2.2,5.2,3.4,8.3,3.4h164.4c3.1,0,6.1-1.2,8.3-3.4C220.7,233.9,221.9,230.9,221.9,227.8L221.9,227.8z
M221.9,227.8"
/>
<path
class=
"st2"
d=
"M10.5,133.9h234.9v58.7c0,3.1-1.2,6.1-3.4,8.3c-2.2,2.2-5.2,3.4-8.3,3.4H22.2c-3.1,0-6.1-1.2-8.3-3.4
c-2.2-2.2-3.4-5.2-3.4-8.3V133.9z
M10.5,133.9"
/>
<path
class=
"st3"
d=
"M34,133.9v-23.5l-23.5,23.5H34z M221.9,133.9l0.2-23.5l23.4,23.5H221.9z M221.9,133.9"
/>
<path
class=
"st4"
d=
"M69.2,145.6h20.4c3.7-0.2,7.4,1.2,10.1,3.8c2.6,2.6,4,6.2,3.9,9.9c0.1,3.7-1.3,7.2-3.9,9.9
c-2.8,2.7-6.6,4.1-10.5,3.9H77.6v18.4h-8.3V145.6z
M77.1,165.3h10.6c2.2,0.2,4.4-0.4,6.2-1.5c1.4-1.2,2-3,1.9-4.8c0-4-2.6-6-7.9-6
H77.1V165.3z
M109.4,146.3h18.6c5.4-0.2,10.6,2,14.1,6.1c3.7,4.6,5.6,10.5,5.3,16.4c0.3,6-1.5,11.9-5,16.8
c-3.4,4.5-8.7,7.1-14.3,6.9h-18.6V146.3z
M117.3,184.6h10.7c3.4,0.1,6.6-1.4,8.7-4.1c2.3-3.3,3.3-7.4,3.1-11.4
c0.4-4.2-0.8-8.4-3.3-11.7c-2.3-2.6-5.6-4.1-9-4h-10.1V184.6z
M186.7,153.7h-24.3v10.9h24.3v7.5h-24.3v19.7h-7.9v-45.8h32.2V153.7z
M186.7,153.7"
/>
<path
class=
"st1"
d=
"M221.9,80v1.6h-63.5c-6.5,0-11.7-5.3-11.7-11.7V4.7c3.1,0,6.1,1.2,8.3,3.4l63.7,63.5
C220.8,73.9,221.9,76.9,221.9,80L221.9,80z
M221.9,80"
/>
</g>
</svg>
src/utils/documentIcons.js
View file @
d82b11f
...
...
@@ -7,6 +7,7 @@
// 导入所有 SVG 图标资源
import
docIcon
from
'@/assets/images/icon/doc/doc.svg'
import
pdfIcon
from
'@/assets/images/icon/doc/pdf.svg'
import
wordIcon
from
'@/assets/images/icon/doc/word.svg'
import
xlsIcon
from
'@/assets/images/icon/doc/xls.svg'
import
pptIcon
from
'@/assets/images/icon/doc/ppt.svg'
...
...
@@ -23,7 +24,7 @@ import defaultIcon from '@/assets/images/icon/doc/其他文件.svg'
*/
const
EXTENSION_ICON_MAP
=
{
// 文档类
'pdf'
:
doc
Icon
,
'pdf'
:
pdf
Icon
,
'doc'
:
wordIcon
,
'docx'
:
wordIcon
,
...
...
Please
register
or
login
to post a comment