17 lines
465 B
Plaintext
Raw Permalink Normal View History

2023-04-10 21:53:03 +08:00
{
"Vue3 Hook 代码结构一键生成": {
"prefix": "Vue3 Hook",
"body": [
"import { ref } from \"vue\"\n",
"const refName1 = ref<string>(\"这是一个响应式变量\")\n",
"export function useHookName() {",
"\tconst refName2 = ref<string>(\"这是一个响应式变量\")\n",
"\tconst fnName = () => {}\n",
"\treturn { refName1, refName2, fnName }",
"}",
"$1"
],
"description": "Vue3 Hook"
}
}