Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
6f5ee7ad
Commit
6f5ee7ad
authored
Jan 12, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 时间选择器增加默认visible属性
parent
764f475e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
index.js
packages/base-components/TimeRangePicker/src/index.js
+4
-1
No files found.
packages/base-components/TimeRangePicker/src/index.js
View file @
6f5ee7ad
...
...
@@ -16,8 +16,9 @@ const TimeRangePicker = ({
dataSource
,
timeProps
,
onChange
,
defaultVisible
})
=>
{
const
[
visible
,
setVisible
]
=
useState
(
fals
e
);
const
[
visible
,
setVisible
]
=
useState
(
defaultVisibl
e
);
const
[
visibleKey
,
setVisibleKey
]
=
useState
(
null
);
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
...
...
@@ -104,6 +105,7 @@ TimeRangePicker.defaultProps = {
dataSource
:
[],
timeProps
:
{},
onChange
:
function
(
v
)
{},
defaultVisible
:
false
};
TimeRangePicker
.
propTypes
=
{
...
...
@@ -114,6 +116,7 @@ TimeRangePicker.propTypes = {
dataSource
:
PropTypes
.
array
,
timeProps
:
PropTypes
.
object
,
onChange
:
PropTypes
.
func
,
defaultVisible
:
PropTypes
.
bool
};
export
default
TimeRangePicker
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment