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

fix: package

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