Closed danxiaogui closed 5 years ago
@danxiaogui, Pls prvoide a clean reproduce demo.
OK,I am so sorry here is the clean reproduce demo https://stackblitz.com/edit/ng-alain-setup-kuzan-datetime?file=src/app/app.component.ts thanks.
this.sf.rootProperty['properties']['datetime'].setValue('2018-12-19T18:27:20+08:00', false);
this.sf.rootProperty['properties']['datetime'].resetValue('2018-12-19T18:27:20+08:00', true);
this.sf.rootProperty['properties']['datetime'].setValue('2018-12-19T18:27:20+08:00', false);
@danxiaogui Pls provide a reproduce demo in 7.0.0-rc.1
let datas = {
'datetime': '2018-12-19T18:27:20+08:00',
'date': '2018-12-19'
}
this.sf.refreshSchema(tempSchema).rootProperty.resetValue(datas,false);
this.sf.refreshSchema(tempSchema);
this.sf.rootProperty['properties']['datetime'].resetValue('2018-12-19T18:27:20+08:00', false);
this.sf.rootProperty['properties']['date'].resetValue('2018-12-19', false);
事实上这一问题的根治还是只能靠 ng-zorro-antd 全面性支持 OnPush模式,不再对此问题进一步优化。
版本信息
重现地址 https://stackblitz.com/edit/ng-alain-setup-kuzan-datetime?file=src/app/app.component.ts
重现步骤
1 打开此处代码注释,schema加载成功,时间组件赋值成功
2 打开此处代码注释,schema加载成功,使用rootProperty.setValue为时间组件赋值失败
代码