1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-16 23:58:14 +09:00
hotomoe/packages/frontend/src/components/form/split.vue

28 lines
439 B
Vue
Raw Normal View History

2021-12-30 21:47:48 +09:00
<template>
2023-01-05 21:04:56 +09:00
<div class="terlnhxf">
2021-12-30 21:47:48 +09:00
<slot></slot>
</div>
</template>
<script lang="ts" setup>
const props = withDefaults(defineProps<{
2022-06-29 16:07:38 +09:00
minWidth?: number;
2021-12-30 21:47:48 +09:00
}>(), {
2022-06-29 16:07:38 +09:00
minWidth: 210,
2021-12-30 21:47:48 +09:00
});
const minWidth = props.minWidth + 'px';
</script>
<style lang="scss" scoped>
2021-12-30 21:47:48 +09:00
.terlnhxf {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
grid-gap: 12px;
> ::v-deep(*) {
margin: 0 !important;
}
}
</style>