Skip to content

Commit

Permalink
feat: vbsetup
Browse files Browse the repository at this point in the history
  • Loading branch information
andyqier88 committed Jun 6, 2022
1 parent 9e1249f commit cbfa2f4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion snippets/basicSnippet.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
"prefix": "vbtndisabled",
"body": ["<a-button type=\"default\" disabled class=\"ml-2\"> $1</a-button>"],
"description": "ant design button disabled"
},
"vbsetup": {
"prefix": "vbsetup",
"body": [
"<script lang=\"ts\" setup>",
" import { watchEffect } from 'vue';",
" const emit = defineEmits(['']);",
" const props = defineProps({",
" });",
" watchEffect(() => {",
" selectedKeys.value = [unref(getLocale)];",
" });",
"</script>"
],
"description": "vbsetup"
}

}

0 comments on commit cbfa2f4

Please sign in to comment.