diff --git a/snippets/frameworks/vue/html.json b/snippets/frameworks/vue/html.json index 79a221a3..95df1853 100644 --- a/snippets/frameworks/vue/html.json +++ b/snippets/frameworks/vue/html.json @@ -52,19 +52,14 @@ ], "description": "Expects: Array | Object | number | string" }, - "v-on": { - "prefix": "vOn", - "body": ["v-on:${1:event}=\"${2:handle}\""], - "description": "Expects: Function | Inline Statement" - }, - "v-on-shortcut": { + "v-on-shorthand": { "prefix": "@", "body": ["@${1:event}=\"${2:handle}\""], "description": "v-on shortcut from vue 3" }, - "v-bind": { + "v-bind-shorthand": { "prefix": "vBind", - "body": ["v-bind$1=\"${2}\""], + "body": [":{$1}=\"${2}\""], "description": "Expects: any (with argument) | Object (without argument)" }, "v-model": { @@ -74,7 +69,7 @@ }, "v-slot": { "prefix": "vSlot", - "body": ["v-slot$1=\"${2}\""], + "body": ["#{$1:nameSlot}=\"${2}\""], "description": "Expects: JavaScript expression that is valid in a function argument position (supports destructuring in supported environments). Optional - only needed if expecting props to be passed to the slot." }, "v-pre": { @@ -112,16 +107,6 @@ "body": ["$2$0"], "description": ". Expects: string. Used on content inserted into child components to indicate which named slot the content belongs to." }, - "slotScope": { - "prefix": "slotScope", - "body": ["slot-scope=\"$1\"$0"], - "description": "Used to denote an element or component as a scoped slot. The attribute’s value should be a valid JavaScript expression that can appear in the argument position of a function signature. This means in supported environments you can also use ES2015 destructuring in the expression. Serves as a replacement for scope in 2.5.0+." - }, - "scope": { - "prefix": "scope", - "body": ["scope=\"${1:this api replaced by slot-scope in 2.5.0+}\"$0"], - "description": "Used to denote a