summaryrefslogtreecommitdiff
path: root/docs/.vuepress/components/BmcTable.vue
blob: 9cc7b645b7d9003de75b340734d6222eeda4ba5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template>
  <b-table
    hover
    show-empty
    no-sort-reset
    sort-icon-left
    responsive="md"
    head-variant="light"
    table-variant="light"
    sort-by="rank"
    :items="items"
    :fields="fields"
  />
</template>

<script>
export default {
  data() {
    return {
      items: [
        {
          name: 'Veracruz All Natural',
          rank: 1,
          description: 'Authentic Mexican Food, Smoothies, and Juices'
        },
        {
          name: 'Torchy\'s Tacos',
          rank: 3,
          description: 'At Torchy\'s Tacos, we make food that breaks the mold.'
        },
        {
          name: 'Tacodeli',
          rank: 2,
          description: 'Tacodeli handcrafts Mexican-inspired, creative tacos with local and organic ingredients topped with award-winning salsas.'
        },
      ],
      fields: [
        {
          key: 'name',
          label: 'Name',
          sortable: true
        },
        {
          key: 'rank',
          label: 'Rank',
          sortable: true
        },
        {
          key: 'description',
          label: 'Description',
          sortable: false
        }
      ]
    }
  }
}
</script>