ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.53k stars 1.16k forks source link

Parent object accessor with SFUISchema visibleIf #2029

Closed myatmin closed 3 years ago

myatmin commented 3 years ago

What problem does this feature solve?

When the form has a nested Array type. (Example: multiple cities and multiple country).

If you use the root accessor, it has to be called /country/0/city/0/name.

But fixed index does not work for the following requirement.

For example, City property will be based on its containing parent Country object property(countryCode, countryType).

What does the proposed API look like?

../countryCode

../countryType

cipchk commented 3 years ago

fixed by https://github.com/ng-alain/delon/pull/1281