We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://stackblitz.com/edit/ng-alain-setup-qnxsnu?file=src%2Fapp%2Fapp.component.ts
1、sf,cascader
2、选中某个值
3、sf.getProperty(...)
4、property.schema.readonly = true
5、property.widget.reset(...)
widget变为readonly状态,显示已选中的值
widget变为readonly状态,显示空,不显示选中的值,再次启用后又恢复显示
The text was updated successfully, but these errors were encountered:
[https://stackz.com/edit/ng--setup-qnxsnu?file=src%2FAPPP.COPONENT.TS] (https://stackBlitz.com/edit/ng- setup-qnxsnu? file = src%2FAPP%2FAPP.comPonent.ts)
SF, Cascader
Select a certain value
3, sf.getproperty (...)
Property.schema.reamonly = true
Property.widget.reset (...)
Widget becomes readonly state, showing the selected value
Widget becomes ReadOnly state, shows empty, does not display the selected value, and then enables it again to resume the display
| ENVIRONMENT | Info | | --- | --- | | | ng-alain | 14.1.1 | | Browser | Win11, Edge latest version |
Sorry, something went wrong.
看起来像是内部 nz-cascader 引起的,如果只是单纯调整 readonly 的话,可以使用:
nz-cascader
readonly
- prop!.widget.reset(this.sf.value['cityIds']); + prop!.widget.detectChanges();
@cipchk 测试时意外发现一个有意思的现象,在reset方法之后再给readonly赋值true就没问题,显示正常,详见链接代码,可能问题出在reset方法内?有时间看一下,谢谢
No branches or pull requests
Reproduction link
https://stackblitz.com/edit/ng-alain-setup-qnxsnu?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
1、sf,cascader
2、选中某个值
3、sf.getProperty(...)
4、property.schema.readonly = true
5、property.widget.reset(...)
What is expected?
widget变为readonly状态,显示已选中的值
What is actually happening?
widget变为readonly状态,显示空,不显示选中的值,再次启用后又恢复显示
The text was updated successfully, but these errors were encountered: