Last 12 weeks · 118 commits
2 of 6 standards met
Environment : 3.6.0-rc.4 : 3.2.21 ( 3.2.21) : 3.6.0-rc.4 : , Description Passing slots to the built-in component via the JSX prop fails to type-check. The slot functions return (vapor's ), but is typed as , so the returns are not assignable. Minimal reproduction Expected Type-checks cleanly — with JSX-returning slot functions is standard usage. Actual raised on both and slot returns. Root cause The slot-typing seam between Vue core and vue-jsx-vapor: types as: () vue-jsx-vapor defines as : () requires the value to be , where is (). A slot function returning () is therefore not assignable to , because includes and nested arrays rather than a plain . Workaround (works today)
测试代码在这里 https://gitcode.com/lwleen/test-vue-jsx-vapor 执行指令 正常运行调试,没有问题。(无论是否有 scss 都正常) 只要代码里出现里 defineStyle 宏定义的 scss 代码, 如下 js 调试必定报错。 运行 错误信息: PS: 未找到解决方法。 下面时报错点 console 打印的 options 不同 CLI正常调试 URL { href: 'file:///D:/vue-jsx-vapor/macros/define-style/1', ts 调用调试报错时 URL { href: "file:///vue-jsx-vapor/macros/define-style/1",
Repository: vuejs/vue-jsx-vapor. Description: Vapor Mode of Vue JSX Stars: 304, Forks: 13. Primary language: Rust. Languages: Rust (77.1%), TypeScript (16.7%), JavaScript (6.2%), HTML (0%), Vue (0%). License: MIT. Homepage: https://vuejsx.dev Latest release: v3.2.22 (2d ago). Open PRs: 1, open issues: 5. Last activity: 13h ago. Community health: 37%. Top contributors: zhiyuanzmj, github-actions[bot], arpitjain099, CodeInKlingon, edimitchel, rzzf, Azir-11.