2021-12-30 14:47:48 +02:00
|
|
|
<template>
|
|
|
|
<div class="terlnhxf _formBlock">
|
|
|
|
<slot></slot>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
const props = withDefaults(defineProps<{
|
2022-06-29 10:07:38 +03:00
|
|
|
minWidth?: number;
|
2021-12-30 14:47:48 +02:00
|
|
|
}>(), {
|
2022-06-29 10:07:38 +03:00
|
|
|
minWidth: 210,
|
2021-12-30 14:47:48 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const minWidth = props.minWidth + 'px';
|
|
|
|
</script>
|
|
|
|
|
2022-12-27 11:29:39 +02:00
|
|
|
<style lang="scss" scoped>
|
2021-12-30 14:47:48 +02:00
|
|
|
.terlnhxf {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
|
|
|
|
grid-gap: 12px;
|
|
|
|
|
|
|
|
> ::v-deep(*) {
|
|
|
|
margin: 0 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|