bkui-vue3 icon indicating copy to clipboard operation
bkui-vue3 copied to clipboard

bugfix(table): 多表头 label 支持 render function, 当传入 render fucntion 后,数据无法正常渲染

Open forrany opened this issue 1 year ago • 0 comments

Version / Branch / tag

多表头中,如果在columns 使用了 render function,则无法正常渲染

...
      <bk-table-column
        :label="() => h('div', { style: { color: '#313238',fontWeight: 700,marginLeft: '8px' } }, '本次要合并的版本信息 ')">
        <bk-table-column :label="'版本'" field="max_version" :width="130"></bk-table-column>
        <bk-table-column :label="'金额'" field="max_version_amount" :sort="{ sortScope: 'all' }" :width="130">
          <template #default="{ row }">
            <span>{{ formatCost(row.max_version_amount) }}</span>
          </template>
        </bk-table-column>

实际表现中,即使表格有数据,也会显示暂无数据

出了什么问题?(What Happened?)

如何复现?(How to reproduce?)

预期结果(What you expect?)

forrany avatar Jul 11 '24 07:07 forrany