# Container 布局容器
用于布局的容器组件,方便快速搭建页面的基本结构:
<d-container>
:外层容器。
<d-header>
:顶栏。
<d-content>
:内容显示区。
<d-menu>
:侧边栏。
<d-footer>
:底栏。
# 实例
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
复制代码
提示
d-header、d-content、d-footer 只能在 d-container 中使用,否则样式不受控制
# Header Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
logo | 左上角展示 logo | string | _ |
logo-name | 左上角展示文字 | string | _ |
title | 标题 | string | _ |
href | logo 跳转链接 | string | _ |
# Content Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
show-back | 是否显示返回按钮 | boolean | fales |
title | Content 标题 | string | _ |
exclude | 不需要显示 title 的页面的集合,值为 $route.name | string[] | _ |
# Menu Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
default-active | 当前激活的状态名称 | string | _ |
menus | 导航栏数据 | object[] | [] |
← 安装 PageTitle 页面标题 →