GitShow/antfu/v-lazy-show
antfu

v-lazy-show

Compile-time directive to lazy initialize v-show for Vue

by antfu
Star on GitHubForknpm

TypeScript

500 stars18 forks4 contributorsQuiet · 1y agoSince 2023v0.2.4MIT

Meet the team

See all 4 on GitHub →
antfu
antfu37 contributions
lezzhao
lezzhao1 contribution
LwveMike
LwveMike1 contribution
baozouai
baozouai1 contribution

Languages

View on GitHub →
TypeScript43.4%
JavaScript38.5%
Vue13.9%
HTML4.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 1y ago
See all on GitHub →
clemvnt
fix: preserve v-lazy-show wrapper when children contain structural directivesOpenPR

Fixes #15 This fix was implemented with AI assistance. I am not deeply familiar with Vue compiler internals, so I cannot guarantee this is the optimal or most idiomatic approach.

clemvnt · 3mo ago
clemvnt
v-lazy-show drops wrapper when element contains a v-ifOpenIssue

Describe the bug Hello, When a element has a child with a , the lazy-show wrapper is discarded and only the inner directive's output is emitted. I forked the repo and added a test case. Template ` Current CSR output Current SSR output Reproduction https://github.com/clemvnt/v-lazy-show/tree/inner-v-if System Info Used Package Manager pnpm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [x] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

clemvnt · 4mo ago
feijihe
在v-for中使用v-lazy-show 等效于使用v-showOpenIssue

Describe the bug 期望: 在 能正常正常 实际结果: 在中等价于 Reproduction https://codesandbox.io/p/devbox/v-lazy-show-demo-zw6qxl?file=%2Fsrc%2FApp.vue%3A31%2C57 System Info Used Package Manager npm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [ ] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

feijihe · 1y ago

Recent fixes

View closed PRs →
feijihe
在v-for中使用v-lazy-show 等效于使用v-showClosedIssue

Describe the bug 期望: 在 能正常正常 实际结果: 在中等价于 Reproduction https://codesandbox.io/p/devbox/v-lazy-show-demo-zw6qxl?file=%2Fsrc%2FApp.vue%3A31%2C57 System Info Used Package Manager npm Validations [x] Follow our Code of Conduct [x] Read the Contributing Guide. [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [x] The provided reproduction is a minimal reproducible of the bug. Contributions [ ] I am willing to submit a PR to fix this issue [x] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

feijihe · 1y ago
jaufey
Close v-show.lazy component by itself leads to an errorClosedIssue

Describe the bug Binding a custom event handler on the same component that has v-lazy-show for closing gives an error: Reproduction https://stackblitz.com/edit/vitejs-vite-3cpoq2?file=src%2FApp.vue,src%2FChild.vue System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.

jaufey · 1y ago
anderswi
Click handler on element with v-lazy-showClosedIssue

Describe the bug Using click handler on the same element that has v-lazy-show gives an error: !image Reproduction https://stackblitz.com/edit/vitejs-vite-9s2mwn?file=src%2FApp.vue System Info Used Package Manager npm Validations [X] Follow our Code of Conduct [X] Read the Contributing Guide. [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. [X] The provided reproduction is a minimal reproducible of the bug.

anderswi · 1y ago
Structured data for AI agents

Repository: antfu/v-lazy-show. Description: Compile-time directive to lazy initialize v-show for Vue Stars: 500, Forks: 18. Primary language: TypeScript. Languages: TypeScript (43.4%), JavaScript (38.5%), Vue (13.9%), HTML (4.2%). License: MIT. Latest release: v0.2.4 (2y ago). Open PRs: 1, open issues: 3. Last activity: 1y ago. Community health: 85%. Top contributors: antfu, lezzhao, LwveMike, baozouai.

·@ofershap

Replace github.com with gitshow.dev