Explorar o código

feat:table 详情备注字段

ljc hai 2 meses
pai
achega
4d6752c4a1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      components/cwg-detail-popup.vue

+ 4 - 0
components/cwg-detail-popup.vue

@@ -77,6 +77,10 @@ const formatTagText = (value, column) => {
     return value || '-'
 }
 const formatCellValue = (value, column, row) => {
+    // note , 详情展示备注
+    if (column.type === 'note') {
+       return row.note
+    }
     if (column.formatter) {
         return column.formatter({ value, row })
     }