summaryrefslogtreecommitdiff
path: root/packages/client/src/components/form/split.vue
blob: 301a8a84e57c16875b7aaf95cdd13382b0287dbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<template>
<div class="terlnhxf _formBlock">
	<slot></slot>
</div>
</template>

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

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>