Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fuse] bind-Value:attribute support #11214

Merged
merged 3 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#nullable disable
));
__builder.AddComponentParameter(2, nameof(global::Test.MyComponent.OnChanged), (global::System.Action<global::System.Int32>)(__value => ParentValue = __value));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,46)-(1,51) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1144:31,0 [11] )
|ParentValue|

Source Location: (45:0,45 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1531:41,0 [5] )
|Value|

Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1568:43,0 [50] )
Generated Location: (1774:52,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1583:40,0 [6] )
|Update|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1795:49,0 [5] )
|Value|

Source Location: (81:1,7 [82] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;

public void Update() { }
|
Generated Location: (1832:51,0 [82] )
Generated Location: (2038:60,0 [82] )
|
public int ParentValue { get; set; } = 42;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ Source Location: (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1583:40,0 [9] )
|() => { }|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1798:49,0 [5] )
|Value|

Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1835:51,0 [50] )
Generated Location: (2041:60,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ Source Location: (60:0,60 [62] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1449:40,0 [62] )
|(value => { ParentValue = value; return Task.CompletedTask; })|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1713:49,0 [5] )
|Value|

Source Location: (135:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1750:51,0 [50] )
Generated Location: (1956:60,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }, value: ParentValue), ParentValue))));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@ Source Location: (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (2023:40,0 [11] )
|UpdateValue|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2276:49,0 [5] )
|Value|

Source Location: (86:1,7 [102] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
public EventCallback UpdateValue { get; set; }
|
Generated Location: (2313:51,0 [102] )
Generated Location: (2519:60,0 [102] )
|
public int ParentValue { get; set; } = 42;
public EventCallback UpdateValue { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }, value: ParentValue), ParentValue))));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ Source Location: (62:0,62 [9] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (2023:40,0 [9] )
|() => { }|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2274:49,0 [5] )
|Value|

Source Location: (84:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (2311:51,0 [50] )
Generated Location: (2517:60,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }, value: ParentValue), ParentValue))));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ Source Location: (62:0,62 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (2023:40,0 [11] )
|UpdateValue|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (2276:49,0 [5] )
|Value|

Source Location: (86:1,7 [106] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;

public Task UpdateValue() => Task.CompletedTask;
|
Generated Location: (2313:51,0 [106] )
Generated Location: (2519:60,0 [106] )
|
public int ParentValue { get; set; } = 42;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ Source Location: (62:0,62 [6] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1631:40,0 [6] )
|Update|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1843:49,0 [5] )
|Value|

Source Location: (81:1,7 [101] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;

public Task Update() => Task.CompletedTask;
|
Generated Location: (1880:51,0 [101] )
Generated Location: (2086:60,0 [101] )
|
public int ParentValue { get; set; } = 42;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
); }));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ Source Location: (62:0,62 [36] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1631:40,0 [36] )
|() => { return Task.CompletedTask; }|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1873:49,0 [5] )
|Value|

Source Location: (111:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1910:51,0 [50] )
Generated Location: (2116:60,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,18 @@ Source Location: (60:0,60 [11] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1448:40,0 [11] )
|UpdateValue|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1661:49,0 [5] )
|Value|

Source Location: (84:1,7 [116] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;

public void UpdateValue(int value) => ParentValue = value;
|
Generated Location: (1698:51,0 [116] )
Generated Location: (1904:60,0 [116] )
|
public int ParentValue { get; set; } = 42;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ Source Location: (60:0,60 [28] x:\dir\subdir\Test\TestComponent.cshtml)
Generated Location: (1448:40,0 [28] )
|value => ParentValue = value|

Source Location: (49:0,49 [5] x:\dir\subdir\Test\TestComponent.cshtml)
|Value|
Generated Location: (1678:49,0 [5] )
|Value|

Source Location: (101:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
Generated Location: (1715:51,0 [50] )
Generated Location: (1921:60,0 [50] )
|
public int ParentValue { get; set; } = 42;
|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
#line hidden
#nullable disable
, ParentValue))));
_ = nameof(global::Test.MyComponent.
#nullable restore
#line (1,50)-(1,55) "x:\dir\subdir\Test\TestComponent.cshtml"
Value

#line default
#line hidden
#nullable disable
);
__builder.CloseComponent();
}
#pragma warning restore 1998
Expand Down
Loading
Loading