2021-12-30 00:44:43 +08:00
|
|
|
::: anchor
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 基础使用
|
2021-10-15 17:50:50 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
::: demo
|
2021-10-11 02:33:17 +08:00
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
<template>
|
|
|
|
<lay-layout>
|
2021-10-24 17:23:39 +08:00
|
|
|
<lay-header>header</lay-header>
|
|
|
|
<lay-body>content</lay-body>
|
|
|
|
<lay-footer>footer</lay-footer>
|
|
|
|
</lay-layout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.lay-code .layui-footer,
|
|
|
|
.lay-code .layui-header {
|
|
|
|
line-height: 60px;
|
|
|
|
text-align: center;
|
|
|
|
background: #87ca9a;
|
2021-10-24 20:35:43 +08:00
|
|
|
color: white;
|
2021-10-24 17:23:39 +08:00
|
|
|
}
|
|
|
|
.lay-code .layui-side {
|
|
|
|
display: flex;
|
|
|
|
background: #77c38c;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-24 20:35:43 +08:00
|
|
|
color: white;
|
2021-10-24 17:23:39 +08:00
|
|
|
}
|
|
|
|
.lay-code .layui-body {
|
|
|
|
display: flex;
|
|
|
|
background: #5FB878;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2021-10-24 20:35:43 +08:00
|
|
|
color: white;
|
2021-10-24 17:23:39 +08:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 左右布局
|
2021-10-24 17:23:39 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-side>left</lay-side>
|
|
|
|
<lay-body>content</lay-body>
|
|
|
|
<lay-side>right</lay-side>
|
|
|
|
</lay-layout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 后台布局
|
2021-10-24 17:23:39 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-header>header</lay-header>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-side>side</lay-side>
|
|
|
|
<lay-body>content</lay-body>
|
|
|
|
</lay-layout>
|
|
|
|
</lay-layout>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
setup() {
|
|
|
|
|
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
:::
|
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 复杂布局
|
2021-10-24 17:23:39 +08:00
|
|
|
:::
|
|
|
|
|
|
|
|
::: demo
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-side>side</lay-side>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-header>header</lay-header>
|
|
|
|
<lay-body>body</lay-body>
|
|
|
|
<lay-footer>footer</lay-footer>
|
|
|
|
</lay-layout>
|
|
|
|
</lay-layout>
|
|
|
|
<hr>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-header>header</lay-header>
|
|
|
|
<lay-body>body</lay-body>
|
|
|
|
<lay-footer>footer</lay-footer>
|
|
|
|
</lay-layout>
|
|
|
|
<lay-side>side</lay-side>
|
|
|
|
</lay-layout>
|
|
|
|
<hr>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-header>Header</lay-header>
|
|
|
|
<lay-body>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-side :width="160">Left</lay-side>
|
|
|
|
<lay-body>Content</lay-body>
|
|
|
|
</lay-layout>
|
|
|
|
</lay-body>
|
|
|
|
<lay-footer>Footer</lay-footer>
|
|
|
|
</lay-layout>
|
|
|
|
<hr>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-header>Header</lay-header>
|
|
|
|
<lay-body>
|
|
|
|
<lay-layout>
|
|
|
|
<lay-body>Content</lay-body>
|
|
|
|
<lay-side :width="160">Right</lay-side>
|
|
|
|
</lay-layout>
|
|
|
|
</lay-body>
|
|
|
|
<lay-footer>Footer</lay-footer>
|
2021-10-22 09:18:40 +08:00
|
|
|
</lay-layout>
|
|
|
|
</template>
|
2021-10-11 02:33:17 +08:00
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
<script>
|
|
|
|
import { ref } from 'vue';
|
2021-10-15 09:46:45 +08:00
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
export default {
|
|
|
|
setup() {
|
2021-10-15 09:46:45 +08:00
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
return {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2021-10-11 02:33:17 +08:00
|
|
|
|
2021-10-19 22:28:44 +08:00
|
|
|
:::
|
|
|
|
|
2021-10-22 09:18:40 +08:00
|
|
|
<br>
|
|
|
|
<br>
|
2021-10-11 02:33:17 +08:00
|
|
|
|
2021-10-26 01:13:23 +08:00
|
|
|
::: title 布局组件
|
2021-10-13 10:19:38 +08:00
|
|
|
:::
|
|
|
|
|
2021-11-07 15:55:08 +08:00
|
|
|
::: table
|
|
|
|
|
2021-11-01 01:02:21 +08:00
|
|
|
| 组件 | 描述 | |
|
2021-10-12 11:30:07 +08:00
|
|
|
| ---------- | ---- | --- |
|
|
|
|
| lay-layout | 容器 | -- |
|
|
|
|
| lay-header | 顶部 | -- |
|
|
|
|
| lay-logo | 图标 | -- |
|
|
|
|
| lay-side | 侧边 | -- |
|
|
|
|
| lay-body | 内容 | -- |
|
|
|
|
| lay-footer | 底部 | -- |
|
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
|
|
|
|
:::
|