Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
a28a71e9
Commit
a28a71e9
authored
Mar 08, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standardized typescript d.ts file
parent
234c97fe
Changes
31
Hide whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
144 additions
and
119 deletions
+144
-119
src/components/AvatarList/AvatarItem.d.ts
src/components/AvatarList/AvatarItem.d.ts
+10
-0
src/components/AvatarList/index.d.ts
src/components/AvatarList/index.d.ts
+6
-15
src/components/Charts/Bar/index.d.ts
src/components/Charts/Bar/index.d.ts
+2
-2
src/components/Charts/ChartCard/index.d.ts
src/components/Charts/ChartCard/index.d.ts
+2
-2
src/components/Charts/Field/index.d.ts
src/components/Charts/Field/index.d.ts
+2
-2
src/components/Charts/Gauge/index.d.ts
src/components/Charts/Gauge/index.d.ts
+2
-2
src/components/Charts/MiniArea/index.d.ts
src/components/Charts/MiniArea/index.d.ts
+6
-6
src/components/Charts/MiniBar/index.d.ts
src/components/Charts/MiniBar/index.d.ts
+2
-2
src/components/Charts/MiniProgress/index.d.ts
src/components/Charts/MiniProgress/index.d.ts
+2
-2
src/components/Charts/Pie/index.d.ts
src/components/Charts/Pie/index.d.ts
+2
-2
src/components/Charts/Radar/index.d.ts
src/components/Charts/Radar/index.d.ts
+2
-2
src/components/Charts/TagCloud/index.d.ts
src/components/Charts/TagCloud/index.d.ts
+2
-2
src/components/Charts/TimelineChart/index.d.ts
src/components/Charts/TimelineChart/index.d.ts
+2
-2
src/components/Charts/WaterWave/index.d.ts
src/components/Charts/WaterWave/index.d.ts
+2
-2
src/components/CountDown/index.d.ts
src/components/CountDown/index.d.ts
+2
-2
src/components/DescriptionList/Description.d.ts
src/components/DescriptionList/Description.d.ts
+9
-0
src/components/DescriptionList/index.d.ts
src/components/DescriptionList/index.d.ts
+5
-11
src/components/Ellipsis/index.d.ts
src/components/Ellipsis/index.d.ts
+2
-2
src/components/Exception/index.d.ts
src/components/Exception/index.d.ts
+2
-2
src/components/FooterToolbar/index.d.ts
src/components/FooterToolbar/index.d.ts
+2
-2
src/components/GlobalFooter/index.d.ts
src/components/GlobalFooter/index.d.ts
+2
-2
src/components/HeaderSearch/index.d.ts
src/components/HeaderSearch/index.d.ts
+3
-3
src/components/NoticeIcon/NoticeIconTab.d.ts
src/components/NoticeIcon/NoticeIconTab.d.ts
+22
-0
src/components/NoticeIcon/index.d.ts
src/components/NoticeIcon/index.d.ts
+6
-23
src/components/NumberInfo/index.d.ts
src/components/NumberInfo/index.d.ts
+5
-2
src/components/PageHeader/index.d.ts
src/components/PageHeader/index.d.ts
+3
-3
src/components/Result/index.d.ts
src/components/Result/index.d.ts
+2
-2
src/components/SiderMenu/index.less
src/components/SiderMenu/index.less
+14
-5
src/components/TagSelect/TagSelectOption.d.ts
src/components/TagSelect/TagSelectOption.d.ts
+11
-0
src/components/TagSelect/index.d.ts
src/components/TagSelect/index.d.ts
+8
-15
src/components/Trend/index.d.ts
src/components/Trend/index.d.ts
+2
-2
No files found.
src/components/AvatarList/AvatarItem.d.ts
0 β 100644
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
export
interface
IAvatarItemProps
{
tips
:
React
.
ReactNode
;
src
:
string
;
style
?:
React
.
CSSProperties
;
}
export
default
class
AvatarItem
extends
React
.
Component
<
IAvatarItemProps
,
any
>
{
constructor
(
props
:
IAvatarItemProps
);
}
src/components/AvatarList/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
AvatarItemProps
{
import
AvatarItem
from
'
./AvatarItem
'
;
tips
:
React
.
ReactNode
;
src
:
string
;
style
?:
React
.
CSSProperties
;
}
export
interface
AvatarListProps
{
export
interface
I
AvatarListProps
{
size
?:
"
large
"
|
"
small
"
|
"
mini
"
|
"
default
"
;
size
?:
'
large
'
|
'
small
'
|
'
mini
'
|
'
default
'
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
children
:
children
:
|
React
.
ReactElement
<
AvatarItem
>
|
React
.
ReactElement
<
AvatarItem
>
|
Array
<
React
.
ReactElement
<
AvatarItem
>>
;
|
Array
<
React
.
ReactElement
<
AvatarItem
>>
;
}
}
declare
class
AvatarItem
extends
React
.
Component
<
AvatarItemProps
,
any
>
{
export
default
class
AvatarList
extends
React
.
Component
<
IAvatarListProps
,
any
>
{
constructor
(
props
:
AvatarItemProps
);
public
static
Item
:
typeof
AvatarItem
;
}
export
default
class
AvatarList
extends
React
.
Component
<
AvatarListProps
,
any
>
{
constructor
(
props
:
AvatarListProps
);
static
Item
:
typeof
AvatarItem
;
}
}
src/components/Charts/Bar/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
BarProps
{
export
interface
I
BarProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
color
?:
string
;
color
?:
string
;
padding
?:
[
number
,
number
,
number
,
number
];
padding
?:
[
number
,
number
,
number
,
number
];
...
@@ -12,4 +12,4 @@ export interface BarProps {
...
@@ -12,4 +12,4 @@ export interface BarProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Bar
extends
React
.
Component
<
BarProps
,
any
>
{}
export
default
class
Bar
extends
React
.
Component
<
I
BarProps
,
any
>
{}
src/components/Charts/ChartCard/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
ChartCardProps
{
export
interface
I
ChartCardProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
action
?:
React
.
ReactNode
;
action
?:
React
.
ReactNode
;
total
?:
React
.
ReactNode
|
number
;
total
?:
React
.
ReactNode
|
number
;
...
@@ -9,4 +9,4 @@ export interface ChartCardProps {
...
@@ -9,4 +9,4 @@ export interface ChartCardProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
ChartCard
extends
React
.
Component
<
ChartCardProps
,
any
>
{}
export
default
class
ChartCard
extends
React
.
Component
<
I
ChartCardProps
,
any
>
{}
src/components/Charts/Field/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
FieldProps
{
export
interface
I
FieldProps
{
label
:
React
.
ReactNode
;
label
:
React
.
ReactNode
;
value
:
React
.
ReactNode
;
value
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Field
extends
React
.
Component
<
FieldProps
,
any
>
{}
export
default
class
Field
extends
React
.
Component
<
I
FieldProps
,
any
>
{}
src/components/Charts/Gauge/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
GaugeProps
{
export
interface
I
GaugeProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
...
@@ -8,4 +8,4 @@ export interface GaugeProps {
...
@@ -8,4 +8,4 @@ export interface GaugeProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Gauge
extends
React
.
Component
<
GaugeProps
,
any
>
{}
export
default
class
Gauge
extends
React
.
Component
<
I
GaugeProps
,
any
>
{}
src/components/Charts/MiniArea/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
// g2ε·²η»ζ΄ζ°ε°3.0
// g2ε·²η»ζ΄ζ°ε°3.0
// δΈεΈ¦ηεδΊ
// δΈεΈ¦ηεδΊ
export
interface
Axis
{
export
interface
I
Axis
{
title
:
any
;
title
:
any
;
line
:
any
;
line
:
any
;
gridAlign
:
any
;
gridAlign
:
any
;
...
@@ -12,18 +12,18 @@ export interface Axis {
...
@@ -12,18 +12,18 @@ export interface Axis {
grid
:
any
;
grid
:
any
;
}
}
export
interface
MiniAreaProps
{
export
interface
I
MiniAreaProps
{
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
borderColor
?:
string
;
borderColor
?:
string
;
line
?:
boolean
;
line
?:
boolean
;
animate
?:
boolean
;
animate
?:
boolean
;
xAxis
?:
Axis
;
xAxis
?:
I
Axis
;
yAxis
?:
Axis
;
yAxis
?:
I
Axis
;
data
:
Array
<
{
data
:
Array
<
{
x
:
number
;
x
:
number
;
y
:
number
;
y
:
number
;
}
>
;
}
>
;
}
}
export
default
class
MiniArea
extends
React
.
Component
<
MiniAreaProps
,
any
>
{}
export
default
class
MiniArea
extends
React
.
Component
<
I
MiniAreaProps
,
any
>
{}
src/components/Charts/MiniBar/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
MiniBarProps
{
export
interface
I
MiniBarProps
{
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
data
:
Array
<
{
data
:
Array
<
{
...
@@ -9,4 +9,4 @@ export interface MiniBarProps {
...
@@ -9,4 +9,4 @@ export interface MiniBarProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
MiniBar
extends
React
.
Component
<
MiniBarProps
,
any
>
{}
export
default
class
MiniBar
extends
React
.
Component
<
I
MiniBarProps
,
any
>
{}
src/components/Charts/MiniProgress/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
MiniProgressProps
{
export
interface
I
MiniProgressProps
{
target
:
number
;
target
:
number
;
color
?:
string
;
color
?:
string
;
strokeWidth
?:
number
;
strokeWidth
?:
number
;
...
@@ -8,6 +8,6 @@ export interface MiniProgressProps {
...
@@ -8,6 +8,6 @@ export interface MiniProgressProps {
}
}
export
default
class
MiniProgress
extends
React
.
Component
<
export
default
class
MiniProgress
extends
React
.
Component
<
MiniProgressProps
,
I
MiniProgressProps
,
any
any
>
{}
>
{}
src/components/Charts/Pie/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
PieProps
{
export
interface
I
PieProps
{
animate
?:
boolean
;
animate
?:
boolean
;
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
...
@@ -17,4 +17,4 @@ export interface PieProps {
...
@@ -17,4 +17,4 @@ export interface PieProps {
subTitle
?:
React
.
ReactNode
;
subTitle
?:
React
.
ReactNode
;
}
}
export
default
class
Pie
extends
React
.
Component
<
PieProps
,
any
>
{}
export
default
class
Pie
extends
React
.
Component
<
I
PieProps
,
any
>
{}
src/components/Charts/Radar/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
RadarProps
{
export
interface
I
RadarProps
{
title
?:
React
.
ReactNode
;
title
?:
React
.
ReactNode
;
height
:
number
;
height
:
number
;
padding
?:
[
number
,
number
,
number
,
number
];
padding
?:
[
number
,
number
,
number
,
number
];
...
@@ -12,4 +12,4 @@ export interface RadarProps {
...
@@ -12,4 +12,4 @@ export interface RadarProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Radar
extends
React
.
Component
<
RadarProps
,
any
>
{}
export
default
class
Radar
extends
React
.
Component
<
I
RadarProps
,
any
>
{}
src/components/Charts/TagCloud/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
TagCloudProps
{
export
interface
I
TagCloudProps
{
data
:
Array
<
{
data
:
Array
<
{
name
:
string
;
name
:
string
;
value
:
number
;
value
:
number
;
...
@@ -8,4 +8,4 @@ export interface TagCloudProps {
...
@@ -8,4 +8,4 @@ export interface TagCloudProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
TagCloud
extends
React
.
Component
<
TagCloudProps
,
any
>
{}
export
default
class
TagCloud
extends
React
.
Component
<
I
TagCloudProps
,
any
>
{}
src/components/Charts/TimelineChart/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
TimelineChartProps
{
export
interface
I
TimelineChartProps
{
data
:
Array
<
{
data
:
Array
<
{
x
:
string
;
x
:
string
;
y1
:
string
;
y1
:
string
;
...
@@ -12,6 +12,6 @@ export interface TimelineChartProps {
...
@@ -12,6 +12,6 @@ export interface TimelineChartProps {
}
}
export
default
class
TimelineChart
extends
React
.
Component
<
export
default
class
TimelineChart
extends
React
.
Component
<
TimelineChartProps
,
I
TimelineChartProps
,
any
any
>
{}
>
{}
src/components/Charts/WaterWave/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
WaterWaveProps
{
export
interface
I
WaterWaveProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
...
@@ -7,4 +7,4 @@ export interface WaterWaveProps {
...
@@ -7,4 +7,4 @@ export interface WaterWaveProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
WaterWave
extends
React
.
Component
<
WaterWaveProps
,
any
>
{}
export
default
class
WaterWave
extends
React
.
Component
<
I
WaterWaveProps
,
any
>
{}
src/components/CountDown/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
CountDownProps
{
export
interface
I
CountDownProps
{
format
?:
(
time
:
number
)
=>
void
;
format
?:
(
time
:
number
)
=>
void
;
target
:
Date
|
number
;
target
:
Date
|
number
;
onEnd
?:
()
=>
void
;
onEnd
?:
()
=>
void
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
CountDown
extends
React
.
Component
<
CountDownProps
,
any
>
{}
export
default
class
CountDown
extends
React
.
Component
<
I
CountDownProps
,
any
>
{}
src/components/DescriptionList/Description.d.ts
0 β 100644
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
export
default
class
Description
extends
React
.
Component
<
{
term
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
},
any
>
{}
src/components/DescriptionList/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
DescriptionListProps
{
import
Description
from
'
./Description
'
;
export
interface
IDescriptionListProps
{
layout
?:
'
horizontal
'
|
'
vertical
'
;
layout
?:
'
horizontal
'
|
'
vertical
'
;
col
?:
number
;
col
?:
number
;
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
...
@@ -8,17 +10,9 @@ export interface DescriptionListProps {
...
@@ -8,17 +10,9 @@ export interface DescriptionListProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
declare
class
Description
extends
React
.
Component
<
{
term
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
},
any
>
{}
export
default
class
DescriptionList
extends
React
.
Component
<
export
default
class
DescriptionList
extends
React
.
Component
<
DescriptionListProps
,
I
DescriptionListProps
,
any
any
>
{
>
{
static
Description
:
typeof
Description
;
public
static
Description
:
typeof
Description
;
}
}
src/components/Ellipsis/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
EllipsisProps
{
export
interface
I
EllipsisProps
{
tooltip
?:
boolean
;
tooltip
?:
boolean
;
length
?:
number
;
length
?:
number
;
lines
?:
number
;
lines
?:
number
;
...
@@ -7,4 +7,4 @@ export interface EllipsisProps {
...
@@ -7,4 +7,4 @@ export interface EllipsisProps {
className
?:
string
;
className
?:
string
;
}
}
export
default
class
Ellipsis
extends
React
.
Component
<
EllipsisProps
,
any
>
{}
export
default
class
Ellipsis
extends
React
.
Component
<
I
EllipsisProps
,
any
>
{}
src/components/Exception/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
ExceptionProps
{
export
interface
I
ExceptionProps
{
type
?:
"
403
"
|
"
404
"
|
"
500
"
;
type
?:
"
403
"
|
"
404
"
|
"
500
"
;
title
?:
React
.
ReactNode
;
title
?:
React
.
ReactNode
;
desc
?:
React
.
ReactNode
;
desc
?:
React
.
ReactNode
;
...
@@ -9,4 +9,4 @@ export interface ExceptionProps {
...
@@ -9,4 +9,4 @@ export interface ExceptionProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Exception
extends
React
.
Component
<
ExceptionProps
,
any
>
{}
export
default
class
Exception
extends
React
.
Component
<
I
ExceptionProps
,
any
>
{}
src/components/FooterToolbar/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
FooterToolbarProps
{
export
interface
I
FooterToolbarProps
{
extra
:
React
.
ReactNode
;
extra
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
FooterToolbar
extends
React
.
Component
<
export
default
class
FooterToolbar
extends
React
.
Component
<
FooterToolbarProps
,
I
FooterToolbarProps
,
any
any
>
{}
>
{}
src/components/GlobalFooter/index.d.ts
View file @
a28a71e9
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
GlobalFooterProps
{
export
interface
I
GlobalFooterProps
{
links
?:
Array
<
{
links
?:
Array
<
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
href
:
string
;
href
:
string
;
...
@@ -10,6 +10,6 @@ export interface GlobalFooterProps {
...
@@ -10,6 +10,6 @@ export interface GlobalFooterProps {
}
}
export
default
class
GlobalFooter
extends
React
.
Component
<
export
default
class
GlobalFooter
extends
React
.
Component
<
GlobalFooterProps
,
I
GlobalFooterProps
,
any
any
>
{}
>
{}
src/components/HeaderSearch/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
HeaderSearchProps
{
export
interface
I
HeaderSearchProps
{
placeholder
?:
string
;
placeholder
?:
string
;
dataSource
?:
Array
<
string
>
;
dataSource
?:
string
[]
;
onSearch
?:
(
value
:
string
)
=>
void
;
onSearch
?:
(
value
:
string
)
=>
void
;
onChange
?:
(
value
:
string
)
=>
void
;
onChange
?:
(
value
:
string
)
=>
void
;
onPressEnter
?:
(
value
:
string
)
=>
void
;
onPressEnter
?:
(
value
:
string
)
=>
void
;
...
@@ -9,6 +9,6 @@ export interface HeaderSearchProps {
...
@@ -9,6 +9,6 @@ export interface HeaderSearchProps {
}
}
export
default
class
HeaderSearch
extends
React
.
Component
<
export
default
class
HeaderSearch
extends
React
.
Component
<
HeaderSearchProps
,
I
HeaderSearchProps
,
any
any
>
{}
>
{}
src/components/NoticeIcon/NoticeIconTab.d.ts
0 β 100644
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
export
interface
INoticeIconData
{
avatar
?:
string
;
title
?:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
datetime
?:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
export
interface
INoticeIconTabProps
{
list
?:
INoticeIconData
[];
title
?:
string
;
emptyText
?:
React
.
ReactNode
;
emptyImage
?:
string
;
style
?:
React
.
CSSProperties
;
}
export
default
class
NoticeIconTab
extends
React
.
Component
<
INoticeIconTabProps
,
any
>
{}
src/components/NoticeIcon/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
React
from
'
react
'
;
export
interface
NoticeIconData
{
import
NoticeIconTab
,
{
INoticeIconData
}
from
'
./NoticeIconTab
'
;
avatar
?:
string
;
title
?:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
datetime
?:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
export
interface
NoticeIconProps
{
export
interface
I
NoticeIconProps
{
count
?:
number
;
count
?:
number
;
className
?:
string
;
className
?:
string
;
loading
?:
boolean
;
loading
?:
boolean
;
onClear
?:
(
tableTile
:
string
)
=>
void
;
onClear
?:
(
tableTile
:
string
)
=>
void
;
onItemClick
?:
(
item
:
NoticeIconData
,
tabProps
:
NoticeIconProps
)
=>
void
;
onItemClick
?:
(
item
:
INoticeIconData
,
tabProps
:
I
NoticeIconProps
)
=>
void
;
onTabChange
?:
(
tableTile
:
string
)
=>
void
;
onTabChange
?:
(
tableTile
:
string
)
=>
void
;
popupAlign
?:
{
popupAlign
?:
{
points
?:
[
string
,
string
];
points
?:
[
string
,
string
];
...
@@ -30,16 +23,6 @@ export interface NoticeIconProps {
...
@@ -30,16 +23,6 @@ export interface NoticeIconProps {
locale
?:
{
emptyText
:
string
;
clear
:
string
};
locale
?:
{
emptyText
:
string
;
clear
:
string
};
}
}
export
interface
NoticeIconTabProps
{
export
default
class
NoticeIcon
extends
React
.
Component
<
INoticeIconProps
,
any
>
{
list
?:
Array
<
NoticeIconData
>
;
public
static
Tab
:
typeof
NoticeIconTab
;
title
?:
string
;
emptyText
?:
React
.
ReactNode
;
emptyImage
?:
string
;
style
?:
React
.
CSSProperties
;
}
export
class
NoticeIconTab
extends
React
.
Component
<
NoticeIconTabProps
,
any
>
{}
export
default
class
NoticeIcon
extends
React
.
Component
<
NoticeIconProps
,
any
>
{
static
Tab
:
typeof
NoticeIconTab
;
}
}
src/components/NumberInfo/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
NumberInfoProps
{
export
interface
I
NumberInfoProps
{
title
?:
React
.
ReactNode
|
string
;
title
?:
React
.
ReactNode
|
string
;
subTitle
?:
React
.
ReactNode
|
string
;
subTitle
?:
React
.
ReactNode
|
string
;
total
?:
React
.
ReactNode
|
string
;
total
?:
React
.
ReactNode
|
string
;
...
@@ -10,4 +10,7 @@ export interface NumberInfoProps {
...
@@ -10,4 +10,7 @@ export interface NumberInfoProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
NumberInfo
extends
React
.
Component
<
NumberInfoProps
,
any
>
{}
export
default
class
NumberInfo
extends
React
.
Component
<
INumberInfoProps
,
any
>
{}
src/components/PageHeader/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
PageHeaderProps
{
export
interface
I
PageHeaderProps
{
title
?:
React
.
ReactNode
|
string
;
title
?:
React
.
ReactNode
|
string
;
logo
?:
React
.
ReactNode
|
string
;
logo
?:
React
.
ReactNode
|
string
;
action
?:
React
.
ReactNode
|
string
;
action
?:
React
.
ReactNode
|
string
;
content
?:
React
.
ReactNode
;
content
?:
React
.
ReactNode
;
extraContent
?:
React
.
ReactNode
;
extraContent
?:
React
.
ReactNode
;
routes
?:
Array
<
any
>
;
routes
?:
any
[]
;
params
?:
any
;
params
?:
any
;
breadcrumbList
?:
Array
<
{
title
:
React
.
ReactNode
;
href
?:
string
}
>
;
breadcrumbList
?:
Array
<
{
title
:
React
.
ReactNode
;
href
?:
string
}
>
;
tabList
?:
Array
<
{
key
:
string
;
tab
:
React
.
ReactNode
}
>
;
tabList
?:
Array
<
{
key
:
string
;
tab
:
React
.
ReactNode
}
>
;
...
@@ -16,4 +16,4 @@ export interface PageHeaderProps {
...
@@ -16,4 +16,4 @@ export interface PageHeaderProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
PageHeader
extends
React
.
Component
<
PageHeaderProps
,
any
>
{}
export
default
class
PageHeader
extends
React
.
Component
<
I
PageHeaderProps
,
any
>
{}
src/components/Result/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
ResultProps
{
export
interface
I
ResultProps
{
type
:
'
success
'
|
'
error
'
;
type
:
'
success
'
|
'
error
'
;
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
...
@@ -8,4 +8,4 @@ export interface ResultProps {
...
@@ -8,4 +8,4 @@ export interface ResultProps {
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Result
extends
React
.
Component
<
ResultProps
,
any
>
{}
export
default
class
Result
extends
React
.
Component
<
I
ResultProps
,
any
>
{}
src/components/SiderMenu/index.less
View file @
a28a71e9
@import
"~antd/lib/style/themes/default.less"
;
@import
'~antd/lib/style/themes/default.less'
;
@ease-in-out-circ: cubic-bezier(
.78, .14, .15,
.86);
@ease-in-out-circ: cubic-bezier(
0.78, 0.14, 0.15, 0
.86);
.logo {
.logo {
height: 64px;
height: 64px;
position: relative;
position: relative;
line-height: 64px;
line-height: 64px;
padding-left: (@menu-collapsed-width - 32px) / 2;
padding-left: (@menu-collapsed-width - 32px) / 2;
transition: all .3s;
transition: all
0
.3s;
background: #002140;
background: #002140;
overflow: hidden;
overflow: hidden;
img {
img {
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
height: 32px;
height: 32px;
}
}
h1 {
h1 {
color:
#fff
;
color:
white
;
display: inline-block;
display: inline-block;
vertical-align: middle;
vertical-align: middle;
font-size: 20px;
font-size: 20px;
...
@@ -26,9 +26,18 @@
...
@@ -26,9 +26,18 @@
.sider {
.sider {
min-height: 100vh;
min-height: 100vh;
box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
box-shadow: 2px 0 6px rgba(0, 21, 41,
0
.35);
position: relative;
position: relative;
z-index: 10;
z-index: 10;
&.ligth {
background-color: white;
.logo {
background: white;
h1 {
color: #002140;
}
}
}
}
}
.icon {
.icon {
...
...
src/components/TagSelect/TagSelectOption.d.ts
0 β 100644
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
export
interface
ITagSelectOptionProps
{
value
:
string
|
number
;
style
?:
React
.
CSSProperties
;
}
export
default
class
TagSelectOption
extends
React
.
Component
<
ITagSelectOptionProps
,
any
>
{}
src/components/TagSelect/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
TagSelectProps
{
import
TagSelectOption
from
'
./TagSelectOption
'
;
onChange
?:
(
value
:
Array
<
string
>
)
=>
void
;
export
interface
ITagSelectProps
{
onChange
?:
(
value
:
string
[])
=>
void
;
expandable
?:
boolean
;
expandable
?:
boolean
;
value
?:
Array
<
string
>|
Array
<
number
>
;
value
?:
string
[]
|
number
[];
style
?:
React
.
CSSProperties
;
}
export
interface
TagSelectOptionProps
{
value
:
string
|
number
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
class
TagSelectOption
extends
React
.
Component
<
export
default
class
TagSelect
extends
React
.
Component
<
ITagSelectProps
,
any
>
{
TagSelectOptionProps
,
public
static
Option
:
typeof
TagSelectOption
;
any
private
children
:
>
{}
export
default
class
TagSelect
extends
React
.
Component
<
TagSelectProps
,
any
>
{
static
Option
:
typeof
TagSelectOption
;
children
:
|
React
.
ReactElement
<
TagSelectOption
>
|
React
.
ReactElement
<
TagSelectOption
>
|
Array
<
React
.
ReactElement
<
TagSelectOption
>>
;
|
Array
<
React
.
ReactElement
<
TagSelectOption
>>
;
}
}
src/components/Trend/index.d.ts
View file @
a28a71e9
import
*
as
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
export
interface
TrendProps
{
export
interface
I
TrendProps
{
colorful
?:
boolean
;
colorful
?:
boolean
;
flag
:
'
up
'
|
'
down
'
;
flag
:
'
up
'
|
'
down
'
;
style
?:
React
.
CSSProperties
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Trend
extends
React
.
Component
<
TrendProps
,
any
>
{}
export
default
class
Trend
extends
React
.
Component
<
I
TrendProps
,
any
>
{}
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