File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
src/components/form-spinbutton Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change @@ -351,28 +351,24 @@ The `change` event is emitted once the user releases the mouse button (when pres
351
351
inrement or decrement buttons) or when the user releases the <kbd >ArrowDown</kbd > or
352
352
<kbd >ArrowUp</kbd > key. This can be handy when you need to debounce the input.
353
353
354
- The folowing example illustrates teh difference between the ` input ` and ` change ` events.
354
+ The folowing example illustrates the difference between the ` input ` and ` change ` events.
355
355
Click and hold the increment or decrement button (or use the up/down arrow keys).
356
356
357
357
``` html
358
358
<template >
359
- <template >
360
- <b-row >
361
- <b-col md =" 6" >
362
- <label for =" sb-input" >Spin button - input event</label >
363
- <b-form-spinbutton id =" sb-input" v-model =" valueA" wrap ></b-form-spinbutton >
364
- <p >Value: {{ valueA }}</p >
365
- </b-col >
366
- <b-col md =" 6" >
367
- <label for =" sb-change" class =" " >Spin button - change event</label >
368
- <b-form-spinbutton id =" sb-change" :value =" valueB" @change =" valueB = $event" wrap ></b-form-spinbutton >
369
- <p >Value: {{ valueB }}</p >
370
- </b-col >
359
+ <div >
360
+ <label for =" sb-input" >Spin button - input and change events</label >
361
+ <b-form-spinbutton
362
+ id =" sb-input"
363
+ v-model =" valueA"
364
+ @change =" valueB = $event"
365
+ wrap
366
+ ></b-form-spinbutton >
367
+ <p >Input event: {{ valueA }}</p >
368
+ <p >Change event: {{ valueB }}</p >
371
369
</b-row >
372
370
</template >
373
371
374
- </template >
375
-
376
372
<script >
377
373
export default {
378
374
data () {
You can’t perform that action at this time.
0 commit comments