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
d937324e
Commit
d937324e
authored
Apr 07, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update historyinfo and realtimeinfo
parent
63e353b1
Pipeline
#25598
failed with stages
in 1 minute 23 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
package.json
packages/HistoryInfo/package.json
+1
-0
Basic.tsx
packages/HistoryInfo/src/demos/Basic.tsx
+1
-0
index.js
packages/HistoryInfo/src/index.js
+3
-2
package.json
packages/RealTimeInfo/package.json
+2
-1
index.js
packages/RealTimeInfo/src/index.js
+3
-2
No files found.
packages/HistoryInfo/package.json
View file @
d937324e
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
"dependencies"
:
{
"dependencies"
:
{
"@wisdom-components/Empty"
:
"^1.2.0"
,
"@wisdom-components/Empty"
:
"^1.2.0"
,
"@wisdom-components/timerangepicker"
:
"1.3.3"
,
"@wisdom-components/timerangepicker"
:
"1.3.3"
,
"@wisdom-components/basictable"
:
"^1.1.0"
,
"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"
,
...
...
packages/HistoryInfo/src/demos/Basic.tsx
View file @
d937324e
...
@@ -11,6 +11,7 @@ const Demo = () => {
...
@@ -11,6 +11,7 @@ const Demo = () => {
title
:
'采集时间'
,
title
:
'采集时间'
,
dataIndex
:
'time'
,
dataIndex
:
'time'
,
key
:
'time'
,
key
:
'time'
,
width
:
160
,
},
},
]);
]);
...
...
packages/HistoryInfo/src/index.js
View file @
d937324e
...
@@ -3,9 +3,10 @@ import PropTypes from 'prop-types';
...
@@ -3,9 +3,10 @@ import PropTypes from 'prop-types';
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
Highcharts
from
'highcharts/highstock'
;
import
Highcharts
from
'highcharts/highstock'
;
import
HighchartsReact
from
'highcharts-react-official'
;
import
HighchartsReact
from
'highcharts-react-official'
;
import
{
Tabs
,
Select
,
Radio
,
Checkbox
,
Table
,
ConfigProvider
,
DatePicker
}
from
'antd'
;
import
{
Tabs
,
Select
,
Radio
,
Checkbox
,
ConfigProvider
,
DatePicker
}
from
'antd'
;
import
{
PlusCircleOutlined
}
from
'@ant-design/icons'
;
import
{
PlusCircleOutlined
}
from
'@ant-design/icons'
;
import
TimeRangePicker
from
'@wisdom-components/timerangepicker'
;
import
TimeRangePicker
from
'@wisdom-components/timerangepicker'
;
import
BasicTable
from
'@wisdom-components/basictable'
;
import
Empty
from
'@wisdom-components/Empty'
;
import
Empty
from
'@wisdom-components/Empty'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
'./index.less'
;
import
'./index.less'
;
...
@@ -471,7 +472,7 @@ const HistoryInfo = (props) => {
...
@@ -471,7 +472,7 @@ const HistoryInfo = (props) => {
/
>
/
>
)}
)}
{
item
.
key
===
'table'
&&
(
{
item
.
key
===
'table'
&&
(
<
Table
dataSource
=
{
dataSource
}
columns
=
{
columns
}
{...
tableProps
}
/
>
<
Basic
Table
dataSource
=
{
dataSource
}
columns
=
{
columns
}
{...
tableProps
}
/
>
)}
)}
<
/div
>
<
/div
>
)}
)}
...
...
packages/RealTimeInfo/package.json
View file @
d937324e
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
"test"
:
"echo
\"
Error: run tests from root
\"
&& exit 1"
"test"
:
"echo
\"
Error: run tests from root
\"
&& exit 1"
},
},
"dependencies"
:
{
"dependencies"
:
{
"classnames"
:
"^2.2.6"
"classnames"
:
"^2.2.6"
,
"@wisdom-components/basictable"
:
"^1.1.0"
}
}
}
}
packages/RealTimeInfo/src/index.js
View file @
d937324e
import
React
,
{
useContext
}
from
'react'
;
import
React
,
{
useContext
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
PropTypes
from
'prop-types'
;
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
Input
,
Radio
,
Table
,
ConfigProvider
}
from
'antd'
;
import
{
Input
,
Radio
,
ConfigProvider
}
from
'antd'
;
import
BasicTable
from
'@wisdom-components/basictable'
;
import
'./index.less'
;
import
'./index.less'
;
const
RealTimeInfo
=
(
props
)
=>
{
const
RealTimeInfo
=
(
props
)
=>
{
...
@@ -29,7 +30,7 @@ const RealTimeInfo = (props) => {
...
@@ -29,7 +30,7 @@ const RealTimeInfo = (props) => {
<
div
>
采集编码:
{
guid
}
<
/div
>
<
div
>
采集编码:
{
guid
}
<
/div
>
<
div
>
更新时间:
{
updateTime
}
<
/div
>
<
div
>
更新时间:
{
updateTime
}
<
/div
>
<
/div
>
<
/div
>
<
Table
{...
props
}
/
>
<
Basic
Table
{...
props
}
/
>
<
/div
>
<
/div
>
);
);
};
};
...
...
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