Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pudong-elevator-map
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
郭铭瑶
pudong-elevator-map
Commits
e3d57692
Commit
e3d57692
authored
Jul 27, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改兼容firefox
parent
a2ace9c3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
30 deletions
+20
-30
elev.zip
elev.zip
+0
-0
main.js
src/main.js
+1
-2
main.vue
src/views/main.vue
+19
-28
No files found.
elev.zip
0 → 100644
View file @
e3d57692
File added
src/main.js
View file @
e3d57692
...
...
@@ -6,13 +6,12 @@ import App from './App'
import
router
from
'./router'
import
common
from
'./util/common'
import
api
from
'./util/api'
import
{
Button
,
Collapse
,
Panel
,
Modal
,
Table
,
Drawer
,
Tabs
,
TabPane
,
Spin
}
from
'view-design'
import
{
Collapse
,
Panel
,
Modal
,
Table
,
Drawer
,
Tabs
,
TabPane
,
Spin
}
from
'view-design'
import
'view-design/dist/styles/iview.css'
Vue
.
config
.
productionTip
=
false
Vue
.
prototype
.
$com
=
common
Vue
.
prototype
.
$api
=
api
Vue
.
component
(
'Button'
,
Button
)
Vue
.
component
(
'Collapse'
,
Collapse
)
Vue
.
component
(
'Panel'
,
Panel
)
Vue
.
component
(
'Modal'
,
Modal
)
...
...
src/views/main.vue
View file @
e3d57692
...
...
@@ -9,14 +9,7 @@
</span>
<div
slot=
"content"
class=
"community-list"
>
<div
v-for=
"(item, i) in curCommunity"
:key=
"item.name + i"
>
<Button
@
click=
"handleView(item)"
size=
"small"
type=
"text"
:title=
"item.name"
long
>
{{
item
.
name
}}
</Button>
<span
:title=
"item.name"
class=
"name-btn"
@
click=
"handleView(item)"
>
{{
item
.
name
}}
</span>
<a
@
click=
"handleDetail(item)"
>
详情
</a>
</div>
</div>
...
...
@@ -36,13 +29,7 @@
街镇列表
<div
slot=
"content"
class=
"community-list"
>
<div
v-for=
"(item, i) in Object.keys(streetDic)"
:key=
"item + i"
>
<Button
@
click=
"toWhichStreet(streetDic[item])"
size=
"small"
type=
"text"
long
>
{{
streetDic
[
item
]
}}
</Button>
<span
:title=
"streetDic[item]"
class=
"name-btn"
@
click=
"toWhichStreet(streetDic[item])"
>
{{
streetDic
[
item
]
}}
</span>
</div>
</div>
</Panel>
...
...
@@ -658,11 +645,24 @@ export default {
>div
display flex
justify-content space-between
align-items center
height .26rem
line-height @height
.name-btn
text-align left
flex 1
overflow hidden
white-space nowrap
text-overflow ellipsis
cursor pointer
font-weight normal
font-size .11rem
margin-right .1rem
&:hover
color #2c3e50
font-weight bold
a
display block
min-width .5
rem
//
display block
// min-width .4
rem
text-align right
.tab-menu
position absolute
...
...
@@ -773,16 +773,7 @@ export default {
padding 0 .1rem
.ivu-collapse-content-box
padding .1rem 0
button
text-align left
font-size .11rem
overflow hidden
>span
display inline-block
width 100%
overflow hidden
white-space nowrap
text-overflow ellipsis
cursor initial
.tab-menu
.ivu-tabs-bar
margin-bottom 0
...
...
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