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"
|
class="mb-3"
|
||||||
name="number"
|
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
|
<input
|
||||||
id="text-field"
|
id="text-field"
|
||||||
v-model="context.model"
|
v-model="context.model"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
style="max-width: 250px;"
|
style="max-width: 250px;"
|
||||||
|
@blur="context.runValidation()"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@ -24,7 +25,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
class="text-danger"
|
class="text-danger"
|
||||||
>
|
>
|
||||||
{{ error.message }}
|
{{ error }}
|
||||||
</div>
|
</div>
|
||||||
</FormularioInput>
|
</FormularioInput>
|
||||||
|
|
||||||
@ -42,6 +43,7 @@
|
|||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
style="max-width: 250px;"
|
style="max-width: 250px;"
|
||||||
|
@blur="context.runValidation()"
|
||||||
>
|
>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -3,7 +3,7 @@ import './bootstrap.scss'
|
|||||||
import { storiesOf } from '@storybook/vue'
|
import { storiesOf } from '@storybook/vue'
|
||||||
|
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import Formulario from '@/Formulario.ts'
|
import VueFormulario from '../../dist/formulario.esm'
|
||||||
|
|
||||||
import FormularioGroupingTale from './FormularioGrouping.tale'
|
import FormularioGroupingTale from './FormularioGrouping.tale'
|
||||||
import FormularioInputTale from './FormularioInput.tale'
|
import FormularioInputTale from './FormularioInput.tale'
|
||||||
@ -15,7 +15,7 @@ Vue.mixin({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Vue.use(new Formulario())
|
Vue.use(VueFormulario)
|
||||||
|
|
||||||
storiesOf('FormularioInput', module)
|
storiesOf('FormularioInput', module)
|
||||||
.add('Default', () => FormularioInputTale)
|
.add('Default', () => FormularioInputTale)
|
||||||
|
Loading…
Reference in New Issue
Block a user