0 commentaires (0 commentaires)0 réactions (0 réactions)0 assignés (0 assignés)JavaScript420 stars (420 stars)27 forks (27 forks)user submission
enhancementhelp wanted
Description
Currently you can only use it in stateful components since the current implementation need to access $options.
Guide contributeur
- Stack technique
- vuejavascript
- Domaine
- frontend
- Type d'issue
- feature
- DifficultéDifficulté estimée pour un nouveau contributeur, de 1 pour un très petit changement à 5 pour un travail expert.
- 3
- Temps estiméFourchette de temps approximative pour investiguer, implémenter, tester et préparer une pull request.
- half day
- Statut d'activitéDisponibilité apparente de l'issue : fraîche, active, ancienne, bloquée ou en attente d'un mainteneur.
- stale
- ClartéClarté avec laquelle l'issue explique le changement attendu, les critères d'acceptation et la prochaine étape.
- clear
- Prérequis
- Understanding of Vue functional componentsFamiliarity with styled vue source code
- Accessibilité débutantScore de 1 à 100 estimant l'accessibilité de cette issue pour un premier contributeur.
- 40
- Direction de recherche
- 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.