-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from baidu/feature-i18n
英文翻译
- Loading branch information
Showing
9 changed files
with
80 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
title: Component API | ||
categories: | ||
- doc | ||
--- | ||
|
||
This document describes components API, the San module API | ||
please refer to [San API](../../doc/main-members/). | ||
|
||
|
||
Initialization Arguments | ||
------- | ||
|
||
### data | ||
|
||
`Explanation`: | ||
|
||
Initialization Data. Can be used for [component reverse](../../tutorial/reverse/). | ||
|
||
|
||
`Type`: Object | ||
|
||
|
||
`Usage`: | ||
|
||
```javascript | ||
var MyComponent = san.defineComponent({}); | ||
|
||
var myComponent = new MyComponent({ | ||
el: document.getElementById('my-label'), | ||
data: { | ||
email: 'errorrik@gmail.com', | ||
name: 'errorrik' | ||
} | ||
}); | ||
|
||
/* html: | ||
<label id="my-label"> | ||
<span title="errorrik@gmail.com" prop-title="{{email}}">errorrik</span> | ||
</label> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
layout: index | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
index: | ||
nav: | ||
features: Features | ||
resources: Resources | ||
facilities: Facilities | ||
practice: | ||
data: | ||
title: Data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
categories: 分类 | ||
search: 搜索 | ||
tags: 标签 | ||
tagcloud: 标签云 | ||
tweets: 推文 | ||
prev: 上一页 | ||
next: 下一页 | ||
comment: 留言 | ||
archive_a: 归档 | ||
archive_b: 归档:%s | ||
page: 第 %d 页 | ||
recent_posts: 最新文章 | ||
newer: Newer | ||
older: Older | ||
share: Share | ||
powered_by: Powered by | ||
rss_feed: RSS Feed | ||
category: Category | ||
tag: Tag | ||
index: | ||
nav: | ||
features: 特性 | ||
resources: 资料 | ||
facilities: 周边 | ||
practice: | ||
data: | ||
title: 数据 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters