Skip to content

Commit b888811

Browse files
authored
删英文
删英文,看起来很乱
1 parent ef8d8a9 commit b888811

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/guide/render-function.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,17 +358,14 @@ Vue.component('my-component', {
358358

359359
函数化组件只是一个函数,所以渲染开销也低很多。但同样它也有完整的组件封装,你需要知道这些, 比如:
360360

361-
Since functional components are just functions, they're much cheaper to render. They're also very useful as wrapper components. For example, when you need to:
362361

363362
- 程序化地在多个组件中选择一个
364363
- 在将 children, props, data 传递给子组件之前操作它们。
365364

366-
- Programmatically choose one of several other components to delegate to
367-
- Manipulate children, props, or data before passing them on to a child component
365+
368366

369367
下面是一个依赖传入 props 的值的 `smart-list` 组件例子,它能代表更多具体的组件:
370368

371-
Here's an example of a `smart-list` component that delegates to more specific components, depending on the props passed to it:
372369

373370
``` js
374371
var EmptyList = { /* ... */ }

0 commit comments

Comments
 (0)