Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
e213bb29
Commit
e213bb29
authored
Apr 30, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
撤销 图层 左侧文字修改
parent
459fe125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
TextStylePanel.vue
...views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
+8
-12
No files found.
src/views/Editor/Toolbar/ElementStylePanel/TextStylePanel.vue
View file @
e213bb29
...
...
@@ -10,14 +10,12 @@
>
{{
item
.
label
}}
</div>
</div>
<template
v-if=
"mode==1"
>
<Divider
/>
<div
class=
"row items-center"
>
<div
class=
"col"
>
图层名称:
</div>
<el-input
style=
"width:60%;"
v-model=
"layerName"
@
input=
"updateLayerName"
></el-input>
</div>
<el-input
v-if=
"layerName&&(layerName=='title'||layerName=='dinner'||layerName=='hotel')"
type=
"textarea"
autosize
style=
"width:100%;"
v-model=
"contentStr"
@
input=
"updateContentStr"
></el-input>
</
template
>
<Divider
v-if=
"mode==1"
/>
<div
v-if=
"mode==1"
class=
"row items-center"
>
<div
class=
"col"
>
图层名称:
</div>
<el-input
style=
"width:60%;"
v-model=
"layerName"
@
input=
"updateLayerName"
></el-input>
</div>
<ElementDataMapping
v-if=
"mode==0||mode==2"
></ElementDataMapping>
...
...
@@ -525,7 +523,7 @@ const orderedListPanelVisible = ref(false)
const
indentLeftPanelVisible
=
ref
(
false
)
const
indentRightPanelVisible
=
ref
(
false
)
const
layerName
=
ref
(
handleElement
.
value
?.
layerName
??
''
)
const
contentStr
=
ref
(
handleElement
.
value
?.
contentStr
??
''
)
const
bulletListStyleTypeOption
=
ref
([
'disc'
,
'circle'
,
'square'
])
const
orderedListStyleTypeOption
=
ref
([
'decimal'
,
'lower-roman'
,
'upper-roman'
,
'lower-alpha'
,
'upper-alpha'
,
'lower-greek'
])
...
...
@@ -683,9 +681,7 @@ const updateLink = (link?: string) => {
const
updateLayerName
=
(
e
:
any
)
=>
{
updateElement
({
layerName
:
e
})
}
const
updateContentStr
=
(
e
:
any
)
=>
{
updateElement
({
contentStr
:
e
,
content
:
e
})
}
const
initMapping
=
()
=>
{
if
(
handleElement
.
value
&&
!
handleElement
.
value
.
dataMapping
&&
'TemplateDataSource'
in
handleElement
.
value
&&
handleElement
.
value
.
TemplateDataSource
){
if
(
handleElement
.
value
.
TemplateDataSource
.
index
!=
null
&&
handleElement
.
value
.
TemplateDataSource
.
Content
){
...
...
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