Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue3: Introduce an option to import the survey component directly into a user component without using the plugin #8621

Closed
dk981234 opened this issue Jul 26, 2024 · 0 comments · Fixed by #8690
Assignees
Labels
enhancement user issue An issue or bug reported by users v2.0
Milestone

Comments

@dk981234
Copy link
Contributor

dk981234 commented Jul 26, 2024

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


In the meantime, in a Vue3 app, a survey is registered using surveyPlugin.
main.ts

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

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

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

@dk981234 dk981234 self-assigned this Jul 26, 2024
@dk981234 dk981234 added the V2 label Jul 26, 2024
@JaneSjs JaneSjs added enhancement user issue An issue or bug reported by users v2.0 and removed V2 labels Jul 26, 2024
@dk981234 dk981234 linked a pull request Aug 15, 2024 that will close this issue
@OlgaLarina OlgaLarina added this to the v1.12.2 milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement user issue An issue or bug reported by users v2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants