Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gehongyan committed Nov 15, 2024
1 parent 151e82a commit f278194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public ImageElementBuilder()
/// <param name="size"> 图片的大小。 </param>
/// <param name="circle"> 图片是否应渲染为圆形。 </param>
/// <remarks>
/// <paramref name="size"/> 仅在 <see cref="ContextModuleBuilder"/> 中生效,<see cref="ContainerModule"/> 中不生效。
/// <paramref name="size"/> 仅在 <see cref="ContextModuleBuilder"/> 中生效,<see cref="ContainerModuleBuilder"/> 中不生效。
/// </remarks>
public ImageElementBuilder(string source, string? alternative = null, ImageSize? size = null, bool circle = false)
{
Expand Down Expand Up @@ -57,7 +57,7 @@ public ImageElementBuilder(string source, string? alternative = null, ImageSize?
/// 获取或设置 <see cref="ImageElementBuilder"/> 的图片大小。
/// </summary>
/// <remarks>
/// 当前属性仅在 <see cref="ContextModuleBuilder"/> 中生效,<see cref="ContainerModule"/> 中不生效。
/// 当前属性仅在 <see cref="ContextModuleBuilder"/> 中生效,<see cref="ContainerModuleBuilder"/> 中不生效。
/// </remarks>
public ImageSize? Size { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public override ImageSize Read(ref Utf8JsonReader reader, Type typeToConvert, Js
{
"sm" => ImageSize.Small,
"lg" => ImageSize.Large,
_ => throw new ArgumentOutOfRangeException(nameof(CardSize))
_ => throw new ArgumentOutOfRangeException(nameof(ImageSize))
};
}

Expand Down

0 comments on commit f278194

Please sign in to comment.