Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support typescript #341

Merged
merged 5 commits into from Dec 3, 2017
Merged

Support typescript #341

merged 5 commits into from Dec 3, 2017

Conversation

@chenshuai2144
Copy link
Collaborator

chenshuai2144 commented Dec 1, 2017

d.ts文件已经全部完成了. 我测试了我用过的组件.
还有一个问题 是否需要全部支持 style props?

  • AvatarList 用户头像列表
  • Charts 图表
  • CountDown 倒计时
  • DescriptionList 描述列表
  • Exception 异常
  • FooterToolbar 底部工具栏
  • GlobalFooter 全局页脚
  • HeaderSearch 顶部搜索框
  • NoticeIcon 通知菜单
  • Ellipsis 文本自动省略号
  • NumberInfo 数据文本
  • PageHeader 页头
  • Result 处理结果
  • TagSelect 标签选择器
  • Trend 趋势标记
@@ -1,6 +1,6 @@
import React from "react";

This comment has been minimized.

Copy link
@yesmeck

yesmeck Dec 1, 2017

Member

要用 import * as React from "react"

This comment has been minimized.

Copy link
@chenshuai2144

chenshuai2144 Dec 1, 2017

Author Collaborator

typescript 2.05以后不需要. issue

This comment has been minimized.

Copy link
@yesmeck

yesmeck Dec 1, 2017

Member

你再看看那个 issue。

I vote against making this default, please keep this optional and only for those who know what they are doing.

This comment has been minimized.

Copy link
@chenshuai2144

chenshuai2144 Dec 1, 2017

Author Collaborator

es6模块 就不需要了呀

This comment has been minimized.

Copy link
@chenshuai2144

chenshuai2144 Dec 1, 2017

Author Collaborator

@yesmeck 你是对的. 我搭建了项目.默认导出会报错.我理解错了原文的意思.

@nikogu nikogu merged commit 8feaa32 into ant-design:master Dec 3, 2017
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@chenshuai2144 chenshuai2144 deleted the chenshuai2144:support_typescript- branch Dec 7, 2017
chenshuai2144 referenced this pull request Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.