
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
0.4.0
tab切换组件
lm-*
组件使用 npm
进行管理,命名空间统一为 lm-
,请使用以下命令进行组件安装。
npm i lm-tab --save
npm
,可通过以下方式进行 安装。npm install -g cnpm --registry=https://registry.npm.taobao.org
<Tab onChange={(index) => {console.log('tab has changed')}}>
<NavBar>
<NavBarItem>选项一</NavBarItem>
<NavBarItem>选项二</NavBarItem>
<NavBarItem>选项三</NavBarItem>
</NavBar>
<TabBody>
<TabBodyItem>选项一内容</TabBodyItem>
<TabBodyItem>选项二内容</TabBodyItem>
<TabBodyItem>选项三内容</TabBodyItem>
</TabBody>
</Tab>
<Tab type="navBar" onChange={(index) => {console.log('tab has changed')}}>
<NavBarItem label="nav1">
<p>content1</p>
</NavBarItem>
<NavBarItem label="nav2">
<p>content2</p>
</NavBarItem>
<NavBarItem label="nav3">
<p>content3</p>
</NavBarItem>
</Tab>
<Tab type="tabBar" onChange={() => {console.log('tabBox has changed')}}>
<TabBar>
<TabBarItem activeIcon={icon1Active} icon={icon1} desc="普通" />
<TabBarItem activeIcon={icon2Active} icon={icon2} desc="tab" />
<TabBarItem activeIcon={icon3Active} icon={icon3} desc="nav" />
</TabBar>
<TabBody>
<TabBodyItem>
<p>content1</p>
</TabBodyItem>
<TabBodyItem>
<p>content2</p>
</TabBodyItem>
<TabBodyItem>
<p>content3</p>
</TabBodyItem>
</TabBody>
</Tab>
<Tab type="tabBar" onChange={() => {console.log('tab2 has changed')}} defaultIndex={1}>
<TabBarItem
activeIcon={icon1Active}
icon={icon1}
desc="主页"
>
<p>1</p>
</TabBarItem>
<TabBarItem
activeIcon={icon2Active}
icon={icon2}
desc="我的"
>
<p>2</p>
</TabBarItem>
<TabBarItem
activeIcon={icon3Active}
icon={icon3}
desc="更多"
>
<p>3</p>
</TabBarItem>
</Tab>
Prop | Type | Default | Description |
---|---|---|---|
type | normal | normal | Tab的类型 |
onChange | func | undefined | 切换Tab触发事件 |
Prop | Type | Default | Description |
---|---|---|---|
activeIcon | image | undefined | 选中时的图片 必传属性 |
icon | image | undefined | 未选中的图片 必传属性 |
desc | string | undefined | 文本描述 必传属性 |
Prop | Type | Default | Description |
---|---|---|---|
label | string | undefined | 标题 label的优先级高于children |
进入项目目录后,使用 node
命令启动服务
npm run start
打包发布可通过 node
命令执行
npm run build
npm publish
FAQs
* 作者:winber * 邮箱:winberxie@163.com * 版本:**`0.4.0`**
The npm package lm-tab receives a total of 1 weekly downloads. As such, lm-tab popularity was classified as not popular.
We found that lm-tab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.