此代码:
settings: {
colHeaders:['Commodity', 'Packaging', 'Quantity', 'Unit Dimension', 'Unit Dimension Length', 'Unit Dimension Width', 'Unit Dimension Height', 'Volume'],
data: [{commodityName:"", packageName:"", quantity: "", dimensionUOM: "", length: "", width: "", height: "", volume: ""}],
columns: [
{ data:"commodityName"},
{ data:"packageName", type:'dropdown', source:["Pallet", "Box"] },
{ data:"quantity"},
{ data:"dimensionUOM", type:'dropdown', source:["millimeters", "centimeters"]},
{ data:"length"},
{ data:"width"},
{ data:"height"},
{ data:"volume"},
],
minSpareRows: 0,
contextMenu: true,
rowHeaders:true,
manualColumnResize: true,
columnSorting: true,
manualRowResize: true,
manualRowMove: true,
manualColumnMove: true,
colWidths: [110, 100, 100,120, 100, 100,100,100],
}
<div id="hot-app">
<HotTable root="hot" ref="hot" settings={this.state.settings}/>
</div>
我正在使用可动手使用的组件
我需要计算体积(长*宽*高),并禁用体积列。
我已经研究了组件,但是没有找到任何解决方案,发现afterChange事件但无法实现。
请有人对此提供指导。