vue#VueConstructor TypeScript Examples
The following examples show how to use
vue#VueConstructor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: index.ts From vuetify-numeric with MIT License | 6 votes |
function install (v: VueConstructor, args?: VuetifyNumericUseOptions): VueConstructor<Vue> {
const components = args ? args.components : defaultComponents
for (const key in components) {
const component = components[key]
if (component) {
v.component(key, component as typeof v)
}
}
return v
}
Example #2
Source File: auth.ts From auth0-ts-vue-example with MIT License | 5 votes |
Auth0Plugin = { install (Vue: VueConstructor, options: Auth0PluginOptions) { Vue.prototype.$auth = useAuth0(options) } }
Example #3
Source File: components.ts From neon with MIT License | 5 votes |
components: { [s: string]: VueConstructor } = {
NeonActionMenu,
NeonAlert,
NeonAlertContainer,
NeonAnchor,
NeonBadge,
NeonButton,
NeonCard,
NeonCardBody,
NeonCardFooter,
NeonCardHeader,
NeonChip,
NeonColor,
NeonDialog,
NeonDrawer,
NeonDropdown,
NeonDropdownMenu,
NeonDropZone,
NeonExpansionIndicator,
NeonExpansionPanel,
NeonFieldGroup,
NeonFile,
NeonFilterList,
NeonFooter,
NeonGrid,
NeonGridArea,
NeonIcon,
NeonInput,
NeonInputIndicator,
NeonLabel,
NeonLink,
NeonList,
NeonLogo,
NeonMenu,
NeonModal,
NeonNote,
NeonNotificationCounter,
NeonNumber,
NeonPage,
NeonPassword,
NeonRangeSlider,
NeonSearch,
NeonSelect,
NeonSideNav,
NeonSkeletonLoader,
NeonSlider,
NeonSplashLoader,
NeonSwitch,
NeonTab,
NeonTabs,
NeonToastContainer,
NeonToggle,
NeonToggleChip,
NeonTooltip,
NeonTopNav,
NeonTreeMenu,
}
Example #4
Source File: fower.d.ts From fower with MIT License | 5 votes |
Div: VueConstructor<Vue>
Example #5
Source File: fower.d.ts From fower with MIT License | 5 votes |
Span: VueConstructor<Vue>
Example #6
Source File: shims-vuetify.ts From vuetify-numeric with MIT License | 5 votes |
function VueComponent (component: any|undefined, name: string): VueConstructor<Vue> {
if (component) return component as VueConstructor<Vue>
return (Vue as any).options.components[name] as VueConstructor<Vue>
}
Example #7
Source File: leaf.tsx From slate-vue with MIT License | 5 votes |
DefaultLeaf = (props: RenderLeafProps): VueConstructor => {
return tsx.component({
render() {
const { attributes, children } = props
return <span {...{attrs: attributes}}>{children}</span>
}
})
}