-
-
-
-
-
-
- {gridWidthHolder}
-
+
+
+
+
-
+
);
};
diff --git a/src/components/DcBoard/pure-header.tsx b/src/components/DcBoard/pure-header.tsx
index 6d0e0ed1..c0a50086 100644
--- a/src/components/DcBoard/pure-header.tsx
+++ b/src/components/DcBoard/pure-header.tsx
@@ -5,7 +5,7 @@
* @Last Modified time: 2020-12-25 16:28:17
*/
import React, { RefObject, useEffect, useCallback, useMemo } from 'react';
-import { Button, Tooltip } from '@terminus/nusi';
+import { Tooltip, Button } from 'antd';
import { useFullscreen, useToggle } from 'react-use';
import { DcIcon } from '../../common';
import { insertWhen } from '../../common/utils';
diff --git a/src/components/DcBoard/types/header.d.ts b/src/components/DcBoard/types/header.d.ts
index efb90d6a..f38d800d 100644
--- a/src/components/DcBoard/types/header.d.ts
+++ b/src/components/DcBoard/types/header.d.ts
@@ -2,7 +2,7 @@ declare namespace DC_BOARD_HEADER {
interface Tool {
icon: DcIconType;
text?: string;
- btnType?: 'primary' | 'text' | 'warning' | 'secondary' | 'normal';
+ btnType?: 'default' | 'primary' | 'ghost' | 'dashed' | 'link' | 'text';
customRender?: () => JSX.Element;
onClick?: () => any;
}
diff --git a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-alias-modal.tsx b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-alias-modal.tsx
index e9c52dc2..2aeb2dc2 100644
--- a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-alias-modal.tsx
+++ b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-alias-modal.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { map } from 'lodash';
-import { Input, Select, Col } from '@terminus/nusi';
+import { Select, Input, Col } from 'antd';
import { DcFormModal } from '../../../../../common';
import DashboardStore from '../../../../../stores/dash-board';
import { unitInfMap } from '../constants';
@@ -17,6 +17,7 @@ const UnitConfig = ({ value, onChange, size }: { value?: DICE_DATA_CONFIGURATOR.
allowClear
value={type}
size={size}
+ className="field-config-select"
options={map(unitInfMap(textMap), (item) => ({ label: item.name, value: item.value }))}
onChange={(v) => onChange({ ...value, type: v, unit: unitInfMap(textMap)[v]?.defaultUnit })}
/>
diff --git a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-expr-modal.tsx b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-expr-modal.tsx
index 229b7418..43e72b56 100644
--- a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-expr-modal.tsx
+++ b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-expr-modal.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { Input } from '@terminus/nusi';
+import { Input } from 'antd';
import { DcFormModal } from '../../../../../common';
import DashboardStore from '../../../../../stores/dash-board';
diff --git a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-filter-modal.tsx b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-filter-modal.tsx
index bd22deb8..5129544a 100644
--- a/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-filter-modal.tsx
+++ b/src/components/DcChartEditor/data-config/dice-form/dimensions-configurator/create-filter-modal.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { map, isUndefined } from 'lodash';
-import { Input, InputNumber, Select, Switch } from '@terminus/nusi';
+import { Select, Input, InputNumber, Switch } from 'antd';
import { DcFormModal } from '../../../../../common';
import DashboardStore from '../../../../../stores/dash-board';
@@ -25,6 +25,7 @@ interface IFilterInputProps {
const FilterInput = ({ value, onChange, fieldType, options }: IFilterInputProps) => (