A UI library based on Ant Design
- Keep current file directories when editing files
- Use
babel-plugin-import
to implement dynamic importstyle
can be only set tocss
- Remember to add a
less-loader
and setjavascriptEnabled: true
toantd
- Must Use
<ConfigProvider />
in your root Component - Can import
lib/style/mixins/index.less
for our own common variables - When customizing a component styles, please notice to add a prefix at first like
@tabs-prefix-cls: ~'@{theme-prefix}-tabs'
- When customizing a component, please refer to
<Button />
- Special components
- button
- when adding text wrapped within
<FormattedMessage />
(or some other components but not pure text node only) and also usingicon
, please make sure text node should be wrapped withinspan
if you want a automatic split betweenicon
andtext
- when adding text wrapped within
- locale-provider
- if using react-redux
connect
, make sure setting its optionpure
tofalse
to let redux can feel context changes, or useLocaleReceiver
to wrap your root element, or just use our private componentwithLocale
(detail api is provided below), reference to: https://github.com/reduxjs/react-redux/blob/master/docs/troubleshooting.md
- if using react-redux
- modal
- modal.xxx can not be customized, so please don't use them before we make a customized change, reference to: ant-design/ant-design#17001 (comment)
- button
- Below components have dependency styles
- col
- row
- card
- form
- list
- menu
- rate
- input
- modal
- table
- dropdown
- anchor
- slider
- transfer
- select
- upload
- pagination
- calendar
- cascader
- popconfirm
- date-picker
- tree-select
- auto-complete
- typography
- page-header
- mentions
below is our private components or customizing styles
- button
- config-provider
- empty
- icon
- our own icon will prefix with 'sl-icon-'
- locale-provider
locale
can be passed with our own string, such as 'en', 'zh', 'it', etc.withLocale
is our private custom provider for gettinglocale
anduiLocale
context, you may need it when using react-reduxconnect
and don't forget to put it beforeconnect
- message
- add default prefixCls
- notification
- add default prefixCls
- tabs
- tree
- tree-select
- player
- add documents
- add private classname prefix to all components
- sync antd components automatically
- dynamic import support
{style: true}
for less - script for automatically release