Skip to content

Commit effb84c

Browse files
authored
Merge pull request #36 from formsible/long/form-style
Long/form style
2 parents 8e50470 + 1ae3a3e commit effb84c

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/components/checkboxes/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const isRequired = computed(() =>
3535
v-model="model"
3636
:value="option.value"
3737
:input-id="option.value"
38+
:disabled="option.disabled"
3839
v-bind="{ ...$attrs, ...props.input.props }"
3940
/>
4041
<label :for="option.value">{{ option.label }}</label>

src/manifest.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,17 @@
146146
"description": "Select one or more options.",
147147
"placeholder": "Choose options",
148148
"choices": [
149-
{ "label": "Option 1", "value": "option1" },
149+
{
150+
"label": "Option 1",
151+
"value": "option1",
152+
"disabled": true
153+
},
150154
{ "label": "Option 2", "value": "option2" }
151-
]
155+
],
156+
"defaultValue": "option1",
157+
"props": {
158+
"defaultValue": ["option1"]
159+
}
152160
}
153161
}
154162
}

src/types/input.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export interface IFile {
2121
export interface InputChoice {
2222
label: string // Display label for the choice
2323
value: string // Value associated with the choice
24+
disabled: boolean
2425
src: string // Source path or URL related to the choice
2526
}
2627

0 commit comments

Comments
 (0)