Skip to content

Commit 6db0fe5

Browse files
authored
feat(ImageCorpper): update AspectRatio type to float (#456)
* feat: 更改 AspectRatio 数据类型为 float * chore: bump version 9.0.1
1 parent e9b1fd2 commit 6db0fe5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/BootstrapBlazor.ImageCropper/BootstrapBlazor.ImageCropper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>9.0.0</Version>
4+
<Version>9.0.1</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

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)