Skip to content

Commit c5645b8

Browse files
authored
Merge pull request #271 from crowphy/2.0-cn
API ignoredElements translated base on issue#262
2 parents 39af538 + 4e7beb6 commit c5645b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/v2/api/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,19 @@ type: api
8181
8282
### ignoredElements
8383

84-
- **Type:** `Array<string>`
84+
- **类型:** `Array<string>`
8585

86-
- **Default:** `[]`
86+
- **默认值:** `[]`
8787

88-
- **Usage:**
88+
- **用法:**
8989

9090
``` js
9191
Vue.config.ignoredElements = [
9292
'my-custom-web-component', 'another-web-component'
9393
]
9494
```
9595

96-
Make Vue ignore custom elements defined outside of Vue (e.g., using the Web Components APIs). Otherwise, it will throw a warning about an `Unknown custom element`, assuming that you forgot to register a global component or misspelled a component name.
96+
须使 Vue 忽略在 Vue 之外的自定义元素 (e.g., 使用了 Web Components APIs)。否则,它会假设你忘记注册全局组件或者拼错了组件名称,从而抛出一个关于 `Unknown custom element` 的警告。
9797

9898
### keyCodes
9999

0 commit comments

Comments
 (0)