From f99da9949efaeee31d90a9c3ba5182a4fe364150 Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Thu, 7 Jan 2021 23:34:52 +0900 Subject: [PATCH 1/2] Fix transition boolean props complete --- server/src/modes/template/tagProviders/vueTags.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/modes/template/tagProviders/vueTags.ts b/server/src/modes/template/tagProviders/vueTags.ts index 3b904ed564..9cba75dc58 100644 --- a/server/src/modes/template/tagProviders/vueTags.ts +++ b/server/src/modes/template/tagProviders/vueTags.ts @@ -54,10 +54,10 @@ const vueDirectives = [ const transitionProps = [ getAttribute('name', undefined, 'Used to automatically generate transition CSS class names. Default: "v"'), - getAttribute('appear', 'b', 'Whether to apply transition on initial render. Default: false'), + getAttribute('appear', 'v', 'Whether to apply transition on initial render. Default: false'), getAttribute( 'css', - 'b', + 'v', 'Whether to apply CSS transition classes. Defaults: true. If set to false, will only trigger JavaScript hooks registered via component events.' ), getAttribute( @@ -133,7 +133,7 @@ const vueTags = { const valueSets = { transMode: ['out-in', 'in-out'], transType: ['transition', 'animation'], - b: ['true', 'false'] + v: ['true', 'false'] }; export function getVueTagProvider(): IHTMLTagProvider { From 0613efeaa51d3afff7224b5cfc5526b8420108a0 Mon Sep 17 00:00:00 2001 From: sapphi-red Date: Fri, 8 Jan 2021 00:05:25 +0900 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9c6e25bd9..cb73e02a18 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +- 🙌 Fix ``'s boolean attributes were triggering completion with `=""`. Thanks to contribution from [@sapphi-red](https://github.com/sapphi-red). + ### 0.32.0 - Show deprecated hint in script block.