Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[transition] doc/api.md #78

Merged
merged 4 commits into from
Dec 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source/_posts/en/doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Initialization Arguments

`Explanation`:

Component initialization data. Usually used in the [component reverse](../../tutorial/reverse/) scenario.
Component initialization data. Usually used in the [component reversion](../../tutorial/reverse/) scenario.

`Type`: Object

Expand Down Expand Up @@ -75,7 +75,7 @@ var myComponent = new MyComponent({
The transition animation controller for the component. See [animation controller](../../tutorial/transition/#Animation-Controller) and [animation controller creator](../../tutorial/transition/#Animation-Controller-Creator) for more details.


`version`:>= 3.6.0
`version`: >= 3.6.0

`type`: Object

Expand Down Expand Up @@ -189,7 +189,7 @@ san.defineComponent({

`Warning`:

The filter method can access the component's data through `this.data` at runtime. However, doing so can result in an implicit dependency on the data, causing the view to not update as the data changes. Therefore, the filter method should be a pure function with no side effects.
The filter method can access the component's data through `this.data` at runtime, however doing so can result in an implicit dependency on the data, causing the view to not update as the data changes. Therefore, the filter method should be a pure function with no side effects.

```javascript
var Bad = san.defineComponent({
Expand Down Expand Up @@ -327,7 +327,7 @@ Defines the trim mode for whitespace characters when parsing component templates
- **blank** clear blank text node
- **all** clear the leading and trailing whitespace characters of all text nodes.

`version`:>= 3.2.5
`version`: >= 3.2.5

`type`: string

Expand All @@ -354,7 +354,7 @@ default:
['{{', '}}']
```

`version`:>= 3.5.0
`version`: >= 3.5.0

`type`: Array

Expand Down Expand Up @@ -607,7 +607,7 @@ var AddForm = san.defineComponent({

### slot

`version`:>= 3.3.0
`version`: >= 3.3.0

`description`: {Array} slot({string=}name)

Expand Down