Closed s455016457 closed 8 months ago
ng-devui@16.2.0
@angular/core 16.2.0
config={ id: 'dialog-service', width: '500px', maxHeight: '600px', cssClass:"devUiModal", title: '新增书籍', content: BookCreateComponent, backdropCloseable: true, onClose: () => console.log('on dialog closed'), data: { name: '', type: BookType.Undefined, price: 0, }, }; const results = this.dialogService.open({ ...this.config, showMaximizeBtn:true, dialogtype:dialogtype, showAnimate:showAnimation, ... });
cssClass:"devUiModal", 并不生效
cssClass:"devUiModal",
this.dialogService.open调用时传入的config 配置 cssClass ,cssClass属性并不生效,前端元素class没有配置的className
this.dialogService.open
config
cssClass
No response
cssClass为modalService参数,可以使用modalService或者通过id来加样式
id
Version
ng-devui@16.2.0
Angular Version
@angular/core 16.2.0
Link to minimal reproduction
cssClass:"devUiModal",
并不生效Step to reproduce
this.dialogService.open
调用时传入的config
配置cssClass
,cssClass
属性并不生效,前端元素class没有配置的classNameWhat is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response