survey-creator icon indicating copy to clipboard operation
survey-creator copied to clipboard

Vue3: Introduce an option to import the creator component directly into a user component without using the surveyCreatorPlugin

Open JaneSjs opened this issue 1 year ago • 0 comments

T19153 - Survey Creator - Vue plugin build issues https://surveyjs.answerdesk.io/internal/ticket/details/T19153


In the meantime, in a Vue3 app, a creator is registered using a creator plugin. main.ts

import { createApp } from "vue";
import { surveyPlugin } from "survey-vue3-ui";
import { surveyCreatorPlugin } from "survey-creator-vue";
import App from "./App.vue";
import "survey-core/defaultV2.min.css";
import "survey-creator-core/survey-creator-core.min.css";

const app = createApp(App).use(surveyPlugin).use(surveyCreatorPlugin);
app.mount("#app");

However, with this approach, a creator library is loaded immediately after an application starts. Consider registering a creator as a component directly within a Vue component. With this option, the creator library will be loaded only when the corresponding Vue component is loadeded rather than at the application startup.

JaneSjs avatar Jul 26 '24 13:07 JaneSjs