Giter Site home page Giter Site logo

vue3-composition-snippets's Introduction

vue3-composition-snippets

install in visualstudio marketplace

Features

This snippets extension is contains a lot of vue3 / vuex /vue-router composition api shortscuts

For example :

  • Vue Composition Component(vcc) Vue Composition Component
  • Vue Option Component(voc) Vue Option Component
  • Vue prop shortcuts Vue prop shortcuts
Prefix JavaScript Snippet Content
prop {type: ,default: }
propBoolean {type: Boolean,default: false}
propNumber {type: Number,default: }
propString {type: String,default: ''}
propArray {type: Array,default: () => []}
propObject {type: Object,default: ()=>({})}
  • more shortcuts shortcuts
Prefix JavaScript Snippet Content
reactive const state = reactive({})
inject const name = inject('name', name))
provide provide('', )
obm/onBeforeMounted onBeforeMounted(() => {})
om/onMounted onMounted(() => {})
obu/onBeforeUpdate onBeforeUpdate(() => {})
obum/onBeforeUnmount onBeforeUnmount(() => {})
oum/onUnmounted onUnmounted(() => {})
od/onDeactivated onDeactivated(() => {})
oa/onActivated onActivated(() => {})
oec/onErrorCaptured onErrorCaptured(() => {})
ort/onRenderTriggered onRenderTriggered(() => {})
watch watch(()=> , () => {})
watchi watch(()=> , () => {}, { immediate: true })
we/watchEffect watchEffect(() => {})
wpe/watchPostEffect watchPostEffect(() => {})
wse/watchSyncEffect watchSyncEffect(() => {})
  • store / router shortcuts
Prefix JavaScript Snippet Content
us/useStore const store = useStore()
sc/storeCommit store.commit()
ss/storeState store.state
sg/storeGetters store.getters
sd/storeDispatch store.dispatch()
useRouter const router = useRouter()
useRoute const route = useRoute()
useLink const { } = useLink()
rr/routerReplace router.replace()

Known Issues

Release Notes

1.0.0

Initial release of vue3 snippets

License

MIT


Enjoy!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.