1、element UI 的table问题
现象描述:
table表头固定,数据渲染会出现纵向滚动条,表格纵向占全屏,----问题,数据初次渲染,ie会出现左右错位问题,table表头固定,数据渲染会出现纵向滚动条,表格纵向占全屏,----问题,数据初次渲染,ie会出现左右错位问题,
问题解决方案:
给渲染的data数据一个默认数据,先渲染一次,然后在初始化请求数据渲染,(细节,初次渲染数据不能出错,否则达不到效果)
<el-table border style="width:100%" height="calc(100% - 0px)" :data="tableList">
<el-table-column prop="xzqhdm" label="姓名" align="center" width="110px"></el-table-column>
<el-table-column label="操作" width="150" align="center">
<el-button @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
</template>
</el-table-column>
</el-table>
2、vue中引入百度地图,自定义点位信息,地图内jquery的demo调用vue的方法;
1)methods 里定义一个方法;
reset_map(pathString) {
//alert(pathString);
this.$router.push("/" + pathString);
},
2)生命周期内将函数指向window对象下;
window.reset_map = this.reset_map;
3)demo内函数调用;
<span onclick=" reset_map('PointManagement')"></span>