Skip to content

Commit a34bfd8

Browse files
authored
Update form-spinbutton.js
1 parent c004d3a commit a34bfd8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/components/form-spinbutton/form-spinbutton.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
9696
type: Boolean,
9797
default: false
9898
},
99+
buttonVariant: {
100+
type: String,
101+
default: 'outline-secondary'
102+
},
99103
labelIncrement: {
100104
type: String,
101105
default: 'Increment'
@@ -226,12 +230,11 @@ export const BFormSpinbutton = /*#__PURE__*/ Vue.extend({
226230
BButton,
227231
{
228232
key: key || null,
229-
staticClass: 'btn btn-sm border-0',
233+
staticClass: 'btn btn-sm border-0 rounded-0',
230234
class: { 'py-0': !isVertical },
231235
props: {
232-
variant: this.variant,
233-
disabled: isDisabled || isReadonly,
234-
block: isVertical
236+
variant: this.buttonVariant,
237+
disabled: isDisabled || isReadonly
235238
},
236239
attrs: {
237240
tabindex: '-1',

0 commit comments

Comments
 (0)