Преглед изворни кода

fix: 修复 labelField 和 nameField

layhuts пре 1 месец
родитељ
комит
4bbd34fab9
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      playground/src/views/examples/vxe-table/viewed.vue

+ 2 - 2
playground/src/views/examples/vxe-table/viewed.vue

@@ -23,7 +23,7 @@ interface RowType {
 const gridOptions: VxeGridProps<RowType> = {
   checkboxConfig: {
     highlight: true,
-    labelField: 'productName',
+    labelField: 'category',
   },
   columns: [
     {title: '序号', type: 'seq', width: 50},
@@ -36,7 +36,7 @@ const gridOptions: VxeGridProps<RowType> = {
       align: 'center',
       cellRender: {
         attrs: {
-          nameField: 'name',
+          nameField: 'category',
           onClick: onActionClick,
         },
         name: 'CellOperation',