at NzDrawerComponent.push../node_modules/ng-zorro-antd/fesm5/ng-zorro-antd.js.NzDrawerComponent.trapFocus (ng-zorro-antd.js:18330)
at NzDrawerComponent.push../node_modules/ng-zorro-antd/fesm5/ng-zorro-antd.js.NzDrawerComponent.ngOnChanges (ng-zorro-antd.js:18149)
at checkAndUpdateDirectiveInline (core.js:9239)
at checkAndUpdateNodeInline (core.js:10507)
at checkAndUpdateNode (core.js:10469)
at debugCheckAndUpdateNode (core.js:11102)
at debugCheckDirectivesFn (core.js:11062)
at Object.eval [as updateDirectives] (NewApplicationComponent.html:1)
at Object.debugUpdateDirectives [as updateDirectives] (core.js:11054)
at checkAndUpdateView (core.js:10451)

报错如下,经验证后发现 只能

<nz-drawer [nzClosable]="true" [nzVisible]="visible" nzPlacement="left" [nzWidth]='width' nzMask='false'
(nzOnClose)="close()">
<app-threat-detail *ngIf='riskId' [inputThreatId]="riskId"></app-threat-detail>
</nz-drawer>
1.不能在嵌套组件内在包含drawer
2.如果按钮唤醒抽屉打开,那么按钮和抽屉得在同一个组件中 
不然就会报错。

最新文章

  1. Tools - 国内开源镜像网站
  2. JavaAnnotation和反射简化开发
  3. RxJava_ _学了下RxJava
  4. winform(数据导出、TreeView的使用)
  5. Amazon后台登陆以及跟卖
  6. setblendstate &amp; setdepthstencilstate
  7. IOS - DatePicker的使用
  8. Hadoop最基本的wordcount(统计词频)
  9. Letter Combinations of a Phone Number——LeetCode
  10. Android下按钮的使用方法
  11. hdu 1535 Invitation Cards(SPFA)
  12. 对象克隆(clone)实例详解
  13. Miner.java 爬虫启动类
  14. hashmap,hashTable concurrentHashMap 是否为线程安全,区别,如何实现的
  15. cmd 执行Dcpromo错误:在该 SKU 上不支持 Active Directory 域服务安装向导,Windows Server 2008 R2 Enterprise 配置AD(Active Directory)域控制器
  16. 运输问题的+Leapms模型
  17. C# 使用反射 遍历输出 对象的属性
  18. hibernate框架学习之二级缓存(测试用例)
  19. Layui上传图片 带接口
  20. MariaDB的线程及连接

热门文章

  1. tomcat启动后access error[730048]的解决方法
  2. SimpleTrigger的使用
  3. HBase完全分布式集群搭建
  4. Rime输入法一些设定
  5. 详解服务器性能测试的全生命周期?&mdash;&mdash;从测试、结果分析到优化策略(转载)
  6. Protobuf 简介及简单应用
  7. array, matrix, list and dataframe
  8. Android中的路径记录
  9. CS229 Lesson 13 高斯混合模型
  10. 如何用Postman做接口自动化测试