0
<Grid store={store}>
    <Column
        text='Dispatch and Receipt Locations'
        flex={1]
        renderer={(value, record) => {
        return record.get('DispatchLocation') + ' to ' + record.get('ReceiptLocation')
        }}
    />
</Grid>

我收到以下错误:

未捕获的错误:[Ext.create] 无法识别的类名/别名:widget.renderercell at
Object.create (ext.js:11776) at constructor.createCell (ext.js:82542) at
constructor.insertColumn (ext.js:82429)在constructor.addColumn (ext.js:82405) 在
constructor.onAdded (ext.js:82401) 在constructor.doAdd (ext.js:41374) 在
constructor.add (ext.js:41339) 在constructor.addDataItem (ext .js:70703) 在
constructor.callParent (ext.js:10561) 在constructor.addDataItem (ext.js:71606)

4

1 回答 1

0

您需要在其中需要renderercell包webpack.config.js并且需要导入。

packages: ['ext-react-renderercell'],

或在 Ext-React > 6 中:

packages: ['renderercell']
于 2020-05-11T16:30:22.690 回答