Skip to content

Commit

Permalink
implement setting input group component
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpaul17 committed Oct 4, 2024
1 parent a958ecf commit 159a6df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/settings/SettingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import Button from 'primevue/button';
import SettingInput from './SettingInput.vue';
import { type SettingDefinition } from '../../types/SettingsTypes';
defineProps({
Expand All @@ -26,6 +28,15 @@
onClick: definition.handler
});
case SettingInputType.INPUT_GROUP:
return h(
'div',
{ class: 'flex gap-2' },
definition.children.map((def) =>
h(SettingInput, { key: def.name, settingDefinition: def })
)
);
default:
throw new Error(
`component for setting input type ${definition.type} not implemented`
Expand Down

0 comments on commit 159a6df

Please sign in to comment.