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

Commit 92aa105

Browse files
Yukon123veaba
andauthored
fix:修改关于fallthrough的翻译,标点缺失,同步英文版修改 (#651)
* Update component-attrs.md * Update src/guide/component-attrs.md Co-authored-by: Godpu <908662421@qq.com> Co-authored-by: Godpu <908662421@qq.com>
1 parent 9abd9ea commit 92aa105

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/guide/component-attrs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ app.component('date-picker', {
1818
})
1919
```
2020

21-
如果我们需要通过 `data status` property 定义 `<date-picker>` 组件的状态,它将应用于根节点 (即 `div.date-picker`)。
21+
如果我们需要通过 `data-status` attribute 定义 `<date-picker>` 组件的状态,它将应用于根节点 (即 `div.date-picker`)。
2222

2323
```html
2424
<!-- 具有非prop attribute的Date-picker组件-->
@@ -97,7 +97,7 @@ app.component('date-picker', {
9797
})
9898
```
9999

100-
有了这个新配置,`data status` attribute 将应用于 `input` 元素!
100+
有了这个新配置,`data-status` attribute 将应用于 `input` 元素!
101101

102102
```html
103103
<!-- Date-picker 组件 使用非 prop attribute -->
@@ -111,7 +111,7 @@ app.component('date-picker', {
111111

112112
## 多个根节点上的 Attribute 继承
113113

114-
与单个根节点组件不同,具有多个根节点的组件不具有自动 attribute 回退行为。如果未显式绑定 `$attrs`,将发出运行时警告。
114+
与单个根节点组件不同,具有多个根节点的组件不具有自动 attribute [fallthrough (隐式贯穿)](https://en.wiktionary.org/wiki/fall-through#English) 行为。如果未显式绑定 `$attrs`,将发出运行时警告。
115115

116116
```html
117117
<custom-layout id="custom-layout" @click="changeValue"></custom-layout>

0 commit comments

Comments
 (0)