浏览代码

[v2][docs] Improving documentation on side menu config (#3773)

Andrew Cole 6 年前
父节点
当前提交
549f15fdb1
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7
    2
      docs/docs/layout-types.md

+ 7
- 2
docs/docs/layout-types.md 查看文件

@@ -137,7 +137,7 @@ Navigation.mergeOptions('SecondScreenId', {
137 137
 
138 138
 ## sideMenu
139 139
 
140
-Expect center, left and right layouts
140
+Expect center, left and right layouts. center: { stack: ... } is required to have a topBar in center screen of a sideMenu app.
141 141
 
142 142
 ```js
143 143
 const sideMenu = {
@@ -145,7 +145,12 @@ const sideMenu = {
145 145
     component: {}
146 146
   },
147 147
   center: {
148
-    stack: {}
148
+    stack: {
149
+      options: {},
150
+      children: [{
151
+        component: {}
152
+      }]
153
+    }
149 154
   },
150 155
   right: {
151 156
     component: {}