From c593048fd2b71df0bed46c97110e19e0b9bb3cd4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 07 十月 2022 15:50:53 +0800 Subject: [PATCH] 2022-10-07 --- src/tabviews/zshare/normalTable/index.jsx | 46 +++------------------------------------------- 1 files changed, 3 insertions(+), 43 deletions(-) diff --git a/src/tabviews/zshare/normalTable/index.jsx b/src/tabviews/zshare/normalTable/index.jsx index b355463..c3147cc 100644 --- a/src/tabviews/zshare/normalTable/index.jsx +++ b/src/tabviews/zshare/normalTable/index.jsx @@ -2,7 +2,7 @@ import PropTypes from 'prop-types' import md5 from 'md5' import { is, fromJS } from 'immutable' -import { Table, Affix, Typography, Col } from 'antd' +import { Table, Typography, Col } from 'antd' import asyncComponent from '@/utils/asyncComponent' import MKEmitter from '@/utils/events.js' @@ -18,6 +18,7 @@ const TabButton = asyncComponent(() => import('@/tabviews/zshare/actionList/tabbutton')) const NewPageButton = asyncComponent(() => import('@/tabviews/zshare/actionList/newpagebutton')) const Video = asyncComponent(() => import('@/components/video')) +const MkPicture = asyncComponent(() => import('@/components/mkPicture')) const PicRadio = { '4:3': '75%', '3:2': '66.67%', '16:9': '56.25%', '2:1': '50%', '3:1': '33.33%', '4:1': '25%', @@ -660,17 +661,7 @@ return ( <div className="picture-col"> {photos.map((url, i) => (<Col key={i} span={item.span || 24}> - <div - className={'mk-picture' + (scale ? ' image-scale' : '')} - onClick={(e) => { - if (!scale) return - - e.stopPropagation() - - MKEmitter.emit('mkImageScale', url, photos) - }} - style={{...style, backgroundImage: `url('${url}')`}} - ></div> + <MkPicture style={style} scale={scale} url={url} urls={photos}/> </Col>))} </div> ) @@ -1250,21 +1241,6 @@ } } - // 琛ㄦ牸澶撮儴鍥哄畾浜庨《閮ㄦ椂锛屽垽鏂窛椤堕儴楂樺害 - let offset = null - if (this.props.tableId === 'mainTable' && setting.columnfixed) { - if (!setting.actionfixed) { - offset = 48 - } else { - let box = document.getElementById(this.props.MenuID + 'mainaction') - if (box) { - offset = 48 + box.offsetHeight - } else { - offset = 105 - } - } - } - // 鏁版嵁鏀惰捣鏃讹紝杩囨护宸查�夋暟鎹� let _data = this.props.data ? this.props.data : [] @@ -1308,22 +1284,6 @@ return ( <div className={'normal-data-table mingke-table ' + (height ? 'fixed-height' : '')}> - {offset && <Affix offsetTop={offset} className="fix-header"> - <Table - size={setting.size || 'middle'} - style={style} - bordered={setting.bordered !== 'false'} - rowSelection={rowSelection} - columns={this.state.columns.map(column => { - return { - align: column.align, - dataIndex: column.dataIndex, - title: column.title, - width: column.width - } - })} - /> - </Affix>} <Table components={components} size={setting.size || 'middle'} -- Gitblit v1.8.0