0 Kommentare (0 Kommentare)0 Reaktionen (0 Reaktionen)0 zugewiesene Personen (0 zugewiesene Personen)JavaScript420 Stars (420 Stars)27 Forks (27 Forks)user submission
enhancementhelp wanted
Beschreibung
Currently you can only use it in stateful components since the current implementation need to access $options.
Contributor Guide
- Tech Stack
- vuejavascript
- Domain
- frontend
- Issue Type
- feature
- SchwierigkeitGeschätzte Implementierungsschwierigkeit für neue Contributors, von 1 für sehr kleine Änderungen bis 5 für Expertenarbeit.
- 3
- Geschätzte ZeitEin grober Zeitrahmen, um zu recherchieren, zu implementieren, zu testen und einen Pull Request vorzubereiten.
- half day
- AktivitätsstatusWie verfügbar das Issue gerade wirkt: frisch, aktiv, stale, blockiert oder wartet auf Maintainer-Input.
- stale
- KlarheitWie klar das Issue die erwartete Änderung, Akzeptanzkriterien und den nächsten Schritt erklärt.
- clear
- Voraussetzungen
- Understanding of Vue functional componentsFamiliarity with styled vue source code
- EinsteigerfreundlichkeitEin Score von 1 bis 100, der schätzt, wie zugänglich dieses Issue für First-Time Contributors ist.
- 40
- Research-Richtung
- The issue requests support for Vue functional components. Currently, the implementation uses $options which is only available in stateful components. To add support, you need to modify the library to detect functional components and handle them differently. Look at Vue's documentation on functional components, especially the render function context. Then examine the source files in the styled vue repo, likely in the main index.js or src folder, to understand how styles are applied. Check if there are any existing PRs or discussions for inspiration. Consider using a different mechanism, like injecting a prop or using the component's context, to make styles work without $options.