Skip to content
Snippets Groups Projects
Commit c1b63789 authored by syuilo's avatar syuilo
Browse files

refactor(client): use css modules

parent bb5d2bda
No related branches found
No related tags found
No related merge requests found
<template>
<div class="terlnhxf">
<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" scoped>
.terlnhxf {
<style lang="scss" module>
.root {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(v-bind('minWidth'), 1fr));
grid-gap: 12px;
> ::v-deep(*) {
margin: 0 !important;
}
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment