
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
Pbui-wx 是一套基于微信小程序的基础样式组件库,于 2021 年开发上线。
使用 Pbui-wx 前,请确保你已经学习过微信官方的 小程序简易教程 和 自定义组件介绍。
npm i pbui-wx
{
...
"setting": {
...
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./"
}
]
}
}
{
...
"setting": {
...
"packNpmManually": true,
"packNpmRelationList": [
{
"packageJsonPath": "./package.json",
"miniprogramNpmDistDir": "./miniprogram/"
}
]
}
}
打开微信开发者工具,点击 工具 -> 构建 npm,并勾选 使用 npm 模块 选项,构建完成后,即可引入组件。
以 pb-table 组件为例,只需要在app.json或index.json中配置 pb-table 对应的路径即可。
"usingComponents": {
"pb-table": "pbui-wx/pb-table/pb-table"
}
引入组件后,可以在 wxml 中直接使用组件
<pb-table></pb-table>
"usingComponents": {
"pb-button": "pbui-wx/pb-button/pb-button"
}
<pb-button></pb-button>
| 属性名 | 示例属性值 | 类型 | 说明 |
|---|---|---|---|
| pbText | 按钮 | String | 按钮显示内容 |
| pbClass | pbClass | Object | 自定义样式 |
| bindmyevent | pbClick | Object | 点击事件 |
"usingComponents": {
"pb-table": "pbui-wx/pb-table/pb-table"
}
<pb-table></pb-table>
| 属性名 | 示例属性值 | 类型 | 说明 |
|---|---|---|---|
| pbList | pbList | Array | 列表显示内容列表 |
| pbClass | pbClass | Object | 自定义样式 |
开发中...
FAQs
pbui-wx组件库
We found that pbui-wx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.