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
c0f28d01
Commit
c0f28d01
authored
Dec 07, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文本组件
parent
b3c5586e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/components/content/text.vue
+13
-2
No files found.
src/components/content/text.vue
View file @
c0f28d01
...
...
@@ -12,8 +12,10 @@
'padding-left':getPaddingList[2]['value']+'px',
'padding-right':getPaddingList[3]['value']+'px',
'textAlign':getAlign,
'fontSize':getFontSize}"
@click="itemClick"
'line-height':lineHeight,
'fontSize':getFontSize
}"
@click="itemClick()"
>
{{
getContent
}}
</p>
</div>
</
template
>
...
...
@@ -101,8 +103,17 @@ export default {
return
this
.
datas
.
componentData
.
backgroundColor
;
}
},
customSize
()
{
return
this
.
datas
.
componentData
.
customSize
||
12
;
},
lineHeight
()
{
return
this
.
datas
.
componentData
.
lineHeight
||
1
;
},
getFontSize
()
{
if
(
this
.
datas
.
componentData
)
{
if
(
this
.
datas
.
componentData
.
initcharSize
==
0
)
{
return
this
.
customSize
+
"px"
;
}
return
this
.
datas
.
componentData
.
initcharSize
+
"em"
;
}
}
...
...
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