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
9f98090e
Commit
9f98090e
authored
Mar 02, 2023
by
崔佳豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(EC_HistoryView): 文档补充
parent
dd1fe735
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
EC_HistoryView.md
...es/extend-components/EC_HistoryView/src/EC_HistoryView.md
+4
-3
index.js
packages/extend-components/EC_HistoryView/src/index.js
+2
-2
index.less
packages/extend-components/EC_HistoryView/src/index.less
+2
-2
No files found.
packages/extend-components/EC_HistoryView/src/EC_HistoryView.md
View file @
9f98090e
...
...
@@ -32,13 +32,14 @@ group:
| 参数 | 说明 | 类型 | 默认值 | 可选值 |
| --- | --- | --- | --- | --- |
| grid | 是否为
分组
模式 | boolean | false | - |
| grid | 是否为
多图表
模式 | boolean | false | - |
| title | 标题 | string | 指标曲线 | - |
| defaultModel | 默认显示模式 | string |
`curve`
|
`curve`
/
`table`
|
| defaultModel | 默认显示模式 | string |
`curve`
|
`curve`
图表模式/
`table`
表格模式
|
| showModels | 显示模式 | array |
`['curve', 'table']`
|
`curve`
/
`table`
|
| defaultChecked | 默认选中自定义时间 key | string |
`
oneHour
`
|
`oneHour`
/
`fourHour`
/
`twelveHours`
/
`roundClock`
/
`yesterday`
|
| defaultChecked | 默认选中自定义时间 key | string |
`
roundClock
`
|
`oneHour`
/
`fourHour`
/
`twelveHours`
/
`roundClock`
/
`yesterday`
|
| tableProps | 表格其他 props | object | { } | - |
| deviceParams | 设备参数信息 | array | - | - |
| needMarkLine | 是否添加报警标识线 | boolean | true | |
### deviceParams
...
...
packages/extend-components/EC_HistoryView/src/index.js
View file @
9f98090e
...
...
@@ -284,7 +284,7 @@ const HistoryView = (props) => {
const
onCustomerRangeChange
=
(
value
)
=>
{
if
(
!
value
)
{
// 时间清空,回到默认时间选择
setCustomerChecked
(
'oneHour'
);
setCustomerChecked
(
defaultChecked
);
setCustomerTime
(
value
);
}
else
{
setCustomerChecked
(
null
);
...
...
@@ -763,7 +763,7 @@ HistoryView.propTypes = {
HistoryView
.
defaultProps
=
{
grid
:
false
,
title
:
'指标曲线'
,
defaultChecked
:
'
oneHour
'
,
defaultChecked
:
'
roundClock
'
,
tableProps
:
{},
defaultModel
:
'curve'
,
showModels
:
[
'curve'
,
'table'
],
...
...
packages/extend-components/EC_HistoryView/src/index.less
View file @
9f98090e
@root-entry-name: 'default';
@import '~antd/es/style/themes/index.less';
@import
(reference)
'~antd/es/style/themes/index.less';
@history-view: ~'@{ant-prefix}-history-view';
.@{history-view} {
...
...
@@ -155,7 +155,7 @@
width: 5px;
height: 16px;
vertical-align: -0.2em;
background-color:
#1685ff
;
background-color:
@primary-color
;
content: '';
}
...
...
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