Explorar o código

docs: [layout] add notice

pointhalo %!s(int64=3) %!d(string=hai) anos
pai
achega
cb4dbdf573
Modificáronse 2 ficheiros con 9 adicións e 2 borrados
  1. 4 1
      content/basic/layout/index-en-US.md
  2. 5 1
      content/basic/layout/index.md

+ 4 - 1
content/basic/layout/index-en-US.md

@@ -18,7 +18,10 @@ brief: Assist in the overall layout of a page.
 -   `Content`: Content component, can only be used inside `Layout`.
 -   `Footer`: Footer component, can only be used inside `Layout`.
 
-> Note: Layout components are implemented with Flex layout. Browser compatibility may need to be considered.
+<Notice title='Notice'>
+1、Layout components are implemented with Flex layout. Browser compatibility may need to be considered.  <br/>
+2、The Layout component will only help you implement the layout, but will not include styles such as background color, text color, width and height. You can pass in style according to your actual needs or write a separate css implementation given a specific className
+</Notice>
 
 ## Demos
 

+ 5 - 1
content/basic/layout/index.md

@@ -16,7 +16,11 @@ brief: 协助进行页面级整体布局。
 -   `Content`:内容部分,其下可嵌套任何元素,只能放在 `Layout` 中。
 -   `Footer`:底部布局,其下可嵌套任何元素,只能放在 `Layout` 中。
 
-> 注意:布局组件采用 Flex 布局实现,需要考虑浏览器兼容性问题。
+<Notice title='注意事项'>
+1、布局组件采用 Flex 布局实现,无法在非现代浏览器中工作  <br/>
+2、Layout 组件仅会帮你实现布局,但不会附带背景色、文本色、宽高度等样式。你可以根据自己实际需求传入 style 或给定特定 className 另行编写css实现
+</Notice>
+
 
 ## 代码演示