layui/example/docs/zh-CN/components/container.md

80 lines
940 B
Markdown
Raw Normal View History

2021-10-26 01:13:23 +08:00
::: title 普通容器
2021-10-19 22:28:44 +08:00
:::
2021-09-29 09:50:53 +08:00
::: demo
<template>
2021-09-29 11:06:00 +08:00
<lay-container>
<div class="container-demo"></div>
</lay-container>
2021-09-29 09:50:53 +08:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
return {
}
}
}
</script>
2021-09-29 11:06:00 +08:00
<style>
.container-demo {
width:100%;
height: 300px;
background: #79C48C;
2021-11-02 21:26:41 +08:00
border-radius: 2px;
2021-09-29 11:06:00 +08:00
}
</style>
2021-09-29 09:50:53 +08:00
:::
2021-10-26 01:13:23 +08:00
::: title 流式容器
2021-10-19 22:28:44 +08:00
:::
2021-09-29 09:50:53 +08:00
::: demo
<template>
2021-09-29 11:06:00 +08:00
<lay-container fluid>
<div class="container-demo"></div>
</lay-container>
2021-09-29 09:50:53 +08:00
</template>
<script>
import { ref } from 'vue'
export default {
setup() {
return {
}
}
}
</script>
2021-09-29 11:06:00 +08:00
<style>
.container-demo {
width:100%;
height: 300px;
background: #79C48C;
}
</style>
2021-10-01 18:20:41 +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
| 属性 | 描述 | 可选值 |
| ----- | ------ | -------------- |
| fluid | 流模式 | `true` `false` |
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
:::