From fc241324087e605b145e8bbcc4ee3aece61dbf14 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 三月 2022 15:59:45 +0800 Subject: [PATCH] 2022-03-21 --- src/tabviews/custom/components/table/edit-table/index.jsx | 41 ++++++++++++++++++++++++----------------- 1 files changed, 24 insertions(+), 17 deletions(-) diff --git a/src/tabviews/custom/components/table/edit-table/index.jsx b/src/tabviews/custom/components/table/edit-table/index.jsx index 75c6619..81f7a38 100644 --- a/src/tabviews/custom/components/table/edit-table/index.jsx +++ b/src/tabviews/custom/components/table/edit-table/index.jsx @@ -57,6 +57,15 @@ let setting = {..._config.setting, ..._config.wrap, style: {}} setting.tableId = Utils.getuuid() + _config.submit.style = _config.submit.style || {} + _config.submit.wrapStyle = {} + if (_config.submit.style.marginTop) { + _config.submit.wrapStyle.paddingTop = _config.submit.style.marginTop + } + if (_config.submit.style.marginBottom) { + _config.submit.wrapStyle.paddingBottom = _config.submit.style.marginBottom + } + if (setting.height) { setting.operType = 'btnMode' } @@ -581,23 +590,21 @@ columns={config.columns} selectedData={selectedData} /> - <div className={'main-table-box ' + (!actions || actions.length === 0 ? 'no-action' : '')}> - <MainTable - BID={BID} - setting={setting} - columns={columns} - MenuID={config.uuid} - submit={config.submit} - fields={config.columns} - total={this.state.total} - lineMarks={config.lineMarks} - loading={this.state.loading} - refreshdata={this.refreshbytable} - chgSelectData={(selects) => this.setState({selectedData: selects})} - changeLock={(lock) => this.setState({lock: lock})} - statFValue={this.state.statFValue} - /> - </div> + <MainTable + BID={BID} + setting={setting} + columns={columns} + MenuID={config.uuid} + submit={config.submit} + fields={config.columns} + total={this.state.total} + lineMarks={config.lineMarks} + loading={this.state.loading} + refreshdata={this.refreshbytable} + chgSelectData={(selects) => this.setState({selectedData: selects})} + changeLock={(lock) => this.setState({lock: lock})} + statFValue={this.state.statFValue} + /> </div> ) } -- Gitblit v1.8.0