Skip to content

Commit d319533

Browse files
committed
Merge branch 'dear-lizhihua-2.0-cn' into 2.0-cn
* dear-lizhihua-2.0-cn: merge # Conflicts: # src/api/index.md
2 parents 634b772 + c2de43f commit d319533

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,9 @@ type: api
312312

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

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

317-
- **详细**
317+
- **详细:**
318318

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

@@ -357,6 +357,7 @@ type: api
357357
- **类型:** `Array<string> | Object`
358358

359359
- **详细:**
360+
360361
props 可以是数组或对象,用于接收来自父组件的数据。props 可以是简单的数组,或者使用对象作为替代,对象允许配置高级选项,如类型检测、自定义校验和设置默认值。
361362

362363
- **示例:**
@@ -453,7 +454,6 @@ type: api
453454
```
454455

455456
- **另见:**
456-
457457
- [计算属性](/guide/computed.html)
458458

459459
### methods

0 commit comments

Comments
 (0)