Skip to content

Commit 2ebf0fa

Browse files
committed
resolved confilct
2 parents ffdc5a4 + cce4912 commit 2ebf0fa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+196
-232
lines changed

README.md

Lines changed: 57 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -84,80 +84,78 @@
8484
- 支持多人协作翻译,冲突可以解决,认领过的,如果你觉着他太慢,可以再次认领,加速翻译,知道大家都是牺牲业余时间来贡献,所以慢也是可以理解的,慢就需要大家一起帮帮忙了!谢谢。
8585

8686

87-
## Guide 翻译贡献
87+
## Guide 翻译(已全部完成)贡献
8888

8989
### Essentials 基础
9090

91-
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 翻译贡献者 | 校对贡献者
92-
----- | ------- | ------------- | --- | --- | --- | ---
93-
1 | 是 | installation.md | 安装 | [dingyiming](https://github.com/dingyiming) |
94-
2 | 是 | index.md | 介绍 | [hijiangtao](https://github.com/hijiangtao) |
95-
3 | 是 | instance.md | 实例 | [dingyiming](https://github.com/dingyiming) |
96-
4 | 是 | syntax.md | 模板语法 | [daix6](https://github.com/daix6) |
97-
5 | 是 | computed.md | 计算属 性 | [dingyiming](https://github.com/dingyiming) |
98-
6 | 是 | class-and-style.md | Class 与 Style 绑定 | [595074187](https://github.com/595074187) |
99-
7 | 是 | conditional.md | 条件渲染 | [dingyiming](https://github.com/dingyiming) |
100-
8 | 是 | list.md | 列表渲染 | [tingtien](https://github.com/tingtien) |
101-
9 | 是 | events.md | 事件处理器 | [dingyiming](https://github.com/dingyiming) |
102-
10 | 是 | forms.md | 表单控件绑定 | [dingyiming](https://github.com/dingyiming) |
103-
11 | 是 | components.md | 组件 | [ezreally](https://github.com/ezreally) |
91+
序号 | 对应文档文件名 | 中文标题 | 翻译贡献者 | 校对贡献者
92+
----- | ------------- | --- | --- | --- | ---
93+
1 | installation.md | 安装 | [dingyiming](https://github.com/dingyiming) |
94+
2 | index.md | 介绍 | [hijiangtao](https://github.com/hijiangtao) |
95+
3 | instance.md | 实例 | [dingyiming](https://github.com/dingyiming) |
96+
4 | syntax.md | 模板语法 | [daix6](https://github.com/daix6) |
97+
5 | computed.md | 计算属 性 | [dingyiming](https://github.com/dingyiming) |
98+
6 | class-and-style.md | Class 与 Style 绑定 | [595074187](https://github.com/595074187) |
99+
7 | conditional.md | 条件渲染 | [dingyiming](https://github.com/dingyiming) |
100+
8 | list.md | 列表渲染 | [tingtien](https://github.com/tingtien) |
101+
9 | events.md | 事件处理器 | [dingyiming](https://github.com/dingyiming) |
102+
10 | forms.md | 表单控件绑定 | [dingyiming](https://github.com/dingyiming) |
103+
11 | components.md | 组件 | [ezreally](https://github.com/ezreally) |
104104

105105
### Advanced 进阶
106106

107-
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
108-
----- | ------- | ------------- | --- | --- | --- | ---
109-
12 | 是 | transitions.md | 过渡: 进入, 离开, 和 列表 | [awe](https://github.com/hilongjw) |
110-
13 | 是 | transitioning-state.md | 过渡状态 | [awe](https://github.com/hilongjw) |
111-
14 | 是 | render-function.md | Render 函数 | [awe](https://github.com/hilongjw) |
112-
15 | 是 | reactivity.md | 深入响应式原理 | [veaba](https://github.com/veaba) |
113-
16 | 是 | custom-directive.md | 自定义指令 | [harrytospring](https://github.com/harrytospring) |
114-
17 | 是 | mixins.md | 混合 | [harrytospring](https://github.com/harrytospring) |
115-
18 | 是 | plugins.md | 插件 | [hgcoder](https://github.com/hgcoder) |
116-
19 | 是 | single-file-components.md | 单文件组件 | [ATLgo](https://github.com/ATLgo) |
117-
20 | 是 | routing.md | 路由 | [dingyiming](https://github.com/dingyiming) |
118-
21 | 是 | state-management.md | 状态管理 | [dear-lizhihua](https://github.com/dear-lizhihua) |
119-
22 | 是 | unit-testing.md | 单元测试 | [70data](https://github.com/70data) |
120-
23 | 是 | ssr.md | 服务端渲染 | [dingyiming](https://github.com/dingyiming) 
107+
序号 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
108+
----- | ------------- | --- | --- | ---
109+
12 | transitions.md | 过渡: 进入, 离开, 和 列表 | [awe](https://github.com/hilongjw) |
110+
13 | transitioning-state.md | 过渡状态 | [awe](https://github.com/hilongjw) |
111+
14 | render-function.md | Render 函数 | [awe](https://github.com/hilongjw) |
112+
15 | reactivity.md | 深入响应式原理 | [veaba](https://github.com/veaba) |
113+
16 | custom-directive.md | 自定义指令 | [harrytospring](https://github.com/harrytospring) |
114+
17 | mixins.md | 混合 | [harrytospring](https://github.com/harrytospring) |
115+
18 | plugins.md | 插件 | [hgcoder](https://github.com/hgcoder) |
116+
19 | single-file-components.md | 单文件组件 | [ATLgo](https://github.com/ATLgo) |
117+
20 | routing.md | 路由 | [dingyiming](https://github.com/dingyiming) |
118+
21 | state-management.md | 状态管理 | [dear-lizhihua](https://github.com/dear-lizhihua) |
119+
22 | unit-testing.md | 单元测试 | [70data](https://github.com/70data) |
120+
23 | ssr.md | 服务端渲染 | [dingyiming](https://github.com/dingyiming) |  
121121

122122
### Migration 迁移
123123

124-
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
125-
----- | ------- | ------------- | --- | --- | ---
126-
24 | 是 | migration.md | 1.x迁移 | [harrytospring](https://github.com/harrytospring) |
127-
27 | 是 | migration-vue-router.md | vue-router 0.7.x 迁移 | [forzajuve10](https://github.com/forzajuve10) |
124+
序号 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
125+
----- | ------- | ------------- | --- | ---
126+
24 | migration.md | 1.x迁移 | [harrytospring](https://github.com/harrytospring) |
127+
27 | migration-vue-router.md | vue-router 0.7.x 迁移 | [forzajuve10](https://github.com/forzajuve10) |
128128

129129
### Meta 更多
130130

131-
序号 | 是否完成 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
132-
----- | ------- | ------------- | --- | --- | ---
133-
25 | 是 | comparison.md | 对比其他框架 | [yongbolv](https://github.com/yongbolv) |
134-
26 | 是 | join.md | 加入Vue.js社区 | [daix6](https://github.com/daix6) |
135-
136-
137-
## API翻译贡献
138-
139-
序号 | 是否完成 | 对应小节名称 | 中文标题 | 贡献者 | 校对贡献者
140-
----- | ------- | ------------- | --- | --- | ---
141-
1 | 是 | Global Config | 全局配置 | @dear-lizhihua |
142-
2 | 是 | Global API | 全局API | @dear-lizhihua |
143-
3 | 是 | Options / Data | 选项 / 数据 | @dear-lizhihua |
144-
4 | 是 | Options / DOM | 选项 / DOM | @ATLgo |
145-
5 | 是 | Options / Lifecycle Hooks | 选项 / 生命周期钩子 | @ATLgo |
146-
6 | 是 | Options / Assets | 选项 / 资源 | @dingyiming |
147-
7 | 是 | Options / Misc | 选项 / 杂项 | @dingyiming |
148-
8 | 是 | Instance Properties | 实例属性 | @coolzjy |
149-
9 | 是 | Instance Methods / Data | 实例方法 / 数据 | @dingyiming |
150-
10 | 是 | Instance Methods / Events | 实例方法 / 事件 | @mlyknown |
151-
11 | 是 | Instance Methods / Lifecycle | 实例方法 / 生命周期 | @mlyknown |
152-
12 | 是 | Directives | 指令| @dingyiming |
153-
13 | 是 | Special Attributes | 特殊元素 | @70data |
154-
14 | 是 | Built-In Components | 内置的组件 | @dear-lizhihua |
155-
15 | 是 | VNode Interface | VNode接口 | @70data |
156-
16 | 是 | Server-Side Rendering | 服务端渲染| @70data |
131+
序号 | 对应文档文件名 | 中文标题 | 贡献者 | 校对贡献者
132+
----- | ------- | ------------- | --- | ---
133+
25 | comparison.md | 对比其他框架 | [yongbolv](https://github.com/yongbolv) |
134+
26 | join.md | 加入Vue.js社区 | [daix6](https://github.com/daix6) |
135+
136+
## API翻译(已全部完成)贡献
137+
138+
序号 | 对应小节名称 | 中文标题 | 贡献者 | 校对贡献者
139+
----- | ------------- | --- | --- | ---
140+
1 | Global Config | 全局配置 | @dear-lizhihua |
141+
2 | Global API | 全局API | @dear-lizhihua |
142+
3 | Options / Data | 选项 / 数据 | @dear-lizhihua |
143+
4 | Options / DOM | 选项 / DOM | @ATLgo |
144+
5 | Options / Lifecycle Hooks | 选项 / 生命周期钩子 | @ATLgo |
145+
6 | Options / Assets | 选项 / 资源 | @dingyiming |
146+
7 | Options / Misc | 选项 / 杂项 | @dingyiming |
147+
8 | Instance Properties | 实例属性 | @coolzjy |
148+
9 | Instance Methods / Data | 实例方法 / 数据 | @dingyiming |
149+
10 | Instance Methods / Events | 实例方法 / 事件 | @mlyknown |
150+
11 | Instance Methods / Lifecycle | 实例方法 / 生命周期 | @mlyknown |
151+
12 | Directives | 指令| @dingyiming |
152+
13 | Special Attributes | 特殊元素 | @70data |
153+
14 | Built-In Components | 内置的组件 | @dear-lizhihua |
154+
15 | VNode Interface | VNode接口 | @70data |
155+
16 | Server-Side Rendering | 服务端渲染| @70data |
157156

158157
## 示例翻译
159158

160159
贡献者 : [lindazhang102](https://github.com/lindazhang102)
161160

162-
163161
## 感谢所有参与翻译的朋友们!

src/api/index.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: api
44

55
## 全局配置
66

7-
`Vue.config` is 是一个对象,包含 Vue 的全局配置。可以在启动应用之前修改下列属性:
7+
`Vue.config` 是一个对象,包含 Vue 的全局配置。可以在启动应用之前修改下列属性:
88

99
### silent
1010

@@ -40,9 +40,9 @@ type: api
4040
// Profile.options._my_option = 2
4141
```
4242

43-
自定义选项的混合策略
43+
自定义合并策略的选项
4444

45-
合并策略函数接收定义在父实例和子实例上的 option,分别作为第一个和第二个参数的值,Vue实例上下文被作为第三个参数传入。
45+
合并策略选项分别接受第一个参数作为父实例,第二个参数为子实例,Vue实例上下文被作为第三个参数传入。
4646

4747
- **参考**[自定义选项的混合策略](/guide/mixins.html#Custom-Option-Merge-Strategies)
4848

@@ -75,7 +75,7 @@ type: api
7575
}
7676
```
7777

78-
指定组件的渲染和观察期间未捕获错误的处理函数。处理函数被调用时,可获取错误信息和 Vue 实例。
78+
指定组件的渲染和观察期间未捕获错误的处理函数。这个处理函数被调用时,可获取错误信息和 Vue 实例。
7979

8080
### keyCodes
8181

@@ -178,7 +178,7 @@ type: api
178178

179179
- **用法:**
180180

181-
删除对象的属性。如果对象是响应式的,确保删除更新视图的触发器。这个方法主要用于避开 Vue 不能检测到属性被删除的限制,但是你应该很少会使用它。
181+
删除对象的属性。如果对象是响应式的,确保删除能触发更新视图。这个方法主要用于避开 Vue 不能检测到属性被删除的限制,但是你应该很少会使用它。
182182

183183
**注意对象不能是 Vue 实例,或者 Vue 实例的根数据对象**
184184

@@ -278,7 +278,7 @@ type: api
278278

279279
- **用法:**
280280

281-
全局注册一个混合,影响注册之后所有创建的每个 Vue 实例。插件作者可以使用混合,向组件注入自定义逻辑**不推荐在应用代码中使用**
281+
全局注册一个混合,影响注册之后所有创建的每个 Vue 实例。插件作者可以使用混合,向组件注入自定义的行为**不推荐在应用代码中使用**
282282

283283
- **参考:** [全局混合](/guide/mixins.html#Global-Mixin)
284284

@@ -312,21 +312,21 @@ type: api
312312

313313
- **类型:** `Object | Function`
314314

315-
- **限制:** 组件中定义 data 只接受 `函数`
315+
- **限制:** 组件的定义只接受 `function`
316316

317317
- **详细:**
318318

319-
Vue 实例的数据对象。Vue 将会递归将 data 的属性转换为 getter/setter,从而让 data 的属性能够响应数据变化。**对象必须是普通对象**:浏览器 API 创建的原生对象,原型上的属性会被忽略。大概来说,data 应该只能是数据 - 不推荐观察拥有状态行为的对象。
319+
Vue 实例的数据对象。Vue 将会递归将 data 的属性转换为 getter/setter,从而让 data 的属性能够响应数据变化。**对象必须是纯粹的对象(含有零个或多个的key/value对)**:浏览器 API 创建的原生对象,原型上的属性会被忽略。大概来说,data 应该只能是数据 - 不推荐观察拥有状态行为的对象。
320320

321321
一旦观察过,不需要再次在数据对象上添加响应式属性。因此推荐在创建实例之前,就声明所有的根级响应式属性。
322322

323323
实例创建之后,可以通过 `vm.$data` 访问原始数据对象。Vue 实例也代理了 data 对象上所有的属性,因此访问 `vm.a` 等价于访问 `vm.$data.a`
324324

325325
`_``$` 开头的属性 **不会** 被 Vue 实例代理,因为它们可能和 Vue 内置的属性、 API 方法冲突。你可以使用例如 `vm.$data._property` 的方式访问这些属性。
326326

327-
当一个组件被定义`data` 必须声明为返回一个初始数据对象的函数,因为组件可能被用来创建多个实例。如果 `data` 仍然是一个普通对象,则所有的实例将**共享引用**同一个数据对象!通过提供 `data` 函数,每次创建一个新实例后,我们能够调用 `data` 函数,从而返回初始数据的一个全新副本数据对象。
327+
当一个**组件**被定义`data` 必须声明为返回一个初始数据对象的函数,因为组件可能被用来创建多个实例。如果 `data` 仍然是一个纯粹的对象,则所有的实例将**共享引用**同一个数据对象!通过提供 `data` 函数,每次创建一个新实例后,我们能够调用 `data` 函数,从而返回初始数据的一个全新副本数据对象。
328328

329-
可以通过将 `vm.$data` 传入 `JSON.parse(JSON.stringify(...))` 得到原始数据对象
329+
如果需要,可以通过将 `vm.$data` 传入 `JSON.parse(JSON.stringify(...))` 得到深拷贝的原始数据对象
330330

331331
- **示例:**
332332

@@ -420,7 +420,7 @@ type: api
420420

421421
- **详细:**
422422

423-
计算属性将被混入到 Vue 实例中。getter 和 setter 的 this 上下文自动地绑定为 Vue 实例。
423+
计算属性将被混入到 Vue 实例中。所有 getter 和 setter 的 this 上下文自动地绑定为 Vue 实例。
424424

425425
<p class="tip">注意,__不应该使用箭头函数来定义计算属性函数__ (例如 `aDouble: () => this.a * 2`)。理由是箭头函数绑定了父级作用域的上下文,所以 `this` 将不会按照期望指向 Vue 实例,`this.a` 将是 undefined。</p>
426426

@@ -530,11 +530,11 @@ type: api
530530

531531
- **详细:**
532532

533-
为实例提供挂载元素。值可以是 CSS 选择符,或实际 HTML 元素。
533+
为 Vue 实例提供 DOM 元素挂载。值可以是 CSS 选择符,或实际 HTML 元素。
534534

535535
在实例挂载之后, 元素可以用 `vm.$el` 访问。
536536

537-
如果在初始化的时候指定了该选项,实例将立即进入编译过程,否则,需要显式调用 `vm.$mount()` 手动开启编译。
537+
如果这个选项在实例化时有作用,实例将立即进入编译过程,否则,需要显式调用 `vm.$mount()` 手动开启编译。
538538

539539
<p class="tip"> 提供的元素只能作为挂载点。不同于 Vue 1.x,所有的挂载元素会被 Vue 生成的 DOM 替换。因此不推荐挂载root实例到 `<html>` 或者 `<body>` 上。</p>
540540

@@ -546,11 +546,11 @@ type: api
546546

547547
- **详细:**
548548

549-
一个字符串模板作为 Vue 实例的标识使用。模板将会 **替换** 挂载元素。挂载元素的内容都将被忽略,除非模板有内容分发 slot。
549+
一个字符串模板作为 Vue 实例的标识使用。模板将会 **替换** 挂载的元素。挂载元素的内容都将被忽略,除非模板的内容有分发 slot。
550550

551551
如果值以 `#` 开始,则它用作选项符,将使用匹配元素的 innerHTML 作为模板。常用的技巧是用 `<script type="x-template">` 包含模板。
552552

553-
<p class="tip">出于安全考虑,你应该只使用你信任的 Vue 模板。避免使用其他用户级的代码作为你的模板。</p>
553+
<p class="tip">出于安全考虑,您应该只使用您信任的 Vue 模板。避免使用其他人生成的内容作为您的模板。</p>
554554

555555
- **另见:**
556556
- [生命周期图示](/guide/instance.html#Lifecycle-Diagram)
@@ -741,7 +741,7 @@ type: api
741741

742742
- **详细:**
743743

744-
指定实例的父实例,在两者之间建立父子关系。子实例可以用 `this.$parent` 访问父实例,子实例被推入父实例的 `$children` 数组中。
744+
指定已创建的实例之父实例,在两者之间建立父子关系。子实例可以用 `this.$parent` 访问父实例,子实例被推入父实例的 `$children` 数组中。
745745

746746
<p class="tip">同时使用 `$parent` 和 `$children` 有冲突 - 他们作为同一个入口 。更推荐用 props 和 events 实现父子组件通信</p>
747747

@@ -751,7 +751,7 @@ type: api
751751

752752
- **详细:**
753753

754-
`mixins` 选项接受一个数组作为混合对象。这些混合实例对象可以像正常的实例对象一样包含选项,他们将在 `Vue.extend()` 里最终选择使用相同的选项合并逻辑合并。:如果你混合包含一个钩子而创建组件本身也有一个,两个函数将被调用。
754+
`mixins` 选项接受一个混合对象的数组。这些混合实例对象可以像正常的实例对象一样包含选项,他们将在 `Vue.extend()` 里最终选择使用相同的选项合并逻辑合并。举例:如果你混合包含一个钩子而创建组件本身也有一个,两个函数将被调用。
755755
Mixin钩子提供他们被调用的顺序,在调用组件的自己的钩子之前被调用。
756756

757757
- **示例:**
@@ -789,7 +789,7 @@ type: api
789789
- **详细:**
790790

791791

792-
允许声明扩展另一个组件(可以是一个简单的选择对象或构造函数),而无需使用 `Vue.extend`。这主要是为了便于扩展单文件组件。
792+
允许声明扩展另一个组件(可以是一个简单的选项对象或构造函数),而无需使用 `Vue.extend`。这主要是为了便于扩展单文件组件。
793793

794794
这和 `mixins` 类似,区别在于,组件的选项需要比源组件被扩展有更高的优先级。
795795

@@ -866,7 +866,7 @@ type: api
866866

867867
- **详细:**
868868

869-
用于当前 Vue 实例的初始化选项。当选项中需要自定义属性时会有用处
869+
用于当前 Vue 实例的初始化选项。当选项中您需要自定义属性时会有用处
870870

871871
``` js
872872
new Vue({
@@ -895,7 +895,7 @@ type: api
895895

896896
- **详细:**
897897

898-
当前组件树的根 Vue 实例。如果当前实例没有父实例,属性值将会是其自身
898+
当前组件树的根 Vue 实例。如果当前实例没有父实例,此实例将会是其自已
899899

900900
### vm.$children
901901

@@ -915,7 +915,7 @@ type: api
915915

916916
- **详细:**
917917

918-
用来访问被 [slot 分发](/guide/components.html#Content-Distribution-with-Slots)的内容。每个[具名 slot](/guide/components.html#Named-Slots) 有其响应的属性(例如:`slot="foo"` 中的内容将会在 `vm.$slots.foo` 中被找到)。`default` 属性包括了所有没有被包含在一个具名 slot 中的节点。
918+
用来访问被 [slot 分发](/guide/components.html#Content-Distribution-with-Slots)的内容。每个[具名 slot](/guide/components.html#Named-Slots) 有其相应的属性(例如:`slot="foo"` 中的内容将会在 `vm.$slots.foo` 中被找到)。`default` 属性包括了所有没有被包含在一个具名 slot 中的节点。
919919

920920
在使用 [render 函数](/guide/render-function.html)书写一个组件时,访问 `vm.$slots` 最有帮助。
921921

0 commit comments

Comments
 (0)