Skip to content

Instantly share code, notes, and snippets.

@morphatic
Created September 10, 2019 18:25
Show Gist options
  • Save morphatic/4cc87861cd950fc12d644afdc7dd6f37 to your computer and use it in GitHub Desktop.
Save morphatic/4cc87861cd950fc12d644afdc7dd6f37 to your computer and use it in GitHub Desktop.
The main source file for a custom Vuetify component extension
import { VueConstructor } from 'vue'
import VStateSelect from './VStateSelect'
const VAddressFields = {
install (Vue: VueConstructor, options?: any) {
Vue.component('v-state-select', VStateSelect)
},
}
export { VStateSelect }
export default VAddressFields
if (typeof window !== 'undefined' && window.Vue) {
window.Vue.use(VAddressFields)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment