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
d02b3bf0
Commit
d02b3bf0
authored
May 11, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug
parent
af0b05af
Pipeline
#27436
failed with stages
in 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
Basic.tsx
packages/extend-components/EC_DeviceTree/src/demos/Basic.tsx
+1
-1
index.js
packages/extend-components/EC_DeviceTree/src/index.js
+6
-2
No files found.
packages/extend-components/EC_DeviceTree/src/demos/Basic.tsx
View file @
d02b3bf0
...
...
@@ -37,7 +37,7 @@ const Demo = () => {
checkable
onTreeCheck=
{
onTreeCheck
}
onTreeSelect=
{
onTreeSelect
}
deviceTreeService=
{
getDeviceList
}
deviceTreeService=
{
dtService
.
getDeviceList
}
serviceParams=
{
{
// pageIndex: 1,
...
...
packages/extend-components/EC_DeviceTree/src/index.js
View file @
d02b3bf0
...
...
@@ -37,6 +37,8 @@ const DeviceTree = (props) => {
setParams
(
param
);
},
[]);
console
.
log
(
deviceTreeService
,
'deviceTreeService'
);
const
handleData
=
(
data
)
=>
{
data
.
forEach
((
item
)
=>
{
item
.
title
=
item
.
deviceName
;
...
...
@@ -122,7 +124,6 @@ DeviceTree.defaultProps = {
serviceParams
:
{},
onTreeCheck
:
()
=>
{},
onTreeSelect
:
()
=>
{},
deviceTreeService
:
()
=>
{},
};
DeviceTree
.
propTypes
=
{
...
...
@@ -131,7 +132,10 @@ DeviceTree.propTypes = {
serviceParams
:
PropTypes
.
object
,
onTreeCheck
:
PropTypes
.
func
,
onTreeSelect
:
PropTypes
.
func
,
deviceTreeService
:
PropTypes
.
func
,
deviceTreeService
:
PropTypes
.
shape
({
then
:
PropTypes
.
func
.
isRequired
,
catch
:
PropTypes
.
func
.
isRequired
,
}),
};
export
default
DeviceTree
;
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