test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
23 lines (22 loc) • 666 B
JavaScript
import React__default from "react";
import Cell from "./Cell.js";
import CellGroup from "./CellGroup.js";
var CellCard = function CellCard2(props) {
var handerClick = function handerClick2(event, index) {
props.onClick(event, index);
};
return React__default.createElement(CellGroup, null, props.list && props.list.map(function(item, index) {
return React__default.createElement(Cell, {
title: item.name || "",
extra: item.extra || "",
description: item.description || "",
key: index,
onClick: function onClick(event) {
return handerClick(event, index);
}
});
}));
};
export {
CellCard as default
};