mirror of
https://github.com/tenrok/vue-cron-editor-bootstrap.git
synced 2026-05-30 15:34:05 +03:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
import _Vue from 'vue'
|
|
import VueCronEditorBootstrap from './components/VueCronEditorBootstrap.vue'
|
|
|
|
const components = [VueCronEditorBootstrap]
|
|
|
|
class CronEditorPluginOptions {}
|
|
|
|
type CronEditorPlugin = {
|
|
install(vue: typeof _Vue, options?: CronEditorPluginOptions): void
|
|
}
|
|
|
|
const instance: CronEditorPlugin = {
|
|
install(vue) {
|
|
components.forEach(component => vue.component(component.name, component))
|
|
},
|
|
}
|
|
|
|
export default instance
|