Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
missis-demo
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
袁晓阳
missis-demo
Commits
533b350d
Commit
533b350d
authored
Apr 08, 2021
by
yuanchongyou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初步完成
parent
44a337f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
TextStyle.vue
src/components/TextStyle.vue
+20
-1
addcontrols.vue
src/views/addcontrols.vue
+1
-1
No files found.
src/components/TextStyle.vue
View file @
533b350d
...
...
@@ -19,6 +19,7 @@
</template>
<
script
>
import
{
mapState
}
from
'vuex'
;
import
SimpleColor
from
'./colorpage/SimpleColor'
;
import
SizeInput
from
'./colorpage/SizeInput'
export
default
{
...
...
@@ -43,6 +44,9 @@ export default {
mounted
()
{
this
.
textStyle
()
},
computed
:{
...
mapState
([
'layerStyle'
]),
},
methods
:
{
hide
()
{
this
.
visible
=
false
;
...
...
@@ -58,7 +62,6 @@ export default {
this
.
$emit
(
'styleLayer'
,
this
.
subObj
);
},
InputChange
(
item
){
console
.
log
(
item
,
'注记'
)
if
(
item
.
type
===
'size'
){
this
.
layerstroke
.
msg
=
item
.
msg
}
else
{
...
...
@@ -77,6 +80,22 @@ export default {
let
d
=
"true"
let
obj2
=
{[[
c
]]:
d
}
Object
.
assign
(
this
.
subObj
,
obj2
)
if
((
this
.
layerStyle
.
id
===
'agnp'
)
||
(
this
.
layerStyle
.
id
===
'agnp_shcs'
)){
let
c
=
'et_content'
let
d
=
"[NAME]"
let
obj2
=
{[[
c
]]:
d
}
Object
.
assign
(
this
.
subObj
,
obj2
)
}
else
if
(
this
.
layerStyle
.
id
===
'mark'
)
{
let
c
=
'et_content'
let
d
=
"[TextString]"
let
obj2
=
{[[
c
]]:
d
}
Object
.
assign
(
this
.
subObj
,
obj2
)
}
else
{
let
c
=
'et_content'
let
d
=
"[XZNAME]"
let
obj2
=
{[[
c
]]:
d
}
Object
.
assign
(
this
.
subObj
,
obj2
)
}
this
.
$emit
(
'styleLayer'
,
this
.
subObj
);
}
},
...
...
src/views/addcontrols.vue
View file @
533b350d
...
...
@@ -172,8 +172,8 @@ export default {
layerStyle
(
val
){
this
.
drawerTitle
=
val
this
.
styleVisible
=
true
;
console
.
log
(
val
,
'val'
)
this
.
getlayerstyle
(
val
)
},
afterVisibleChange
(
val
)
{
console
.
log
(
'visible'
,
val
);
...
...
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