Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_backend
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
Zhang Xiaojie
fns_backend
Commits
54496e83
Commit
54496e83
authored
Oct 26, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 富文本样式修改
parent
2ae28a1d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
6 deletions
+29
-6
App.vue
src/App.vue
+24
-0
editor.scss
src/assets/sass/editor.scss
+2
-2
index.vue
src/components/Editor/index.vue
+1
-1
detail.vue
src/views/Root/Activity/detail.vue
+1
-1
detail.vue
src/views/Root/News/detail.vue
+1
-2
No files found.
src/App.vue
View file @
54496e83
...
@@ -54,3 +54,26 @@ export default Vue.extend({
...
@@ -54,3 +54,26 @@ export default Vue.extend({
},
},
})
})
</
script
>
</
script
>
<
style
lang=
"less"
>
.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
>
\ No newline at end of file
src/assets/sass/editor.scss
View file @
54496e83
.editor
{
.editor
{
.ProseMirror
{
.ProseMirror
{
min-height
:
400px
;
min-height
:
400px
;
...
@@ -6,8 +8,6 @@
...
@@ -6,8 +8,6 @@
outline
:
3px
solid
#68cef8
;
outline
:
3px
solid
#68cef8
;
}
}
position
:
relative
;
position
:
relative
;
max-width
:
70%
;
margin
:
0
auto
5rem
auto
;
&
__content
{
&
__content
{
overflow-wrap
:
break-word
;
overflow-wrap
:
break-word
;
...
...
src/components/Editor/index.vue
View file @
54496e83
<
template
>
<
template
>
<div
class=
"border border-gray-300 p-3 rounded"
>
<div
class=
"border border-gray-300 p-3 rounded"
>
<EditorMenuBar
:editor=
"editor"
/>
<EditorMenuBar
:editor=
"editor"
/>
<editor-content
:editor=
"editor"
class=
"editor__content"
/>
<editor-content
:editor=
"editor"
class=
"editor__content
vhtml
"
/>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/Root/Activity/detail.vue
View file @
54496e83
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{{
$route
.
query
.
id
}}
{{
$route
.
query
.
id
}}
<p
class=
"text-gray-400"
>
新增时间:
{{
time
|
formatDate
}}
</p>
<p
class=
"text-gray-400"
>
新增时间:
{{
time
|
formatDate
}}
</p>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"mx-auto my-5"
/>
<img
v-if=
"imageUrl"
:src=
"imageUrl"
class=
"mx-auto my-5"
/>
<
p
class=
"text-left p-5"
v-html=
"content"
>
{{
content
}}
</p
>
<
div
class=
"text-left p-5 vhtml"
v-html=
"content"
>
{{
content
}}
</div
>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/Root/News/detail.vue
View file @
54496e83
...
@@ -2,8 +2,7 @@
...
@@ -2,8 +2,7 @@
<div>
<div>
<p
class=
" text-2xl font-bold mb-5 "
>
{{
title
}}
</p>
<p
class=
" text-2xl font-bold mb-5 "
>
{{
title
}}
</p>
<p
class=
" text-gray-400"
>
新增时间:
{{
time
|
format
}}
<span
class=
" ml-2"
>
作者:
{{
name
}}
</span></p>
<p
class=
" text-gray-400"
>
新增时间:
{{
time
|
format
}}
<span
class=
" ml-2"
>
作者:
{{
name
}}
</span></p>
<div
class=
"text-left p-5"
v-html=
"content"
></div>
<div
class=
"text-left p-5 vhtml"
v-html=
"content"
></div>
<!--
<p
class=
"text-left p-5"
>
{{
content
}}
</p>
-->
</div>
</div>
</
template
>
</
template
>
...
...
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