How to put the Walking Lantern in the Table component of antd how to put the Carousel component

how should the Table component of antd put the walking lantern Carousel component

Today, when I placed pictures in Table, I found that there was more than one picture data given to me by the background, so I planned to use the walking lantern Carousel to put multiple pictures. But no matter how you put it, it can"t be displayed.

I wonder if it is because of two return problems

here is the related code

related codes

const loop = (data) => {
        data.map((item) => {
            console.log(item)
            return <div key="photo"><img src={item} width="200" height="350" alt="" ></img></div>
        })
    }

/* eslint-disable */
    const columns = [{
        title: "",
        dataIndex: "xcsj",
        key: "xcsj",
    }, {
        title: "",
        dataIndex: "zt",
        key: "zt",
    }, {
        title: "",
        dataIndex: "bz",
        key: "bz",
        width: 250,
    }, {
        title: "",
        dataIndex: "xczp",
        key: "xczp",
        render: (text, record) => {
            let zzqzps = record.xczp.split(",")
            // console.log(zzqzps)
            return zzqzps == "" ? <div key="xczp"></div> : <Carousel autoplay={true}>{loop(zzqzps)}</Carousel>
        },

    }];

does anyone know how to change it? Solve

Jun.01,2021

over the loop return data.map ()

then it is recommended to add a div control width to the outside of the walking lantern assembly.

<div style={{width: 200}}>
    <Carousel autoplay={true}>{loop(zzqzps)}</Carousel>
</div>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33582-34237.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33582-34237.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?