From 72c9f2a4475f99623d45422b5e44408a6d1ed47e Mon Sep 17 00:00:00 2001 From: Bruno Lesieur Date: Thu, 4 May 2017 12:42:13 +0200 Subject: [PATCH 1/5] Add french translation link Signed-off-by: Bruno Lesieur --- themes/vue/layout/partials/language_dropdown.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/vue/layout/partials/language_dropdown.ejs b/themes/vue/layout/partials/language_dropdown.ejs index dcebf0f71f..94aa4f69a8 100644 --- a/themes/vue/layout/partials/language_dropdown.ejs +++ b/themes/vue/layout/partials/language_dropdown.ejs @@ -6,5 +6,6 @@
  • Русский
  • 한국어
  • Português
  • +
  • Français
  • From e4a1fbd64b543551241c8fc7c5f51d85b162f118 Mon Sep 17 00:00:00 2001 From: Bruno Lesieur Date: Thu, 11 May 2017 11:57:12 +0200 Subject: [PATCH 2/5] kebab-case explaination updates Signed-off-by: Bruno Lesieur --- src/v2/guide/components.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/v2/guide/components.md b/src/v2/guide/components.md index 841eee6f98..309913193a 100644 --- a/src/v2/guide/components.md +++ b/src/v2/guide/components.md @@ -1155,7 +1155,7 @@ When using _string_ templates however, we're not bound by HTML's case-insensitiv - kebab-case - camelCase or kebab-case if the component has been defined using camelCase -- kebab-case, camelCase or Title case if the component has been defined using TitleCase +- kebab-case, camelCase or TitleCase if the component has been defined using TitleCase ``` js components: { @@ -1166,14 +1166,14 @@ components: { ``` ``` html - + - - + + - - - + + + ``` This means that the TitleCase is the most universal _declaration convention_ and kebab-case is the most universal _usage convention_. @@ -1181,7 +1181,7 @@ This means that the TitleCase is the most universal _declaration convention_ and If your component isn't passed content via `slot` elements, you can even make it self-closing with a `/` after the name: ``` html - + ``` Again, this _only_ works within string templates, as self-closing custom elements are not valid HTML and your browser's native parser will not understand them. From 20d0d4e1fe544fa3d3eef9803af5c8735ae12835 Mon Sep 17 00:00:00 2001 From: Bruno Lesieur Date: Thu, 11 May 2017 11:59:27 +0200 Subject: [PATCH 3/5] kebab-case to kebab-cased Signed-off-by: Bruno Lesieur --- src/v2/guide/components.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/v2/guide/components.md b/src/v2/guide/components.md index 309913193a..36e59f73f0 100644 --- a/src/v2/guide/components.md +++ b/src/v2/guide/components.md @@ -1159,21 +1159,21 @@ When using _string_ templates however, we're not bound by HTML's case-insensitiv ``` js components: { - 'kebab-case-component': { /* ... */ }, - camelCaseComponent: { /* ... */ }, - TitleCaseComponent: { /* ... */ } + 'kebab-cased-component': { /* ... */ }, + camelCasedComponent: { /* ... */ }, + TitleCasedComponent: { /* ... */ } } ``` ``` html - - + + - - - + + + ``` This means that the TitleCase is the most universal _declaration convention_ and kebab-case is the most universal _usage convention_. From 91befe80f301f082bdbe3aa7b9f92f8254aaed3f Mon Sep 17 00:00:00 2001 From: Chris Fritz Date: Thu, 18 May 2017 20:46:55 -0400 Subject: [PATCH 4/5] Remove space before self-closing component --- src/v2/guide/components.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v2/guide/components.md b/src/v2/guide/components.md index 36e59f73f0..c544bbfdaa 100644 --- a/src/v2/guide/components.md +++ b/src/v2/guide/components.md @@ -1181,7 +1181,7 @@ This means that the TitleCase is the most universal _declaration convention_ and If your component isn't passed content via `slot` elements, you can even make it self-closing with a `/` after the name: ``` html - + ``` Again, this _only_ works within string templates, as self-closing custom elements are not valid HTML and your browser's native parser will not understand them. From 81493e136614555d425bff6075ddd7edaefb5025 Mon Sep 17 00:00:00 2001 From: Bruno Lesieur Date: Thu, 15 Jun 2017 18:52:18 +0200 Subject: [PATCH 5/5] Add some tick for consistency Signed-off-by: Bruno Lesieur --- src/v2/guide/render-function.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/v2/guide/render-function.md b/src/v2/guide/render-function.md index 762ba66903..c0f9ef4080 100644 --- a/src/v2/guide/render-function.md +++ b/src/v2/guide/render-function.md @@ -106,7 +106,7 @@ createElement( }, // {String | Array} - // Children VNodes, built using createElement(), + // Children VNodes, built using `createElement()`, // or simply using strings to get 'text VNodes'. Optional. [ 'Some text comes first.', @@ -148,8 +148,8 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special domProps: { innerHTML: 'baz' }, - // Event handlers are nested under "on", though - // modifiers such as in v-on:keyup.enter are not + // Event handlers are nested under `on`, though + // modifiers such as in `v-on:keyup.enter` are not // supported. You'll have to manually check the // keyCode in the handler instead. on: { @@ -157,7 +157,7 @@ One thing to note: similar to how `v-bind:class` and `v-bind:style` have special }, // For components only. Allows you to listen to // native events, rather than events emitted from - // the component using vm.$emit. + // the component using `vm.$emit`. nativeOn: { click: this.nativeClickHandler }, @@ -366,7 +366,7 @@ You can access static slot contents as Arrays of VNodes from [`this.$slots`](../ ``` js render: function (createElement) { - //
    + // `
    ` return createElement('div', this.$slots.default) } ``` @@ -375,7 +375,7 @@ And access scoped slots as functions that return VNodes from [`this.$scopedSlots ``` js render: function (createElement) { - //
    + // `
    ` return createElement('div', [ this.$scopedSlots.default({ text: this.msg @@ -390,7 +390,7 @@ To pass scoped slots to a child component using render functions, use the `scope render (createElement) { return createElement('div', [ createElement('child', { - // pass scopedSlots in the data object + // pass `scopedSlots` in the data object // in the form of { name: props => VNode | Array } scopedSlots: { default: function (props) {