Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
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
郭铭瑶
east-nanjing-new
Commits
54a46ba0
Commit
54a46ba0
authored
Apr 28, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
62ed70e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
map-btns.vue
src/view/components/map-btns.vue
+7
-8
No files found.
src/view/components/map-btns.vue
View file @
54a46ba0
<
template
>
<
template
>
<div
class=
"map-btns"
:class=
"
{ full: fullScreen }">
<div
class=
"map-btns"
:class=
"
{ full: fullScreen }">
<template
v-for=
"btn in btns"
>
<template
v-for=
"btn in btns"
>
<a-tooltip
<a-tooltip
v-if=
"btn.key === 'polyline'"
:key=
"btn.key"
placement=
"right"
>
v-if=
"btn.key === 'polyline' && curViewType === 'street'"
:key=
"btn.key"
placement=
"right"
>
<img
:key=
"btn.key"
:src=
"btn.icon"
draggable=
"false"
/>
<img
:key=
"btn.key"
:src=
"btn.icon"
draggable=
"false"
/>
<template
v-if=
"options.length > 0"
#
title
>
<template
v-if=
"options.length > 0"
#
title
>
<div
class=
"btns-tip"
>
<div
class=
"btns-tip"
>
...
@@ -87,17 +83,20 @@ export default defineComponent({
...
@@ -87,17 +83,20 @@ export default defineComponent({
:
{
key
:
'2D'
,
icon
:
d2
,
title
:
'开启2D地图'
}
:
{
key
:
'2D'
,
icon
:
d2
,
title
:
'开启2D地图'
}
const
list
=
[
const
list
=
[
// { key: 'search', icon: btn1 },
// { key: 'search', icon: btn1 },
{
key
:
'dragable'
,
icon
:
btn8
,
title
:
'开启/关闭拖拽功能'
},
{
key
:
'in'
,
icon
:
zoomIn
,
title
:
'放大地图'
},
{
key
:
'in'
,
icon
:
zoomIn
,
title
:
'放大地图'
},
{
key
:
'out'
,
icon
:
zoomOut
,
title
:
'缩小地图'
},
{
key
:
'out'
,
icon
:
zoomOut
,
title
:
'缩小地图'
},
{
key
:
'full'
,
icon
:
btn2
,
title
:
'全屏'
},
{
key
:
'full'
,
icon
:
btn2
,
title
:
'全屏'
},
{
key
:
'points'
,
icon
:
btn6
,
title
:
'显示/隐藏小区点'
},
{
key
:
'points'
,
icon
:
btn6
,
title
:
'显示/隐藏小区点'
},
{
key
:
'polyline'
,
icon
:
btn7
},
{
key
:
'dragable'
,
icon
:
btn8
,
title
:
'开启/关闭拖拽功能'
},
// { key: '', icon: btn4 },
// { key: '', icon: btn4 },
// { key: '', icon: btn5 },
// { key: '', icon: btn5 },
// { key: '', icon: btn6 },
// { key: '', icon: btn6 },
]
]
return
[
mapType
,
...
list
]
const
polyline
=
{
key
:
'polyline'
,
icon
:
btn7
}
return
curViewType
.
value
===
'street'
?
[
mapType
,
...
list
,
polyline
]
:
[
mapType
,
...
list
]
})
})
const
fullScreen
=
ref
(
false
)
const
fullScreen
=
ref
(
false
)
const
searchModal
=
ref
(
false
)
const
searchModal
=
ref
(
false
)
...
...
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