From f7d1f17bdcb8c3e794a798165737bb7529dbe8ca Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 26 三月 2020 12:15:19 +0800 Subject: [PATCH] 2020-03-26 --- src/tabviews/zshare/normalTable/index.jsx | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index 6bc177f..fac986c 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -32,8 +32,8 @@ const { columns } = this.props let _columns = [] - columns.forEach(item => { - if (item.hidden === 'true') return + columns.forEach((item, index) => { + if (item.hidden === true || item.hidden === 'true') return let cell = { align: item.Align, @@ -45,6 +45,14 @@ return this.getContent(item, record) } } + + if (item.fixed === true || item.fixed === 'true') { + if (index < columns.length / 2) { + cell.fixed = 'left' + } else { + cell.fixed = 'right' + } + } _columns.push(cell) }) -- Gitblit v1.8.0