Skip to content

Commit c6be005

Browse files
oohirakazupon
authored andcommitted
Translate misc updates (#1452)
* [Doc]: Clarify that "slot-scope" is named "scope" before 2.5.0 #1429 * cherry-pick & translate vuejs/v2.vuejs.org@40f1880 * [Doc]: Add clarification about `inheritAttrs` and class/style bindings #1440 * cherry-pick & translate vuejs/v2.vuejs.org@1b68103
1 parent 07b089e commit c6be005

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/v2/guide/components-props.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: プロパティ
3-
updated: 2018-12-08
3+
updated: 2019-02-04
44
type: guide
55
order: 102
66
---
@@ -314,7 +314,7 @@ Vue.component('my-component', {
314314

315315
```js
316316
{
317-
class: 'username-input',
317+
required: true,
318318
placeholder: 'Enter your username'
319319
}
320320
```
@@ -338,12 +338,14 @@ Vue.component('base-input', {
338338
})
339339
```
340340

341+
<p class="tip">`inheritAttrs: false` オプションは、`style` および `class` 属性のバインディングには影響 **しない** ことに注意してください。</p>
342+
341343
このパターンを使用すると、ルート上にある要素を気にすることなく、生の HTML 要素のように基底コンポーネントを利用できます。
342344

343345
```html
344346
<base-input
345347
v-model="username"
346-
class="username-input"
348+
required
347349
placeholder="Enter your username"
348350
></base-input>
349351
```

src/v2/guide/components-slots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: スロット
33
type: guide
4-
updated: 2019-01-30
4+
updated: 2019-02-04
55
order: 104
66
---
77

@@ -214,7 +214,7 @@ Vue は現在の [Web Components spec draft](https://github.com/w3c/webcomponent
214214
</todo-list>
215215
```
216216

217-
> 2.5.0 以降では`slot-scope` はもはや `<template>` に限定されず、どの要素やコンポーネントでも使用できます。
217+
> 2.5.0 より前では`slot-scope` `scope` という名前で、`<template>` 要素に制限されていました。2.5.0 以降では、`slot-scope` にこの制限がなくなり、どの要素やコンポーネントでも使用できます。
218218
219219
### `slot-scope` の分割代入
220220

0 commit comments

Comments
 (0)