doumafang closed pull request #239: Fix doc can not show correctly's bug
URL: https://github.com/apache/incubator-weex-site/pull/239
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/docs/components/recycle-list.md 
b/docs/docs/components/recycle-list.md
index 679406bc8..4ce74613d 100644
--- a/docs/docs/components/recycle-list.md
+++ b/docs/docs/components/recycle-list.md
@@ -1,4 +1,13 @@
-# Recycle List
+---
+title: <recycle list>
+type: references
+group: Build-in Components
+order: 8.10
+version: 2.1
+---
+# &lt;Recycle List&gt;
+### <span class="weex-version">v0.18.0+</span>
+
 `<recycle-list>`  is a new list container with the ability to recycle and 
reuse, which can greatly optimize memory usage and rendering performance.
 
 > * Please refer to 
 > [Design.md](https://github.com/Hanks10100/weex-native-directive/blob/master/Design.md)
 >  for design ideas. For details, please refer to  
 > [Implementation.md](https://github.com/Hanks10100/weex-native-directive/blob/master/Implementation.md)
@@ -17,14 +26,13 @@
     <tr><td>case</td><td>The type of the current template is declared, and 
will only be rendered if the type in the data matches the current type. The 
semantics are consistent with the <code>case</code> in the programming 
language. Only one item will be matched in all templates, matching from top to 
bottom in the order of the template. Once the matching is successful, the next 
one will not be matched.</td></tr>
     <tr><td>default</td><td>Indicates that the current template is the default 
template type and does not require a value. If the data item does not match any 
<code>case</code> type, the rendering has a <code>default</code> template. If 
there are multiple <code>default</code>, only the first default template will 
be used.</td></tr>
     <tr><td>key</td><td>An optional attribute that specifies the key values in 
the list data that can be uniquely identified to optimize rendering 
performance.</td></tr>
-  </tbodyThe
+  </tbody>
 </table>
 
 - warning attribute omission
   - If you don't write a `switch`, use the first template with or without 
`case` or `default`.
   - In the case of a `switch`, `case` and `default` must be written, otherwise 
the template will be ignored
 
-
 ## Attributes
 * `for`  
   In `<recycle-list>`, add the `for` attribute to describe how to loop through 
the list's data. The syntax is similar to Vue's `v-for` directive, but it loops 
through its own internal nodes, not the current node. Written:
diff --git a/docs/zh/docs/components/recycle-list.md 
b/docs/zh/docs/components/recycle-list.md
index c59aae8cc..e2f0fb694 100644
--- a/docs/zh/docs/components/recycle-list.md
+++ b/docs/zh/docs/components/recycle-list.md
@@ -1,4 +1,12 @@
-# Recycle List
+---
+title: <recycle list>
+type: references
+group: Build-in Components
+order: 8.10
+version: 2.1
+---
+# &lt;Recycle List&gt;
+### <span class="weex-version">v0.18.0+</span>
 `<recycle-list>` 是一个新的列表容器,具有回收和复用的能力,可以大幅优化内存占用和渲染性能。
 > * 设计思路请参考 
 > [Design.md](https://github.com/Hanks10100/weex-native-directive/blob/master/Design.md),具体的实现细节请参考
 >  
 > [Implementation.md](https://github.com/Hanks10100/weex-native-directive/blob/master/Implementation.md)
 > * 该功能部分依赖于编译工具,请确保 weex-loader 的版本升级到最新(v0.7.2+)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to