1
0
mirror of synced 2024-11-22 05:16:05 +03:00

fix: Fixed stories because of last api changes, code cleanup

This commit is contained in:
Zaytsev Kirill 2020-10-27 17:29:19 +03:00
parent 0e1b8ac05e
commit 16d500b33d
2 changed files with 7 additions and 5 deletions

View File

@ -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

View File

@ -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)