diff --git a/UltiSnips/css.snippets b/UltiSnips/css.snippets index 6e1b410..6a0eca8 100644 --- a/UltiSnips/css.snippets +++ b/UltiSnips/css.snippets @@ -1,3 +1,7 @@ +snippet sld "/* stylelint-disable-next-line ... */" +/* stylelint-disable-next-line ${1:declaration-block-no-shorthand-property-overrides} */ +endsnippet + snippet @m "@media ..." @media (${1:min}-${2:width}: $3) { $0 @@ -161,3 +165,10 @@ snippet bs "box-shadow ...;" box-shadow: ${1:0} ${2:0} $3px $4px ${5:#000} ${6:inset}; endsnippet +snippet pabs "Position: absolute ..." +position: absolute; +width: 100%; +height: 100%; +top: 0; +left: 0; +endsnippet diff --git a/UltiSnips/vue.snippets b/UltiSnips/vue.snippets index fb30398..9154826 100644 --- a/UltiSnips/vue.snippets +++ b/UltiSnips/vue.snippets @@ -56,3 +56,60 @@ this.$nextTick( () => { }) endsnippet +snippet props "props: { ... }" +props: { + $1: { + type: ${2:Boolean}, + required: ${3:false}, + default() { + return ${4:false}; + }, + }, +},$0 +endsnippet + +snippet prop "property: { ... }" +$1: { + type: ${2:Boolean}, + required: ${3:false}, + default() { + return ${4:false}; + }, +},$0 +endsnippet + +snippet comps "components { ... }" +components: { + $0, +}, +endsnippet + +snippet data "data() { return { ... } }" +data() { + return { + $1: $2,$0 + }; +}, +endsnippet + +snippet compd "computed: { ... }" +computed: { + $1() { + $0 + }, +}, +endsnippet + +snippet meth "methods: { ... }" +methods: { + $1() { + $0 + }, +}, +endsnippet + +snippet style " +endsnippet