Skip to content
Snippets Groups Projects
split.vue 450 B
Newer Older
syuilo's avatar
syuilo committed
<template>
<div class="terlnhxf _formBlock">
	<slot></slot>
</div>
</template>

<script lang="ts" setup>
const props = withDefaults(defineProps<{
syuilo's avatar
syuilo committed
	minWidth?: number;
syuilo's avatar
syuilo committed
}>(), {
syuilo's avatar
syuilo committed
	minWidth: 210,
syuilo's avatar
syuilo committed
});

const minWidth = props.minWidth + 'px';
</script>

<style lang="scss" scoped>
.terlnhxf {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
	grid-gap: 12px;

	> ::v-deep(*) {
		margin: 0 !important;
	}
}
</style>