Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
92e2c177
Commit
92e2c177
authored
Dec 24, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序换行
parent
77ca83be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/components/basicTool/rich-text/index.vue
+8
-7
No files found.
src/components/basicTool/rich-text/index.vue
View file @
92e2c177
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
<!-- 富文本组件 -->
<!-- 富文本组件 -->
<div
<div
class=
"rich-text"
class=
"rich-text"
:style=
"
{
padding: padding + 'px', background
: backgroundColor }"
:style=
"
{
'padding': padding + 'px', 'background'
: backgroundColor }"
>
>
<
div
v-html=
"richText"
></div
>
<
rich-text
:nodes=
"richText"
:space=
"'nbsp'"
></rich-text
>
</div>
</div>
</
template
>
</
template
>
...
@@ -56,7 +56,6 @@ function formatRichText(html) {
...
@@ -56,7 +56,6 @@ function formatRichText(html) {
return newContent;
return newContent;
}
}
export default {
export default {
name: "rich-text",
props: {
props: {
render: {
render: {
type: Boolean,
type: Boolean,
...
@@ -64,7 +63,9 @@ export default {
...
@@ -64,7 +63,9 @@ export default {
},
},
datas: {
datas: {
type: Object,
type: Object,
default: {},
default: ()=>{
return {}
},
},
},
},
},
data() {
data() {
...
@@ -73,13 +74,13 @@ export default {
...
@@ -73,13 +74,13 @@ export default {
components: {},
components: {},
computed: {
computed: {
padding() {
padding() {
return this.datas.componentData
["padding"]
;
return this.datas.componentData
.padding
;
},
},
backgroundColor() {
backgroundColor() {
return this.datas.componentData
["backgroundColor"]
;
return this.datas.componentData
.backgroundColor
;
},
},
richText() {
richText() {
return formatRichText(this.datas.componentData
["richText"]
);
return formatRichText(this.datas.componentData
.richText
);
},
},
},
},
created() {},
created() {},
...
...
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