瀏覽代碼

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',