Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
13c3da59
Commit
13c3da59
authored
Dec 30, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复“预览模板时无法展示一级标题”的bug
parent
578288ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
TemplateDetail.vue
src/components/TemplateDetail.vue
+14
-2
PreviewTemplate.vue
src/views/template/components/PreviewTemplate.vue
+5
-4
No files found.
src/components/TemplateDetail.vue
View file @
13c3da59
<
template
>
<
template
>
<div
class=
"template-detail"
>
<div
class=
"template-detail"
>
<div
v-if=
"Array.isArray(detailInformation)"
>
<div
v-if=
"Array.isArray(detailInformation)"
>
<div
v-for=
"(item) in detailInformation"
:key=
"item.id"
>
<div
class=
"title-text"
>
{{
item
.
label
}}
</div>
<component
<component
v-for=
"(item) in detailInformation"
:key=
"item.id"
:key=
"item.id"
:value
.
sync=
"item.data.value"
:value
.
sync=
"item.data.value"
:is=
"getComponent(item.type)"
:is=
"getComponent(item.type)"
:proofSubItem=
"item"
>
:proofSubItem=
"item"
>
<!--v-model="item.data.value"-->
<!--v-model="item.data.value"-->
</component>
</component>
</div>
</div>
</div>
<component
<component
v-else-if=
"detailInformation.type === DataType.Unit"
v-else-if=
"detailInformation.type === DataType.Unit"
:is=
"getComponent(detailInformation.type)"
:is=
"getComponent(detailInformation.type)"
:proofSubItem=
"detailInformation"
:proofSubItem=
"detailInformation"
...
@@ -44,3 +48,11 @@ export default class TemplateDetail extends Vue {
...
@@ -44,3 +48,11 @@ export default class TemplateDetail extends Vue {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
.template-detail
{
.title-text
{
text-align
:
left
;
}
}
</
style
>
src/views/template/components/PreviewTemplate.vue
View file @
13c3da59
...
@@ -9,7 +9,11 @@
...
@@ -9,7 +9,11 @@
<template-detail
<template-detail
:detailInformation=
"proof"
:detailInformation=
"proof"
class=
"detail"
class=
"detail"
style=
"padding:0 17px;margin-bottom:70px;"
></template-detail>
style=
"padding:0 17px;"
></template-detail>
<div
class=
"btn-group"
style=
"opacity:0;position:relative"
>
<div
role=
"button"
class=
"cancel"
@
click=
"cancel"
>
取消
</div>
<div
role=
"button"
class=
"confirm"
@
click=
"employ"
>
使用
</div>
</div>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<div
role=
"button"
class=
"cancel"
@
click=
"cancel"
>
取消
</div>
<div
role=
"button"
class=
"cancel"
@
click=
"cancel"
>
取消
</div>
<div
role=
"button"
class=
"confirm"
@
click=
"employ"
>
使用
</div>
<div
role=
"button"
class=
"confirm"
@
click=
"employ"
>
使用
</div>
...
@@ -86,9 +90,6 @@ export default class PreviewTemplate extends Vue {
...
@@ -86,9 +90,6 @@ export default class PreviewTemplate extends Vue {
::v-deep
.van-cell
{
::v-deep
.van-cell
{
padding
:
12px
0
;
padding
:
12px
0
;
}
}
.detail
{
margin-bottom
:
100px
;
}
.btn-group
{
.btn-group
{
.cancel
{
.cancel
{
color
:
#353535
;
color
:
#353535
;
...
...
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