'How to encapsulate bootstrapvue table twice

I hope that after encapsulating the Table, the type can be judged by the field. For example: element UI, you can judge the type by traversing the head, and perform secondary encapsulation.



Solution 1:[1]

<template #cell()="data">
  <template v-if="data.field.type === 'link'">
    link: {{ data.value }}
  </template>
</template>

solved

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alex Lin