Commit 0851954f authored by zhangwenshuai's avatar zhangwenshuai

update

parent b59fdde2
...@@ -79,7 +79,7 @@ const Cell = (props: CellProps) => { ...@@ -79,7 +79,7 @@ const Cell = (props: CellProps) => {
return; return;
} }
let temp: CellDataProps[] = []; let temp: CellDataProps[] = [];
cellData.map((item: CellDataProps) => { cellData && cellData.map((item: CellDataProps) => {
temp.push({ text: item.text, value: item.value }); temp.push({ text: item.text, value: item.value });
}); });
if (temp.length === 0) { if (temp.length === 0) {
......
...@@ -332,6 +332,7 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -332,6 +332,7 @@ export default class AirTable extends Component<TableProps, TableState> {
onEmitMsg, onEmitMsg,
tableId, tableId,
renderFirstLeft, renderFirstLeft,
bordered = false,
} = this.props; } = this.props;
if (showColumns.length === 0 || showData.length === 0) { if (showColumns.length === 0 || showData.length === 0) {
return; return;
...@@ -346,7 +347,7 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -346,7 +347,7 @@ export default class AirTable extends Component<TableProps, TableState> {
const cellData: any = columnData && columnData.cellValueList; // 列数据 const cellData: any = columnData && columnData.cellValueList; // 列数据
const { cellClassName, cellStyle, bordered = false } = columnConfig; const { cellClassName, cellStyle } = columnConfig;
const rowClassNameStr = getMergeClassName(styles.bodyRow, rowClassName, { rowIndex }); const rowClassNameStr = getMergeClassName(styles.bodyRow, rowClassName, { rowIndex });
const rowStyleObj = getMergeStyle({}, rowStyle, { rowIndex }); const rowStyleObj = getMergeStyle({}, rowStyle, { rowIndex });
......
...@@ -89,9 +89,9 @@ export const ApolloTextArea = (props: ApolloTextAreaProps) => { ...@@ -89,9 +89,9 @@ export const ApolloTextArea = (props: ApolloTextAreaProps) => {
if (newValue) { if (newValue) {
newValue = newValue[0] && newValue[0].value; newValue = newValue[0] && newValue[0].value;
setCurValue(newValue); setCurValue(newValue);
setVisible(true);
} }
} }
setVisible(true);
}; };
if (origin === 'editForm') { if (origin === 'editForm') {
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment