Commit e3d57692 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改兼容firefox

parent a2ace9c3
File added
...@@ -6,13 +6,12 @@ import App from './App' ...@@ -6,13 +6,12 @@ import App from './App'
import router from './router' import router from './router'
import common from './util/common' import common from './util/common'
import api from './util/api' 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' import 'view-design/dist/styles/iview.css'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.prototype.$com = common Vue.prototype.$com = common
Vue.prototype.$api = api Vue.prototype.$api = api
Vue.component('Button', Button)
Vue.component('Collapse', Collapse) Vue.component('Collapse', Collapse)
Vue.component('Panel', Panel) Vue.component('Panel', Panel)
Vue.component('Modal', Modal) Vue.component('Modal', Modal)
......
...@@ -9,14 +9,7 @@ ...@@ -9,14 +9,7 @@
</span> </span>
<div slot="content" class="community-list"> <div slot="content" class="community-list">
<div v-for="(item, i) in curCommunity" :key="item.name + i"> <div v-for="(item, i) in curCommunity" :key="item.name + i">
<Button <span :title="item.name" class="name-btn" @click="handleView(item)">{{item.name}}</span>
@click="handleView(item)"
size="small"
type="text"
:title="item.name"
long>
{{item.name}}
</Button>
<a @click="handleDetail(item)">详情</a> <a @click="handleDetail(item)">详情</a>
</div> </div>
</div> </div>
...@@ -36,13 +29,7 @@ ...@@ -36,13 +29,7 @@
街镇列表 街镇列表
<div slot="content" class="community-list"> <div slot="content" class="community-list">
<div v-for="(item, i) in Object.keys(streetDic)" :key="item + i"> <div v-for="(item, i) in Object.keys(streetDic)" :key="item + i">
<Button <span :title="streetDic[item]" class="name-btn" @click="toWhichStreet(streetDic[item])">{{streetDic[item]}}</span>
@click="toWhichStreet(streetDic[item])"
size="small"
type="text"
long>
{{streetDic[item]}}
</Button>
</div> </div>
</div> </div>
</Panel> </Panel>
...@@ -658,11 +645,24 @@ export default { ...@@ -658,11 +645,24 @@ export default {
>div >div
display flex display flex
justify-content space-between justify-content space-between
align-items center
height .26rem 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 a
display block // display block
min-width .5rem // min-width .4rem
text-align right text-align right
.tab-menu .tab-menu
position absolute position absolute
...@@ -773,16 +773,7 @@ export default { ...@@ -773,16 +773,7 @@ export default {
padding 0 .1rem padding 0 .1rem
.ivu-collapse-content-box .ivu-collapse-content-box
padding .1rem 0 padding .1rem 0
button cursor initial
text-align left
font-size .11rem
overflow hidden
>span
display inline-block
width 100%
overflow hidden
white-space nowrap
text-overflow ellipsis
.tab-menu .tab-menu
.ivu-tabs-bar .ivu-tabs-bar
margin-bottom 0 margin-bottom 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment