From 97361b714316d8fefbe28361f71e6431a28b0e8a Mon Sep 17 00:00:00 2001 From: "nakagawa.makoto" Date: Sun, 1 Nov 2020 13:19:27 +0900 Subject: [PATCH] translate src/guide/migration/attribute-coercion.md --- src/guide/migration/attribute-coercion.md | 131 +++++++++++----------- 1 file changed, 66 insertions(+), 65 deletions(-) diff --git a/src/guide/migration/attribute-coercion.md b/src/guide/migration/attribute-coercion.md index 8530929c..6fa6b20c 100644 --- a/src/guide/migration/attribute-coercion.md +++ b/src/guide/migration/attribute-coercion.md @@ -3,113 +3,113 @@ badges: - breaking --- -# Attribute Coercion Behavior +# 属性強制の振舞い ::: info Info -This is a low-level internal API change and does not affect most developers. +これはローレベルな内部 API の変更であり、ほとんどの開発者には影響しません。 ::: -## Overview +## 概要 -Here is a high level summary of the changes: +以下に変更点の概要を示します: -- Drop the internal concept of enumerated attributes and treat those attributes the same as normal non-boolean attributes -- **BREAKING**: No longer removes attribute if value is boolean `false`. Instead, it's set as attr="false" instead. To remove the attribute, use `null` or `undefined`. +- 列挙された属性の内部概念を削除し、それらの属性を通常の非ブール属性と同じように扱う。 +- **破壊的変更**: 値がブール値 `false` の場合に属性を削除しないようになりました。代わりに attr="false" として設定されます。属性を削除するには、`null` か `undefined` を使ってください。 -For more information, read on! +詳しくは、以下をお読みください! -## 2.x Syntax +## 2.x での構文 -In 2.x, we had the following strategies for coercing `v-bind` values: +2.x では、`v-bind`の値を強制するために以下のような戦略がありました: -- For some attribute/element pairs, Vue is always using the corresponding IDL attribute (property): [like `value` of ``, ``、`