forked from nikita/muzika-gromche
21 lines
388 B
Vue
21 lines
388 B
Vue
<script setup lang="ts">
|
|
import type { Control } from "@/components/inspector/controls";
|
|
import { computed } from "vue";
|
|
import { getComponentFor } from "./impl";
|
|
|
|
const {
|
|
control,
|
|
} = defineProps<{
|
|
control: Control;
|
|
}>();
|
|
|
|
const view = computed(() => getComponentFor(control));
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<component :is="view" :control="control" />
|
|
</template>
|
|
|
|
<style scoped></style>
|