ant-design-blazor/components/slider/SliderMark.cs

26 lines
577 B
C#
Raw Normal View History

2020-04-30 01:21:06 +08:00
using Microsoft.AspNetCore.Components;
using System.Collections.Generic;
namespace AntDesign
2020-04-30 01:21:06 +08:00
{
public class SliderMark
2020-04-30 01:21:06 +08:00
{
public double Key { get; }
public RenderFragment Value { get; }
public string Style { get; }
public SliderMark(double key, string value)
2020-04-30 01:21:06 +08:00
{
Key = key;
Value = (b) => b.AddContent(0, value);
}
public SliderMark(double key, RenderFragment value, string style)
2020-04-30 01:21:06 +08:00
{
Key = key;
Value = value;
Style = style;
}
}
}