
<RadzenStack>

    <RadzenText TextStyle="TextStyle.Body1" Style="color: var(--rz-text-tertiary-color); align-content:center; text-align:center; font-size:medium;">@(confirmInfo)</RadzenText>


    <RadzenStack Orientation="Orientation.Horizontal" JustifyContent="JustifyContent.Center" Gap="0.5rem">
        <RadzenButton Click="@ConfirmOK" ButtonStyle="ButtonStyle.Success" Variant="Variant.Flat" Text="确认" Style="width: 120px" />

        <RadzenButton Click="@((args) => dialogService.Close(false))" Variant="Variant.Flat" Text="取消" Style="width: 120px" />

    </RadzenStack>
</RadzenStack>

@code {
    @inject Radzen.DialogService dialogService;
    [Parameter] public string confirmInfo { get; set; }
    protected override async Task OnInitializedAsync()
    {
        var info = confirmInfo;
        base.OnInitializedAsync();
    }
    async Task ConfirmOK()
    {
        // 关闭弹窗
        dialogService.Close(true);
    }
}
