unibest/.vscode/vue3.code-snippets

68 lines
1.8 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"
// }
2024-02-22 20:44:57 +08:00
"Print unibest Vue3 SFC": {
2024-01-22 09:43:34 +08:00
"scope": "vue",
"prefix": "v3",
"body": [
"<route lang=\"json5\" type=\"page\">",
2024-01-23 10:49:37 +08:00
"{",
2024-03-10 10:27:42 +08:00
" layout: 'default',",
" style: {",
2024-04-05 14:59:16 +08:00
" navigationBarTitleText: '$1',",
2024-03-10 10:27:42 +08:00
" },",
2024-01-23 10:49:37 +08:00
"}",
"</route>\n",
"<script lang=\"ts\" setup>",
2024-01-24 14:49:15 +08:00
"//$3",
2024-01-23 10:49:37 +08:00
"</script>\n",
"<template>",
" <view class=\"\">$2</view>",
"</template>\n",
2024-01-23 10:49:37 +08:00
"<style lang=\"scss\" scoped>",
2024-03-10 10:27:42 +08:00
"//$4",
2024-02-22 20:44:57 +08:00
"</style>\n",
],
},
"Print unibest style": {
"scope": "vue",
"prefix": "st",
"body": [
"<style lang=\"scss\" scoped>",
"//",
"</style>\n"
],
2024-02-22 20:44:57 +08:00
},
"Print unibest script": {
"scope": "vue",
"prefix": "sc",
"body": [
"<script lang=\"ts\" setup>",
"//$3",
"</script>\n"
],
2024-02-22 20:44:57 +08:00
},
"Print unibest template": {
"scope": "vue",
"prefix": "te",
"body": [
"<template>",
" <view class=\"\">$1</view>",
"</template>\n"
],
2024-02-22 20:44:57 +08:00
},
}