父组件传递过来的参数:@Text

@code { //显示的文本 [Parameter] public string? Text{ get; set; } protected override void OnParametersSet() { Text = Text ?? "test"; } }