mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 17:43:09 +02:00
27 lines
453 B
Vue
27 lines
453 B
Vue
<template>
|
|
<div :class="$style.root">
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { provide } from 'vue';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
minWidth?: number;
|
|
}>(), {
|
|
minWidth: 210,
|
|
});
|
|
|
|
provide('splited', true);
|
|
|
|
const minWidth = props.minWidth + 'px';
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
|
|
grid-gap: 12px;
|
|
}
|
|
</style>
|