cols
(Number): カラム数(768~1199px)sm_cols
(Number): スモールスクリーンサイズでのカラム数(767px未満)lg_cols
(Number): ラージスクリーンサイズでのカラム数(1200px以上)
- getColClass:
props.cols
と props.sm_cols
に基づいて適切なクラスを生成する
<script setup lang="ts">
import { GridRow } from 'revuekitz'
import { GridColumn } from 'revuekitz'
import 'revuekitz/dist/style.css'
</script>
<template>
<GridRow>
<GridColumn :cols="6" :sm_cols="12">
<div>Column 1</div>
</GridColumn>
<GridColumn :cols="6" :sm_cols="12">
<div>Column 2</div>
</GridColumn>
</GridRow>
</template>