Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui-react
提交
15b4429f
N
nutui-react
项目概览
京东前端
/
nutui-react
通知
0
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nutui-react
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
15b4429f
编写于
3月 13, 2023
作者:
E
eiinu
提交者:
GitHub
3月 13, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(fixednav): icon 组件替换 (#776)
上级
5c6d29d3
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
18 addition
and
35 deletion
+18
-35
src/packages/fixednav/demo.taro.tsx
src/packages/fixednav/demo.taro.tsx
+4
-5
src/packages/fixednav/demo.tsx
src/packages/fixednav/demo.tsx
+2
-4
src/packages/fixednav/doc.en-US.md
src/packages/fixednav/doc.en-US.md
+2
-2
src/packages/fixednav/doc.md
src/packages/fixednav/doc.md
+2
-2
src/packages/fixednav/doc.taro.md
src/packages/fixednav/doc.taro.md
+2
-2
src/packages/fixednav/doc.zh-TW.md
src/packages/fixednav/doc.zh-TW.md
+2
-2
src/packages/fixednav/fixednav.taro.tsx
src/packages/fixednav/fixednav.taro.tsx
+2
-9
src/packages/fixednav/fixednav.tsx
src/packages/fixednav/fixednav.tsx
+2
-9
未找到文件。
src/packages/fixednav/demo.taro.tsx
浏览文件 @
15b4429f
import
React
,
{
useState
,
MouseEvent
}
from
'
react
'
import
{
FixedNav
,
Drag
,
Icon
}
from
'
@/packages/nutui.react.taro
'
import
Header
from
'
@/sites/components/header
'
import
Taro
from
'
@tarojs/taro
'
import
{
Retweet
}
from
'
@nutui/icons-react-taro
'
import
{
FixedNav
,
Drag
}
from
'
@/packages/nutui.react.taro
'
import
Header
from
'
@/sites/components/header
'
import
{
useTranslate
}
from
'
@/sites/assets/locale/taro
'
type
TFixedNavDemo
=
{
...
...
@@ -168,9 +169,7 @@ const FixedNavDemo = () => {
}
slotBtn
=
{
<>
<
Icon
name
=
"retweet"
color
=
"#fff"
>
{
'
'
}
</
Icon
>
<
Retweet
color
=
"#fff"
/>
<
span
className
=
"text"
>
{
visible4
?
translated
.
title4
:
translated
.
title5
}
</
span
>
...
...
src/packages/fixednav/demo.tsx
浏览文件 @
15b4429f
import
React
,
{
useState
,
MouseEvent
}
from
'
react
'
import
{
Retweet
}
from
'
@nutui/icons-react
'
import
{
useTranslate
}
from
'
../../sites/assets/locale
'
import
{
Icon
}
from
'
../icon/icon
'
import
{
FixedNav
}
from
'
./fixednav
'
import
Drag
from
'
../drag
'
...
...
@@ -168,9 +168,7 @@ const FixedNavDemo = () => {
}
slotBtn
=
{
<>
<
Icon
name
=
"retweet"
color
=
"#fff"
>
{
'
'
}
</
Icon
>
<
Retweet
color
=
"#fff"
/>
<
span
className
=
"text"
>
{
visible4
?
translated
.
title4
:
translated
.
title5
}
</
span
>
...
...
src/packages/fixednav/doc.en-US.md
浏览文件 @
15b4429f
...
...
@@ -309,8 +309,8 @@ export default App;
| type | navigation direction, optional left right | string |
`right`
|
| overlay | Whether to show the mask when expanding | boolean |
`true`
|
| position | fixed vertical position | object |
`{top: 'auto', bottom: 'auto'}`
|
| slotList | Customize expanded list content |
HTMLElement
| - |
| slotBtn | custom button |
HTMLElement
| - |
| slotList | Customize expanded list content |
ReactNode
| - |
| slotBtn | custom button |
ReactNode
| - |
### Event
...
...
src/packages/fixednav/doc.md
浏览文件 @
15b4429f
...
...
@@ -313,8 +313,8 @@ export default App;
| type | 导航方向,可选值 left right | string |
`right`
|
| overlay | 展开时是否显示遮罩 | boolean |
`true`
|
| position | fixed 垂直位置 | object |
`{top: 'auto', bottom: 'auto'}`
|
| slotList | 自定义展开列表内容 |
HTMLElement
| - |
| slotBtn | 自定义按钮 |
HTMLElement
| - |
| slotList | 自定义展开列表内容 |
ReactNode
| - |
| slotBtn | 自定义按钮 |
ReactNode
| - |
### Event
...
...
src/packages/fixednav/doc.taro.md
浏览文件 @
15b4429f
...
...
@@ -312,8 +312,8 @@ export default App;
| type | 导航方向,可选值 left right | string |
`right`
|
| overlay | 展开时是否显示遮罩 | boolean |
`true`
|
| position | fixed 垂直位置 | object |
`{top: 'auto', bottom: 'auto'}`
|
| slotList | 自定义展开列表内容 |
HTMLElement
| - |
| slotBtn | 自定义按钮 |
HTMLElement
| - |
| slotList | 自定义展开列表内容 |
ReactNode
| - |
| slotBtn | 自定义按钮 |
ReactNode
| - |
### Event
...
...
src/packages/fixednav/doc.zh-TW.md
浏览文件 @
15b4429f
...
...
@@ -313,8 +313,8 @@ export default App;
| type | 導航方向,可選值 left right | string |
`right`
|
| overlay | 展開時是否顯示遮罩 | boolean |
`true`
|
| position | fixed 垂直位置 | object |
`{top: 'auto', bottom: 'auto'}`
|
| slotList | 自定義展開列表內容 |
HTMLElement
| - |
| slotBtn | 自定義按鈕 |
HTMLElement
| - |
| slotList | 自定義展開列表內容 |
ReactNode
| - |
| slotBtn | 自定義按鈕 |
ReactNode
| - |
### Event
...
...
src/packages/fixednav/fixednav.taro.tsx
浏览文件 @
15b4429f
import
React
,
{
FunctionComponent
,
MouseEvent
}
from
'
react
'
import
classNames
from
'
classnames
'
import
Icon
from
'
@/packages/icon/index.
taro
'
import
{
Left
}
from
'
@nutui/icons-react-
taro
'
import
Overlay
from
'
@/packages/overlay/index.taro
'
import
bem
from
'
@/utils/bem
'
import
{
useConfig
}
from
'
@/packages/configprovider/configprovider.taro
'
...
...
@@ -56,8 +56,6 @@ export const FixedNav: FunctionComponent<
type
,
slotList
,
slotBtn
,
iconClassPrefix
,
iconFontClassName
,
...
rest
}
=
{
...
defaultProps
,
...
...
@@ -115,12 +113,7 @@ export const FixedNav: FunctionComponent<
<
div
className
=
"nut-fixednav__btn"
onClick
=
{
()
=>
onUpdateValue
()
}
>
{
slotBtn
||
(
<>
<
Icon
classPrefix
=
{
iconClassPrefix
}
fontClassName
=
{
iconFontClassName
}
name
=
"left"
color
=
"#fff"
/>
<
Left
color
=
"#fff"
/>
<
div
className
=
"text"
>
{
visible
?
activeText
||
locale
.
fixednav
.
activeText
...
...
src/packages/fixednav/fixednav.tsx
浏览文件 @
15b4429f
import
React
,
{
FunctionComponent
,
MouseEvent
}
from
'
react
'
import
classNames
from
'
classnames
'
import
Icon
from
'
@/packages/icon
'
import
{
Left
}
from
'
@nutui/icons-react
'
import
Overlay
from
'
@/packages/overlay
'
import
bem
from
'
@/utils/bem
'
import
{
useConfig
}
from
'
@/packages/configprovider
'
...
...
@@ -56,8 +56,6 @@ export const FixedNav: FunctionComponent<
type
,
slotList
,
slotBtn
,
iconClassPrefix
,
iconFontClassName
,
...
rest
}
=
{
...
defaultProps
,
...
...
@@ -125,12 +123,7 @@ export const FixedNav: FunctionComponent<
<
div
className
=
"nut-fixednav__btn"
onClick
=
{
()
=>
onUpdateValue
()
}
>
{
slotBtn
||
(
<>
<
Icon
classPrefix
=
{
iconClassPrefix
}
fontClassName
=
{
iconFontClassName
}
name
=
"left"
color
=
"#fff"
/>
<
Left
color
=
"#fff"
/>
<
div
className
=
"text"
>
{
visible
?
activeText
||
locale
.
fixednav
.
activeText
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录