Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
9247bb61
提交
9247bb61
authored
12月 01, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复PDF导出没有背景的问题
上级
f75d00ed
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
3 行删除
+11
-3
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+8
-1
BackgroundSelector.vue
...ws/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
+1
-0
PDFPreExport.vue
frontend/src/views/panel/export/PDFPreExport.vue
+1
-1
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+1
-1
没有找到文件。
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
9247bb61
...
...
@@ -4,7 +4,7 @@
<div
id=
"canvasInfoTemp"
ref=
"canvasInfoTemp"
:style=
"
{height:mainHeight}
"
:style=
"
[
{height:mainHeight},screenShotStyle]
"
class="main-class"
@mouseup="deselectCurComponent"
@mousedown="handleMouseDown"
...
...
@@ -60,6 +60,10 @@ export default {
event
:
'change'
},
props
:
{
screenShot
:
{
type
:
Boolean
,
default
:
false
},
show
:
{
type
:
Boolean
,
default
:
false
...
...
@@ -120,6 +124,9 @@ export default {
}
return
style
},
screenShotStyle
()
{
return
this
.
screenShot
?
this
.
customStyle
:
{}
},
// 此处单独计算componentData的值 不放入全局mapState中
componentDataInfo
()
{
return
this
.
componentDataShow
...
...
frontend/src/views/panel/SubjectSetting/PanelStyle/BackgroundSelector.vue
浏览文件 @
9247bb61
...
...
@@ -106,6 +106,7 @@ export default {
_this
.
panel
.
imageUrl
=
reader
.
result
this
.
commitStyle
()
}
this
.
$store
.
state
.
styleChangeTimes
++
reader
.
readAsDataURL
(
file
.
raw
)
},
upload
(
file
)
{
...
...
frontend/src/views/panel/export/PDFPreExport.vue
浏览文件 @
9247bb61
...
...
@@ -96,7 +96,7 @@ export default {
const
contentWidth
=
canvas
.
width
const
contentHeight
=
canvas
.
height
const
pageData
=
canvas
.
toDataURL
(
'image/jpeg'
,
1.0
)
const
PDF
=
new
JsPDF
(
'
l'
,
'px
'
,
[
contentWidth
,
contentHeight
])
const
PDF
=
new
JsPDF
(
'
p'
,
'pt
'
,
[
contentWidth
,
contentHeight
])
PDF
.
addImage
(
pageData
,
'JPEG'
,
0
,
0
,
contentWidth
,
contentHeight
)
PDF
.
save
(
_this
.
panelName
+
'.pdf'
)
_this
.
$emit
(
'closePreExport'
)
...
...
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
9247bb61
...
...
@@ -75,7 +75,7 @@
<el-row
class=
"panel-design-preview"
>
<div
id=
"imageWrapper"
ref=
"imageWrapper"
style=
"width: 100%;height: 100%"
>
<fullscreen
style=
"height: 100%;background: #f7f8fa;overflow-y: auto"
:fullscreen
.
sync=
"fullscreen"
>
<Preview
v-if=
"showMain"
:in-screen=
"!fullscreen"
:show-type=
"'width'"
/>
<Preview
v-if=
"showMain"
:in-screen=
"!fullscreen"
:show-type=
"'width'"
:screen-shot=
"dataLoading"
/>
</fullscreen>
</div>
</el-row>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论