diff --git a/src/components/AvatarList/index.d.ts b/src/components/AvatarList/index.d.ts index a6ca98ad2ce643ccae26306335b97c6343d6bd55..6687bf21983b64a57e3d95c0ebc14c50f5f42e24 100644 --- a/src/components/AvatarList/index.d.ts +++ b/src/components/AvatarList/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface AvatarItemProps { tips: React.ReactNode; src: string; diff --git a/src/components/Charts/Bar/index.d.ts b/src/components/Charts/Bar/index.d.ts index b66ec437d72be803586e20f1b9df4a0bac7abec6..fd2d05decc75339fe3df05c96af5f10ca81c5420 100644 --- a/src/components/Charts/Bar/index.d.ts +++ b/src/components/Charts/Bar/index.d.ts @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; export interface BarProps { - title: string | React.ReactNode; + title: React.ReactNode; color?: string; margin?: [number, number, number, number]; height: number; diff --git a/src/components/Charts/ChartCard/index.d.ts b/src/components/Charts/ChartCard/index.d.ts index bb8824b68434bbe35a8b8f14715a9a27fdc24ef3..21d2be34be1d00de744f4b9e50ceb6ff7cbeaf62 100644 --- a/src/components/Charts/ChartCard/index.d.ts +++ b/src/components/Charts/ChartCard/index.d.ts @@ -1,10 +1,10 @@ -import React from "react"; +import * as React from "react"; export interface ChartCardProps { - title: string | React.ReactNode; + title: React.ReactNode; action?: React.ReactNode; total?: React.ReactNode | number; footer?: React.ReactNode; - contentHeight: number; + contentHeight?: number; avatar?: React.ReactNode; } diff --git a/src/components/Charts/Field/index.d.ts b/src/components/Charts/Field/index.d.ts index dfe3e9cc687e9c2249918347d62c7b8519a94d33..7fa132825481aff6e77c01d11c197995e0b8446e 100644 --- a/src/components/Charts/Field/index.d.ts +++ b/src/components/Charts/Field/index.d.ts @@ -1,7 +1,7 @@ -import React from "react"; +import * as React from "react"; export interface FieldProps { - label: string | React.ReactNode; - value: string | React.ReactNode; + label: React.ReactNode; + value: React.ReactNode; } export default class Field extends React.Component {} diff --git a/src/components/Charts/Gauge/index.d.ts b/src/components/Charts/Gauge/index.d.ts index 2729a75fb7d1e935ce5642239f4be18f2ef57eb0..7f196aed0bdd1b32d76b5e2a5ff76fd1117370ee 100644 --- a/src/components/Charts/Gauge/index.d.ts +++ b/src/components/Charts/Gauge/index.d.ts @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; export interface GaugeProps { - title: string | React.ReactNode; + title: React.ReactNode; color?: string; height: number; bgColor?: number; diff --git a/src/components/Charts/MiniArea/index.d.ts b/src/components/Charts/MiniArea/index.d.ts index dff1667ed994d58e050a8fe69aa2491e6489af1f..d2f67e4a893434e64ccd3568509934fc8c853a1d 100644 --- a/src/components/Charts/MiniArea/index.d.ts +++ b/src/components/Charts/MiniArea/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; // g2已经更新到3.0 // 不带的写了 diff --git a/src/components/Charts/MiniBar/index.d.ts b/src/components/Charts/MiniBar/index.d.ts index 7b7394f43c790fec1f4260c99d9fa63ff8657726..09bd761fb7891954d3861121608e9e382c9d2846 100644 --- a/src/components/Charts/MiniBar/index.d.ts +++ b/src/components/Charts/MiniBar/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface MiniBarProps { color?: string; height: number; diff --git a/src/components/Charts/MiniProgress/index.d.ts b/src/components/Charts/MiniProgress/index.d.ts index d89000ccb5e49f42842de33c1658f44a5dff1b94..a80b935d9322e5df0316d134387cc2600557560f 100644 --- a/src/components/Charts/MiniProgress/index.d.ts +++ b/src/components/Charts/MiniProgress/index.d.ts @@ -1,9 +1,9 @@ -import React from "react"; +import * as React from "react"; export interface MiniProgressProps { target: number; color?: string; - strokeWidth: number; - percent: number; + strokeWidth?: number; + percent?: number; } export default class MiniProgress extends React.Component< diff --git a/src/components/Charts/Pie/index.d.ts b/src/components/Charts/Pie/index.d.ts index 16ad6a3bad477937c5bdd8c1283111bb43e54a4e..44a465d08a31b066a43a1794571a507cc15d2a61 100644 --- a/src/components/Charts/Pie/index.d.ts +++ b/src/components/Charts/Pie/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface PieProps { animate?: boolean; color?: string; @@ -11,10 +11,10 @@ export interface PieProps { y: number; }>; total?: string; - title?: string | React.ReactNode; + title?: React.ReactNode; tooltip?: boolean; valueFormat?: (value: string) => string; - subTitle?: string | React.ReactNode; + subTitle?: React.ReactNode; } export default class Pie extends React.Component {} diff --git a/src/components/Charts/Radar/index.d.ts b/src/components/Charts/Radar/index.d.ts index 18c056d362e606091eb533db35af958ed913a6cf..fa8597856ccf5cddbd9b352bba0f154a760c4824 100644 --- a/src/components/Charts/Radar/index.d.ts +++ b/src/components/Charts/Radar/index.d.ts @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; export interface RadarProps { - title?: string | React.ReactNode; + title?: React.ReactNode; height: number; margin?: [number, number, number, number]; hasLegend?: boolean; diff --git a/src/components/Charts/TagCloud/index.d.ts b/src/components/Charts/TagCloud/index.d.ts index 04c2c250758ba576b3d4e62cc4eb2cfbd20284db..e7832132f8e3db1af3f1470b9ae856a456dae425 100644 --- a/src/components/Charts/TagCloud/index.d.ts +++ b/src/components/Charts/TagCloud/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface TagCloudProps { data: Array<{ name: string; diff --git a/src/components/Charts/TimelineChart/index.d.ts b/src/components/Charts/TimelineChart/index.d.ts index d03e839c73ae646f6a51f05c400f5c200b2f07c8..5ea76a1168618a5d2eaa5175644f24f3fc74d15d 100644 --- a/src/components/Charts/TimelineChart/index.d.ts +++ b/src/components/Charts/TimelineChart/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface TimelineChartProps { data: Array<{ x: string; diff --git a/src/components/Charts/WaterWave/index.d.ts b/src/components/Charts/WaterWave/index.d.ts index 258a5670df5808df0bb31034256590a887e01694..0fefbea102d3b55dc2845eba1fb943294c4c0353 100644 --- a/src/components/Charts/WaterWave/index.d.ts +++ b/src/components/Charts/WaterWave/index.d.ts @@ -1,6 +1,6 @@ -import React from "react"; +import * as React from "react"; export interface WaterWaveProps { - title: string | React.ReactNode; + title: React.ReactNode; color?: string; height: number; percent: number; diff --git a/src/components/CountDown/index.d.ts b/src/components/CountDown/index.d.ts index b91c812eaf64274a422f7de1cdb581fe06db0fa5..3c46ac79330d2007d26da57ebad2bae7757866d4 100644 --- a/src/components/CountDown/index.d.ts +++ b/src/components/CountDown/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface CountDownProps { format?: (time: number) => void; target: Date | number; diff --git a/src/components/DescriptionList/index.d.ts b/src/components/DescriptionList/index.d.ts index c2d75ee231eb4a8cc5634b38b266a0076d4fb3c6..b13c630104f66554ed3c3026d5df3aac6b34f219 100644 --- a/src/components/DescriptionList/index.d.ts +++ b/src/components/DescriptionList/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface DescriptionListProps { layout?: "horizontal" | "vertical"; col?: number; diff --git a/src/components/Ellipsis/index.d.ts b/src/components/Ellipsis/index.d.ts index 914467077733e762d975776e5708b484d7e064ae..66f1de3e40d571e8f1854ec58af963c32671ef52 100644 --- a/src/components/Ellipsis/index.d.ts +++ b/src/components/Ellipsis/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface EllipsisProps { tooltip?: boolean; length?: number; diff --git a/src/components/Exception/index.d.ts b/src/components/Exception/index.d.ts index c966a00a8fa0e919889e530f8e5c877f02b9a872..def4034e250575ab9973c31328a0fa0fd0c89796 100644 --- a/src/components/Exception/index.d.ts +++ b/src/components/Exception/index.d.ts @@ -1,11 +1,11 @@ -import React from "react"; +import * as React from "react"; export interface ExceptionProps { type?: "403" | "404" | "500"; title?: React.ReactNode; desc?: React.ReactNode; img?: string; actions?: React.ReactNode; - linkElement?: string | React.ReactNode; + linkElement?: React.ReactNode; } export default class Exception extends React.Component {} diff --git a/src/components/FooterToolbar/index.d.ts b/src/components/FooterToolbar/index.d.ts index 14f02755c5fa7021f752b9fb77f19bae8446f245..2bc13358bc26d0dc2aec69819bb8dc2042b7751f 100644 --- a/src/components/FooterToolbar/index.d.ts +++ b/src/components/FooterToolbar/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface FooterToolbarProps { extra: React.ReactNode; } diff --git a/src/components/GlobalFooter/index.d.ts b/src/components/GlobalFooter/index.d.ts index 7f6c7dd3f685fd3d1068549ce1f07364967e2843..26f0c1150d681169501becc000a51e7e893b585b 100644 --- a/src/components/GlobalFooter/index.d.ts +++ b/src/components/GlobalFooter/index.d.ts @@ -1,7 +1,7 @@ -import React from "react"; +import * as React from "react"; export interface GlobalFooterProps { links: Array<{ - title: string | React.ReactNode; + title: React.ReactNode; href: string; blankTarget?: boolean; }>; diff --git a/src/components/HeaderSearch/index.d.ts b/src/components/HeaderSearch/index.d.ts index 69cff7af41301b516c06cdd61aef4c5eca604c33..2587891d39b02cc68b318f7cf9d4bf628fc1d2f5 100644 --- a/src/components/HeaderSearch/index.d.ts +++ b/src/components/HeaderSearch/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface HeaderSearchProps { placeholder?: string; dataSource?: Array; diff --git a/src/components/NoticeIcon/index.d.ts b/src/components/NoticeIcon/index.d.ts index 6bf9dd5617541228afa89caf1c940450687bb55e..b35c16247e698b40342d8692579650c1b782ea78 100644 --- a/src/components/NoticeIcon/index.d.ts +++ b/src/components/NoticeIcon/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface NoticeIconData { avatar: string; title: React.ReactNode; diff --git a/src/components/NumberInfo/index.d.ts b/src/components/NumberInfo/index.d.ts index c4c4c4f769eaac50f11b551e2a019c6e87331ca2..e0b7e5a59f29b55c52420bc699c06ae8af0d7ba5 100644 --- a/src/components/NumberInfo/index.d.ts +++ b/src/components/NumberInfo/index.d.ts @@ -1,11 +1,12 @@ -import React from "react"; +import * as React from "react"; export interface NumberInfoProps { - title: React.ReactNode | string; - subTitle: React.ReactNode | string; - total: React.ReactNode | string; - status: "up" | "down"; - theme: string; - gap: number; + title?: React.ReactNode | string; + subTitle?: React.ReactNode | string; + total?: React.ReactNode | string; + status?: "up" | "down"; + theme?: string; + gap?: number; + subTotal?: number; } export default class NumberInfo extends React.Component {} diff --git a/src/components/NumberInfo/index.md b/src/components/NumberInfo/index.md index 8b29c2952f9093d75fdc8407ff0ef81e30b2669b..1116f990d76e9f742defca2a9d3c9d6cfd4a6027 100644 --- a/src/components/NumberInfo/index.md +++ b/src/components/NumberInfo/index.md @@ -16,6 +16,7 @@ order: 10 title | 标题 | ReactNode\|string | - subTitle | 子标题 | ReactNode\|string | - total | 总量 | ReactNode\|string | - +subTotal | 子总量 | ReactNode\|string | - status | 增加状态 | 'up \| down' | - theme | 状态样式 | string | 'light' gap | 设置数字和描述直接的间距(像素) | number | 8 diff --git a/src/components/PageHeader/index.d.ts b/src/components/PageHeader/index.d.ts index b21fd1600e71c81275059e968a0c007e5c546642..8ca909223fbaae544d98980b83fdd4ece915597d 100644 --- a/src/components/PageHeader/index.d.ts +++ b/src/components/PageHeader/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface PageHeaderProps { title?: React.ReactNode | string; logo?: React.ReactNode | string; @@ -6,11 +6,11 @@ export interface PageHeaderProps { content?: React.ReactNode; extraContent?: React.ReactNode; routes?: Array; - params: any; + params?: any; breadcrumbList?: Array<{ title: React.ReactNode; href?: string }>; tabList?: Array<{ key: string; tab: React.ReactNode }>; onTabChange?: (key: string) => void; - linkElement?: string | React.ReactNode; + linkElement?: React.ReactNode; } export default class PageHeader extends React.Component {} diff --git a/src/components/Result/index.d.ts b/src/components/Result/index.d.ts index 6bd317170d5da5f6bcc205b9fd5545baefe20685..c4fef0b31d47463efa9ad8473c966450ca13f773 100644 --- a/src/components/Result/index.d.ts +++ b/src/components/Result/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface ResultProps { type: "success" | "error"; title: React.ReactNode; diff --git a/src/components/TagSelect/index.d.ts b/src/components/TagSelect/index.d.ts index 0258094297db5e0c916d072a751ab8e64082f4b8..516220b6c6e7f98268c340a8f28c87d78d41af34 100644 --- a/src/components/TagSelect/index.d.ts +++ b/src/components/TagSelect/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface TagSelectProps { onChange?: (value: Array) => void; expandable?: boolean; diff --git a/src/components/Trend/index.d.ts b/src/components/Trend/index.d.ts index 6ac7c460bd70a1a61d450de8937b4b99e975d5c2..698a49d8cf9a100a21d80327d619471d46fab800 100644 --- a/src/components/Trend/index.d.ts +++ b/src/components/Trend/index.d.ts @@ -1,4 +1,4 @@ -import React from "react"; +import * as React from "react"; export interface TrendProps { colorful?: boolean;