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
9f4ef61f
Commit
9f4ef61f
authored
Apr 21, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: bug
parent
206e7c16
Pipeline
#26336
failed with stages
in 15 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
Basic.tsx
packages/DeviceTree/src/demos/Basic.tsx
+1
-1
index.less
packages/DeviceTree/src/index.less
+8
-0
Basic.tsx
packages/QuotaSelect/src/demos/Basic.tsx
+10
-0
index.js
packages/QuotaSelect/src/index.js
+4
-4
No files found.
packages/DeviceTree/src/demos/Basic.tsx
View file @
9f4ef61f
...
@@ -79,7 +79,7 @@ const Demo = () => {
...
@@ -79,7 +79,7 @@ const Demo = () => {
};
};
return
(
return
(
<
div
style=
{
{
width
:
'
3
00px'
,
height
:
'400px'
,
border
:
'1px solid #eee'
}
}
>
<
div
style=
{
{
width
:
'
2
00px'
,
height
:
'400px'
,
border
:
'1px solid #eee'
}
}
>
<
PandaDeviceTree
<
PandaDeviceTree
onSearch=
{
onSearch
}
onSearch=
{
onSearch
}
checkable
checkable
...
...
packages/DeviceTree/src/index.less
View file @
9f4ef61f
...
@@ -12,6 +12,14 @@
...
@@ -12,6 +12,14 @@
margin: 6px 0 12px 0;
margin: 6px 0 12px 0;
}
}
.ant-tree-checkbox {
margin: 4px 2px 0 0;
}
.ant-tree-title {
white-space: nowrap;
}
&-content {
&-content {
flex: 1;
flex: 1;
overflow-y: scroll;
overflow-y: scroll;
...
...
packages/QuotaSelect/src/demos/Basic.tsx
View file @
9f4ef61f
...
@@ -19,6 +19,16 @@ const Demo = () => {
...
@@ -19,6 +19,16 @@ const Demo = () => {
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
if
(
response
.
code
==
'0'
)
{
if
(
response
.
code
==
'0'
)
{
let
curData
=
response
.
data
;
let
curData
=
response
.
data
;
curData
.
forEach
((
item
)
=>
{
item
.
decimalBit
=
item
.
DecimalBit
;
item
.
deviation
=
item
.
Deviation
;
item
.
format
=
item
.
Format
;
item
.
isShow
=
item
.
IsShow
;
item
.
name
=
item
.
Name
;
item
.
style
=
item
.
Style
;
item
.
type
=
item
.
Type
;
item
.
unit
=
item
.
Unit
;
});
setQuotaList
(
curData
);
setQuotaList
(
curData
);
}
}
})
})
...
...
packages/QuotaSelect/src/index.js
View file @
9f4ef61f
...
@@ -40,8 +40,8 @@ const QuotaSelect = ({
...
@@ -40,8 +40,8 @@ const QuotaSelect = ({
let
data
=
dataSource
.
map
((
item
)
=>
({
let
data
=
dataSource
.
map
((
item
)
=>
({
...
item
,
...
item
,
checked
:
false
,
checked
:
false
,
title
:
item
.
N
ame
,
title
:
item
.
n
ame
,
key
:
item
.
N
ame
,
key
:
item
.
n
ame
,
}));
}));
setAllQuotaList
(
data
);
setAllQuotaList
(
data
);
}
}
...
@@ -71,7 +71,7 @@ const QuotaSelect = ({
...
@@ -71,7 +71,7 @@ const QuotaSelect = ({
// 过滤重点指标
// 过滤重点指标
const
filterEmphasisQuota
=
()
=>
{
const
filterEmphasisQuota
=
()
=>
{
let
newQuotaList
=
[...
allQuotaList
];
let
newQuotaList
=
[...
allQuotaList
];
newQuotaList
=
newQuotaList
.
filter
((
item
)
=>
item
.
I
sShow
===
'1'
);
newQuotaList
=
newQuotaList
.
filter
((
item
)
=>
item
.
i
sShow
===
'1'
);
setQuotaList
(
newQuotaList
);
setQuotaList
(
newQuotaList
);
};
};
...
@@ -111,7 +111,7 @@ const QuotaSelect = ({
...
@@ -111,7 +111,7 @@ const QuotaSelect = ({
if
(
e
.
target
.
value
!==
''
)
{
if
(
e
.
target
.
value
!==
''
)
{
let
newQuotaList
=
[];
let
newQuotaList
=
[];
quotaList
.
forEach
((
item
)
=>
{
quotaList
.
forEach
((
item
)
=>
{
if
(
item
.
N
ame
.
indexOf
(
e
.
target
.
value
)
>
-
1
)
newQuotaList
.
push
(
item
);
if
(
item
.
n
ame
.
indexOf
(
e
.
target
.
value
)
>
-
1
)
newQuotaList
.
push
(
item
);
});
});
setQuotaList
(
newQuotaList
);
setQuotaList
(
newQuotaList
);
}
else
{
}
else
{
...
...
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