🐳 chore(eslint): 修正所有文件的eslint 错误❌
This commit is contained in:
@@ -73,10 +73,10 @@ const Table: FC<TablePropsType> = (props) => {
|
||||
&& dataSource.list.map((source) => {
|
||||
return (
|
||||
<View className={classnames(styles.tr, styles['bg-line'])} key={source.key}>
|
||||
{columns.map((column) => {
|
||||
{columns.map((column, key) => {
|
||||
if (column.render) {
|
||||
return (
|
||||
<View className={styles.td} style={{ width: column.width }}>
|
||||
<View key={key} className={styles.td} style={{ width: column.width }}>
|
||||
{/* 判断表头是不是有render 有就执行render */}
|
||||
{column.render(source[column.dataIndex])}
|
||||
</View>
|
||||
@@ -84,7 +84,7 @@ const Table: FC<TablePropsType> = (props) => {
|
||||
}
|
||||
else {
|
||||
return (
|
||||
<View className={classnames(styles.td, getColumnStyle(column))} style={{ width: column.width }}>
|
||||
<View key={key} className={classnames(styles.td, getColumnStyle(column))} style={{ width: column.width }}>
|
||||
{
|
||||
source[column.dataIndex] // 根据表头填数据
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user