Skip to content

Commit 30e4138

Browse files
committed
chore: example cleanup
1 parent a54a956 commit 30e4138

File tree

7 files changed

+44
-35
lines changed

7 files changed

+44
-35
lines changed

_examples/list/list.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ref } from 'vue'
33
const list = ref([
44
55
6+
67
])
78
</script>
89

_examples/multi-step/before-step-change/before-step-change.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const stepInformation = ref({})
77
<!-- %partial% -->
88
<FormKit
99
type="multi-step"
10-
:disabled="disabled"
1110
:before-step-change="
1211
({ currentStep, targetStep, delta }) => {
1312
stepInformation.value = {

_examples/taglist/taglist-max.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import countries from '@content/_examples/_data/countries.js'
66
<FormKit type="form" #default="{ value }" :actions="false">
77
<FormKit
88
type="taglist"
9+
name="taglist"
910
label="Taglist with max prop set to 2"
1011
:options="countries"
1112
popover
1213
max="2"
1314
/>
15+
<pre wrap>{{ value }}</pre>
1416
</FormKit>
1517
</template>

_examples/taglist/taglist-open-on-click.vue

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ import countries from '@content/_examples/_data/countries.js'
33
</script>
44

55
<template>
6-
<FormKit
7-
type="taglist"
8-
name="country"
9-
label="Search for a country"
10-
placeholder="Example: United States"
11-
:options="countries"
12-
popover
13-
open-on-click
14-
/>
6+
<FormKit type="form" #default="{ value }" :actions="false">
7+
<FormKit
8+
type="taglist"
9+
name="country"
10+
label="Search for a country"
11+
placeholder="Example: United States"
12+
:options="countries"
13+
popover
14+
open-on-click
15+
/>
16+
<pre wrap>{{ value }}</pre>
17+
</FormKit>
1518
</template>

_examples/taglist/taglist-open-on-focus.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function focusTaglist() {
1212
</script>
1313

1414
<template>
15-
<div>
15+
<FormKit type="form" #default="{ value }" :actions="false">
1616
<FormKit type="button" @click="focusTaglist"
1717
>Click me to focus taglist</FormKit
1818
>
@@ -27,7 +27,6 @@ function focusTaglist() {
2727
popover
2828
open-on-focus
2929
/>
30-
</div>
30+
<pre wrap>{{ value }}</pre>
31+
</FormKit>
3132
</template>
32-
33-
<style scoped></style>

_examples/taglist/taglist-open-on-remove.vue

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ import countries from '@content/_examples/_data/countries.js'
33
</script>
44

55
<template>
6-
<FormKit
7-
type="taglist"
8-
name="country"
9-
label="Search for a country"
10-
placeholder="Example: United States"
11-
:options="countries"
12-
open-on-remove
13-
popover
14-
:value="['US']"
15-
/>
16-
<pre wrap>{{ value }}</pre>
6+
<FormKit type="form" #default="{ value }" :actions="false">
7+
<FormKit
8+
type="taglist"
9+
name="country"
10+
label="Search for a country"
11+
placeholder="Example: United States"
12+
:options="countries"
13+
open-on-remove
14+
popover
15+
:value="['US']"
16+
/>
17+
<pre wrap>{{ value }}</pre>
18+
</FormKit>
1719
</template>

_examples/taglist/taglist-reload-on-commit.vue

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ import countries from '@content/_examples/_data/countries.js'
33
</script>
44

55
<template>
6-
<FormKit
7-
type="taglist"
8-
name="country"
9-
label="Search for a country"
10-
placeholder="Example: United States"
11-
popover
12-
:options="countries"
13-
:reload-on-commit="true"
14-
:close-on-select="false"
15-
/>
6+
<FormKit type="form" #default="{ value }" :actions="false">
7+
<FormKit
8+
type="taglist"
9+
name="country"
10+
label="Search for a country"
11+
placeholder="Example: United States"
12+
popover
13+
:options="countries"
14+
:reload-on-commit="true"
15+
:close-on-select="false"
16+
/>
17+
<pre wrap>{{ value }}</pre>
18+
</FormKit>
1619
</template>

0 commit comments

Comments
 (0)