masastack / MASA.Blazor

Blazor UI component library based on Material Design. Support Blazor Server, Blazor WebAssembly and MAUI Blazor.
https://docs.masastack.com/blazor/getting-started/installation
Other
1.19k stars 160 forks source link

[Bug Report]: MExpansionPanels无法通过设置MExpansionPanel的IsActive属性来控制模板默认展开 #1534

Closed VleaStwo closed 2 months ago

VleaStwo commented 1 year ago

Masa.Blazor version

1.0.3

Describe the bug

  1. 如题 如果要实现默认展开需要 MExpansionPanels设置 @bind-Value/Values 并且创建 配套的字段或属性 比较繁琐
  2. 文档apis的MExpansionPanel的IsActive的描述写成了 受否激活。 应当为 是否激活
  3. 缺少Color/ActiveColor属性 需要通过style或class设置

Expected Behavior

No response

Steps To Reproduce

No response

Reproduction code

No response

.NET version

net 7.0

What browsers are you seeing the problem on?

No response

Additional context

No response

capdiem commented 2 months ago

@VleaStwo ExpansionPanel需要配合ExpansionPanels一起使用,而且单选多选和每个Panel的IsActive有冲突,所以不打算支持IsActive属性。