К содержимому

SusProgressCircular

SusProgressCircular

Круговой прогресс — determinate value или indeterminate spin.

Пакет

SusKit · Атомы (коммерческий)

Открыть в песочнице

SusKit · Atoms

Свойства

ИмяТипПо умолчанию
ValueProp<float>0fv-model
MaxProp<float>100fv-model
IndeterminateProp<bool>falsev-model
ColorProp<string>"primary"v-model
SizeProp<string>"md"v-model
WidthProp<float>3fv-model
RotateProp<float>-90fv-model
RotationSpeedProp<float>4fv-model
LabelTextProp<string>""v-model

Слоты

Имя
label

События

Публичных событий нет.

Хуки стиля

Контракт USS-классов — внешний вид переопределяется без правки C#. Состояния переключаются этими классами:

  • sus-progress-circular
  • sus-progress-circular__canvas
  • sus-progress-circular__content
  • sus-progress-circular__label
  • sus-progress-circular--danger
  • sus-progress-circular--indeterminate
  • sus-progress-circular--lg
  • sus-progress-circular--md
  • sus-progress-circular--primary
  • sus-progress-circular--secondary
  • sus-progress-circular--sm
  • sus-progress-circular--success
  • sus-progress-circular--warning
  • sus-progress-circular--white
  • sus-progress-circular--xl
  • sus-progress-circular--xs

Использование

xml
<template>
  <sus:SusProgressCircular :Value="LoadPct.Value"
                           Max="100"
                           Color="primary"
                           Size="md"
                           LabelText="42%" />
</template>

<script>
public Prop<float> LoadPct = new(42f);
</script>
csharp
var ring = new SusProgressCircular();
ring.Indeterminate.Value = true;
ring.Color.Value = "primary";
ring.Size.Value = "lg";

Размер

xs · sm · md · lg · xl

Заметки

  • Слот label заменяет LabelText, когда нужен произвольный контент по центру.
  • Width — толщина обводки; Rotate / RotationSpeed настраивают вращение в indeterminate-режиме.