Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
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
2baef5e8
Commit
2baef5e8
authored
7 years ago
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support typescript
parent
976e610b
Changes
26
Hide whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
110 additions
and
55 deletions
+110
-55
src/components/Authorized/index.d.ts
src/components/Authorized/index.d.ts
+15
-14
src/components/Charts/Bar/index.d.ts
src/components/Charts/Bar/index.d.ts
+1
-0
src/components/Charts/ChartCard/index.d.ts
src/components/Charts/ChartCard/index.d.ts
+1
-0
src/components/Charts/Field/index.d.ts
src/components/Charts/Field/index.d.ts
+1
-0
src/components/Charts/Gauge/index.d.ts
src/components/Charts/Gauge/index.d.ts
+1
-0
src/components/Charts/MiniBar/index.d.ts
src/components/Charts/MiniBar/index.d.ts
+3
-2
src/components/Charts/MiniProgress/index.d.ts
src/components/Charts/MiniProgress/index.d.ts
+1
-0
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
+1
-0
src/components/Charts/TagCloud/index.d.ts
src/components/Charts/TagCloud/index.d.ts
+1
-0
src/components/Charts/TimelineChart/index.d.ts
src/components/Charts/TimelineChart/index.d.ts
+1
-0
src/components/Charts/WaterWave/index.d.ts
src/components/Charts/WaterWave/index.d.ts
+2
-1
src/components/Charts/index.d.ts
src/components/Charts/index.d.ts
+13
-13
src/components/DescriptionList/index.d.ts
src/components/DescriptionList/index.d.ts
+5
-3
src/components/Ellipsis/index.d.ts
src/components/Ellipsis/index.d.ts
+1
-0
src/components/Exception/index.d.ts
src/components/Exception/index.d.ts
+1
-0
src/components/FooterToolbar/index.d.ts
src/components/FooterToolbar/index.d.ts
+2
-1
src/components/GlobalFooter/index.d.ts
src/components/GlobalFooter/index.d.ts
+3
-2
src/components/HeaderSearch/index.d.ts
src/components/HeaderSearch/index.d.ts
+2
-1
src/components/Login/index.d.ts
src/components/Login/index.d.ts
+30
-0
src/components/NoticeIcon/index.d.ts
src/components/NoticeIcon/index.d.ts
+9
-8
src/components/NumberInfo/index.d.ts
src/components/NumberInfo/index.d.ts
+3
-2
src/components/PageHeader/index.d.ts
src/components/PageHeader/index.d.ts
+2
-1
src/components/Result/index.d.ts
src/components/Result/index.d.ts
+3
-2
src/components/TagSelect/index.d.ts
src/components/TagSelect/index.d.ts
+3
-1
src/components/Trend/index.d.ts
src/components/Trend/index.d.ts
+3
-2
No files found.
src/components/Authorized/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
import
*
as
H
from
"
history
"
;
import
{
RouteProps
}
from
'
react-router
'
;
import
{
RouteProps
}
from
"
react-router
"
;
type
authorityFN
=
()
=>
string
;
type
authorityFN
=
()
=>
string
;
type
authority
=
string
|
Array
<
string
>
|
authorityFN
|
Promise
<
any
>
;
type
authority
=
string
|
Array
<
string
>
|
authorityFN
|
Promise
<
any
>
;
export
type
IReactComponent
<
P
=
any
>
=
|
React
.
StatelessComponent
<
P
>
|
React
.
ComponentClass
<
P
>
|
React
.
ClassicComponentClass
<
P
>
;
interface
Secured
{
interface
Secured
{
(
authority
:
authority
,
error
?:
React
.
ReactNode
):
(
(
authority
:
authority
,
error
?:
React
.
ReactNode
):
<
T
extends
IReactComponent
>
(
target
:
React
.
ReactNode
target
:
T
,
)
=>
React
.
ReactNode
;
)
=>
T
;
}
}
export
interface
AuthorizedRouteProps
extends
RouteProps
{
export
interface
AuthorizedRouteProps
extends
RouteProps
{
...
@@ -18,16 +22,14 @@ export interface AuthorizedRouteProps extends RouteProps {
...
@@ -18,16 +22,14 @@ export interface AuthorizedRouteProps extends RouteProps {
export
class
AuthorizedRoute
extends
React
.
Component
<
export
class
AuthorizedRoute
extends
React
.
Component
<
AuthorizedRouteProps
,
AuthorizedRouteProps
,
any
any
>
{
>
{}
constructor
(
props
:
AuthorizedRouteProps
);
}
interface
check
{
interface
check
{
(
<
T
extends
IReactComponent
,
S
extends
IReactComponent
>
(
authority
:
authority
,
authority
:
authority
,
target
:
React
.
ReactNode
,
target
:
T
,
Exception
:
React
.
ReactNode
Exception
:
S
,
):
React
.
ReactNode
;
):
T
|
S
;
}
}
interface
AuthorizedProps
{
interface
AuthorizedProps
{
...
@@ -39,7 +41,6 @@ export class Authorized extends React.Component<AuthorizedProps, any> {
...
@@ -39,7 +41,6 @@ export class Authorized extends React.Component<AuthorizedProps, any> {
static
Secured
:
Secured
;
static
Secured
:
Secured
;
static
AuthorizedRoute
:
typeof
AuthorizedRoute
;
static
AuthorizedRoute
:
typeof
AuthorizedRoute
;
static
check
:
check
;
static
check
:
check
;
constructor
(
props
:
AuthorizedProps
);
}
}
declare
function
renderAuthorize
(
currentAuthority
:
string
):
typeof
Authorized
;
declare
function
renderAuthorize
(
currentAuthority
:
string
):
typeof
Authorized
;
...
...
This diff is collapsed.
Click to expand it.
src/components/Charts/Bar/index.d.ts
View file @
2baef5e8
...
@@ -9,6 +9,7 @@ export interface BarProps {
...
@@ -9,6 +9,7 @@ export interface BarProps {
y
:
number
;
y
:
number
;
}
>
;
}
>
;
autoLabel
?:
boolean
;
autoLabel
?:
boolean
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Bar
extends
React
.
Component
<
BarProps
,
any
>
{}
export
default
class
Bar
extends
React
.
Component
<
BarProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/ChartCard/index.d.ts
View file @
2baef5e8
...
@@ -6,6 +6,7 @@ export interface ChartCardProps {
...
@@ -6,6 +6,7 @@ export interface ChartCardProps {
footer
?:
React
.
ReactNode
;
footer
?:
React
.
ReactNode
;
contentHeight
?:
number
;
contentHeight
?:
number
;
avatar
?:
React
.
ReactNode
;
avatar
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
ChartCard
extends
React
.
Component
<
ChartCardProps
,
any
>
{}
export
default
class
ChartCard
extends
React
.
Component
<
ChartCardProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/Field/index.d.ts
View file @
2baef5e8
...
@@ -2,6 +2,7 @@ import * as React from "react";
...
@@ -2,6 +2,7 @@ import * as React from "react";
export
interface
FieldProps
{
export
interface
FieldProps
{
label
:
React
.
ReactNode
;
label
:
React
.
ReactNode
;
value
:
React
.
ReactNode
;
value
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Field
extends
React
.
Component
<
FieldProps
,
any
>
{}
export
default
class
Field
extends
React
.
Component
<
FieldProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/Gauge/index.d.ts
View file @
2baef5e8
...
@@ -5,6 +5,7 @@ export interface GaugeProps {
...
@@ -5,6 +5,7 @@ export interface GaugeProps {
height
:
number
;
height
:
number
;
bgColor
?:
number
;
bgColor
?:
number
;
percent
:
number
;
percent
:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Gauge
extends
React
.
Component
<
GaugeProps
,
any
>
{}
export
default
class
Gauge
extends
React
.
Component
<
GaugeProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/MiniBar/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
MiniBarProps
{
export
interface
MiniBarProps
{
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
data
:
Array
<
{
data
:
Array
<
{
x
:
number
;
x
:
number
|
string
;
y
:
number
;
y
:
number
;
}
>
;
}
>
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
MiniBar
extends
React
.
Component
<
MiniBarProps
,
any
>
{}
export
default
class
MiniBar
extends
React
.
Component
<
MiniBarProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/MiniProgress/index.d.ts
View file @
2baef5e8
...
@@ -4,6 +4,7 @@ export interface MiniProgressProps {
...
@@ -4,6 +4,7 @@ export interface MiniProgressProps {
color
?:
string
;
color
?:
string
;
strokeWidth
?:
number
;
strokeWidth
?:
number
;
percent
?:
number
;
percent
?:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
MiniProgress
extends
React
.
Component
<
export
default
class
MiniProgress
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/Charts/Pie/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
PieProps
{
export
interface
PieProps
{
animate
?:
boolean
;
animate
?:
boolean
;
color
?:
string
;
color
?:
string
;
...
@@ -7,7 +7,7 @@ export interface PieProps {
...
@@ -7,7 +7,7 @@ export interface PieProps {
padding
?:
[
number
,
number
,
number
,
number
];
padding
?:
[
number
,
number
,
number
,
number
];
percent
?:
number
;
percent
?:
number
;
data
?:
Array
<
{
data
?:
Array
<
{
x
:
string
;
x
:
string
|
string
;
y
:
number
;
y
:
number
;
}
>
;
}
>
;
total
?:
string
;
total
?:
string
;
...
...
This diff is collapsed.
Click to expand it.
src/components/Charts/Radar/index.d.ts
View file @
2baef5e8
...
@@ -9,6 +9,7 @@ export interface RadarProps {
...
@@ -9,6 +9,7 @@ export interface RadarProps {
label
:
string
;
label
:
string
;
value
:
string
;
value
:
string
;
}
>
;
}
>
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Radar
extends
React
.
Component
<
RadarProps
,
any
>
{}
export
default
class
Radar
extends
React
.
Component
<
RadarProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/TagCloud/index.d.ts
View file @
2baef5e8
...
@@ -5,6 +5,7 @@ export interface TagCloudProps {
...
@@ -5,6 +5,7 @@ export interface TagCloudProps {
value
:
number
;
value
:
number
;
}
>
;
}
>
;
height
:
number
;
height
:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
TagCloud
extends
React
.
Component
<
TagCloudProps
,
any
>
{}
export
default
class
TagCloud
extends
React
.
Component
<
TagCloudProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/TimelineChart/index.d.ts
View file @
2baef5e8
...
@@ -8,6 +8,7 @@ export interface TimelineChartProps {
...
@@ -8,6 +8,7 @@ export interface TimelineChartProps {
titleMap
:
{
y1
:
string
;
y2
:
string
};
titleMap
:
{
y1
:
string
;
y2
:
string
};
padding
?:
[
number
,
number
,
number
,
number
];
padding
?:
[
number
,
number
,
number
,
number
];
height
?:
number
;
height
?:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
TimelineChart
extends
React
.
Component
<
export
default
class
TimelineChart
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/Charts/WaterWave/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
WaterWaveProps
{
export
interface
WaterWaveProps
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
color
?:
string
;
color
?:
string
;
height
:
number
;
height
:
number
;
percent
:
number
;
percent
:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
WaterWave
extends
React
.
Component
<
WaterWaveProps
,
any
>
{}
export
default
class
WaterWave
extends
React
.
Component
<
WaterWaveProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Charts/index.d.ts
View file @
2baef5e8
export
{
default
as
numeral
}
from
"
numeral
"
;
import
*
as
numeral
from
'
numeral
'
;
export
{
default
as
ChartCard
}
from
"
./ChartCard
"
;
export
{
default
as
ChartCard
}
from
'
./ChartCard
'
;
export
{
default
as
Bar
}
from
"
./Bar
"
;
export
{
default
as
Bar
}
from
'
./Bar
'
;
export
{
default
as
Pie
}
from
"
./Pie
"
;
export
{
default
as
Pie
}
from
'
./Pie
'
;
export
{
default
as
Radar
}
from
"
./Radar
"
;
export
{
default
as
Radar
}
from
'
./Radar
'
;
export
{
default
as
Gauge
}
from
"
./Gauge
"
;
export
{
default
as
Gauge
}
from
'
./Gauge
'
;
export
{
default
as
MiniArea
}
from
"
./MiniArea
"
;
export
{
default
as
MiniArea
}
from
'
./MiniArea
'
;
export
{
default
as
MiniBar
}
from
"
./MiniBar
"
;
export
{
default
as
MiniBar
}
from
'
./MiniBar
'
;
export
{
default
as
MiniProgress
}
from
"
./MiniProgress
"
;
export
{
default
as
MiniProgress
}
from
'
./MiniProgress
'
;
export
{
default
as
Field
}
from
"
./Field
"
;
export
{
default
as
Field
}
from
'
./Field
'
;
export
{
default
as
WaterWave
}
from
"
./WaterWave
"
;
export
{
default
as
WaterWave
}
from
'
./WaterWave
'
;
export
{
default
as
TagCloud
}
from
"
./TagCloud
"
;
export
{
default
as
TagCloud
}
from
'
./TagCloud
'
;
export
{
default
as
TimelineChart
}
from
"
./TimelineChart
"
;
export
{
default
as
TimelineChart
}
from
'
./TimelineChart
'
;
declare
const
yuan
:
(
value
:
number
|
string
)
=>
string
;
declare
const
yuan
:
(
value
:
number
|
string
)
=>
string
;
...
...
This diff is collapsed.
Click to expand it.
src/components/DescriptionList/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
DescriptionListProps
{
export
interface
DescriptionListProps
{
layout
?:
"
horizontal
"
|
"
vertical
"
;
layout
?:
'
horizontal
'
|
'
vertical
'
;
col
?:
number
;
col
?:
number
;
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
gutter
?:
number
;
gutter
?:
number
;
size
?:
"
large
"
|
"
small
"
;
size
?:
'
large
'
|
'
small
'
;
style
?:
React
.
CSSProperties
;
}
}
declare
class
Description
extends
React
.
Component
<
declare
class
Description
extends
React
.
Component
<
{
{
term
:
React
.
ReactNode
;
term
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
},
},
any
any
>
{}
>
{}
...
...
This diff is collapsed.
Click to expand it.
src/components/Ellipsis/index.d.ts
View file @
2baef5e8
...
@@ -3,6 +3,7 @@ export interface EllipsisProps {
...
@@ -3,6 +3,7 @@ export interface EllipsisProps {
tooltip
?:
boolean
;
tooltip
?:
boolean
;
length
?:
number
;
length
?:
number
;
lines
?:
number
;
lines
?:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Ellipsis
extends
React
.
Component
<
export
default
class
Ellipsis
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/Exception/index.d.ts
View file @
2baef5e8
...
@@ -6,6 +6,7 @@ export interface ExceptionProps {
...
@@ -6,6 +6,7 @@ export interface ExceptionProps {
img
?:
string
;
img
?:
string
;
actions
?:
React
.
ReactNode
;
actions
?:
React
.
ReactNode
;
linkElement
?:
React
.
ReactNode
;
linkElement
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Exception
extends
React
.
Component
<
ExceptionProps
,
any
>
{}
export
default
class
Exception
extends
React
.
Component
<
ExceptionProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/FooterToolbar/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
FooterToolbarProps
{
export
interface
FooterToolbarProps
{
extra
:
React
.
ReactNode
;
extra
:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
FooterToolbar
extends
React
.
Component
<
export
default
class
FooterToolbar
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/GlobalFooter/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
"
react
"
;
export
interface
GlobalFooterProps
{
export
interface
GlobalFooterProps
{
links
:
Array
<
{
links
?
:
Array
<
{
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
href
:
string
;
href
:
string
;
blankTarget
?:
boolean
;
blankTarget
?:
boolean
;
}
>
;
}
>
;
copyright
:
React
.
ReactNode
;
copyright
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
GlobalFooter
extends
React
.
Component
<
export
default
class
GlobalFooter
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/HeaderSearch/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
HeaderSearchProps
{
export
interface
HeaderSearchProps
{
placeholder
?:
string
;
placeholder
?:
string
;
dataSource
?:
Array
<
string
>
;
dataSource
?:
Array
<
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
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
HeaderSearch
extends
React
.
Component
<
export
default
class
HeaderSearch
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/Login/index.d.ts
0 β 100644
View file @
2baef5e8
import
*
as
React
from
'
react
'
;
import
Button
from
'
antd/lib/button
'
;
export
interface
LoginProps
{
defaultActiveKey
?:
string
;
onTabChange
?:
(
key
:
string
)
=>
void
;
onSubmit
?:
(
error
:
any
,
values
:
any
)
=>
void
;
}
export
interface
TabProps
{
key
?:
string
;
tab
?:
React
.
ReactNode
;
}
export
class
Tab
extends
React
.
Component
<
TabProps
,
any
>
{}
export
interface
LoginItemProps
{
name
?:
string
;
rules
?:
any
[];
onGetCaptcha
?:
()
=>
void
;
}
export
class
LoginItem
extends
React
.
Component
<
LoginItemProps
,
any
>
{}
export
default
class
Login
extends
React
.
Component
<
LoginProps
,
any
>
{
static
Tab
:
typeof
Tab
;
static
UserName
:
typeof
LoginItem
;
static
Password
:
typeof
LoginItem
;
static
Mobile
:
typeof
LoginItem
;
static
Captcha
:
typeof
LoginItem
;
static
Submit
:
typeof
Button
;
}
This diff is collapsed.
Click to expand it.
src/components/NoticeIcon/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
NoticeIconData
{
export
interface
NoticeIconData
{
avatar
:
string
;
avatar
?:
string
;
title
:
React
.
ReactNode
;
title
?:
React
.
ReactNode
;
description
:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
datetime
:
React
.
ReactNode
;
datetime
?:
React
.
ReactNode
;
extra
:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
interface
NoticeIconProps
{
export
interface
NoticeIconProps
{
...
@@ -29,8 +30,8 @@ export interface NoticeIconProps {
...
@@ -29,8 +30,8 @@ export interface NoticeIconProps {
}
}
export
interface
NoticeIconTabProps
{
export
interface
NoticeIconTabProps
{
list
:
Array
<
NoticeIconData
>
;
list
?
:
Array
<
NoticeIconData
>
;
title
:
string
;
title
?
:
string
;
emptyText
?:
React
.
ReactNode
;
emptyText
?:
React
.
ReactNode
;
emptyImage
?:
string
;
emptyImage
?:
string
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/components/NumberInfo/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
NumberInfoProps
{
export
interface
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
;
status
?:
"
up
"
|
"
down
"
;
status
?:
'
up
'
|
'
down
'
;
theme
?:
string
;
theme
?:
string
;
gap
?:
number
;
gap
?:
number
;
subTotal
?:
number
;
subTotal
?:
number
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
NumberInfo
extends
React
.
Component
<
NumberInfoProps
,
any
>
{}
export
default
class
NumberInfo
extends
React
.
Component
<
NumberInfoProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/PageHeader/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
PageHeaderProps
{
export
interface
PageHeaderProps
{
title
?:
React
.
ReactNode
|
string
;
title
?:
React
.
ReactNode
|
string
;
logo
?:
React
.
ReactNode
|
string
;
logo
?:
React
.
ReactNode
|
string
;
...
@@ -12,6 +12,7 @@ export interface PageHeaderProps {
...
@@ -12,6 +12,7 @@ export interface PageHeaderProps {
tabActiveKey
?:
string
;
tabActiveKey
?:
string
;
onTabChange
?:
(
key
:
string
)
=>
void
;
onTabChange
?:
(
key
:
string
)
=>
void
;
linkElement
?:
React
.
ReactNode
;
linkElement
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
PageHeader
extends
React
.
Component
<
PageHeaderProps
,
any
>
{}
export
default
class
PageHeader
extends
React
.
Component
<
PageHeaderProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/Result/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
ResultProps
{
export
interface
ResultProps
{
type
:
"
success
"
|
"
error
"
;
type
:
'
success
'
|
'
error
'
;
title
:
React
.
ReactNode
;
title
:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
description
?:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
extra
?:
React
.
ReactNode
;
actions
?:
React
.
ReactNode
;
actions
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Result
extends
React
.
Component
<
ResultProps
,
any
>
{}
export
default
class
Result
extends
React
.
Component
<
ResultProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
src/components/TagSelect/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
TagSelectProps
{
export
interface
TagSelectProps
{
onChange
?:
(
value
:
Array
<
string
>
)
=>
void
;
onChange
?:
(
value
:
Array
<
string
>
)
=>
void
;
expandable
?:
boolean
;
expandable
?:
boolean
;
style
?:
React
.
CSSProperties
;
}
}
export
interface
TagSelectOptionProps
{
export
interface
TagSelectOptionProps
{
value
:
string
;
value
:
string
;
style
?:
React
.
CSSProperties
;
}
}
export
class
TagSelectOption
extends
React
.
Component
<
export
class
TagSelectOption
extends
React
.
Component
<
...
...
This diff is collapsed.
Click to expand it.
src/components/Trend/index.d.ts
View file @
2baef5e8
import
*
as
React
from
"
react
"
;
import
*
as
React
from
'
react
'
;
export
interface
TrendProps
{
export
interface
TrendProps
{
colorful
?:
boolean
;
colorful
?:
boolean
;
flag
:
"
up
"
|
"
down
"
;
flag
:
'
up
'
|
'
down
'
;
style
?:
React
.
CSSProperties
;
}
}
export
default
class
Trend
extends
React
.
Component
<
TrendProps
,
any
>
{}
export
default
class
Trend
extends
React
.
Component
<
TrendProps
,
any
>
{}
This diff is collapsed.
Click to expand it.
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