element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] about lodash : el.mask is not a function

Open Aseisman opened this issue 2 years ago • 2 comments

Element UI version

2.15.11

OS/Browsers version

window10 / chrome111.0.5563.146

Vue version

2.7.14

Reproduction Link

https://codepen.io/CargoXu/pen/mdGNoor?editors=1111

Steps to reproduce

When my project originally introduced lodash, after introducing element again, the original_ () Method is rewritten;

  1. import lodash or your project has own window._() = function(){...}
  2. and you can import element-ui(2.15.11-2.15.13)
  3. and you will find that the _() is rewritten

What is Expected?

Before version 2.15.10, lodash was not introduced ; expect: _() is not rewritten in console panel: will print '_方法' and print '111'

What is actually happening?

_() is rewritten in console panel: only print '111'

Aseisman avatar Apr 04 '23 02:04 Aseisman

please focus https://github.com/ElemeFE/element/pull/22483

webvs2 avatar Apr 10 '23 08:04 webvs2

2.15.14 also had the same problem

Aseisman avatar Feb 26 '24 02:02 Aseisman