|
@@ -54,7 +54,6 @@ function TableData(props: Prosp) {
|
|
|
const [oldSelectData, setoldSelectData] = useState<any[]>([])
|
|
|
const [oldFixed, setoldFixed] = useState<any>({ left: '0', right: '0' })
|
|
|
const [newColumns, setNewColumns] = useState<any[]>([])
|
|
|
- const [oldNewColumns, setOldNewColumns] = useState<any[]>([])
|
|
|
const [timer, setTimer] = useState<string>(moment().format('HH:mm:ss'))
|
|
|
const [selectData, setSelectData] = useState<{ selectData: any[], fixed: { left: number, right: number } }>({ selectData: [], fixed: { left: fixed.left, right: fixed.right } })
|
|
|
const ref = useRef(null)
|
|
@@ -95,7 +94,6 @@ function TableData(props: Prosp) {
|
|
|
}
|
|
|
})
|
|
|
setNewColumns(c)
|
|
|
- setOldNewColumns(c)
|
|
|
// setNewColumns(newArr.map((newItem: any, index: number) => {
|
|
|
// let oldItem = newConfig.find((c: { dataIndex: any }) => c.dataIndex === newItem.dataIndex)
|
|
|
// if (newItem?.width !== oldItem?.width) {
|
|
@@ -220,7 +218,6 @@ function TableData(props: Prosp) {
|
|
|
onClose={() => { setVisible(false) }}
|
|
|
onChange={(arr: any) => {
|
|
|
setTimer(moment().format('HH:mm:ss'));
|
|
|
- setOldNewColumns([])
|
|
|
if (arr) {
|
|
|
setSelectData({ selectData: [], fixed: { left: fixed.left, right: fixed.right } })
|
|
|
} else {
|