mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 01:11:52 +08:00
826df9d055
* feat: new demo for switch, radio, slider and inputnumber * fix: remove some blank in demo doc api section * fix: format the code in demo * fix: checkbox and switch Co-authored-by: ElderJames <shunjiey@hotmail.com>
26 lines
577 B
C#
26 lines
577 B
C#
using Microsoft.AspNetCore.Components;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AntBlazor
|
|
{
|
|
public class SliderMark
|
|
{
|
|
public double Key { get; }
|
|
public RenderFragment Value { get; }
|
|
public string Style { get; }
|
|
|
|
public SliderMark(double key, string value)
|
|
{
|
|
Key = key;
|
|
Value = (b) => b.AddContent(0, value);
|
|
}
|
|
|
|
public SliderMark(double key, RenderFragment value, string style)
|
|
{
|
|
Key = key;
|
|
Value = value;
|
|
Style = style;
|
|
}
|
|
}
|
|
}
|