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
* style-guide Priority C: Component/instance options order
* style-guide Priority C: Element attribute order
* style-guide Priority C: Rule Categories C
* style-guide Priority C: Empty lines in component/instance options
* style-guide Priority C: Empty Single-file component top-level element order
* fix translate, according to review
* delete english sentences
Where multiple, equally good options exist, an arbitrary choice can be made to ensure consistency. In these rules, we describe each acceptable option and suggest a default choice. That means you can feel free to make a different choice in your own codebase, as long as you're consistent and have a good reason. Please do have a good reason though! By adapting to the community standard, you will:
11.**Rendering** (the declarative description of the component output)
1365
+
11.**レンダリング** (コンポーネント出力の宣言的な記述)
1366
1366
-`template`/`render`
1367
1367
-`renderError`
1368
1368
1369
1369
1370
1370
1371
-
### Element attribute order <supdata-p="c">recommended</sup>
1371
+
### 要素の属性の順序 <supdata-p="c">推奨</sup>
1372
1372
1373
-
**The attributes of elements (including components) should be ordered consistently.**
1373
+
**要素の属性 (コンポーネントを含む) は、一貫した順序であるべきです。**
1374
1374
1375
-
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.
1420
+
コンポーネントに窮屈さや読みづらさを感じたら、複数行に渡るプロバティの間に空行を追加する事でそれらを簡単に読み流すことができるようになります。 Vim など、一部のエディタでは、このような書式を使用するとキーボードで簡単に移動することができます。
1421
1421
1422
1422
{% raw %}<divclass="style-example example-good">{% endraw %}
1423
-
#### Good
1423
+
#### 良い例
1424
1424
1425
1425
```js
1426
1426
props: {
@@ -1450,8 +1450,8 @@ computed: {
1450
1450
```
1451
1451
1452
1452
```js
1453
-
//No spaces are also fine, as long as the component
1454
-
//is still easy to read and navigate.
1453
+
//コンポーネントの読み取りや移動が容易であれば、
1454
+
//空行がなくても大丈夫です。
1455
1455
props: {
1456
1456
value: {
1457
1457
type:String,
@@ -1477,12 +1477,12 @@ computed: {
1477
1477
1478
1478
1479
1479
1480
-
### Single-file component top-level element order <supdata-p="c">recommended</sup>
**[Single-file components](../guide/single-file-components.html) should always order `template`, `script`, and`style`tags consistently, with `<style>`last, because at least one of the other two is always necessary.**
0 commit comments