We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79295d2 commit c27cb89Copy full SHA for c27cb89
1 file changed
src/components/BootstrapBlazor.ImageCropper/ImageCropper.razor.cs
@@ -39,10 +39,11 @@ public partial class ImageCropper
39
/// 获取/设置 裁剪形状(矩形/圆形)默认 <see cref="ImageCropperShape.Rectangle"/>
40
/// </summary>
41
[Parameter]
42
+ [Obsolete("已弃用,使用 ImageCropperOption.IsRound 参数代替;Deprecated, use ImageCropperOption.IsRound parameter instead")]
43
public ImageCropperShape CropperShape { get; set; }
44
45
private string? ClassString => CssBuilder.Default("bb-cropper")
- .AddClass("is-round", CropperShape == ImageCropperShape.Round)
46
+ .AddClass("is-round", Options?.IsRound ?? false)
47
.AddClassFromAttributes(AdditionalAttributes)
48
.Build();
49
0 commit comments