mirror of
https://gitee.com/blazorcomponent/MASA.Blazor.git
synced 2025-12-06 10:19:23 +08:00
🐛 fix(ECharts): Option can now be null (#2315)
This commit is contained in:
@@ -36,7 +36,7 @@ public class MECharts : Container, IEChartsJsCallbacks
|
||||
public Action<EChartsInitOptions>? InitOptions { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public object Option { get; set; } = new { };
|
||||
public object? Option { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool Light { get; set; }
|
||||
@@ -224,7 +224,7 @@ public class MECharts : Container, IEChartsJsCallbacks
|
||||
{
|
||||
if (_echarts == null) return;
|
||||
|
||||
option ??= Option;
|
||||
option ??= Option ?? new { };
|
||||
|
||||
if (IncludeFunctionsInOption && IsAnyFunction(option, out var optionJson))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user