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

translation: tutorial/slot.md #74

Merged
merged 4 commits into from
Oct 30, 2018
Merged

translation: tutorial/slot.md #74

merged 4 commits into from
Oct 30, 2018

Conversation

harttle
Copy link
Member

@harttle harttle commented Oct 22, 2018

Working on #65

@harttle harttle changed the base branch from feature-i18n to master October 23, 2018 13:00
@andycall andycall mentioned this pull request Oct 25, 2018
54 tasks
-------

插入 slot 部分的内容,其数据环境为 **声明时的环境**。
Inside a slot, the scope is **the one defined for the contents**, i.e. the parent component's scope.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defined for -> for删掉



slot 声明中,组件可以使用当前的数据环境进行命名,从而提供动态的插槽。插槽的动态命名常用于 **组件结构根据数据生成** 的场景下,比如表格组件。
Slots can be named using data from the current scope to provide dynamic slots, which is useful in cases when **the layouts are data-generated**, for example, the table components.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the layouts are data-generated => are generated from data

@otakustay otakustay merged commit c9bf17e into baidu:master Oct 30, 2018
ice-zjchen pushed a commit to ice-zjchen/san-website that referenced this pull request Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants