2021-10-26 01:13:23 +08:00
|
|
|
::: title 基础使用
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-row space="10">
|
2021-11-17 23:51:15 +08:00
|
|
|
<lay-col md="12"><div class="grid-demo">1</div></lay-col>
|
|
|
|
<lay-col md="12"><div class="grid-demo grid-demo-bg1">2</div></lay-col>
|
|
|
|
<lay-col md="6"><div class="grid-demo">3</div></lay-col>
|
|
|
|
<lay-col md="6"><div class="grid-demo grid-demo-bg1">4</div></lay-col>
|
|
|
|
<lay-col md="6"><div class="grid-demo">5</div></lay-col>
|
|
|
|
<lay-col md="6"><div class="grid-demo grid-demo-bg1">6</div></lay-col>
|
2021-09-27 15:30:38 +08:00
|
|
|
</lay-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-30 23:49:46 +08:00
|
|
|
<style>
|
|
|
|
.grid-demo-bg1 {
|
|
|
|
background-color: #63BA79;
|
|
|
|
}
|
|
|
|
.grid-demo {
|
|
|
|
padding: 10px;
|
|
|
|
line-height: 50px;
|
2021-10-15 01:45:35 +08:00
|
|
|
border-radius: 2px;
|
2021-09-30 23:49:46 +08:00
|
|
|
text-align: center;
|
|
|
|
background-color: #79C48C;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 栅格偏移
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-row space="10">
|
2021-11-17 23:51:15 +08:00
|
|
|
<lay-col md="12"><div class="grid-demo">1</div></lay-col>
|
|
|
|
<lay-col md="6" mdOffset="6"><div class="grid-demo grid-demo-bg1">2</div></lay-col>
|
2021-09-27 15:30:38 +08:00
|
|
|
</lay-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-09-30 23:49:46 +08:00
|
|
|
<style>
|
|
|
|
.grid-demo-bg1 {
|
|
|
|
background-color: #63BA79;
|
|
|
|
}
|
|
|
|
.grid-demo {
|
|
|
|
padding: 10px;
|
|
|
|
line-height: 50px;
|
2021-10-15 01:45:35 +08:00
|
|
|
border-radius: 2px;
|
2021-09-30 23:49:46 +08:00
|
|
|
text-align: center;
|
|
|
|
background-color: #79C48C;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
</style>
|
2021-10-12 11:30:07 +08:00
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 栅格适应
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-09-27 15:30:38 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-row space="10">
|
2021-11-17 23:51:15 +08:00
|
|
|
<lay-col md="12" sm="12" xs="24"><div class="grid-demo">1</div></lay-col>
|
|
|
|
<lay-col md="12" sm="12" xs="24"><div class="grid-demo grid-demo-bg1">2</div></lay-col>
|
2021-09-27 15:30:38 +08:00
|
|
|
</lay-row>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2021-10-01 18:20:41 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 流式布局
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-08 04:36:31 +08:00
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-container fluid>
|
|
|
|
<lay-row space="10">
|
2021-11-17 23:51:15 +08:00
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo">1</div></lay-col>
|
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo grid-demo-bg1">2</div></lay-col>
|
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo">3</div></lay-col>
|
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo grid-demo-bg1">4</div></lay-col>
|
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo">5</div></lay-col>
|
|
|
|
<lay-col md="4" sm="12" xs="24"><div class="grid-demo grid-demo-bg1">6</div></lay-col>
|
2021-10-08 04:36:31 +08:00
|
|
|
</lay-row>
|
|
|
|
</lay-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 行属性
|
2021-10-13 10:19:38 +08:00
|
|
|
:::
|
2021-10-12 18:00:09 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 属性 | 描述 | 可选值 |
|
|
|
|
| ----- | ---- | ------ |
|
|
|
|
| space | 间隔 | 0 - 30 |
|
2021-10-12 18:00:09 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 列属性
|
2021-10-13 10:19:38 +08:00
|
|
|
:::
|
2021-10-12 18:00:09 +08:00
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 属性 | 描述 | 可选值 |
|
|
|
|
| --------- | ------------------------------ | ------ |
|
2021-12-06 23:59:31 +08:00
|
|
|
| xs | 尺寸 - 超小屏幕 (手机<768px) | 0 - 24 |
|
|
|
|
| sm | 尺寸 - 小屏幕 (平板 ≥768px) | 0 - 24 |
|
|
|
|
| md | 尺寸 - 中等屏幕 (桌面 ≥992px) | 0 - 24 |
|
|
|
|
| lg | 尺寸 - 大型屏幕 (桌面 ≥1200px) | 0 - 24 |
|
|
|
|
| xs-offset | 偏移 - 超小屏幕 (手机<768px) | 0 - 24 |
|
|
|
|
| sm-offset | 偏移 - 小屏幕 (平板 ≥768px) | 0 - 24 |
|
|
|
|
| md-offset | 偏移 - 中等屏幕 (桌面 ≥992px) | 0 - 24 |
|
|
|
|
| lg-offset | 偏移 - 大型屏幕 (桌面 ≥1200px) | 0 - 24 |
|
2021-11-07 15:55:08 +08:00
|
|
|
|
2021-11-07 15:56:24 +08:00
|
|
|
:::
|
2021-12-16 17:57:59 +08:00
|
|
|
|
|
|
|
::: comment
|
|
|
|
:::
|