DevCloudFE / ng-devui

Angular UI Component Library based on DevUI Design
https://devui.design
MIT License
1.75k stars 210 forks source link

Modal cssClass属性不生效🐛 [Bug]: #341

Closed s455016457 closed 8 months ago

s455016457 commented 11 months ago

Version

ng-devui@16.2.0

Angular Version

@angular/core 16.2.0

Link to minimal reproduction

  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", 并不生效

Step to reproduce

this.dialogService.open调用时传入的config 配置 cssClasscssClass属性并不生效,前端元素class没有配置的className

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

Simplelegant commented 8 months ago

cssClass为modalService参数,可以使用modalService或者通过id来加样式