Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
479a5cb7
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
479a5cb7
编写于
11月 17, 2017
作者:
W
Wei Zhu
提交者:
GitHub
11月 17, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove allowSyntheticDefaultImports (#8218)
上级
fdf0c11e
变更
143
展开全部
隐藏空白更改
内联
并排
Showing
143 changed file
with
205 addition
and
233 deletion
+205
-233
.jest.js
.jest.js
+5
-0
.jest.node.js
.jest.node.js
+5
-0
README-zh_CN.md
README-zh_CN.md
+1
-14
README.md
README.md
+1
-14
components/_util/callMoment.tsx
components/_util/callMoment.tsx
+5
-0
components/affix/index.tsx
components/affix/index.tsx
+2
-2
components/alert/index.tsx
components/alert/index.tsx
+2
-2
components/anchor/Anchor.tsx
components/anchor/Anchor.tsx
+2
-2
components/anchor/AnchorLink.tsx
components/anchor/AnchorLink.tsx
+1
-1
components/auto-complete/InputElement.tsx
components/auto-complete/InputElement.tsx
+4
-4
components/auto-complete/index.tsx
components/auto-complete/index.tsx
+1
-1
components/avatar/index.tsx
components/avatar/index.tsx
+2
-2
components/back-top/index.tsx
components/back-top/index.tsx
+1
-1
components/badge/ScrollNumber.tsx
components/badge/ScrollNumber.tsx
+1
-1
components/badge/index.tsx
components/badge/index.tsx
+1
-1
components/breadcrumb/Breadcrumb.tsx
components/breadcrumb/Breadcrumb.tsx
+1
-1
components/breadcrumb/BreadcrumbItem.tsx
components/breadcrumb/BreadcrumbItem.tsx
+1
-1
components/button/button-group.tsx
components/button/button-group.tsx
+1
-1
components/button/button.tsx
components/button/button.tsx
+1
-1
components/calendar/Header.tsx
components/calendar/Header.tsx
+2
-2
components/calendar/index.tsx
components/calendar/index.tsx
+5
-3
components/card/Grid.tsx
components/card/Grid.tsx
+1
-1
components/card/Meta.tsx
components/card/Meta.tsx
+1
-1
components/card/index.tsx
components/card/index.tsx
+3
-3
components/carousel/index.tsx
components/carousel/index.tsx
+1
-1
components/cascader/index.tsx
components/cascader/index.tsx
+1
-1
components/checkbox/Checkbox.tsx
components/checkbox/Checkbox.tsx
+1
-1
components/checkbox/Group.tsx
components/checkbox/Group.tsx
+1
-1
components/collapse/Collapse.tsx
components/collapse/Collapse.tsx
+1
-1
components/date-picker/Calendar.tsx
components/date-picker/Calendar.tsx
+1
-1
components/date-picker/RangePicker.tsx
components/date-picker/RangePicker.tsx
+4
-3
components/date-picker/WeekPicker.tsx
components/date-picker/WeekPicker.tsx
+3
-3
components/date-picker/createPicker.tsx
components/date-picker/createPicker.tsx
+4
-3
components/date-picker/index.tsx
components/date-picker/index.tsx
+2
-2
components/date-picker/wrapPicker.tsx
components/date-picker/wrapPicker.tsx
+1
-1
components/divider/index.tsx
components/divider/index.tsx
+1
-1
components/dropdown/dropdown-button.tsx
components/dropdown/dropdown-button.tsx
+1
-1
components/dropdown/dropdown.tsx
components/dropdown/dropdown.tsx
+3
-3
components/form/Form.tsx
components/form/Form.tsx
+1
-1
components/form/FormItem.tsx
components/form/FormItem.tsx
+3
-3
components/form/__tests__/type.tsx
components/form/__tests__/type.tsx
+1
-1
components/grid/col.tsx
components/grid/col.tsx
+1
-1
components/grid/row.tsx
components/grid/row.tsx
+1
-1
components/icon/index.tsx
components/icon/index.tsx
+1
-1
components/input-number/index.tsx
components/input-number/index.tsx
+1
-1
components/input/Group.tsx
components/input/Group.tsx
+1
-1
components/input/Input.tsx
components/input/Input.tsx
+4
-4
components/input/Search.tsx
components/input/Search.tsx
+1
-1
components/input/TextArea.tsx
components/input/TextArea.tsx
+1
-1
components/layout/Sider.tsx
components/layout/Sider.tsx
+1
-1
components/layout/layout.tsx
components/layout/layout.tsx
+1
-1
components/list/Item.tsx
components/list/Item.tsx
+1
-1
components/list/index.tsx
components/list/index.tsx
+2
-2
components/locale-provider/LocaleReceiver.tsx
components/locale-provider/LocaleReceiver.tsx
+1
-1
components/locale-provider/ar_EG.tsx
components/locale-provider/ar_EG.tsx
+1
-1
components/locale-provider/bg_BG.tsx
components/locale-provider/bg_BG.tsx
+1
-1
components/locale-provider/ca_ES.tsx
components/locale-provider/ca_ES.tsx
+1
-1
components/locale-provider/cs_CZ.tsx
components/locale-provider/cs_CZ.tsx
+1
-1
components/locale-provider/de_DE.tsx
components/locale-provider/de_DE.tsx
+1
-1
components/locale-provider/el_GR.tsx
components/locale-provider/el_GR.tsx
+1
-1
components/locale-provider/en_GB.tsx
components/locale-provider/en_GB.tsx
+1
-1
components/locale-provider/en_US.tsx
components/locale-provider/en_US.tsx
+1
-1
components/locale-provider/et_EE.tsx
components/locale-provider/et_EE.tsx
+1
-1
components/locale-provider/fa_IR.tsx
components/locale-provider/fa_IR.tsx
+1
-1
components/locale-provider/fi_FI.tsx
components/locale-provider/fi_FI.tsx
+1
-1
components/locale-provider/fr_BE.tsx
components/locale-provider/fr_BE.tsx
+1
-1
components/locale-provider/fr_FR.tsx
components/locale-provider/fr_FR.tsx
+1
-1
components/locale-provider/index.tsx
components/locale-provider/index.tsx
+1
-1
components/locale-provider/is_IS.tsx
components/locale-provider/is_IS.tsx
+1
-1
components/locale-provider/it_IT.tsx
components/locale-provider/it_IT.tsx
+1
-1
components/locale-provider/ja_JP.tsx
components/locale-provider/ja_JP.tsx
+1
-1
components/locale-provider/ko_KR.tsx
components/locale-provider/ko_KR.tsx
+1
-1
components/locale-provider/nb_NO.tsx
components/locale-provider/nb_NO.tsx
+1
-1
components/locale-provider/nl_BE.tsx
components/locale-provider/nl_BE.tsx
+1
-1
components/locale-provider/nl_NL.tsx
components/locale-provider/nl_NL.tsx
+1
-1
components/locale-provider/pl_PL.tsx
components/locale-provider/pl_PL.tsx
+1
-1
components/locale-provider/pt_BR.tsx
components/locale-provider/pt_BR.tsx
+1
-1
components/locale-provider/pt_PT.tsx
components/locale-provider/pt_PT.tsx
+1
-1
components/locale-provider/ru_RU.tsx
components/locale-provider/ru_RU.tsx
+1
-1
components/locale-provider/sk_SK.tsx
components/locale-provider/sk_SK.tsx
+1
-1
components/locale-provider/sr_RS.tsx
components/locale-provider/sr_RS.tsx
+1
-1
components/locale-provider/sv_SE.tsx
components/locale-provider/sv_SE.tsx
+1
-1
components/locale-provider/th_TH.tsx
components/locale-provider/th_TH.tsx
+1
-1
components/locale-provider/tr_TR.tsx
components/locale-provider/tr_TR.tsx
+1
-1
components/locale-provider/uk_UA.tsx
components/locale-provider/uk_UA.tsx
+1
-1
components/locale-provider/vi_VN.tsx
components/locale-provider/vi_VN.tsx
+1
-1
components/locale-provider/zh_CN.tsx
components/locale-provider/zh_CN.tsx
+1
-1
components/locale-provider/zh_TW.tsx
components/locale-provider/zh_TW.tsx
+1
-1
components/mention/index.tsx
components/mention/index.tsx
+1
-1
components/menu/MenuItem.tsx
components/menu/MenuItem.tsx
+1
-1
components/menu/SubMenu.tsx
components/menu/SubMenu.tsx
+1
-1
components/menu/index.tsx
components/menu/index.tsx
+1
-1
components/message/index.tsx
components/message/index.tsx
+1
-1
components/modal/ActionButton.tsx
components/modal/ActionButton.tsx
+2
-2
components/modal/Modal.tsx
components/modal/Modal.tsx
+1
-1
components/modal/confirm.tsx
components/modal/confirm.tsx
+2
-2
components/notification/index.tsx
components/notification/index.tsx
+1
-1
components/pagination/MiniSelect.tsx
components/pagination/MiniSelect.tsx
+1
-1
components/pagination/Pagination.tsx
components/pagination/Pagination.tsx
+1
-1
components/popconfirm/index.tsx
components/popconfirm/index.tsx
+1
-1
components/popover/index.tsx
components/popover/index.tsx
+1
-1
components/progress/progress.tsx
components/progress/progress.tsx
+1
-1
components/radio/group.tsx
components/radio/group.tsx
+1
-1
components/radio/radio.tsx
components/radio/radio.tsx
+1
-1
components/radio/radioButton.tsx
components/radio/radioButton.tsx
+1
-1
components/rate/index.tsx
components/rate/index.tsx
+1
-1
components/select/index.tsx
components/select/index.tsx
+1
-1
components/slider/index.tsx
components/slider/index.tsx
+1
-1
components/spin/index.tsx
components/spin/index.tsx
+1
-1
components/steps/index.tsx
components/steps/index.tsx
+1
-1
components/switch/index.tsx
components/switch/index.tsx
+1
-1
components/table/Column.tsx
components/table/Column.tsx
+1
-1
components/table/ColumnGroup.tsx
components/table/ColumnGroup.tsx
+1
-1
components/table/FilterDropdownMenuWrapper.tsx
components/table/FilterDropdownMenuWrapper.tsx
+1
-1
components/table/SelectionBox.tsx
components/table/SelectionBox.tsx
+1
-1
components/table/SelectionCheckboxAll.tsx
components/table/SelectionCheckboxAll.tsx
+1
-1
components/table/Table.tsx
components/table/Table.tsx
+3
-3
components/table/filterDropdown.tsx
components/table/filterDropdown.tsx
+2
-2
components/table/util.tsx
components/table/util.tsx
+1
-1
components/tabs/index.tsx
components/tabs/index.tsx
+4
-4
components/tag/CheckableTag.tsx
components/tag/CheckableTag.tsx
+1
-1
components/tag/index.tsx
components/tag/index.tsx
+2
-2
components/time-picker/index.tsx
components/time-picker/index.tsx
+2
-2
components/timeline/Timeline.tsx
components/timeline/Timeline.tsx
+4
-4
components/timeline/TimelineItem.tsx
components/timeline/TimelineItem.tsx
+1
-1
components/tooltip/index.tsx
components/tooltip/index.tsx
+1
-1
components/transfer/index.tsx
components/transfer/index.tsx
+1
-1
components/transfer/item.tsx
components/transfer/item.tsx
+1
-1
components/transfer/list.tsx
components/transfer/list.tsx
+3
-3
components/transfer/operation.tsx
components/transfer/operation.tsx
+1
-1
components/transfer/search.tsx
components/transfer/search.tsx
+1
-1
components/tree-select/index.tsx
components/tree-select/index.tsx
+1
-1
components/tree-select/interface.tsx
components/tree-select/interface.tsx
+1
-1
components/tree/index.tsx
components/tree/index.tsx
+1
-1
components/upload/Dragger.tsx
components/upload/Dragger.tsx
+1
-1
components/upload/Upload.tsx
components/upload/Upload.tsx
+1
-1
components/upload/UploadList.tsx
components/upload/UploadList.tsx
+1
-1
components/upload/interface.tsx
components/upload/interface.tsx
+1
-1
docs/react/introduce.en-US.md
docs/react/introduce.en-US.md
+1
-14
docs/react/introduce.zh-CN.md
docs/react/introduce.zh-CN.md
+1
-14
package.json
package.json
+1
-1
tsconfig.json
tsconfig.json
+0
-1
tsconfig.test.json
tsconfig.test.json
+6
-0
未找到文件。
.jest.js
浏览文件 @
479a5cb7
...
...
@@ -42,4 +42,9 @@ module.exports = {
snapshotSerializers
:
[
'
enzyme-to-json/serializer
'
,
],
globals
:
{
'
ts-jest
'
:
{
tsConfigFile
:
'
./tsconfig.test.json
'
,
}
},
};
.jest.node.js
浏览文件 @
479a5cb7
...
...
@@ -18,4 +18,9 @@ module.exports = {
snapshotSerializers
:
[
'
enzyme-to-json/serializer
'
],
globals
:
{
'
ts-jest
'
:
{
tsConfigFile
:
'
./tsconfig.test.json
'
,
}
},
};
README-zh_CN.md
浏览文件 @
479a5cb7
...
...
@@ -60,20 +60,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
## TypeScript
```
js
// tsconfig.json
{
"
compilerOptions
"
:
{
"
moduleResolution
"
:
"
node
"
,
"
jsx
"
:
"
preserve
"
,
"
allowSyntheticDefaultImports
"
:
true
}
}
```
> 注意:
> - 设置 `allowSyntheticDefaultImports` 避免 `error TS1192: Module 'react' has no default export` 的错误。
> - 不要使用 @types/antd, antd 已经自带了 TypeScript 定义。
-
不要使用 @types/antd, antd 已经自带了 TypeScript 定义。
## 国际化
...
...
README.md
浏览文件 @
479a5cb7
...
...
@@ -86,20 +86,7 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
### TypeScript
```
js
// tsconfig.json
{
"
compilerOptions
"
:
{
"
moduleResolution
"
:
"
node
"
,
"
jsx
"
:
"
preserve
"
,
"
allowSyntheticDefaultImports
"
:
true
}
}
```
> Note:
> - set `allowSyntheticDefaultImports` to prevent `error TS1192: Module 'react' has no default export`.
> - Don't use @types/antd, antd provide a built-in ts definition already.
-
Don't use @types/antd, antd provide a built-in ts definition already.
#### Use [ts-import-plugin](https://github.com/Brooooooklyn/ts-import-plugin) with modularized antd
...
...
components/_util/callMoment.tsx
0 → 100644
浏览文件 @
479a5cb7
// https://github.com/moment/moment/issues/3650
export
default
function
callMoment
(
moment
,
...
args
)
{
return
(
moment
.
default
||
moment
)(...
args
);
}
components/affix/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
PropTypes
from
'
prop-types
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
import
classNames
from
'
classnames
'
;
...
...
components/alert/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
Animate
from
'
rc-animate
'
;
import
Icon
from
'
../icon
'
;
import
classNames
from
'
classnames
'
;
...
...
components/anchor/Anchor.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
...
...
components/anchor/AnchorLink.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
...
...
components/auto-complete/InputElement.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
{
findDOMNode
}
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
export
interface
InputElementProps
{
children
:
React
.
ReactElement
<
any
>
;
...
...
@@ -9,10 +9,10 @@ export default class InputElement extends React.Component<InputElementProps, any
private
ele
:
HTMLInputElement
;
focus
=
()
=>
{
this
.
ele
.
focus
?
this
.
ele
.
focus
()
:
(
findDOMNode
(
this
.
ele
)
as
HTMLInputElement
).
focus
();
this
.
ele
.
focus
?
this
.
ele
.
focus
()
:
(
ReactDOM
.
findDOMNode
(
this
.
ele
)
as
HTMLInputElement
).
focus
();
}
blur
=
()
=>
{
this
.
ele
.
blur
?
this
.
ele
.
blur
()
:
(
findDOMNode
(
this
.
ele
)
as
HTMLInputElement
).
blur
();
this
.
ele
.
blur
?
this
.
ele
.
blur
()
:
(
ReactDOM
.
findDOMNode
(
this
.
ele
)
as
HTMLInputElement
).
blur
();
}
saveRef
=
(
ele
:
HTMLInputElement
)
=>
{
this
.
ele
=
ele
;
...
...
components/auto-complete/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
{
Option
,
OptGroup
}
from
'
rc-select
'
;
import
classNames
from
'
classnames
'
;
import
Select
,
{
AbstractSelectProps
,
SelectValue
,
OptionProps
,
OptGroupProps
}
from
'
../select
'
;
...
...
components/avatar/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
Icon
from
'
../icon
'
;
import
classNames
from
'
classnames
'
;
...
...
components/back-top/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Animate
from
'
rc-animate
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
import
classNames
from
'
classnames
'
;
...
...
components/badge/ScrollNumber.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
{
createElement
,
Component
}
from
'
react
'
;
import
omit
from
'
omit.js
'
;
import
classNames
from
'
classnames
'
;
...
...
components/badge/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
Animate
from
'
rc-animate
'
;
import
ScrollNumber
from
'
./ScrollNumber
'
;
...
...
components/breadcrumb/Breadcrumb.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
cloneElement
}
from
'
react
'
;
import
warning
from
'
../_util/warning
'
;
...
...
components/breadcrumb/BreadcrumbItem.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
export
interface
BreadcrumbItemProps
{
...
...
components/button/button-group.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
{
ButtonSize
}
from
'
./button
'
;
...
...
components/button/button.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
omit
from
'
omit.js
'
;
...
...
components/calendar/Header.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
*
as
React
from
'
react
'
;
import
*
as
moment
from
'
moment
'
;
import
{
PREFIX_CLS
}
from
'
./Constants
'
;
import
Select
from
'
../select
'
;
import
{
Group
,
Button
}
from
'
../radio
'
;
...
...
components/calendar/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
import
FullCalendar
from
'
rc-calendar/lib/FullCalendar
'
;
import
LocaleReceiver
from
'
../locale-provider/LocaleReceiver
'
;
import
{
PREFIX_CLS
}
from
'
./Constants
'
;
import
Header
from
'
./Header
'
;
import
callMoment
from
'
../_util/callMoment
'
;
declare
const
require
:
Function
;
export
{
HeaderProps
}
from
'
./Header
'
;
...
...
@@ -71,7 +73,7 @@ export default class Calendar extends React.Component<CalendarProps, CalendarSta
constructor
(
props
,
context
)
{
super
(
props
,
context
);
const
value
=
props
.
value
||
props
.
defaultValue
||
moment
(
);
const
value
=
props
.
value
||
props
.
defaultValue
||
callMoment
(
moment
);
if
(
!
moment
.
isMoment
(
value
))
{
throw
new
Error
(
'
The value/defaultValue of Calendar must be a moment object after `antd@2.0`,
'
+
...
...
components/card/Grid.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
export
interface
CardGridProps
{
...
...
components/card/Meta.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
export
interface
CardMetaProps
{
...
...
components/card/index.tsx
浏览文件 @
479a5cb7
import
React
,
{
Component
,
Children
}
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
import
omit
from
'
omit.js
'
;
...
...
@@ -38,7 +38,7 @@ export interface CardProps {
onTabChange
?:
(
key
:
string
)
=>
void
;
}
export
default
class
Card
extends
Component
<
CardProps
,
{}
>
{
export
default
class
Card
extends
React
.
Component
<
CardProps
,
{}
>
{
static
Grid
:
typeof
Grid
=
Grid
;
static
Meta
:
typeof
Meta
=
Meta
;
resizeEvent
:
any
;
...
...
@@ -93,7 +93,7 @@ export default class Card extends Component<CardProps, {}> {
}
isContainGrid
()
{
let
containGrid
;
Children
.
forEach
(
this
.
props
.
children
,
(
element
:
JSX
.
Element
)
=>
{
React
.
Children
.
forEach
(
this
.
props
.
children
,
(
element
:
JSX
.
Element
)
=>
{
if
(
element
&&
element
.
type
&&
element
.
type
===
Grid
)
{
containGrid
=
true
;
}
...
...
components/carousel/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
debounce
from
'
lodash.debounce
'
;
// matchMedia polyfill for
...
...
components/cascader/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcCascader
from
'
rc-cascader
'
;
import
arrayTreeFilter
from
'
array-tree-filter
'
;
import
classNames
from
'
classnames
'
;
...
...
components/checkbox/Checkbox.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
RcCheckbox
from
'
rc-checkbox
'
;
...
...
components/checkbox/Group.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
shallowEqual
from
'
shallowequal
'
;
...
...
components/collapse/Collapse.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcCollapse
from
'
rc-collapse
'
;
import
classNames
from
'
classnames
'
;
import
animation
from
'
../_util/openAnimation
'
;
...
...
components/date-picker/Calendar.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
CalendarLocale
from
'
rc-calendar/lib/locale/zh_CN
'
;
import
RcCalendar
from
'
rc-calendar
'
;
import
warning
from
'
warning
'
;
...
...
components/date-picker/RangePicker.tsx
浏览文件 @
479a5cb7
/* tslint:disable jsx-no-multiline-js */
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
*
as
React
from
'
react
'
;
import
*
as
moment
from
'
moment
'
;
import
RangeCalendar
from
'
rc-calendar/lib/RangeCalendar
'
;
import
RcDatePicker
from
'
rc-calendar/lib/Picker
'
;
import
classNames
from
'
classnames
'
;
import
Icon
from
'
../icon
'
;
import
warning
from
'
../_util/warning
'
;
import
callMoment
from
'
../_util/callMoment
'
;
function
getShowDateFromValue
(
value
:
moment
.
Moment
[]):
moment
.
Moment
[]
|
undefined
{
const
[
start
,
end
]
=
value
;
...
...
@@ -60,7 +61,7 @@ export default class RangePicker extends React.Component<any, any> {
const
pickerValue
=
!
value
||
isEmptyArray
(
value
)
?
props
.
defaultPickerValue
:
value
;
this
.
state
=
{
value
,
showDate
:
pickerValueAdapter
(
pickerValue
||
moment
(
)),
showDate
:
pickerValueAdapter
(
pickerValue
||
callMoment
(
moment
)),
open
:
props
.
open
,
hoverValue
:
[],
};
...
...
components/date-picker/WeekPicker.tsx
浏览文件 @
479a5cb7
import
React
,
{
Component
}
from
'
react
'
;
import
moment
from
'
moment
'
;
import
*
as
React
from
'
react
'
;
import
*
as
moment
from
'
moment
'
;
import
Calendar
from
'
rc-calendar
'
;
import
RcDatePicker
from
'
rc-calendar/lib/Picker
'
;
import
classNames
from
'
classnames
'
;
...
...
@@ -9,7 +9,7 @@ function formatValue(value: moment.Moment | undefined, format: string): string {
return
(
value
&&
value
.
format
(
format
))
||
''
;
}
export
default
class
WeekPicker
extends
Component
<
any
,
any
>
{
export
default
class
WeekPicker
extends
React
.
Component
<
any
,
any
>
{
static
defaultProps
=
{
format
:
'
YYYY-Wo
'
,
allowClear
:
true
,
...
...
components/date-picker/createPicker.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
*
as
React
from
'
react
'
;
import
*
as
moment
from
'
moment
'
;
import
MonthCalendar
from
'
rc-calendar/lib/MonthCalendar
'
;
import
RcDatePicker
from
'
rc-calendar/lib/Picker
'
;
import
classNames
from
'
classnames
'
;
import
omit
from
'
omit.js
'
;
import
Icon
from
'
../icon
'
;
import
warning
from
'
../_util/warning
'
;
import
callMoment
from
'
../_util/callMoment
'
;
export
interface
PickerProps
{
value
?:
moment
.
Moment
;
...
...
@@ -104,7 +105,7 @@ export default function createPicker(TheCalendar): any {
disabledTime
=
{
disabledTime
}
locale
=
{
locale
.
lang
}
timePicker
=
{
props
.
timePicker
}
defaultValue
=
{
props
.
defaultPickerValue
||
moment
(
)
}
defaultValue
=
{
props
.
defaultPickerValue
||
callMoment
(
moment
)
}
dateInputPlaceholder
=
{
placeholder
}
prefixCls
=
{
prefixCls
}
className
=
{
calendarClassName
}
...
...
components/date-picker/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
moment
from
'
moment
'
;
import
*
as
React
from
'
react
'
;
import
*
as
moment
from
'
moment
'
;
import
RcCalendar
from
'
rc-calendar
'
;
import
MonthCalendar
from
'
rc-calendar/lib/MonthCalendar
'
;
import
createPicker
from
'
./createPicker
'
;
...
...
components/date-picker/wrapPicker.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
TimePickerPanel
from
'
rc-time-picker/lib/Panel
'
;
import
classNames
from
'
classnames
'
;
import
LocaleReceiver
from
'
../locale-provider/LocaleReceiver
'
;
...
...
components/divider/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
export
default
function
Divider
({
...
...
components/dropdown/dropdown-button.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Button
from
'
../button
'
;
import
{
ButtonGroupProps
}
from
'
../button/button-group
'
;
import
Icon
from
'
../icon
'
;
...
...
components/dropdown/dropdown.tsx
浏览文件 @
479a5cb7
import
React
,
{
cloneElement
}
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcDropdown
from
'
rc-dropdown
'
;
import
classNames
from
'
classnames
'
;
import
DropdownButton
from
'
./dropdown-button
'
;
...
...
@@ -46,7 +46,7 @@ export default class Dropdown extends React.Component<DropDownProps, any> {
render
()
{
const
{
children
,
prefixCls
,
overlay
,
trigger
,
disabled
}
=
this
.
props
;
const
dropdownTrigger
=
cloneElement
(
children
as
any
,
{
const
dropdownTrigger
=
React
.
cloneElement
(
children
as
any
,
{
className
:
classNames
((
children
as
any
).
props
.
className
,
`
${
prefixCls
}
-trigger`
),
disabled
,
});
...
...
@@ -54,7 +54,7 @@ export default class Dropdown extends React.Component<DropDownProps, any> {
const
overlayProps
=
overlay
&&
(
overlay
as
any
).
props
;
const
selectable
=
(
overlayProps
&&
'
selectable
'
in
overlayProps
)
?
overlayProps
.
selectable
:
false
;
const
fixedModeOverlay
=
cloneElement
(
overlay
as
any
,
{
const
fixedModeOverlay
=
React
.
cloneElement
(
overlay
as
any
,
{
mode
:
'
vertical
'
,
selectable
,
});
...
...
components/form/Form.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
createDOMForm
from
'
rc-form/lib/createDOMForm
'
;
...
...
components/form/FormItem.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
{
findDOMNode
}
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
Animate
from
'
rc-animate
'
;
...
...
@@ -230,7 +230,7 @@ export default class FormItem extends React.Component<FormItemProps, any> {
const
controls
=
document
.
querySelectorAll
(
`[id="
${
id
}
"]`
);
if
(
controls
.
length
!==
1
)
{
e
.
preventDefault
();
const
control
=
findDOMNode
(
this
).
querySelector
(
`[id="
${
id
}
"]`
)
as
HTMLElement
;
const
control
=
ReactDOM
.
findDOMNode
(
this
).
querySelector
(
`[id="
${
id
}
"]`
)
as
HTMLElement
;
if
(
control
&&
control
.
focus
)
{
control
.
focus
();
}
...
...
components/form/__tests__/type.tsx
浏览文件 @
479a5cb7
/* tslint:disable */
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Form
,
{
FormComponentProps
}
from
'
../Form
'
;
// test Form.create on component without own props
...
...
components/grid/col.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
...
...
components/grid/row.tsx
浏览文件 @
479a5cb7
...
...
@@ -16,7 +16,7 @@ if (typeof window !== 'undefined') {
enquire
=
require
(
'
enquire.js
'
);
}
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
{
Children
,
cloneElement
}
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
PropTypes
from
'
prop-types
'
;
...
...
components/icon/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
omit
from
'
omit.js
'
;
...
...
components/input-number/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
RcInputNumber
from
'
rc-input-number
'
;
...
...
components/input/Group.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
export
interface
GroupProps
{
...
...
components/input/Input.tsx
浏览文件 @
479a5cb7
import
React
,
{
Component
,
cloneElement
}
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
omit
from
'
omit.js
'
;
...
...
@@ -45,7 +45,7 @@ export interface InputProps extends AbstractInputProps {
autoFocus
?:
boolean
;
}
export
default
class
Input
extends
Component
<
InputProps
,
any
>
{
export
default
class
Input
extends
React
.
Component
<
InputProps
,
any
>
{
static
Group
:
typeof
Group
;
static
Search
:
typeof
Search
;
static
TextArea
:
typeof
TextArea
;
...
...
@@ -148,7 +148,7 @@ export default class Input extends Component<InputProps, any> {
>
<
span
className
=
{
className
}
>
{
addonBefore
}
{
cloneElement
(
children
,
{
style
:
null
})
}
{
React
.
cloneElement
(
children
,
{
style
:
null
})
}
{
addonAfter
}
</
span
>
</
span
>
...
...
@@ -187,7 +187,7 @@ export default class Input extends Component<InputProps, any> {
style
=
{
props
.
style
}
>
{
prefix
}
{
cloneElement
(
children
,
{
style
:
null
,
className
:
this
.
getInputClassName
()
})
}
{
React
.
cloneElement
(
children
,
{
style
:
null
,
className
:
this
.
getInputClassName
()
})
}
{
suffix
}
</
span
>
);
...
...
components/input/Search.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
Input
,
{
InputProps
}
from
'
./Input
'
;
import
Icon
from
'
../icon
'
;
...
...
components/input/TextArea.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
omit
from
'
omit.js
'
;
import
classNames
from
'
classnames
'
;
import
{
AbstractInputProps
}
from
'
./Input
'
;
...
...
components/layout/Sider.tsx
浏览文件 @
479a5cb7
...
...
@@ -14,7 +14,7 @@ if (typeof window !== 'undefined') {
window
.
matchMedia
=
window
.
matchMedia
||
matchMediaPolyfill
;
}
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
omit
from
'
omit.js
'
;
import
PropTypes
from
'
prop-types
'
;
...
...
components/layout/layout.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
{
SiderProps
}
from
'
./Sider
'
;
...
...
components/list/Item.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
{
Col
}
from
'
../grid
'
;
...
...
components/list/index.tsx
浏览文件 @
479a5cb7
import
React
,
{
Component
}
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
import
LocaleReceiver
from
'
../locale-provider/LocaleReceiver
'
;
...
...
@@ -48,7 +48,7 @@ export interface ListProps {
locale
?:
Object
;
}
export
default
class
List
extends
Component
<
ListProps
>
{
export
default
class
List
extends
React
.
Component
<
ListProps
>
{
static
Item
:
typeof
Item
=
Item
;
static
childContextTypes
=
{
...
...
components/locale-provider/LocaleReceiver.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
export
interface
LocaleReceiverProps
{
...
...
components/locale-provider/ar_EG.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
ar
'
);
import
Pagination
from
'
rc-pagination/lib/locale/ar_EG
'
;
...
...
components/locale-provider/bg_BG.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
bg
'
);
import
Pagination
from
'
rc-pagination/lib/locale/bg_BG
'
;
...
...
components/locale-provider/ca_ES.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
ca
'
);
import
Pagination
from
'
rc-pagination/lib/locale/ca_ES
'
;
...
...
components/locale-provider/cs_CZ.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
cs
'
);
import
Pagination
from
'
rc-pagination/lib/locale/cs_CZ
'
;
...
...
components/locale-provider/de_DE.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
de
'
);
import
Pagination
from
'
rc-pagination/lib/locale/de_DE
'
;
...
...
components/locale-provider/el_GR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
el
'
);
import
Pagination
from
'
rc-pagination/lib/locale/el_GR
'
;
...
...
components/locale-provider/en_GB.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
en-gb
'
);
import
Pagination
from
'
rc-pagination/lib/locale/en_GB
'
;
...
...
components/locale-provider/en_US.tsx
浏览文件 @
479a5cb7
import
defaultLocale
from
'
./default
'
;
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
en
'
);
export
default
defaultLocale
;
components/locale-provider/et_EE.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
et
'
);
import
Pagination
from
'
rc-pagination/lib/locale/et_EE
'
;
...
...
components/locale-provider/fa_IR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
fa
'
);
import
Pagination
from
'
rc-pagination/lib/locale/fa_IR
'
;
...
...
components/locale-provider/fi_FI.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
fi
'
);
import
Pagination
from
'
rc-pagination/lib/locale/fi_FI
'
;
...
...
components/locale-provider/fr_BE.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
fr
'
);
import
Pagination
from
'
rc-pagination/lib/locale/fr_BE
'
;
...
...
components/locale-provider/fr_FR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
fr
'
);
import
Pagination
from
'
rc-pagination/lib/locale/fr_FR
'
;
...
...
components/locale-provider/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
ModalLocale
,
changeConfirmLocale
}
from
'
../modal/locale
'
;
...
...
components/locale-provider/is_IS.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
is
'
);
import
Pagination
from
'
rc-pagination/lib/locale/is_IS
'
;
...
...
components/locale-provider/it_IT.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
it
'
);
import
Pagination
from
'
rc-pagination/lib/locale/it_IT
'
;
...
...
components/locale-provider/ja_JP.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
ja
'
);
import
Pagination
from
'
rc-pagination/lib/locale/ja_JP
'
;
...
...
components/locale-provider/ko_KR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
ko
'
);
import
Pagination
from
'
rc-pagination/lib/locale/ko_KR
'
;
...
...
components/locale-provider/nb_NO.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
nb
'
);
import
Pagination
from
'
rc-pagination/lib/locale/nb_NO
'
;
...
...
components/locale-provider/nl_BE.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
nl-be
'
);
import
Pagination
from
'
rc-pagination/lib/locale/nl_BE
'
;
...
...
components/locale-provider/nl_NL.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
nl
'
);
import
Pagination
from
'
rc-pagination/lib/locale/nl_NL
'
;
...
...
components/locale-provider/pl_PL.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
pl
'
);
import
Pagination
from
'
rc-pagination/lib/locale/pl_PL
'
;
...
...
components/locale-provider/pt_BR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
pt-br
'
);
import
Pagination
from
'
rc-pagination/lib/locale/pt_BR
'
;
...
...
components/locale-provider/pt_PT.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
pt
'
);
import
Pagination
from
'
rc-pagination/lib/locale/pt_PT
'
;
...
...
components/locale-provider/ru_RU.tsx
浏览文件 @
479a5cb7
...
...
@@ -2,7 +2,7 @@
* Created by Andrey Gayvoronsky on 13/04/16.
*/
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
ru
'
);
import
Pagination
from
'
rc-pagination/lib/locale/ru_RU
'
;
...
...
components/locale-provider/sk_SK.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
sk
'
);
import
Pagination
from
'
rc-pagination/lib/locale/sk_SK
'
;
...
...
components/locale-provider/sr_RS.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
sr
'
);
import
Pagination
from
'
rc-pagination/lib/locale/sr_RS
'
;
...
...
components/locale-provider/sv_SE.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
sv
'
);
import
Pagination
from
'
rc-pagination/lib/locale/sv_SE
'
;
...
...
components/locale-provider/th_TH.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
th
'
);
import
Pagination
from
'
rc-pagination/lib/locale/th_TH
'
;
...
...
components/locale-provider/tr_TR.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
tr
'
);
import
Pagination
from
'
rc-pagination/lib/locale/en_US
'
;
...
...
components/locale-provider/uk_UA.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
uk
'
);
import
Pagination
from
'
rc-pagination/lib/locale/uk_UA
'
;
...
...
components/locale-provider/vi_VN.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
vi
'
);
import
Pagination
from
'
rc-pagination/lib/locale/vi_VN
'
;
...
...
components/locale-provider/zh_CN.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
zh-cn
'
);
import
Pagination
from
'
rc-pagination/lib/locale/zh_CN
'
;
...
...
components/locale-provider/zh_TW.tsx
浏览文件 @
479a5cb7
import
moment
from
'
moment
'
;
import
*
as
moment
from
'
moment
'
;
moment
.
locale
(
'
zh-tw
'
);
import
Pagination
from
'
rc-pagination/lib/locale/zh_TW
'
;
...
...
components/mention/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcMention
,
{
Nav
,
toString
,
toEditorState
,
getMentions
}
from
'
rc-editor-mention
'
;
import
classNames
from
'
classnames
'
;
import
shallowequal
from
'
shallowequal
'
;
...
...
components/menu/MenuItem.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
{
Item
}
from
'
rc-menu
'
;
import
PropTypes
from
'
prop-types
'
;
import
Tooltip
from
'
../tooltip
'
;
...
...
components/menu/SubMenu.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
PropTypes
from
'
prop-types
'
;
import
{
SubMenu
as
RcSubMenu
}
from
'
rc-menu
'
;
import
classNames
from
'
classnames
'
;
...
...
components/menu/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcMenu
,
{
Divider
,
ItemGroup
}
from
'
rc-menu
'
;
import
PropTypes
from
'
prop-types
'
;
import
classNames
from
'
classnames
'
;
...
...
components/message/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Notification
from
'
rc-notification
'
;
import
Icon
from
'
../icon
'
;
...
...
components/modal/ActionButton.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
Button
from
'
../button
'
;
import
{
ButtonType
}
from
'
../button/button
'
;
...
...
components/modal/Modal.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Dialog
from
'
rc-dialog
'
;
import
PropTypes
from
'
prop-types
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
...
...
components/modal/confirm.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
ReactDOM
from
'
react-dom
'
;
import
*
as
React
from
'
react
'
;
import
*
as
ReactDOM
from
'
react-dom
'
;
import
classNames
from
'
classnames
'
;
import
Icon
from
'
../icon
'
;
import
Dialog
from
'
./Modal
'
;
...
...
components/notification/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Notification
from
'
rc-notification
'
;
import
Icon
from
'
../icon
'
;
...
...
components/pagination/MiniSelect.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Select
,
{
OptionProps
}
from
'
../select
'
;
export
default
class
MiniSelect
extends
React
.
Component
<
any
,
any
>
{
...
...
components/pagination/Pagination.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
RcPagination
from
'
rc-pagination
'
;
import
enUS
from
'
rc-pagination/lib/locale/en_US
'
;
import
classNames
from
'
classnames
'
;
...
...
components/popconfirm/index.tsx
浏览文件 @
479a5cb7
import
React
from
'
react
'
;
import
*
as
React
from
'
react
'
;
import
Tooltip
,
{
AbstractTooltipProps
}
from
'
../tooltip
'
;
import
Icon
from
'
../icon
'
;
import
Button
from
'
../button
'
;
...
...
components/popover/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/progress/progress.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/radio/group.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/radio/radio.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/radio/radioButton.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/rate/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/select/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/slider/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/spin/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/steps/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/switch/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/Column.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/ColumnGroup.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/FilterDropdownMenuWrapper.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/SelectionBox.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/SelectionCheckboxAll.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/Table.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/filterDropdown.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/table/util.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tabs/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tag/CheckableTag.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tag/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/time-picker/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/timeline/Timeline.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/timeline/TimelineItem.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tooltip/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/transfer/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/transfer/item.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/transfer/list.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/transfer/operation.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/transfer/search.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tree-select/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tree-select/interface.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/tree/index.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/upload/Dragger.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/upload/Upload.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/upload/UploadList.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
components/upload/interface.tsx
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
docs/react/introduce.en-US.md
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
docs/react/introduce.zh-CN.md
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
package.json
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
tsconfig.json
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
tsconfig.test.json
0 → 100644
浏览文件 @
479a5cb7
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录