fix: 修复 labelField 和 nameField
parent
08e4bb40b4
commit
4bbd34fab9
|
|
@ -23,7 +23,7 @@ interface RowType {
|
||||||
const gridOptions: VxeGridProps<RowType> = {
|
const gridOptions: VxeGridProps<RowType> = {
|
||||||
checkboxConfig: {
|
checkboxConfig: {
|
||||||
highlight: true,
|
highlight: true,
|
||||||
labelField: 'productName',
|
labelField: 'category',
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{title: '序号', type: 'seq', width: 50},
|
{title: '序号', type: 'seq', width: 50},
|
||||||
|
|
@ -36,7 +36,7 @@ const gridOptions: VxeGridProps<RowType> = {
|
||||||
align: 'center',
|
align: 'center',
|
||||||
cellRender: {
|
cellRender: {
|
||||||
attrs: {
|
attrs: {
|
||||||
nameField: 'name',
|
nameField: 'category',
|
||||||
onClick: onActionClick,
|
onClick: onActionClick,
|
||||||
},
|
},
|
||||||
name: 'CellOperation',
|
name: 'CellOperation',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue