Closed zhangruixue012 closed 6 months ago
// 【自定义固定列】设置固定左右样式 cellFixedStyle ({ column }, isHeader = false) { // 这里应该是: const elTable = this.getElTable(); const elTable = this.$children[0] if (!elTable) return // 右边固定列头部需要加上滚动条宽度-gutterWidth const { gutterWidth: _gutterWidth, scrollY } = elTable.layout const gutterWidth = isHeader && scrollY ? _gutterWidth : 0 ...... },
好的,我改下
// 【自定义固定列】设置固定左右样式 cellFixedStyle ({ column }, isHeader = false) { // 这里应该是: const elTable = this.getElTable(); const elTable = this.$children[0] if (!elTable) return // 右边固定列头部需要加上滚动条宽度-gutterWidth const { gutterWidth: _gutterWidth, scrollY } = elTable.layout const gutterWidth = isHeader && scrollY ? _gutterWidth : 0 ...... },
已修复,升级库到1.1.6