/
devron
/
ecomm-app
Обзор
Документация
Войти
/
devron
/
ecomm-app
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
resources/js/Components/Form/FormGroupLine.vue
33 строки
775 B
Romulus
first init
17 апр 2024, 15:18
17 апр 2024, 15:18
6886bc2
Код
Авторство
О чём код?
<script setup> import { defineProps } from 'vue' import FormGroupRow from './FormGroupRow.vue' import Label from './Label.vue' import Input from './Input.vue' import Row from './../Grid/Row.vue' import Col from './../Grid/Col.vue' const props = defineProps([ 'name', 'label', 'labelCol', 'labelProps', 'inputCol', 'inputProps', 'component' ]); const Component = props.component || Input; </script> <template> <FormGroupRow> <Col :col="labelCol"> <Label :for="name" v-html="label" class="mt-1"></Label> </Col> <Col :col="inputCol"> <slot v-bind="props"> <Component :name="name" v-bind="inputProps"/> </slot> </Col> </FormGroupRow> </template>