File tree Expand file tree Collapse file tree 2 files changed +51
-8
lines changed Expand file tree Collapse file tree 2 files changed +51
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,27 @@ const initialValues = {
10
10
<template >
11
11
<FormKit type =" form" :actions =" false" :value =" initialValues" >
12
12
<!-- %partial%::html:: -->
13
- <FormKit type =" unit" unit =" kilogram" name =" narrow" unit-display =" narrow" />
14
- <FormKit type =" unit" unit =" kilogram" name =" short" unit-display =" short" />
15
- <FormKit type =" unit" unit =" kilogram" name =" long" unit-display =" long" />
13
+ <FormKit
14
+ type =" unit"
15
+ unit =" kilogram"
16
+ name =" narrow"
17
+ unit-display =" narrow"
18
+ label =" Narrow"
19
+ />
20
+ <FormKit
21
+ type =" unit"
22
+ unit =" kilogram"
23
+ name =" short"
24
+ unit-display =" short"
25
+ label =" Short"
26
+ />
27
+ <FormKit
28
+ type =" unit"
29
+ unit =" kilogram"
30
+ name =" long"
31
+ unit-display =" long"
32
+ label =" Long"
33
+ />
16
34
<!-- %partial%::html:: -->
17
35
</FormKit >
18
36
</template >
Original file line number Diff line number Diff line change @@ -16,11 +16,36 @@ const initialValues = {
16
16
:value =" initialValues"
17
17
>
18
18
<!-- %partial%::html:: -->
19
- <FormKit type =" unit" unit =" meter" name =" distance" />
20
- <FormKit type =" unit" unit =" celsius" name =" temperature" />
21
- <FormKit type =" unit" unit =" day" name =" time" />
22
- <FormKit type =" unit" unit =" fluid-ounce" name =" volume" />
23
- <FormKit type =" unit" unit =" megabyte" name =" digital-unit" />
19
+ <FormKit
20
+ type =" unit"
21
+ unit =" kilometer"
22
+ name =" distance"
23
+ label =" Distance in meters"
24
+ />
25
+ <FormKit
26
+ type =" unit"
27
+ unit =" celsius"
28
+ name =" temperature"
29
+ label =" Temperature in Celsius"
30
+ />
31
+ <FormKit
32
+ type =" unit"
33
+ unit =" nanosecond"
34
+ name =" time"
35
+ label =" Time in nanoseconds"
36
+ />
37
+ <FormKit
38
+ type =" unit"
39
+ unit =" fluid-ounce"
40
+ name =" volume"
41
+ label =" Volume in fluid ounces"
42
+ />
43
+ <FormKit
44
+ type =" unit"
45
+ unit =" megabyte"
46
+ name =" digital-unit"
47
+ label =" Digital unit in megabytes"
48
+ />
24
49
<pre wrap >{{ value }}</pre >
25
50
<!-- %partial%::html:: -->
26
51
</FormKit >
You can’t perform that action at this time.
0 commit comments