
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
bee-breadcrumb
Advanced tools
Breadcrumb
常用来指定当前页面位置,添加类active
类激活Breadcrumb.Item.不要同时设置active
和href
,设置了active
会将子元素渲染成span
,覆盖a
.
使用单独的bee-breadcrumb包
先进行下载bee-breadcrumb包
npm install --save bee-breadcrumb
组件调用
import Alert from 'bee-breadcrumb';
React.render(<div>
<Breadcrumb>
<Breadcrumb.Item href="#">
Home
</Breadcrumb.Item>
<Breadcrumb.Item href='http://getbootstrap.com/components/#breadcrumbs'>
Library
</Breadcrumb.Item>
<Breadcrumb.Item active>
Data
</Breadcrumb.Item>
</Breadcrumb>
</div>, document.getElementById('target'));
<link rel="stylesheet" href="./node_modules/build/bee-breadcrumb.css">
import "./node_modules/src/Breadcrumb.scss"
//或是
import "./node_modules/build/bee-breadcrumb.css"
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
active | 如果设置成true,渲染成span而不是a | bool | false |
href | 给内部a标签设置的属性 | string | '' |
title | 给内部a标签设置的属性 | string | '' |
$ git clone https://github.com/tinper-bee/bee-breadcrumb
$ cd bee-breadcrumb
$ npm install
$ npm run dev
FAQs
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
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.