smartxworks / sunmao-ui

A Framework for Developing Low-code Tool
https://sunmao-ui.com
Apache License 2.0
1.38k stars 94 forks source link

fix(Collapse): fix a dead loop caused by passing in a new array #713

Closed xzdry closed 1 year ago

xzdry commented 1 year ago

In the previous implementation, a map conversion was done to ensure that the defaultActiveKey was string array, resulting in a dead loop where each passed in dependency was a new array. This now seems unnecessary as thekey is restricted to string and no one would pass a number specifically via an expression, and sunmao itself has a type check hint. So on balance, it was decided to remove this conversion