-
Notifications
You must be signed in to change notification settings - Fork 79
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
引入 i18n 机制和代码结构 #66
Merged
Merged
引入 i18n 机制和代码结构 #66
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
中文冒号替换一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! 现在只是跑通结构和示例改动。这篇文档 @andycall 来翻译,会整个替换。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好,我后面注意一下