SusProgressCircular

Круговой прогресс — determinate value или indeterminate spin.
Пакет
SusKit · Атомы (коммерческий)
Свойства
| Имя | Тип | По умолчанию | |
|---|---|---|---|
Value | Prop<float> | 0f | v-model |
Max | Prop<float> | 100f | v-model |
Indeterminate | Prop<bool> | false | v-model |
Color | Prop<string> | "primary" | v-model |
Size | Prop<string> | "md" | v-model |
Width | Prop<float> | 3f | v-model |
Rotate | Prop<float> | -90f | v-model |
RotationSpeed | Prop<float> | 4f | v-model |
LabelText | Prop<string> | "" | v-model |
Слоты
| Имя |
|---|
label |
События
Публичных событий нет.
Хуки стиля
Контракт USS-классов — внешний вид переопределяется без правки C#. Состояния переключаются этими классами:
sus-progress-circularsus-progress-circular__canvassus-progress-circular__contentsus-progress-circular__labelsus-progress-circular--dangersus-progress-circular--indeterminatesus-progress-circular--lgsus-progress-circular--mdsus-progress-circular--primarysus-progress-circular--secondarysus-progress-circular--smsus-progress-circular--successsus-progress-circular--warningsus-progress-circular--whitesus-progress-circular--xlsus-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-режиме.