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
ff3a820a
Commit
ff3a820a
authored
Aug 24, 2023
by
陈龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 滚动组件增加设备类型监听;历史曲线增加快捷功能
parent
1e1be112
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
11 deletions
+23
-11
index.js
...es/base-components/AlarmScrollAssembly/src/demos/index.js
+23
-11
index.js
packages/base-components/AlarmScrollAssembly/src/index.js
+0
-0
index.js
packages/extend-components/EC_HistoryView/src/index.js
+0
-0
No files found.
packages/base-components/AlarmScrollAssembly/src/demos/index.js
View file @
ff3a820a
import
React
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
import
AlarmScrollAssembly
from
'../index'
;
import
{
Button
}
from
"antd"
;
window
.
globalConfig
=
{
userInfo
:
{
OID
:
1
},
userInfo
:
{
OID
:
1
},
};
export
default
()
=>
{
return
(
<
AlarmScrollAssembly
deviceType
=
{
'二供泵房,二供机组'
}
prefix
=
{
'报警信息:'
}
showTotal
=
{
false
}
interval
=
{
1
}
userAccess
=
{
true
}
/
>
);
// 最小宽度930px
const
[
deviceType
,
setDeviceType
]
=
useState
(
'二供泵房,二供机组'
);
return
(
<>
<
AlarmScrollAssembly
deviceType
=
{
deviceType
}
prefix
=
{
'报警信息:'
}
showTotal
=
{
false
}
interval
=
{
0.1
}
userAccess
=
{
true
}
/
>
<
Button
onClick
=
{()
=>
{
if
(
deviceType
===
'二供泵房'
)
{
setDeviceType
(
'二供泵房,二供机组'
)
}
else
{
setDeviceType
(
'二供泵房'
)
}
}}
>
点击切换
<
/Button
>
<
/
>
);
// 最小宽度930px
};
packages/base-components/AlarmScrollAssembly/src/index.js
View file @
ff3a820a
This diff is collapsed.
Click to expand it.
packages/extend-components/EC_HistoryView/src/index.js
View file @
ff3a820a
This diff is collapsed.
Click to expand it.
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