subRow = (data: object[]) => {
const {
rowNum, height, offset
}: Proper = this.props.properties
console.log(data)
// const ArrItem: Array<JSX.Element> = []
// data.map((item) => (
// ArrItem.push((
// <Col span={24 / rowNum} offset={offset} style={{ height }} className="col">
//
//
// ))
// ))
return data.map((item: any) => {
const itemss: object = {
items: [item]
}
return (
<Col span={24 / rowNum} offset={offset} style={{ height }} className="over">
{
this.renderSubWidget('item_widget', {
__key: item.id,
__result: itemss,
__listType: 'div',
onItemClick: this.onItemClick
})
}
)
})
// return ArrItem.map((item): JSX.Element => item)
}