Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui-react
提交
5145e96b
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,发现更多精彩内容 >>
未验证
提交
5145e96b
编写于
8月 24, 2022
作者:
_
__Oasis__
提交者:
GitHub
8月 24, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: checkbox 组件的全选 demo 无法高亮全选按钮 (#239)
上级
9bef2157
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
5 addition
and
5 deletion
+5
-5
src/packages/checkbox/demo.tsx
src/packages/checkbox/demo.tsx
+1
-0
src/packages/checkboxgroup/checkboxgroup.tsx
src/packages/checkboxgroup/checkboxgroup.tsx
+0
-1
src/packages/tabbar/doc.en-US.md
src/packages/tabbar/doc.en-US.md
+1
-1
src/packages/tabbar/doc.md
src/packages/tabbar/doc.md
+1
-1
src/packages/tabbar/doc.zh-TW.md
src/packages/tabbar/doc.zh-TW.md
+1
-1
src/packages/tabbaritem/tabbaritem.tsx
src/packages/tabbaritem/tabbaritem.tsx
+1
-1
未找到文件。
src/packages/checkbox/demo.tsx
浏览文件 @
5145e96b
...
@@ -309,6 +309,7 @@ const CheckboxDemo = () => {
...
@@ -309,6 +309,7 @@ const CheckboxDemo = () => {
if
(
state
)
{
if
(
state
)
{
setIndeterminate
(
false
)
setIndeterminate
(
false
)
}
}
setCheckbox1
(
state
)
;(
checkboxgroup3Ref
.
current
as
any
).
toggleAll
(
state
)
;(
checkboxgroup3Ref
.
current
as
any
).
toggleAll
(
state
)
}
}
}
}
>
>
...
...
src/packages/checkboxgroup/checkboxgroup.tsx
浏览文件 @
5145e96b
...
@@ -35,7 +35,6 @@ export const CheckboxGroup = React.forwardRef(
...
@@ -35,7 +35,6 @@ export const CheckboxGroup = React.forwardRef(
const
childrenLabel
:
string
[]
=
[]
const
childrenLabel
:
string
[]
=
[]
React
.
Children
.
map
(
children
,
(
child
)
=>
{
React
.
Children
.
map
(
children
,
(
child
)
=>
{
const
childProps
=
(
child
as
any
).
props
const
childProps
=
(
child
as
any
).
props
console
.
log
(
child
)
childrenLabel
.
push
(
childProps
.
label
||
(
child
as
any
).
children
)
childrenLabel
.
push
(
childProps
.
label
||
(
child
as
any
).
children
)
})
})
setInnerValue
(
childrenLabel
)
setInnerValue
(
childrenLabel
)
...
...
src/packages/tabbar/doc.en-US.md
浏览文件 @
5145e96b
...
@@ -182,7 +182,7 @@ export default App;
...
@@ -182,7 +182,7 @@ export default App;
| href | Jump link of tab page; if
`to`
exists at the same time, it takes precedence over to | String | -- |
| href | Jump link of tab page; if
`to`
exists at the same time, it takes precedence over to | String | -- |
| to | The route object of the tab, equal to React Router's
[
to Prop
](
https://v5.reactrouter.com/web/api/Link/to-string
)
Prop | any | -- |
| to | The route object of the tab, equal to React Router's
[
to Prop
](
https://v5.reactrouter.com/web/api/Link/to-string
)
Prop | any | -- |
| num | The numerical corner mark in the upper right corner of the tab, if it exceeds 99, it will be 99+ | Number | -- |
| num | The numerical corner mark in the upper right corner of the tab, if it exceeds 99, it will be 99+ | Number | -- |
| classPrefix | 自Custom icon class name prefix for using custom icons | String | 'nut
ui-iconfont
' |
| classPrefix | 自Custom icon class name prefix for using custom icons | String | 'nut
-icon
' |
| dot | Whether to display the little red dot in the upper right corner of the icon | Boolean | false |
| dot | Whether to display the little red dot in the upper right corner of the icon | Boolean | false |
...
...
src/packages/tabbar/doc.md
浏览文件 @
5145e96b
...
@@ -179,7 +179,7 @@ export default App;
...
@@ -179,7 +179,7 @@ export default App;
| href | 标签页的跳转链接;如果同时存在
`to`
,优先级高于 to | String | -- |
| href | 标签页的跳转链接;如果同时存在
`to`
,优先级高于 to | String | -- |
| to | 标签页的路由对象,等于 React Router 的
[
to 属性
](
https://v5.reactrouter.com/web/api/Link/to-string
)
属性 | any | -- |
| to | 标签页的路由对象,等于 React Router 的
[
to 属性
](
https://v5.reactrouter.com/web/api/Link/to-string
)
属性 | any | -- |
| num | 页签右上角的数字角标,超出99之后为99+ | Number | -- |
| num | 页签右上角的数字角标,超出99之后为99+ | Number | -- |
| classPrefix
`v1.2.2`
| 自定义icon 类名前缀,用于使用自定义图标 | String | 'nut
ui-iconfont
' |
| classPrefix
`v1.2.2`
| 自定义icon 类名前缀,用于使用自定义图标 | String | 'nut
-icon
' |
| dot
`v1.2.2`
| 是否显示图标右上角小红点 | Boolean | false |
| dot
`v1.2.2`
| 是否显示图标右上角小红点 | Boolean | false |
...
...
src/packages/tabbar/doc.zh-TW.md
浏览文件 @
5145e96b
...
@@ -182,7 +182,7 @@ export default App;
...
@@ -182,7 +182,7 @@ export default App;
| href | 標籤頁的跳轉鏈接;如果同時存在
`to`
,優先級高於 to | String | -- |
| href | 標籤頁的跳轉鏈接;如果同時存在
`to`
,優先級高於 to | String | -- |
| to | 標籤頁的路由對象,等於 React Router 的
[
to 屬性
](
https://v5.reactrouter.com/web/api/Link/to-string
)
屬性 | any | -- |
| to | 標籤頁的路由對象,等於 React Router 的
[
to 屬性
](
https://v5.reactrouter.com/web/api/Link/to-string
)
屬性 | any | -- |
| num | 頁簽右上角的數字角標,超出99之後為99+ | Number | -- |
| num | 頁簽右上角的數字角標,超出99之後為99+ | Number | -- |
| classPrefix | 自定義icon 類名前綴,用於使用自定義圖標 | String | 'nut
ui-iconfont
' |
| classPrefix | 自定義icon 類名前綴,用於使用自定義圖標 | String | 'nut
-icon
' |
| dot | 是否顯示圖標右上角小紅點 | Boolean | false |
| dot | 是否顯示圖標右上角小紅點 | Boolean | false |
...
...
src/packages/tabbaritem/tabbaritem.tsx
浏览文件 @
5145e96b
...
@@ -22,7 +22,7 @@ export interface TabbarItemProps {
...
@@ -22,7 +22,7 @@ export interface TabbarItemProps {
const
defaultProps
=
{
const
defaultProps
=
{
dot
:
false
,
dot
:
false
,
size
:
''
,
size
:
''
,
classPrefix
:
'
nut
ui-iconfont
'
,
classPrefix
:
'
nut
-icon
'
,
tabTitle
:
''
,
tabTitle
:
''
,
icon
:
''
,
icon
:
''
,
href
:
''
,
href
:
''
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录