[RFC] NavBar
See original GitHub issueNavBar 导航栏
属性
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
title | 标题文字 | string | - |
leftArrow | 是否显示左侧箭头 | boolean | true |
onLeftClick | 导航左侧点击回调 | () => void | - |
rightContent | 导航右侧内容 | ReactNode | - |
border | 是否显示下边框 | boolean | false |
fixed | 是否固定在顶部 | boolean | false |
placeholder | 固定在顶部时,是否在对应位置生成一个等高的占位元素 | boolean | false |
CSS 变量
属性 | 说明 | 默认值 |
---|---|---|
–z-index | 导航栏 z-index | –adm-z-index-nav-bar |
问题:
--adm-z-index-nav-bar
取多少合适呢?
border
、fixed
、placeholder
有没有必要做
主要参考:
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
RFC 5829: Link Relation Types for Simple Version Navigation ...
RFC 5829 Version Navigation Link Relations April 2010 1. Introduction This specification defines a set of link relation types that may be used...
Read more >[RFC] Refactor main navbar · Discussion #1728 · stashapp/stash
we need to maintain single-click navigation for at least the most used buttons. I know that I will be bothered if I suddenly...
Read more >Template:RFC Navigation - FlightGear wiki
This template is used on top of pages with proposals in Category:RFC. Usage. Add this to the top of the page: {{RFC Navigation}}....
Read more >[RFC] Move navbar(s) to new template file (navbar_header.html)
Would it be a good idea to move the <div class="navbar"> section to a new template file navbar_header.html? It's gotten pretty big.
Read more >Layouts RFC - Next.js
It should be easy to create layouts that can be nested, shared across routes, and have their state preserved on navigation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
嗯嗯可以的~有些设计风格下的箭头可能是
<-
而不是<
稍微调整了一下,
back
left
right
是并列的关系backArrow
是附属于back
的,默认为true
,back
默认为''
空字符串,所以默认状态下是只展示一个返回箭头。如果用户把back
设置为null
,那么就整个返回按钮都没有了,不论backArrow
是什么值。