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
db66e95a
Commit
db66e95a
authored
Jul 19, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改
parent
e97926fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
+25
-7
index.js
packages/extend-components/EC_DeviceTreeGroup/src/index.js
+1
-1
index.less
packages/extend-components/EC_DeviceTreeGroup/src/index.less
+15
-4
index.js
packages/extend-components/EC_QuotaSelect/src/index.js
+9
-2
No files found.
packages/extend-components/EC_DeviceTreeGroup/src/index.js
View file @
db66e95a
...
...
@@ -24,7 +24,7 @@ const treeDataGenerator = (origin, currentType, ref) => {
<
div
title
=
{
title
}
style
=
{{
width
:
_width
,
//
width: _width,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
...
...
packages/extend-components/EC_DeviceTreeGroup/src/index.less
View file @
db66e95a
...
...
@@ -10,11 +10,21 @@
&-tree-wrap {
height: calc(100% - 48px);
overflow: auto;
padding-right: 4px;
}
:global {
.@{ant-prefix}-input-search {
margin-bottom: 16px;
.@{ant-prefix}-input-search {
margin-bottom: 16px;
}
.@{ant-prefix}-tree {
&-treenode {
overflow: hidden;
width: 100%;
}
&-node-content-wrapper {
overflow: hidden;
}
}
}
}
\ No newline at end of file
packages/extend-components/EC_QuotaSelect/src/index.js
View file @
db66e95a
...
...
@@ -234,9 +234,16 @@ const QuotaSelect = ({
setSearch
(
e
.
target
.
value
);
if
(
e
.
target
.
value
!==
''
)
{
let
newQuotaList
=
[];
q
uotaList
.
forEach
((
item
)
=>
{
allQ
uotaList
.
forEach
((
item
)
=>
{
if
(
!
item
.
sensorName
)
return
;
if
(
item
.
sensorName
.
indexOf
(
e
.
target
.
value
)
>
-
1
)
newQuotaList
.
push
(
item
);
if
(
item
.
sensorName
.
indexOf
(
e
.
target
.
value
)
>
-
1
)
{
if
(
targetValue
===
'all'
)
{
newQuotaList
.
push
(
item
);
}
else
{
if
(
item
.
isShow
===
1
&&
item
.
sensorName
.
indexOf
(
search
)
>=
0
)
newQuotaList
.
push
(
item
);
}
}
});
setQuotaList
(
newQuotaList
);
}
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