Skip to content

Commit 3808384

Browse files
committed
update docs
1 parent 6a46333 commit 3808384

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/v1/vue.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Form from '@forms.js/vue';
1010

1111
export default {
1212
components: {
13-
Form,
13+
'forms-js': Form,
1414
},
1515
data: function () {
1616
return {
@@ -32,24 +32,24 @@ export default {
3232
<template>
3333
<div>
3434
<h1>Demo Form</h1>
35-
<Form :options="options" />
35+
<forms-js :options="options" />
3636
</div>
3737
</template>
3838
```
3939

4040
### Props
41-
4241
The component supports two props:
4342

4443
- `options: FormOptions` - <span class="badge warning">required</span> The form options (<a href="https://formsjs.io/documentation/v1/form">see more</a>).
4544
- `plugins: PluginSettings | PluginSettings[]` - if form needs to use any plugins you can pass them into the form through this options.
4645

46+
### Example
4747

48-
<!--<iframe height="300" style="width: 100%;" scrolling="no" title="forms.js - vue example" src="https://codepen.io/trilmatic/embed/vYPVXQg?default-tab=js%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
49-
See the Pen <a href="https://codepen.io/trilmatic/pen/vYPVXQg">
48+
<iframe height="400" style="width: 100%;" scrolling="no" title="forms.js - vue example" src="https://codepen.io/trilmatic/embed/KKEGNjp?default-tab=js%2Cresult" frameborder="no" loading="lazy" allowtransparency="true" allowfullscreen="true">
49+
See the Pen <a href="https://codepen.io/trilmatic/pen/KKEGNjp">
5050
forms.js - vue example</a> by Trilmatic (<a href="https://codepen.io/trilmatic">@trilmatic</a>)
5151
on <a href="https://codepen.io">CodePen</a>.
52-
</iframe>-->
52+
</iframe>
5353

5454
Vue component currently does not support templating, the feature is being developed.
5555

0 commit comments

Comments
 (0)