Skip to content

Instantly share code, notes, and snippets.

@rustam87
Last active August 12, 2020 07:38
Show Gist options
  • Save rustam87/57df876d8b02e3fb90c1a6b4dab8c4ec to your computer and use it in GitHub Desktop.
Save rustam87/57df876d8b02e3fb90c1a6b4dab8c4ec to your computer and use it in GitHub Desktop.
Table
<b-table
:items="worksTasks"
:fields="$options.tableFields"
>
<template v-slot:cell(index)="data">
{{ data.index + 1 }}
</template>
<template v-slot:cell(taskId)="{item}">
<nuxt-link
:to="getTaskProp(item.entityTypeId, 'path') + '/' + item.taskId"
>
{{ getTaskProp(item.entityTypeId, 'name') }} № {{ item.taskNumber }}
</nuxt-link>
</template>
<template v-slot:cell(taskDate)="{item}">
{{ getTaskDate(item.taskDate) }}
</template>
</b-table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment