Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 542b294

Browse files
lqzowxsmsJustineo
authored
Update render-function.md (#785)
* Update render-function.md Co-authored-by: wxsm <wxsms@foxmail.com> Co-authored-by: GU Yiling <justice360@gmail.com>
1 parent 6071b01 commit 542b294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/render-function.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ FunctionalComponent.props = ['value']
653653
FunctionalComponent.emits = ['click']
654654
```
655655

656-
如果这个 `props` 选项没有被定义,那么被传入函数的 `props` 对象就会像 `attrs` 一样会包含所有 attribute。而如果 `props` 选项没有被定制,每个 prop 的名字都会基于驼峰命名法被一般化处理
656+
如果这个 `props` 选项没有被定义,那么被传入函数的 `props` 对象就会像 `attrs` 一样会包含所有 attribute。除非指定了 `props` 选项,否则每个 prop 的名字将不会基于驼峰命名法被一般化处理
657657

658658
函数式组件可以像普通组件一样被注册和消费。如果你将一个函数作为第一个参数传入 `h`,它将会被当作一个函数式组件来对待。
659659

0 commit comments

Comments
 (0)