Merge pull request 'elementUI table的fixed属性错位问题' (#2) from zjl into develop

Reviewed-on: #2
This commit is contained in:
朱菊兰 2023-01-09 13:15:16 +08:00
當前提交 db5e8db835
共有 2 個檔案被更改,包括 9 行新增2 行删除

查看文件

@ -1,6 +1,6 @@
{
"name": "code-brick-zj",
"version": "0.0.5",
"version": "0.0.6",
"private": false,
"description": "组件封装",
"main": "index.js"

查看文件

@ -25,7 +25,7 @@
prop="_pageIndex"
:width="pageWidth"
align="center"
fixed
:fixed="cancelPageFixed ? false : true"
>
<template slot="header">
<el-popover placement="bottom-start" width="300" trigger="click">
@ -121,6 +121,10 @@ export default {
type: Boolean,
default: false
},
cancelPageFixed: {
type: Boolean,
default: false
},
tableData: {
type: Array,
required: true,
@ -205,6 +209,9 @@ export default {
let _this = this
let obj = _this.$refs[name].data[index]
_this.$refs[name].setCurrentRow(obj)
},
doLayout(name) {
this.$refs[name].doLayout()
}
}
}