Skip to content

feat(progress): add Element Plus aligned QelProgress - #18

Open
CPythoner wants to merge 1 commit into
developfrom
feat/qel-progress
Open

CPythoner wants to merge 1 commit into
developfrom
feat/qel-progress

Conversation

@CPythoner

Copy link
Copy Markdown
Owner

Reference baseline

Element Plus 2.14.6, verified as the current stable release.

API alignment

QelProgress covers the current Progress API:

  • type: line / circle / dashboard
  • percentage
  • status: normal / success / exception / warning
  • indeterminate
  • duration
  • stroke-width
  • stroke-linecap: butt / round / square
  • text-inside
  • width
  • show-text
  • color
  • striped
  • striped-flow
  • format

Color supports all three Element Plus forms:

  • fixed color string
  • ordered percentage thresholds
  • percentage -> color function

The Element Plus scoped default slot maps to:

  • setContentRenderer(percentage -> QWidget*)

Rendering

QelProgress is Qt-native and self-painted with QPainter:

  • linear progress
  • circular progress
  • dashboard arc
  • track and semantic status colors
  • status icons via QelIcon
  • internal/external text
  • stripe rendering
  • striped-flow animation
  • indeterminate animation
  • 600ms smooth percentage transition for line/circle/dashboard

Official documentation example coverage

QelShow mirrors all 8 official Element Plus 2.14.6 Progress examples:

  1. Linear progress bar
  2. Internal percentage
  3. Custom color
  4. Customized content
  5. Circular progress bar
  6. Dashboard progress bar
  7. Indeterminate progress
  8. Striped progress

Interactive examples include:

  • plus/minus percentage controls
  • custom color function and threshold arrays
  • automatic dashboard updates
  • scoped custom content
  • different animation durations

Qt-native mappings

  • SVG circle/dashboard paths -> QPainter arcs
  • CSS transition -> internal 600ms progress interpolation
  • CSS keyframes -> QTimer-driven indeterminate / striped-flow animation
  • Vue scoped slot -> QWidget content renderer
  • Element Plus status icons -> QelIcon

Showcase

QelProgressTester uses a scroll area so all official examples remain inspectable inside QelShow.

Testing

  • Static API/definition review completed.
  • All QelProgress declarations have implementations.
  • All 8 official example sections are present in QelShow.
  • Branch is based on current develop with no divergence.
  • This environment does not contain Qt/qmake, so local Qt compilation is still required before merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant