You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
10.**Rendering** (the declarative description of the component output)
1317
+
9.**レンダリング** (コンポーネント出力の宣言的な記述)
1319
1318
-`template`/`render`
1320
1319
1321
-
### Element attribute order <supdata-p="c">recommended</sup>
1320
+
### 要素の属性の順序 <supdata-p="c">推奨</sup>
1322
1321
1323
-
**The attributes of elements (including components) should be ordered consistently.**
1322
+
**要素の属性 (コンポーネントを含む) は、一貫した順序になるべきです。**
1324
1323
1325
-
This is the default order we recommend for component options. They're split into categories, so you'll know where to add custom attributes and directives.
When components begin to feel cramped or difficult to read, adding spaces between multi-line properties can make them easier to skim again. In some editors, such as Vim, formatting options like this can also make them easier to navigate with the keyboard.
1369
+
コンポーネントに窮屈さや読みづらさを感じたら、複数行に渡るプロパティの間に空行を追加する事でそれらを簡単に読み流すことができるようになります。 Vim など、一部のエディタでは、このような書式を使用するとキーボードで簡単に移動することができます。
1368
1370
1369
1371
<divclass="style-example style-example-good">
1370
-
<h4>Good</h4>
1372
+
<h4>良い例</h4>
1371
1373
1372
1374
```js
1373
1375
props: {
@@ -1397,8 +1399,8 @@ computed: {
1397
1399
```
1398
1400
1399
1401
```js
1400
-
//No spaces are also fine, as long as the component
1401
-
//is still easy to read and navigate.
1402
+
//コンポーネントの読み取りや移動が容易であれば、
1403
+
//空行がなくても大丈夫です。
1402
1404
props: {
1403
1405
value: {
1404
1406
type:String,
@@ -1426,12 +1428,12 @@ computed: {
1426
1428
```
1427
1429
</div>
1428
1430
1429
-
### Single-file component top-level element order <supdata-p="c">recommended</sup>
**[Single-file components](../guide/single-file-component.html) should always order `<script>`, `<template>`, and`<style>`tags consistently, with `<style>`last, because at least one of the other two is always necessary.**
0 commit comments