unibest/.vscode/vue3.code-snippets

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-01-22 09:43:34 +08:00
{
2024-01-22 14:21:17 +08:00
// Place your unibest 工作区 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
2024-01-22 09:43:34 +08:00
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Print Vue3 Uniapp SFC": {
"scope": "vue",
"prefix": "v3",
"body": [
"<route lang=\"json5\" type=\"page\">",
2024-01-23 10:49:37 +08:00
"{",
" style: { navigationBarTitleText: '$1' },",
"}",
"</route>\n",
2024-01-22 09:43:34 +08:00
"<template>",
2024-01-23 10:49:37 +08:00
" <view class=\"\">$2</view>",
"</template>\n",
"<script lang=\"ts\" setup>",
2024-01-24 14:49:15 +08:00
"//$3",
2024-01-23 10:49:37 +08:00
"</script>\n",
"<style lang=\"scss\" scoped>",
"//",
"</style>\n"
2024-01-22 09:43:34 +08:00
]
}
}