Commit 98cc2ffa authored by 涂茜's avatar 涂茜

fix: package

parent f8b5b157
Pipeline #26198 failed with stages
in 20 seconds
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.4",
"classnames": "^2.2.6"
}
}
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.3",
"classnames": "^2.2.6"
}
}
......@@ -24,9 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.3",
"@wisdom-components/basictable": "1.4.0",
"@wisdom-components/timerangepicker": "1.3.6",
"classnames": "^2.2.6",
"highcharts": "^9.0.1",
"highcharts-react-official": "^3.0.0",
......
......@@ -28,11 +28,12 @@ group:
api 参考 Antd Table 组件 https://ant.design/components/table-cn/#API
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ---------------------------------------------- | ------------------ | -------- |
| title | 标题 | string | 指标曲线 |
| columns | 表格列的配置描述 | array | [ ] |
| dataSource | 表格数据源 | array | [ ] |
| tableProps | 表格其他 props | object | { } |
| chartOptions | 曲线的 options | object | { } |
| onChange | 选择时间设置或曲线设置的回调,会返回修改后的值 | function(value){ } | - |
| 参数 | 说明 | 类型 | 默认值 |
| -------------- | ---------------------------------------------- | ------------------ | -------- |
| title | 标题 | string | 指标曲线 |
| defaultChecked | 默认选中自定义时间 key | string | oneHour |
| columns | 表格列的配置描述 | array | [ ] |
| dataSource | 表格数据源 | array | [ ] |
| tableProps | 表格其他 props | object | { } |
| chartOptions | 曲线的 options | object | { } |
| onChange | 选择时间设置或曲线设置的回调,会返回修改后的值 | function(value){ } | - |
......@@ -99,6 +99,7 @@ const Demo = () => {
chartOptions={{ series }}
tableProps={{ bordered: true }}
onChange={onChangeParams}
defaultChecked={'roundClock'}
/>
);
};
......
......@@ -107,7 +107,7 @@ const HistoryInfo = (props) => {
const [timeValue, setTimeValue] = useState('customer');
const [contrastOption, setContrastOption] = useState('day');
const [customerChecked, setCustomerChecked] = useState(null);
const [customerChecked, setCustomerChecked] = useState(props.defaultChecked || 'oneHour');
const [customerTime, setCustomerTime] = useState(null);
const [datePickerArr, setDatePickerArr] = useState(DataPickerArr);
const [checkboxData, setCheckboxData] = useState(CheckboxData);
......@@ -486,6 +486,7 @@ const HistoryInfo = (props) => {
HistoryInfo.defaultProps = {
title: '指标曲线',
defaultChecked: 'oneHour',
columns: [],
dataSource: [],
tableProps: {},
......@@ -495,6 +496,7 @@ HistoryInfo.defaultProps = {
HistoryInfo.propTypes = {
title: PropTypes.string,
defaultChecked: PropTypes.string,
columns: PropTypes.array,
dataSource: PropTypes.array,
tableProps: PropTypes.object,
......
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.3",
"classnames": "^2.2.6"
}
}
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.3",
"classnames": "^2.2.6"
}
}
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/basictable": "1.4.0",
"classnames": "^2.2.6"
}
}
......@@ -24,7 +24,6 @@
"test": "echo \"Error: run tests from root\" && exit 1"
},
"dependencies": {
"@wisdom-components/Empty": "^1.3.3",
"classnames": "^2.2.6"
}
}
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