diff --git a/src/utils/inject.js b/src/utils/inject.js index e6127a7..e62106c 100644 --- a/src/utils/inject.js +++ b/src/utils/inject.js @@ -191,7 +191,7 @@ Vue.component("tableColumn", { return config.custom ? h('div', { style: {color: row.preSaleNum > row.stockNum ? 'red' : '#fff'}, class: 'pointer' }, '周边库存情况') : - h('span', row[config.prop] ?? '') + h('span', config.format?.(row) ?? row[config.prop] ?? '') } } })