3.0.0-alpha.2 • Published 4 years ago
@sneverton/vue-grid v3.0.0-alpha.2
Introdução
Plugin Vue de componentes para utilizar Grid Layout.
Instalar
yarn add @sneverton/vue-gridimport { createApp } from 'vue'
import VueGrid from "@sneverton/vue-grid";
const app = createApp({})
app.use(VueGrid)Componentes
Todas as propiedades dos componentes podem ser utilizadas com pontos de interrupção adicionando -{breakpoint} no final para sm, md, lg e xl.
Exemplo:
<grid-container cols="auto" cols-sm="auto max-content"></grid-container>GridContainer
GridList
| Nome | Tipo |
|---|---|
| itemWidth | number | string |
| itemHeight | number | string |
| gap | number | string |
| justify | "flex-start" | "flex-end" | "center" | "space-between" | "space-around" |
| alignItems | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" |
| alignContent | "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "stretch" |
GridItem
| Nome | Tipo |
|---|---|
| area | number | (string | number)[] | string |
| col | number | (string | number)[] | string |
| row | number | (string | number)[] | string |
| colStart | number | string |
| colEnd | number | string |
| rowStart | number | string |
| rowEnd | number | string |
| alignSelf | "flex-start" | "flex-end" | "center" | "baseline" | "auto" | "stretch" |
3.0.0-alpha.1
4 years ago
3.0.0-alpha.0
4 years ago
3.0.0-alpha.2
4 years ago
2.0.2
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.12
5 years ago
1.0.1
5 years ago