10000 Bootstrap Badge · thomasfowler/bootstrap-vue@5453a56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5453a56

Browse files
author
Pooya Parsa
committed
Bootstrap Badge
1 parent 530bcf2 commit 5453a56

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

components/tags.vue renamed to components/badge.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<span :class="['tag',labelVariant,labelType]">
2+
<span :class="['badge',labelVariant,labelType]">
33
<slot></slot>
44
</span>
55
</template>
@@ -9,7 +9,7 @@
99
replace: true,
1010
computed: {
1111
labelVariant() {
12-
return !this.variant || this.variant === `default` ? `tag-default` : `tag-${this.variant}`
12+
return !this.variant || this.variant === `default` ? `badge-default` : `badge-${this.variant}`
1313
},
1414
labelType() {
1515
return !this.type ? `` : `tag-${this.type}`

components/form-input.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
:name="name"
2020
:placeholder="placeholder"
2121
:value="value"
22+
:rows="rows"
2223
@input="onInput($event.target.value)"
2324
ref="input"
2425
></textarea>

components/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import bFormRadio from './form-radio.vue'
1818
import bFormInput from './form-input.vue'
1919
import bFormSelect from './form-select.vue'
2020
import bJumbotron from './jumbotron.vue'
21-
import bTags from './tags.vue'
21+
import bBadge from './badge.vue'
2222
import bListGroup from './list-group.vue'
2323
import bListGroupItem from './list-group-item.vue'
2424
import bMedia from './media.vue'
@@ -53,7 +53,7 @@ export {
5353
bFormInput,
5454
bFormSelect,
5555
bJumbotron,
56-
bTags,
56+
bBadge,
5757
bMedia,
5858
bModal,
5959
bNavbar,

0 commit comments

Comments
 (0)
0