Invalid to modify element-ui notification component notification (notify) source code?

The

project uses the element-ui component library, and the developer encounters a problem. When I use the notify prompt, the default prompt location is position: top-right , because I want to prompt in the lower right, but I don"t want to input position: top-right every time, so I want to see if api is provided to modify the default configuration. I scanned a lot of web pages and didn"t get the desired results. So I want to modify the source code of the relevant components in node_modules , but change all the default values top-right in notification to bottom-right , and restart the service, but the prompt is still top-right . Do you have any friends who know why?

Thank you!

Apr.11,2021

the source code you modified may be pre-compiled by him, and you should recompile it if you need it.

this problem has similarity on this site.

I agree with the point of view. I suggest that you install the modified version of Fork in github Fork and then install it with npm to ensure that the version is consistent during co-development

Menu