Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
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
chenqikuai
fns_front_2
Commits
7e0358d4
Commit
7e0358d4
authored
Oct 26, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复富文本编辑器样式
parent
007a10c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
9 deletions
+36
-9
App.vue
src/App.vue
+20
-0
index.vue
src/views/ActivityDetail/index.vue
+1
-1
index.vue
src/views/NewsDetail/index.vue
+15
-8
No files found.
src/App.vue
View file @
7e0358d4
...
@@ -201,4 +201,24 @@ export default defineComponent({
...
@@ -201,4 +201,24 @@ export default defineComponent({
display: flex;
display: flex;
flex-direction: row;
flex-direction: row;
}
}
.vhtml {
h1 {
font-size: 1.4rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
h2 {
font-size: 1.2rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
h3 {
font-size: 1rem !important;
font-weight: 300 !important;
line-height: 1.5rem !important;
letter-spacing: -0.01562em !important;
}
}
</
style
>
</
style
>
src/views/ActivityDetail/index.vue
View file @
7e0358d4
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
title
}}
</p>
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
title
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
update_at
)
}}
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
发布时间
{{
timestampFormat
(
update_at
)
}}
</p>
<img
:src=
"src"
class=
"text-center"
/>
<img
:src=
"src"
class=
"text-center"
/>
<p
class=
"text-sm text-gray-800 text-justify mt-5"
v-html=
"content"
></p>
<p
class=
"text-sm text-gray-800 text-justify mt-5
vhtml
"
v-html=
"content"
></p>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/NewsDetail/index.vue
View file @
7e0358d4
<
template
>
<
template
>
<nav-bar
:title=
"title"
:style=
"
{ 'background-color':'#F7F7FA'}" />
<nav-bar
:title=
"title"
:style=
"
{ 'background-color': '#F7F7FA' }" />
<div
class=
" px-5 py-8 overflow-hidden break-all"
>
<div
class=
"px-5 py-8 overflow-hidden break-all"
>
<p
class=
" text-base text-gray-800 font-semibold"
>
{{
info
.
title
}}
</p>
<p
class=
"text-base text-gray-800 font-semibold"
>
{{
info
.
title
}}
</p>
<p
class=
" text-xs text-gray-400 mt-5 "
>
发布时间:
{{
$format
(
info
.
update_at
,
'YYYY-MM-DD'
)
}}
<span
v-if=
"title === '政策详情'"
class=
"inline-block ml-8"
>
作者:
{{
info
.
writer
}}
</span>
</p>
<p
class=
"text-xs text-gray-400 mt-5"
>
<div
class=
" text-sm text-gray-800 text-justify mt-5"
v-html=
"info.content"
></div>
发布时间:
{{
$format
(
info
.
update_at
,
'YYYY-MM-DD'
)
}}
<span
v-if=
"title === '政策详情'"
class=
"inline-block ml-8"
>
作者:
{{
info
.
writer
}}
</span>
</p>
<div
class=
"text-sm text-gray-800 text-justify mt-5 vhtml"
v-html=
"info.content"
></div>
</div>
</div>
</
template
>
</
template
>
...
@@ -14,8 +20,8 @@ import NavBar from "@/components/NavBar/index.vue"
...
@@ -14,8 +20,8 @@ import NavBar from "@/components/NavBar/index.vue"
import
{
getDetails
,
getPolicyDetails
}
from
'@/service/NewsService/index'
import
{
getDetails
,
getPolicyDetails
}
from
'@/service/NewsService/index'
export
default
defineComponent
({
export
default
defineComponent
({
components
:{
NavBar
},
components
:
{
NavBar
},
setup
()
{
setup
()
{
let
info
=
ref
({})
let
info
=
ref
({})
let
title
=
ref
(
''
)
let
title
=
ref
(
''
)
const
route
=
useRoute
()
const
route
=
useRoute
()
...
@@ -36,6 +42,6 @@ export default defineComponent({
...
@@ -36,6 +42,6 @@ export default defineComponent({
})
})
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"less"
>
</
style
>
</
style
>
\ No newline at end of file
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