ElemeFE / ElemeFE/element

ElementUI not working with Vue instance in MVC layout page

Open
#20,075 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

ElementUI not working with Vue instance in MVC layout page. My layout page contains a Vue instance, but when I try to use ElementUI in the child page (.cshtml file) ElementUI does not function. However, if I add a reference to Vue.js inside my child page, ElementUI works. I'm assuming this is because of the require(...) statement in index.js. Is there a workaround for this? If not, can you please tell me how to alter index.js so it will use my layout's Vue instance?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.