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