import { VueConstructor as _Vue } from "vue"; import SurveyCreator from "./components/survey-creator.vue"; import QuestionEditDrawer from "./components/editor/question-edit-drawer.vue"; import SurveyPreviewer from "./components/survey-previewer.vue"; import locale from "./locale"; export class SurveyCreatorOptions { locale: any; i18n: any; } export default class SurveyCreatorPlugin { static install(Vue: _Vue, options: SurveyCreatorOptions) { locale.use(options.locale); locale.i18n(options.i18n); Vue.$surveyLanguage = options.locale; Vue.component("survey-creator", SurveyCreator); Vue.component("survey-previewer", SurveyPreviewer); Vue.component("question-edit-drawer", QuestionEditDrawer); } } export { SurveyCreator };