fix: Fixed stories because of last api changes, code cleanup
This commit is contained in:
parent
0e1b8ac05e
commit
16d500b33d
@ -8,15 +8,16 @@
|
||||
}"
|
||||
class="mb-3"
|
||||
name="number"
|
||||
validation="number|required"
|
||||
validation="required"
|
||||
>
|
||||
<label for="text-field">Text field (number|required)</label>
|
||||
<label for="text-field">Text field (required)</label>
|
||||
<input
|
||||
id="text-field"
|
||||
v-model="context.model"
|
||||
type="text"
|
||||
class="form-control"
|
||||
style="max-width: 250px;"
|
||||
@blur="context.runValidation()"
|
||||
>
|
||||
|
||||
<div
|
||||
@ -24,7 +25,7 @@
|
||||
:key="index"
|
||||
class="text-danger"
|
||||
>
|
||||
{{ error.message }}
|
||||
{{ error }}
|
||||
</div>
|
||||
</FormularioInput>
|
||||
|
||||
@ -42,6 +43,7 @@
|
||||
type="text"
|
||||
class="form-control"
|
||||
style="max-width: 250px;"
|
||||
@blur="context.runValidation()"
|
||||
>
|
||||
|
||||
<div
|
||||
|
@ -3,7 +3,7 @@ import './bootstrap.scss'
|
||||
import { storiesOf } from '@storybook/vue'
|
||||
|
||||
import Vue from 'vue'
|
||||
import Formulario from '@/Formulario.ts'
|
||||
import VueFormulario from '../../dist/formulario.esm'
|
||||
|
||||
import FormularioGroupingTale from './FormularioGrouping.tale'
|
||||
import FormularioInputTale from './FormularioInput.tale'
|
||||
@ -15,7 +15,7 @@ Vue.mixin({
|
||||
}
|
||||
}
|
||||
})
|
||||
Vue.use(new Formulario())
|
||||
Vue.use(VueFormulario)
|
||||
|
||||
storiesOf('FormularioInput', module)
|
||||
.add('Default', () => FormularioInputTale)
|
||||
|
Loading…
Reference in New Issue
Block a user