Skip to content

Translate misc updates #1452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/v2/guide/components-props.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: プロパティ
updated: 2018-12-08
updated: 2019-02-04
type: guide
order: 102
---
Expand Down Expand Up @@ -314,7 +314,7 @@ Vue.component('my-component', {

```js
{
class: 'username-input',
required: true,
placeholder: 'Enter your username'
}
```
Expand All @@ -338,12 +338,14 @@ Vue.component('base-input', {
})
```

<p class="tip">`inheritAttrs: false` オプションは、`style` および `class` 属性のバインディングには影響 **しない** ことに注意してください。</p>

このパターンを使用すると、ルート上にある要素を気にすることなく、生の HTML 要素のように基底コンポーネントを利用できます。

```html
<base-input
v-model="username"
class="username-input"
required
placeholder="Enter your username"
></base-input>
```
4 changes: 2 additions & 2 deletions src/v2/guide/components-slots.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: スロット
type: guide
updated: 2019-01-30
updated: 2019-02-04
order: 104
---

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

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

### `slot-scope` の分割代入

Expand Down