You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/12/20 07:37:03 UTC
[incubator-weex-site] branch draft updated: Fix compiling errors
This is an automated email from the ASF dual-hosted git repository.
hanks pushed a commit to branch draft
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git
The following commit(s) were added to refs/heads/draft by this push:
new 8470524 Fix compiling errors
8470524 is described below
commit 84705246df5ec95c0deb793416e7d0f1114dba39
Author: Hanks <zh...@gmail.com>
AuthorDate: Thu Dec 20 15:36:41 2018 +0800
Fix compiling errors
---
docs/docs/components/recycle-list.md | 23 ++++++++---------------
docs/docs/components/refresh.md | 8 --------
docs/docs/components/slider.md | 8 +-------
docs/docs/components/text.md | 9 +--------
docs/docs/components/textarea.md | 8 --------
docs/docs/components/video.md | 8 +-------
docs/docs/components/waterfall.md | 8 --------
docs/docs/components/web.md | 8 +-------
8 files changed, 12 insertions(+), 68 deletions(-)
diff --git a/docs/docs/components/recycle-list.md b/docs/docs/components/recycle-list.md
index 4ce7461..255ae80 100644
--- a/docs/docs/components/recycle-list.md
+++ b/docs/docs/components/recycle-list.md
@@ -1,12 +1,5 @@
----
-title: <recycle list>
-type: references
-group: Build-in Components
-order: 8.10
-version: 2.1
----
# <Recycle List>
-### <span class="weex-version">v0.18.0+</span>
+<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.
@@ -34,11 +27,11 @@ version: 2.1
- In the case of a `switch`, `case` and `default` must be written, otherwise the template will be ignored
## Attributes
-* `for`
+* `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:
* `alias in expression`
* `(alias, index) in expression`
-* `switch`
+* `switch`
Adding a `switch` attribute to the `<recycle-list> `can be used to specify the field name for the region's molecular template type in the data. The semantics are consistent with the switch in the programming language, along with the `case` and `default` attributes in `<cell-slot>`
* If the `switch` attribute is omitted, only the first` <cell-slot>` will be treated as a template and the extra template will be ignored.
@@ -105,9 +98,9 @@ Different from the understanding in the front-end framework, the logic to implem
* `vm.$refs.xxx`
* `vm.$vnode`
* `vm.#slots`
- * `vm.#scopedSlots`
+ * `vm.#scopedSlots`
- The values in `vm.$refs` may be arrays, instances of subcomponents, DOM elements, which are commonly used in front ends. If not supported, the functionality of the `dom` module and `animation` module in Weex also has an effect.
+ The values in `vm.$refs` may be arrays, instances of subcomponents, DOM elements, which are commonly used in front ends. If not supported, the functionality of the `dom` module and `animation` module in Weex also has an effect.
The technical solution is currently being discussed, some of the interfaces may be redesigned, or an interface designed for` <recycle-list>` will be available on `vm`.
@@ -130,7 +123,7 @@ Different from the understanding in the front-end framework, the logic to implem
- The component's `beforeCreate` and `created` will only fire when the component is about to be created and created.
- Similarly, the component's `beforeMount` and `mounted` only the page is actually rendered to the component, and will only fire when it is about to be mounted and already mounted.
-* Component custom event
+* Component custom event
Plan support. Features such as `vm.$on`, `vm.$once`, `vm.$emit`, `vm.$off` are not fully tuned, the interface is available, but the behavior may be slightly different (parameters are missing), do not use it for the time being.
## Demo
@@ -170,7 +163,7 @@ If you merge the templates into one, you can also omit the `switch` and `case` t
</cell-slot>
</recycle-list>
```
-More demos:
+More demos:
**Template syntax**
@@ -192,4 +185,4 @@ More demos:
* [props update](http://dotwe.org/vue/37056065a0a2c104e73dd550f252fabc)([normal list](http://dotwe.org/vue/778e93001e573ea0bbe9fc332a6a1e6c))
* [Internal state](http://dotwe.org/vue/baeda092d257d91d8c9c216e91ba350a)([normal list](http://dotwe.org/vue/a6e19f26653c890544c1036a7e9d2722))
* [computed & watch](http://dotwe.org/vue/c9ab8a26fb10fb163891ac58b2322671)([normal list](http://dotwe.org/vue/5e13c37f136fde456da311e5ddf17324))
-* [Remove component](http://dotwe.org/vue/c63e11f62c8f50d6120d56f97253a1b6)([normal list](http://dotwe.org/vue/a9d299cbf2870c99b32df047ed0c4265))
\ No newline at end of file
+* [Remove component](http://dotwe.org/vue/c63e11f62c8f50d6120d56f97253a1b6)([normal list](http://dotwe.org/vue/a9d299cbf2870c99b32df047ed0c4265))
diff --git a/docs/docs/components/refresh.md b/docs/docs/components/refresh.md
index 6c222d4..1a93600 100644
--- a/docs/docs/components/refresh.md
+++ b/docs/docs/components/refresh.md
@@ -1,11 +1,3 @@
----
-title: <refresh>
-type: references
-group: Build-in Components
-order: 8.10
-version: 2.1
----
-
# <refresh>
### <span class="weex-version">v0.6.1+</span>
diff --git a/docs/docs/components/slider.md b/docs/docs/components/slider.md
index b8d5bb7..a3e272e 100644
--- a/docs/docs/components/slider.md
+++ b/docs/docs/components/slider.md
@@ -1,10 +1,4 @@
----
-title: <slider>
-type: references
-group: Build-in Components
-order: 8.21
-version: 2.1
----
+# Slider
## Summary
diff --git a/docs/docs/components/text.md b/docs/docs/components/text.md
index 3d251f4..6dff34d 100644
--- a/docs/docs/components/text.md
+++ b/docs/docs/components/text.md
@@ -1,10 +1,4 @@
----
-title: <text>
-type: references
-group: Build-in Components
-order: 8.23
-version: 2.1
----
+# Text
The weex builtin component 'text' is used to render text with specified style rule. <text> tag can contain text value only. You can use variable interpolation in the text content with the mark `{% raw %}{{}}{% endraw %}`.
@@ -39,4 +33,3 @@ support `ttf` and `woff` font format to custom your text, call [addRule](../modu
## Examples
* [Basic usage for `<text>`](http://dotwe.org/vue/9ac60ccb4d1aacbdbd608dd7107ad105).
-
diff --git a/docs/docs/components/textarea.md b/docs/docs/components/textarea.md
index def3734..147e258 100644
--- a/docs/docs/components/textarea.md
+++ b/docs/docs/components/textarea.md
@@ -1,11 +1,3 @@
----
-title: <textarea>
-type: references
-group: Build-in Components
-order: 8.24
-version: 2.1
----
-
# <textarea>
<span class="weex-version">v0.8+</span>
diff --git a/docs/docs/components/video.md b/docs/docs/components/video.md
index cf128fa..51f67b6 100644
--- a/docs/docs/components/video.md
+++ b/docs/docs/components/video.md
@@ -1,10 +1,4 @@
----
-title: <video>
-type: references
-group: Build-in Components
-order: 8.25
-version: 2.1
----
+# Video
The video component can be used to embed video content in a Weex page.
diff --git a/docs/docs/components/waterfall.md b/docs/docs/components/waterfall.md
index 1e85b7a..188b40d 100644
--- a/docs/docs/components/waterfall.md
+++ b/docs/docs/components/waterfall.md
@@ -1,11 +1,3 @@
----
-title: <waterfall>
-type: references
-group: Build-in Components
-order: 8.26
-version: 2.1
----
-
# waterfall
<span class="weex-version">v0.11.0+</span>
diff --git a/docs/docs/components/web.md b/docs/docs/components/web.md
index b5d9457..2de0336 100644
--- a/docs/docs/components/web.md
+++ b/docs/docs/components/web.md
@@ -1,10 +1,4 @@
----
-title: <web>
-type: references
-group: Build-in Components
-order: 8.27
-version: 2.1
----
+# Web
<span class="weex-version">v0.5+</span>