From f55f4730fd70b20560fab07a1fb31ca35020e2d6 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 18 二月 2020 21:44:52 +0800 Subject: [PATCH] 2020-02-18 --- src/templates/tableshare/verifycardexcelout/index.jsx | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/templates/tableshare/verifycardexcelout/index.jsx b/src/templates/tableshare/verifycardexcelout/index.jsx index 522c8ed..7362874 100644 --- a/src/templates/tableshare/verifycardexcelout/index.jsx +++ b/src/templates/tableshare/verifycardexcelout/index.jsx @@ -60,10 +60,17 @@ UNSAFE_componentWillMount() { let _verify = this.props.card.verify || {} + let _columns = _verify.columns || [] + _columns = _columns.map(col => { + col.Width = col.Width || 20 + + return col + }) + this.setState({ verify: { ..._verify, - columns: _verify.columns || [], + columns: _columns, } }) } -- Gitblit v1.8.0