Commit 9f98090e authored by 崔佳豪's avatar 崔佳豪

fix(EC_HistoryView): 文档补充

parent dd1fe735
...@@ -32,13 +32,14 @@ group: ...@@ -32,13 +32,14 @@ group:
| 参数 | 说明 | 类型 | 默认值 | 可选值 | | 参数 | 说明 | 类型 | 默认值 | 可选值 |
| --- | --- | --- | --- | --- | | --- | --- | --- | --- | --- |
| grid | 是否为分组模式 | boolean | false | - | | grid | 是否为多图表模式 | boolean | false | - |
| title | 标题 | string | 指标曲线 | - | | title | 标题 | string | 指标曲线 | - |
| defaultModel | 默认显示模式 | string | `curve` | `curve`/`table` | | defaultModel | 默认显示模式 | string | `curve` | `curve`图表模式/`table`表格模式 |
| showModels | 显示模式 | array | `['curve', 'table']` | `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 | { } | - | | tableProps | 表格其他 props | object | { } | - |
| deviceParams | 设备参数信息 | array | - | - | | deviceParams | 设备参数信息 | array | - | - |
| needMarkLine | 是否添加报警标识线 | boolean | true | |
### deviceParams ### deviceParams
......
...@@ -284,7 +284,7 @@ const HistoryView = (props) => { ...@@ -284,7 +284,7 @@ const HistoryView = (props) => {
const onCustomerRangeChange = (value) => { const onCustomerRangeChange = (value) => {
if (!value) { if (!value) {
// 时间清空,回到默认时间选择 // 时间清空,回到默认时间选择
setCustomerChecked('oneHour'); setCustomerChecked(defaultChecked);
setCustomerTime(value); setCustomerTime(value);
} else { } else {
setCustomerChecked(null); setCustomerChecked(null);
...@@ -763,7 +763,7 @@ HistoryView.propTypes = { ...@@ -763,7 +763,7 @@ HistoryView.propTypes = {
HistoryView.defaultProps = { HistoryView.defaultProps = {
grid: false, grid: false,
title: '指标曲线', title: '指标曲线',
defaultChecked: 'oneHour', defaultChecked: 'roundClock',
tableProps: {}, tableProps: {},
defaultModel: 'curve', defaultModel: 'curve',
showModels: ['curve', 'table'], showModels: ['curve', 'table'],
......
@root-entry-name: 'default'; @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: ~'@{ant-prefix}-history-view';
.@{history-view} { .@{history-view} {
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
width: 5px; width: 5px;
height: 16px; height: 16px;
vertical-align: -0.2em; vertical-align: -0.2em;
background-color: #1685ff; background-color: @primary-color;
content: ''; content: '';
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment