Files
2026-04-26 22:50:03 +08:00

39 lines
1.4 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Text;
namespace Acdiu.AspNetCore.Mvc.Commons.Constants
{
/// <summary>
/// 全局 UI 常量定义
/// </summary>
public static class UIConstants
{
/// <summary>
/// 资源路径常量
/// </summary>
public static class Paths
{
/// <summary>
/// 默认 Bootstrap Icons SVG Sprite 文件路径
/// </summary>
public const string DefaultIconSprite = "/lib/bootstrap-icons-1.13.1/bootstrap-icons.svg";
}
/// <summary>
/// BS SVG 图标默认需要添加的 CSS 类名
/// </summary>
public static class Classes
{
/// <summary>
/// 默认宽度类名适配响应式根字号1rem。如果用户未指定宽度则默认添加这些类名以确保图标大小适中且响应式。用户可以通过添加其他类名覆盖这些默认值。
/// </summary>
public const string DefaultWidth = "w-1r";
/// <summary>
/// 默认高度类名适配响应式根字号1rem。如果用户未指定高度则默认添加这些类名以确保图标大小适中且响应式。用户可以通过添加其他类名覆盖这些默认值。
/// </summary>
public const string DefaultHeight = "h-1r";
}
}
}