Commit 37758b8a authored by nikogu's avatar nikogu

Remove unnecessary dependency of components from scaffold

parent 541128ec
......@@ -2,10 +2,13 @@ import React, { PureComponent } from 'react';
import { MiniArea } from '../Charts';
import NumberInfo from '../NumberInfo';
import { fixedZero } from '../../utils/utils';
import styles from './index.less';
function fixedZero(val) {
return val * 1 < 10 ? `0${val}` : val;
}
function getActiveData() {
const activeData = [];
for (let i = 0; i < 24; i += 1) {
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.activeChart {
position: relative;
}
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.textOverflow() {
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
white-space: nowrap;
}
.chartCard {
position: relative;
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.field {
white-space: nowrap;
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.miniProgress {
padding: 5px 0;
......
......@@ -45,14 +45,16 @@ class Pie extends Component {
if (!this.state.legendBlock) {
this.setState({
legendBlock: true,
}, () => {
this.renderChart();
});
this.renderChart();
}
} else if (this.state.legendBlock) {
this.setState({
legendBlock: false,
}, () => {
this.renderChart();
});
this.renderChart();
}
}
......@@ -94,7 +96,7 @@ class Pie extends Component {
animate = true,
colors,
lineWidth = 0,
} = this.props;
} = this.props;
const defaultColors = colors;
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.pie {
position: relative;
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.radar {
.legend {
......
@import "~antd/lib/style/themes/default.less";
@import "../../../utils/utils.less";
.waterWave {
display: inline-block;
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
@import "~antd/lib/style/mixins/clearfix.less";
.exception {
display: flex;
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.textOverflow() {
overflow: hidden;
text-overflow: ellipsis;
word-break: break-all;
white-space: nowrap;
}
.numberInfo {
.suffix {
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.standardFormRow {
border-bottom: 1px dashed @border-color-split;
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.standardTable {
:global {
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.tagSelect {
user-select: none;
......
@import "~antd/lib/style/themes/default.less";
@import "../../utils/utils.less";
.trendItem {
display: inline-block;
......
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