Skip to content

Commit 635e366

Browse files
committed
feat: 更改 AspectRatio 数据类型为 float
1 parent e9b1fd2 commit 635e366

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/BootstrapBlazor.ImageCropper/ImageCropperOption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ImageCropperOption
3535
/// </summary>
3636
/// <remarks>默认情况下,裁剪框具有自由比例。 设置为1, 裁剪区默认正方形</remarks>
3737
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
38-
public int? AspectRatio { get; set; }
38+
public float? AspectRatio { get; set; }
3939

4040
/// <summary>
4141
/// Re-render the cropper when resizing the window. default tue

0 commit comments

Comments
 (0)