2020-04-30 01:21:06 +08:00
|
|
|
|
using Microsoft.AspNetCore.Components;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-04-30 01:21:06 +08:00
|
|
|
|
{
|
2020-05-28 16:56:52 +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; }
|
|
|
|
|
|
2020-05-28 16:56:52 +08:00
|
|
|
|
public SliderMark(double key, string value)
|
2020-04-30 01:21:06 +08:00
|
|
|
|
{
|
|
|
|
|
Key = key;
|
|
|
|
|
Value = (b) => b.AddContent(0, value);
|
|
|
|
|
}
|
|
|
|
|
|
2020-05-28 16:56:52 +08:00
|
|
|
|
public SliderMark(double key, RenderFragment value, string style)
|
2020-04-30 01:21:06 +08:00
|
|
|
|
{
|
|
|
|
|
Key = key;
|
|
|
|
|
Value = value;
|
|
|
|
|
Style = style;
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-28 16:56:52 +08:00
|
|
|
|
}
|