[BUG] vscode/微信开发者工具中没有补全能力
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 30/100
Research direction
Start with the app.json useExtendedLib configuration and the page JSON usingComponents entries shown in the report, then inspect how the listed VS Code plugins handle these component paths. Compare completion for component names and properties in the reported setup. Done means the relevant editor can provide both kinds of completion for the WeUI components, or the limitation is documented.
Written by the indexing model from the issue text.
Description
Bug描述
使用微信开发者工具或vscode进行微信小程序开发,使用weui组件库时无法为引入的components提供补全能力。
复现方式
app.json:
"useExtendedLib": {
"weui": true
}
%%page%%.json:
{
"usingComponents": {
"mp-toptips": "weui-miniprogram/toptips/toptips",
"mp-cells": "weui-miniprogram/cells/cells",
"mp-cell": "weui-miniprogram/cell/cell",
"mp-checkbox": "weui-miniprogram/checkbox/checkbox",
"mp-checkbox-group": "weui-miniprogram/checkbox-group/checkbox-group",
"mp-form": "weui-miniprogram/form/form",
"mp-dialog": "weui-miniprogram/dialog/dialog"
}
}
VS Code
有组件名提示,无属性提示,运行正常。


插件列表:
- minapp
- vscode wxml
- vscode-icons
- wechat-snippet
- wxml
以上插件均未进行额外配置。
微信开发者工具
无组件名提示、无属性提示,运行正常。

版本信息
- weui 版本 : useExtendedLib
初次接触,不知是哪步问题?另外,使用weui样式库时也有类似的需求,但现象可能不同,如有方案还请告知,谢谢各位。
- Dominant language
- TypeScript
- Stars
- 2.4k
- Forks
- 549
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from wechat-miniprogram/weui-miniprogram
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
[BUG] Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 28/100
All issues in wechat-miniprogram/weui-miniprogram
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
TanStack/tanstack.com#1293 ·