Skip to content

希望AModal的dialogClass属性能同时兼容object和string两种类型,感谢 #2481

@sjlei

Description

@sjlei
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

如下这种使用方式,动态控制类名

dialogClass: {
    'class-a': true,
    'class-b': false,
}

What does the proposed API look like?

dialogClass: {
    type: [String, Object, Array], // vue 还支持一种数组形式的class,这个加了最好,不加也行
    default: ()=>({})
}

889e145

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions