【发布时间】:2020-08-18 08:52:28
【问题描述】:
我正在使用 reactjs。我正在使用 devextreme-reactive 可编辑表组件。
当我想将收到的 json 数据作为 arrayList 与 this.props.customer.customerDebts.customerAllDebts 添加到表中时出现错误,如下所示。
我该如何解决这个问题?
<Paper style={{width: "100%"}}>
<Grid
rows={this.props.customerDebts.customerAllDebts.json}
columns={this.state.columns}
>
<EditingState
onCommitChanges={this.commitChanges}
columnExtensions={[
{columnName: "first_name", editingEnabled:false},
{columnName: "last_name", editingEnabled:false},
]}
/>
<PagingState
defaultPageSize={5}
defaultCurrentPage={5}
/>
<IntegratedPaging />
<Table />
<TableColumnResizing
defaultColumnWidths={this.state.defaultColumnWidths}
/>
<TableHeaderRow />
<PagingPanel
pageSizes={this.state.pageSizes}
messages={this.pagingPanelMessages}
/>
<TableEditRow />
<TableEditColumn
showAddCommand
showEditCommand
showDeleteCommand
commandComponent={Command}
/>
<TableBandHeader
columnBands={this.state.columnBands}
/>
</Grid>
</Paper>
【问题讨论】:
-
错误是什么?
-
我收到了图片中的错误,我无法导入 this.props.customerDebts.customerAllDebts 中的数据,它给出了错误。
-
请帮帮我。
标签: reactjs react-props devextreme