Skip to content

Commit

Permalink
[46] VLCrudInput: add multiple prop for select input (#47)
Browse files Browse the repository at this point in the history
VLCrudInput: add multiple prop for select input
  • Loading branch information
AAndonio authored Oct 3, 2024
1 parent e28c055 commit 945e97a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skillbill/vuelace-3",
"version": "1.1.6",
"version": "1.1.7",
"private": false,
"author": "skillbill",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/components/VLCrudForm/VLCrudForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
:disabled="isDisabled(field)"
:placeholder="field.placeholder"
:required="field.required"
:multiple="field.multiple"
:img_style="field.img_style"
v-model="model[field.value]"
@update:modelValue="() => field.side_effect?.(model, fields)"
Expand Down
1 change: 1 addition & 0 deletions src/components/VLCrudForm/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface VLCrudFormFieldType {
hidden_on_create?: boolean
disabled_on_edit?: boolean
placeholder?: string
multiple?: boolean
side_effect?: (
model: { [key: string]: VLCrudInputValueType },
fields: {
Expand Down
1 change: 1 addition & 0 deletions src/components/VLCrudInput/VLCrudInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
:disabled="disabled"
:placeholder="placeholder"
:options="options"
:multiple="multiple"
:model-value="cheatType()"
@update:model-value="cheatUpdateFunction"
/>
Expand Down
1 change: 1 addition & 0 deletions src/components/VLCrudInput/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface VLCrudInputProps {
disabled?: boolean
required?: boolean
img_style?: string
multiple?: boolean
onError?: (error: VLFileInputErrorEvent) => void
// autofocus?: boolean
}

0 comments on commit 945e97a

Please sign in to comment.