Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c80026ef
authored
Sep 18, 2025
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发票预览1.0
parent
d68ac293
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/views/console/OrderViewInvoiceForm.vue
+9
-1
No files found.
src/views/console/OrderViewInvoiceForm.vue
View file @
c80026ef
...
@@ -9,7 +9,15 @@
...
@@ -9,7 +9,15 @@
<img
<img
:src=
"formData.invoiceUrl"
:src=
"formData.invoiceUrl"
alt=
"发票图片"
alt=
"发票图片"
class=
"max-w-[500px] max-h-[400px] object-contain border rounded"
style=
"
display: block; /* 避免图片底部留白 */
max-width: 100% !important; /* 最大宽度不超过父容器 */
width: auto !important; /* 宽度自动适应 */
max-height: 500px !important; /* 最大高度固定500px */
height: auto !important; /* 高度自动适应,保持比例 */
object-fit: contain; /* 完整显示图片,不裁剪 */
margin: 0 auto; /* 水平居中 */
"
@
error=
"handleImageError"
@
error=
"handleImageError"
/>
/>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment