mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-22 19:28:47 +10:00
7dd4a019d5cace98c68ceed334cd0ad2da43014c
+ DatePicker showTime: 面板上的日期展示输入框统一为一个,格式和外面的输入框同步,并且支持手动修改。 面板上的 TimePicker + DatePicker showTime: 输入框不再展示,改造为『选择时间』,点击后不再展开浮层,直接盖住日期区域。 + RangePicker showTime : 只选中开始日期,“确定”和“选择时间”灰置。 如未选择日期直接选择时间,开始日期和结束日期默认选中当天。 + RangePicker showTime : 点击框外和确定均为确定操作。 + RangePicker showTime : 在时间页面,开始时间的默认状态为当前时间,结束时间的默认状态跟随开始时间。 + RangePicker showTime : 开始时间的选择范围没有限制,结束时间的选择范围必须大于等于开始时间。 + RangePicker showTime : 当开始时间选择了结束时间之后的时间(发生冲突),结束时间则自动切换到与开始时间相同的时间。
Ant Design

An enterprise-class UI design language and React-based implementation.
📢 Document Translation Recruitment
We are now working on translate components document to English, and we need some translator and reviewer. https://github.com/ant-design/ant-design/issues/1471
Features
- An enterprise-class design language and high quality UI.
- Graceful UI components out of the box, base on React Component.
- A npm + webpack + babel + dora workflow.
Install
npm install antd
Usage
Use prebuilt bundle
import { DatePicker } from 'antd';
ReactDOM.render(<DatePicker />, mountNode);
And import style manually:
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
Use modularized antd
-
Use babel-plugin-antd (Recommended)
// .babelrc { "plugins": [["antd", { style: "css" }]] }Then you can import components from antd directly.
// import js and css modularly, parsed by babel-plugin-antd import { DatePicker } from 'antd'; -
Manually import
import DatePicker from 'antd/lib/date-picker'; // just for js
Browser Support
Normal browsers and Internet Explorer 8+.
TypeScript
tsconfig.json
{
"compilerOptions": {
"moduleResolution": "node",
"jsx": "preserve"
}
}
Links
- Home page
- React UI page
- ChangeLog
- Scaffold tool
- Development tool
- React components
- React style guide
- React component design guide
- Developer Instruction
- Versioning Release Note
- FAQ
- CodePen boilerplate for bug reports
Contributing
We welcome all contributions, please read our CONTRIBUTING.md first. You can submit any ideas as pull requests or as a GitHub issue. If you'd like to improve code, check out the Development Instruction and have a good time! :)
Languages
TypeScript
41.3%
Less
38.9%
JavaScript
19.3%
HTML
0.5%