1 comment (1 comment)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript20,428 stars (20,428 stars)2,080 forks (2,080 forks)batch import
help wantedwontfix
Description
做了测试后,发现vue暂不支持v-once,由于项目优化有需求,还是希望大佬会支持这个功能。
Contributor guide
- Tech stack
- vue
- Domain
- mobilefrontend
- Issue type
- feature
- DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
- 4
- Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
- 1-2 days
- Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
- stale
- ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
- clear
- Prerequisites
- Vue.jstemplate compilation
- Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
- 20
- Research direction
- Investigate how Vue implements the v once directive in its compiler (see src/compiler/directives/). Mpvue's compiler is based on Vue's, so replicate the logic for mpvue's template transformation. Ensure that v once works for mini program templates. Look at existing directives like v if or v for for guidance on how they handle in mpvue. No existing PRs or comments provide additional context.