├── components ├── vc-progress │ ├── assets │ │ └── index.less │ ├── index.js │ └── src │ │ └── index.js ├── style │ ├── index.js │ ├── v2-compatible-reset.js │ ├── index.less │ ├── core │ │ ├── index.less │ │ ├── iconfont.less │ │ └── motion.less │ └── mixins │ │ ├── size.less │ │ ├── index.less │ │ ├── clearfix.less │ │ ├── reset.less │ │ └── compatibility.less ├── config-provider │ ├── style │ │ ├── index.js │ │ └── index.less │ ├── index.zh-CN.md │ └── index.jsx ├── locale-provider │ ├── style │ │ ├── index.js │ │ └── index.less │ ├── en_US.js │ └── __tests__ │ │ └── demo.test.js ├── calendar │ ├── Constants.js │ ├── locale │ │ ├── ar_EG.js │ │ ├── bg_BG.js │ │ ├── ca_ES.js │ │ ├── cs_CZ.js │ │ ├── da_DK.js │ │ ├── de_DE.js │ │ ├── el_GR.js │ │ ├── en_GB.js │ │ ├── en_US.js │ │ ├── es_ES.js │ │ ├── et_EE.js │ │ ├── fa_IR.js │ │ ├── fi_FI.js │ │ ├── fr_BE.js │ │ ├── fr_FR.js │ │ ├── he_IL.js │ │ ├── hu_HU.js │ │ ├── id_ID.js │ │ ├── is_IS.js │ │ ├── it_IT.js │ │ ├── ja_JP.js │ │ ├── ko_KR.js │ │ ├── ku_IQ.js │ │ ├── mn_MN.js │ │ ├── nb_NO.js │ │ ├── nl_BE.js │ │ ├── nl_NL.js │ │ ├── pl_PL.js │ │ ├── pt_BR.js │ │ ├── pt_PT.js │ │ ├── ru_RU.js │ │ ├── sk_SK.js │ │ ├── sl_SI.js │ │ ├── sr_RS.js │ │ ├── sv_SE.js │ │ ├── th_TH.js │ │ ├── tr_TR.js │ │ ├── uk_UA.js │ │ ├── vi_VN.js │ │ ├── zh_CN.js │ │ └── zh_TW.js │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ └── demo │ │ ├── basic.md │ │ └── card.md ├── vc-rate │ ├── src │ │ └── index.js │ └── index.js ├── tag │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── index.js ├── vc-trigger │ ├── demo │ │ └── point.less │ └── index.js ├── affix │ ├── style │ │ ├── index.js │ │ └── index.less │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ └── on-change.md ├── alert │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── basic.md │ │ ├── close-text.md │ │ └── style.md ├── anchor │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── index.jsx ├── avatar │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.js │ ├── demo │ │ └── badge.md │ └── index.zh-CN.md ├── back-top │ ├── style │ │ ├── index.js │ │ └── responsive.less │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ └── basic.md │ └── index.zh-CN.md ├── badge │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.js │ └── demo │ │ ├── link.md │ │ └── no-wrapper.md ├── button │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.js │ └── demo │ │ ├── block.md │ │ └── basic.md ├── carousel │ ├── style │ │ └── index.js │ └── __tests__ │ │ └── demo.test.js ├── checkbox │ ├── style │ │ ├── index.js │ │ └── index.less │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ ├── disabled.md │ │ └── basic.md │ └── index.js ├── collapse │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── index.js ├── comment │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.zh-CN.md │ └── index.en-US.md ├── divider │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.zh-CN.md │ ├── index.en-US.md │ └── demo │ │ └── vertical.md ├── grid │ ├── style │ │ └── index.js │ ├── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── sort.md │ │ └── flex-order.md ├── icon │ ├── style │ │ ├── index.js │ │ └── index.less │ ├── __tests__ │ │ └── demo.test.js │ └── twoTonePrimaryColor.js ├── layout │ ├── style │ │ ├── index.js │ │ └── light.less │ ├── __tests__ │ │ └── demo.test.js │ └── index.js ├── message │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── info.md │ │ └── duration.md ├── popover │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.zh-CN.md │ ├── demo │ │ └── basic.md │ └── index.en-US.md ├── progress │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.jsx │ └── demo │ │ ├── dashboard.md │ │ ├── segment.md │ │ ├── line.md │ │ ├── linecap.md │ │ ├── line-mini.md │ │ └── circle.md ├── radio │ ├── style │ │ └── index.js │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── radio.test.js.snap │ ├── demo │ │ └── basic.md │ └── index.js ├── rate │ ├── style │ │ └── index.js │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── demo │ │ ├── half.md │ │ ├── disabled.md │ │ ├── basic.md │ │ ├── clear.md │ │ ├── text.md │ │ └── character.md ├── skeleton │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── basic.md │ │ ├── active.md │ │ └── complex.md ├── spin │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── demo │ │ ├── basic.md │ │ ├── size.md │ │ ├── inside.md │ │ └── tip.md │ └── index.js ├── steps │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── small-size.md │ │ ├── progress-dot.md │ │ ├── vertical.md │ │ ├── error.md │ │ └── vertical-small.md ├── switch │ ├── style │ │ └── index.js │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── demo │ │ ├── loading.md │ │ ├── size.md │ │ ├── basic.md │ │ └── text.md ├── tabs │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ ├── disabled.md │ │ ├── extra.md │ │ └── icon.md ├── timeline │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.jsx │ └── demo │ │ └── basic.md ├── tooltip │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.js │ └── demo │ │ └── basic.md ├── breadcrumb │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ ├── index.js │ └── demo │ │ ├── basic.md │ │ └── withIcon.md ├── input-number │ ├── style │ │ └── index.js │ └── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js ├── notification │ ├── style │ │ └── index.js │ └── __tests__ │ │ └── demo.test.js ├── vc-checkbox │ ├── index.js │ └── src │ │ └── index.js ├── vc-tree-select │ ├── assets │ │ ├── index.less │ │ ├── icons.png │ │ ├── minus.gif │ │ └── loading.gif │ ├── src │ │ ├── Popup │ │ │ └── MultiplePopup.jsx │ │ ├── strategies.js │ │ └── index.js │ ├── demo │ │ ├── styles.js │ │ └── demo.less │ └── index.js ├── col │ ├── style │ │ └── index.js │ └── index.js ├── row │ ├── style │ │ └── index.js │ └── index.js ├── vc-calendar │ ├── src │ │ ├── index.js │ │ ├── date │ │ │ └── DateConstants.js │ │ └── util │ │ │ └── toTime.js │ ├── index.js │ └── assets │ │ ├── index │ │ └── Time.less │ │ ├── common │ │ ├── Picker.less │ │ └── index.less │ │ └── index.less ├── vc-lazy-load │ ├── index.js │ ├── demo │ │ └── style.less │ └── src │ │ └── utils │ │ └── getElementPosition.js ├── vc-slick │ ├── assets │ │ ├── index.less │ │ ├── ajax-loader.gif │ │ ├── fonts │ │ │ ├── slick.eot │ │ │ ├── slick.ttf │ │ │ └── slick.woff │ │ └── img │ │ │ └── react-slick │ │ │ ├── abstract01.jpg │ │ │ ├── abstract02.jpg │ │ │ ├── abstract03.jpg │ │ │ └── abstract04.jpg │ ├── src │ │ └── index.js │ └── demo │ │ ├── config.js │ │ └── imglist.js ├── version │ ├── index.js │ └── style │ │ └── index.js ├── vc-align │ └── index.js ├── vc-pagination │ ├── index.js │ ├── KeyCode.js │ ├── locale │ │ ├── zh_CN.js │ │ ├── zh_TW.js │ │ ├── nb_NO.js │ │ ├── ja_JP.js │ │ ├── ko_KR.js │ │ ├── fa_IR.js │ │ ├── ru_RU.js │ │ ├── sr_RS.js │ │ ├── th_TH.js │ │ ├── da_DK.js │ │ ├── en_GB.js │ │ ├── en_US.js │ │ ├── he_IL.js │ │ ├── hi_IN.js │ │ ├── is_IS.js │ │ ├── ku_IQ.js │ │ ├── sv_SE.js │ │ ├── vi_VN.js │ │ ├── tr_TR.js │ │ ├── ug_CN.js │ │ ├── de_DE.js │ │ ├── mm_MM.js │ │ ├── ar_EG.js │ │ ├── fi_FI.js │ │ ├── kn_IN.js │ │ ├── ca_ES.js │ │ ├── fr_BE.js │ │ ├── fr_FR.js │ │ ├── mn_MN.js │ │ ├── pt_PT.js │ │ ├── es_ES.js │ │ ├── it_IT.js │ │ ├── nl_BE.js │ │ ├── nl_NL.js │ │ ├── pl_PL.js │ │ ├── sl_SI.js │ │ ├── pt_BR.js │ │ ├── ro_RO.js │ │ ├── bg_BG.js │ │ ├── cs_CZ.js │ │ ├── et_EE.js │ │ ├── el_GR.js │ │ ├── id_ID.js │ │ ├── uk_UA.js │ │ ├── sk_SK.js │ │ └── hu_HU.js │ └── demo │ │ ├── more.vue │ │ ├── simple.vue │ │ ├── stupid.vue │ │ ├── styles.vue │ │ └── default.vue ├── vc-time-picker │ ├── index.js │ └── assets │ │ └── index.less ├── vc-upload │ ├── index.js │ └── src │ │ ├── index.js │ │ └── uid.js ├── vc-tree │ ├── index.js │ ├── assets │ │ ├── line.gif │ │ ├── icons.png │ │ └── loading.gif │ ├── demo │ │ ├── basic.less │ │ ├── draggable.less │ │ └── contextmenu.less │ └── src │ │ └── index.js ├── card │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ ├── demo │ │ ├── simple.md │ │ ├── basic.md │ │ └── border-less.md │ ├── index.js │ └── Grid.jsx ├── drawer │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ ├── index.less │ │ └── index.js ├── input │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ └── demo │ │ ├── basic.md │ │ └── textarea.md ├── list │ ├── __tests__ │ │ ├── demo.test.js │ │ ├── __snapshots__ │ │ │ └── empty.test.js.snap │ │ └── empty.test.js │ └── style │ │ └── index.js ├── menu │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.js ├── modal │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ ├── index.js │ │ └── index.less ├── select │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.js ├── table │ ├── __tests__ │ │ └── demo.test.js │ ├── Column.jsx │ ├── ColumnGroup.jsx │ ├── style │ │ └── index.js │ ├── FilterDropdownMenuWrapper.jsx │ └── createStore.jsx ├── time-picker │ ├── locale │ │ ├── he_IL.js │ │ ├── ja_JP.js │ │ ├── ko_KR.js │ │ ├── pt_BR.js │ │ ├── pt_PT.js │ │ ├── zh_CN.js │ │ ├── zh_TW.js │ │ ├── ar_EG.js │ │ ├── bg_BG.js │ │ ├── cs_CZ.js │ │ ├── da_DK.js │ │ ├── el_GR.js │ │ ├── en_GB.js │ │ ├── en_US.js │ │ ├── et_EE.js │ │ ├── fa_IR.js │ │ ├── fi_FI.js │ │ ├── id_ID.js │ │ ├── is_IS.js │ │ ├── mn_MN.js │ │ ├── nb_NO.js │ │ ├── sk_SK.js │ │ ├── sl_SI.js │ │ ├── sv_SE.js │ │ ├── th_TH.js │ │ ├── tr_TR.js │ │ ├── uk_UA.js │ │ ├── ca_ES.js │ │ ├── de_DE.js │ │ ├── es_ES.js │ │ ├── hu_HU.js │ │ ├── ku_IQ.js │ │ ├── nl_BE.js │ │ ├── nl_NL.js │ │ ├── pl_PL.js │ │ ├── sr_RS.js │ │ ├── vi_VN.js │ │ ├── fr_BE.js │ │ ├── fr_FR.js │ │ ├── it_IT.js │ │ └── ru_RU.js │ ├── __tests__ │ │ ├── demo.test.js │ │ └── __snapshots__ │ │ │ └── index.test.js.snap │ ├── style │ │ └── index.js │ └── demo │ │ ├── interval-options.md │ │ ├── disabled.md │ │ ├── hide-column.md │ │ └── basic.md ├── tree │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ └── index.jsx ├── upload │ ├── __tests__ │ │ ├── demo.test.js │ │ └── requests.js │ ├── style │ │ └── index.js │ ├── index.jsx │ ├── demo │ │ └── directory.md │ └── Dragger.jsx ├── vc-dropdown │ └── src │ │ └── index.js ├── vc-switch │ ├── index.js │ └── PropTypes.js ├── cascader │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.js ├── dropdown │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ └── index.js ├── form │ ├── constants.jsx │ ├── style │ │ └── index.js │ └── __tests__ │ │ └── demo.test.js ├── transfer │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.js ├── vc-m-feedback │ ├── demo │ │ └── simple.less │ ├── index.js │ └── src │ │ └── PropTypes.jsx ├── vc-tooltip │ └── index.js ├── date-picker │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ ├── index.js │ │ ├── MonthPicker.less │ │ └── index.less │ └── locale │ │ ├── de_DE.js │ │ ├── ja_JP.js │ │ ├── nl_BE.js │ │ ├── nl_NL.js │ │ ├── fr_BE.js │ │ ├── fr_FR.js │ │ ├── it_IT.js │ │ ├── el_GR.js │ │ ├── sv_SE.js │ │ ├── uk_UA.js │ │ └── sk_SK.js ├── pagination │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ ├── demo │ │ ├── more.md │ │ ├── simple.md │ │ ├── basic.md │ │ ├── jump.md │ │ └── controlled.md │ └── index.js ├── popconfirm │ ├── __tests__ │ │ └── demo.test.js │ ├── style │ │ └── index.js │ └── demo │ │ ├── local.md │ │ └── icon.md ├── tree-select │ ├── __tests__ │ │ ├── demo.test.js │ │ └── index.test.js │ └── style │ │ └── index.js ├── vc-cascader │ └── index.js ├── vc-dialog │ ├── assets │ │ ├── index.less │ │ └── bootstrap.less │ ├── index.js │ └── LazyRenderBox.jsx ├── auto-complete │ ├── __tests__ │ │ └── demo.test.js │ └── style │ │ └── index.js ├── vc-notification │ └── index.js ├── _util │ ├── isNumeric.js │ ├── interopDefault.js │ ├── callMoment.js │ ├── store │ │ ├── index.js │ │ ├── PropTypes.js │ │ └── Provider.jsx │ ├── Dom │ │ ├── addEventListener.js │ │ └── contains.js │ ├── FormDecoratorDirective.js │ ├── warning.js │ ├── StateMixin.js │ ├── antDirective.js │ ├── env.js │ ├── triggerEvent.js │ ├── isFlexSupported.js │ └── getScroll.js ├── vc-drawer │ └── src │ │ └── index.js ├── slider │ ├── style │ │ └── index.js │ ├── __tests__ │ │ └── demo.test.js │ └── demo │ │ └── show-tooltip.md ├── vc-form │ ├── index.js │ ├── demo │ │ └── styles.js │ └── src │ │ ├── index.jsx │ │ └── createFormField.jsx ├── vc-steps │ ├── index.js │ ├── assets │ │ └── custom-icon.less │ └── demo │ │ └── customIcon.vue ├── vc-slider │ ├── index.js │ └── src │ │ └── index.js ├── vc-table │ ├── src │ │ ├── ColumnGroup.jsx │ │ └── Column.jsx │ └── assets │ │ └── bordered.less ├── vc-select │ ├── OptGroup.jsx │ ├── Option.jsx │ └── index.js ├── vc-collapse │ └── index.js ├── vc-tabs │ └── src │ │ ├── KeyCode.js │ │ └── index.js └── vc-menu │ ├── Divider.jsx │ └── index.js ├── .codecov.yml ├── .gitattributes ├── logo.png ├── site ├── util.js ├── theme │ └── static │ │ ├── theme.less │ │ ├── nprogress.less │ │ ├── docsearch.less │ │ └── new-version-info-modal.less └── components │ └── api.vue ├── postcss.config.js ├── .prettierignore ├── scripts ├── .npmrc.template └── run.js ├── .eslintignore ├── .editorconfig ├── types ├── index.d.ts ├── component.d.ts ├── breadcrumb │ └── breadcrumb-item.d.ts ├── radio │ └── radio-button.d.ts ├── tag │ └── checkable-tag.d.ts ├── tootip │ └── tooltip.d.ts ├── input │ └── input-search.d.ts ├── button │ └── button-group.d.ts ├── locale-provider.d.ts ├── select │ └── option-group.d.ts ├── tree │ └── dictionary-tree.d.ts ├── anchor │ └── anchor-link.d.ts └── popover.d.ts ├── antd-tools ├── postcssConfig.js ├── runCmd.js ├── utils │ ├── getRunCmdEnv.js │ └── get-npm-args.js └── cli │ └── run.js ├── .vcmrc ├── index-with-locales.js ├── .prettierrc ├── .babelrc └── .github ├── ISSUE_TEMPLATE.md └── ISSUE_TEMPLATE └── ----please-use-new-issue-ant-design-vue---.md /components/vc-progress/assets/index.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | branch: master 3 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.jsx linguist-language=Vue 2 | -------------------------------------------------------------------------------- /components/style/index.js: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/config-provider/style/index.js: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.js: -------------------------------------------------------------------------------- 1 | import './index.less'; 2 | -------------------------------------------------------------------------------- /components/calendar/Constants.js: -------------------------------------------------------------------------------- 1 | export const PREFIX_CLS = 'ant-fullcalendar'; 2 | -------------------------------------------------------------------------------- /components/style/v2-compatible-reset.js: -------------------------------------------------------------------------------- 1 | import './v2-compatible-reset.less'; 2 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/logo.png -------------------------------------------------------------------------------- /components/style/index.less: -------------------------------------------------------------------------------- 1 | @import './themes/default'; 2 | @import './core/index'; 3 | -------------------------------------------------------------------------------- /components/vc-rate/src/index.js: -------------------------------------------------------------------------------- 1 | import Rate from './Rate'; 2 | export default Rate; 3 | -------------------------------------------------------------------------------- /site/util.js: -------------------------------------------------------------------------------- 1 | export function isZhCN(name) { 2 | return /-cn\/?$/.test(name); 3 | } 4 | -------------------------------------------------------------------------------- /components/tag/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/vc-trigger/demo/point.less: -------------------------------------------------------------------------------- 1 | .point-popup { 2 | pointer-events: none; 3 | } 4 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [require('autoprefixer')], 3 | }; 4 | -------------------------------------------------------------------------------- /components/affix/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/alert/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/anchor/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/avatar/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/back-top/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/badge/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/button/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/carousel/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/checkbox/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/collapse/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/comment/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/divider/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/grid/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/icon/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/layout/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/message/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/popover/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/progress/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/radio/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/rate/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/skeleton/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/spin/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/steps/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/switch/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/tabs/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/timeline/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/tooltip/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/breadcrumb/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/input-number/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/notification/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | -------------------------------------------------------------------------------- /components/vc-checkbox/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-checkbox 2.1.6 2 | export { default } from './src/'; 3 | -------------------------------------------------------------------------------- /components/vc-tree-select/assets/index.less: -------------------------------------------------------------------------------- 1 | @import './select.less'; 2 | @import './tree.less'; 3 | -------------------------------------------------------------------------------- /components/col/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import '../../grid/style/index.less'; 3 | -------------------------------------------------------------------------------- /components/config-provider/style/index.less: -------------------------------------------------------------------------------- 1 | // placeholder 2 | @import '../../style/themes/default'; 3 | -------------------------------------------------------------------------------- /components/locale-provider/style/index.less: -------------------------------------------------------------------------------- 1 | // placeholder 2 | @import '../../style/themes/default'; 3 | -------------------------------------------------------------------------------- /components/row/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import '../../grid/style/index.less'; 3 | -------------------------------------------------------------------------------- /components/vc-calendar/src/index.js: -------------------------------------------------------------------------------- 1 | import Calendar from './Calendar'; 2 | 3 | export default Calendar; 4 | -------------------------------------------------------------------------------- /components/vc-checkbox/src/index.js: -------------------------------------------------------------------------------- 1 | import Checkbox from './Checkbox'; 2 | 3 | export default Checkbox; 4 | -------------------------------------------------------------------------------- /components/vc-lazy-load/index.js: -------------------------------------------------------------------------------- 1 | import LazyLoad from './src/LazyLoad'; 2 | export default LazyLoad; 3 | -------------------------------------------------------------------------------- /components/grid/index.js: -------------------------------------------------------------------------------- 1 | import Row from './Row'; 2 | import Col from './Col'; 3 | 4 | export { Row, Col }; 5 | -------------------------------------------------------------------------------- /components/vc-rate/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-rate 2.4.3 2 | import Rate from './src/'; 3 | export default Rate; 4 | -------------------------------------------------------------------------------- /components/vc-slick/assets/index.less: -------------------------------------------------------------------------------- 1 | @import './slick'; 2 | @import './slick-theme'; 3 | @import './docs'; 4 | -------------------------------------------------------------------------------- /components/version/index.js: -------------------------------------------------------------------------------- 1 | import { version } from '../../package.json'; 2 | 3 | export default version; 4 | -------------------------------------------------------------------------------- /components/calendar/locale/ar_EG.js: -------------------------------------------------------------------------------- 1 | import ar_EG from '../../date-picker/locale/ar_EG'; 2 | export default ar_EG; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/bg_BG.js: -------------------------------------------------------------------------------- 1 | import bg_BG from '../../date-picker/locale/bg_BG'; 2 | export default bg_BG; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ca_ES.js: -------------------------------------------------------------------------------- 1 | import ca_ES from '../../date-picker/locale/ca_ES'; 2 | export default ca_ES; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/cs_CZ.js: -------------------------------------------------------------------------------- 1 | import cs_CZ from '../../date-picker/locale/cs_CZ'; 2 | export default cs_CZ; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/da_DK.js: -------------------------------------------------------------------------------- 1 | import da_DK from '../../date-picker/locale/da_DK'; 2 | export default da_DK; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/de_DE.js: -------------------------------------------------------------------------------- 1 | import de_DE from '../../date-picker/locale/de_DE'; 2 | export default de_DE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/el_GR.js: -------------------------------------------------------------------------------- 1 | import el_GR from '../../date-picker/locale/el_GR'; 2 | export default el_GR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/en_GB.js: -------------------------------------------------------------------------------- 1 | import en_GB from '../../date-picker/locale/en_GB'; 2 | export default en_GB; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/en_US.js: -------------------------------------------------------------------------------- 1 | import en_US from '../../date-picker/locale/en_US'; 2 | export default en_US; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/es_ES.js: -------------------------------------------------------------------------------- 1 | import es_ES from '../../date-picker/locale/es_ES'; 2 | export default es_ES; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/et_EE.js: -------------------------------------------------------------------------------- 1 | import et_EE from '../../date-picker/locale/et_EE'; 2 | export default et_EE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fa_IR.js: -------------------------------------------------------------------------------- 1 | import fa_IR from '../../date-picker/locale/fa_IR'; 2 | export default fa_IR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fi_FI.js: -------------------------------------------------------------------------------- 1 | import fi_FI from '../../date-picker/locale/fi_FI'; 2 | export default fi_FI; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_BE.js: -------------------------------------------------------------------------------- 1 | import fr_BE from '../../date-picker/locale/fr_BE'; 2 | export default fr_BE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/fr_FR.js: -------------------------------------------------------------------------------- 1 | import fr_FR from '../../date-picker/locale/fr_FR'; 2 | export default fr_FR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/he_IL.js: -------------------------------------------------------------------------------- 1 | import he_IL from '../../date-picker/locale/he_IL'; 2 | export default he_IL; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/hu_HU.js: -------------------------------------------------------------------------------- 1 | import hu_HU from '../../date-picker/locale/hu_HU'; 2 | export default hu_HU; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/id_ID.js: -------------------------------------------------------------------------------- 1 | import id_ID from '../../date-picker/locale/id_ID'; 2 | export default id_ID; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/is_IS.js: -------------------------------------------------------------------------------- 1 | import is_IS from '../../date-picker/locale/is_IS'; 2 | export default is_IS; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/it_IT.js: -------------------------------------------------------------------------------- 1 | import it_IT from '../../date-picker/locale/it_IT'; 2 | export default it_IT; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ja_JP.js: -------------------------------------------------------------------------------- 1 | import ja_JP from '../../date-picker/locale/ja_JP'; 2 | export default ja_JP; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ko_KR.js: -------------------------------------------------------------------------------- 1 | import ko_KR from '../../date-picker/locale/ko_KR'; 2 | export default ko_KR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ku_IQ.js: -------------------------------------------------------------------------------- 1 | import ku_IQ from '../../date-picker/locale/ku_IQ'; 2 | export default ku_IQ; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/mn_MN.js: -------------------------------------------------------------------------------- 1 | import mn_MN from '../../date-picker/locale/mn_MN'; 2 | export default mn_MN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nb_NO.js: -------------------------------------------------------------------------------- 1 | import nb_NO from '../../date-picker/locale/nb_NO'; 2 | export default nb_NO; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_BE.js: -------------------------------------------------------------------------------- 1 | import nl_BE from '../../date-picker/locale/nl_BE'; 2 | export default nl_BE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/nl_NL.js: -------------------------------------------------------------------------------- 1 | import nl_NL from '../../date-picker/locale/nl_NL'; 2 | export default nl_NL; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pl_PL.js: -------------------------------------------------------------------------------- 1 | import pl_PL from '../../date-picker/locale/pl_PL'; 2 | export default pl_PL; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_BR.js: -------------------------------------------------------------------------------- 1 | import pt_BR from '../../date-picker/locale/pt_BR'; 2 | export default pt_BR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/pt_PT.js: -------------------------------------------------------------------------------- 1 | import pt_PT from '../../date-picker/locale/pt_PT'; 2 | export default pt_PT; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/ru_RU.js: -------------------------------------------------------------------------------- 1 | import ru_RU from '../../date-picker/locale/ru_RU'; 2 | export default ru_RU; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sk_SK.js: -------------------------------------------------------------------------------- 1 | import sk_SK from '../../date-picker/locale/sk_SK'; 2 | export default sk_SK; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sl_SI.js: -------------------------------------------------------------------------------- 1 | import sl_SI from '../../date-picker/locale/sl_SI'; 2 | export default sl_SI; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sr_RS.js: -------------------------------------------------------------------------------- 1 | import sr_RS from '../../date-picker/locale/sr_RS'; 2 | export default sr_RS; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/sv_SE.js: -------------------------------------------------------------------------------- 1 | import sv_SE from '../../date-picker/locale/sv_SE'; 2 | export default sv_SE; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/th_TH.js: -------------------------------------------------------------------------------- 1 | import th_TH from '../../date-picker/locale/th_TH'; 2 | export default th_TH; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/tr_TR.js: -------------------------------------------------------------------------------- 1 | import tr_TR from '../../date-picker/locale/tr_TR'; 2 | export default tr_TR; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/uk_UA.js: -------------------------------------------------------------------------------- 1 | import uk_UA from '../../date-picker/locale/uk_UA'; 2 | export default uk_UA; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/vi_VN.js: -------------------------------------------------------------------------------- 1 | import vi_VN from '../../date-picker/locale/vi_VN'; 2 | export default vi_VN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_CN.js: -------------------------------------------------------------------------------- 1 | import zh_CN from '../../date-picker/locale/zh_CN'; 2 | export default zh_CN; 3 | -------------------------------------------------------------------------------- /components/calendar/locale/zh_TW.js: -------------------------------------------------------------------------------- 1 | import zh_TW from '../../date-picker/locale/zh_TW'; 2 | export default zh_TW; 3 | -------------------------------------------------------------------------------- /components/locale-provider/en_US.js: -------------------------------------------------------------------------------- 1 | import defaultLocale from './default'; 2 | 3 | export default defaultLocale; 4 | -------------------------------------------------------------------------------- /components/vc-align/index.js: -------------------------------------------------------------------------------- 1 | // based on vc-align 2.4.3 2 | import Align from './Align'; 3 | export default Align; 4 | -------------------------------------------------------------------------------- /components/vc-pagination/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-pagination 1.17.8 2 | export { default } from './Pagination'; 3 | -------------------------------------------------------------------------------- /components/vc-time-picker/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-time-picker 3.4.0 2 | export { default } from './TimePicker'; 3 | -------------------------------------------------------------------------------- /components/vc-upload/index.js: -------------------------------------------------------------------------------- 1 | // rc-upload 2.6.0 2 | import upload from './src'; 3 | 4 | export default upload; 5 | -------------------------------------------------------------------------------- /components/tag/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tag'); 4 | -------------------------------------------------------------------------------- /components/vc-tree/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-tree 1.14.9 2 | 'use strict'; 3 | 4 | module.exports = require('./src/'); 5 | -------------------------------------------------------------------------------- /components/version/style/index.js: -------------------------------------------------------------------------------- 1 | // empty file prevent babel-plugin-import error 2 | import '../../style/index.less'; 3 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | **/*.md 2 | **/*.svg 3 | **/*.ejs 4 | **/*.html 5 | package.json 6 | es/** 7 | lib/** 8 | _site/** 9 | dist/** -------------------------------------------------------------------------------- /components/affix/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('affix'); 4 | -------------------------------------------------------------------------------- /components/alert/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('alert'); 4 | -------------------------------------------------------------------------------- /components/anchor/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('anchor'); 4 | -------------------------------------------------------------------------------- /components/avatar/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('avatar'); 4 | -------------------------------------------------------------------------------- /components/badge/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('badge'); 4 | -------------------------------------------------------------------------------- /components/button/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('button'); 4 | -------------------------------------------------------------------------------- /components/card/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('card'); 4 | -------------------------------------------------------------------------------- /components/checkbox/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | @import './mixin'; 3 | 4 | .antCheckboxFn(); 5 | -------------------------------------------------------------------------------- /components/drawer/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('drawer'); 4 | -------------------------------------------------------------------------------- /components/grid/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('grid'); 4 | -------------------------------------------------------------------------------- /components/input/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input'); 4 | -------------------------------------------------------------------------------- /components/layout/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('layout'); 4 | -------------------------------------------------------------------------------- /components/list/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('list'); 4 | -------------------------------------------------------------------------------- /components/menu/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('menu'); 4 | -------------------------------------------------------------------------------- /components/modal/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('modal'); 4 | -------------------------------------------------------------------------------- /components/radio/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('radio'); 4 | -------------------------------------------------------------------------------- /components/rate/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('rate'); 4 | -------------------------------------------------------------------------------- /components/select/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('select'); 4 | -------------------------------------------------------------------------------- /components/spin/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('spin'); 4 | -------------------------------------------------------------------------------- /components/steps/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('steps'); 4 | -------------------------------------------------------------------------------- /components/switch/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('switch'); 4 | -------------------------------------------------------------------------------- /components/table/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('table'); 4 | -------------------------------------------------------------------------------- /components/tabs/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tabs'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/he_IL.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'בחר שעה', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ja_JP.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '時刻を選択', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ko_KR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '날짜 선택', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_BR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pt_PT.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_CN.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '请选择时间', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/zh_TW.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: '請選擇時間', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/tree/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree'); 4 | -------------------------------------------------------------------------------- /components/upload/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('upload'); 4 | -------------------------------------------------------------------------------- /components/vc-calendar/src/date/DateConstants.js: -------------------------------------------------------------------------------- 1 | export default { 2 | DATE_ROW_COUNT: 6, 3 | DATE_COL_COUNT: 7, 4 | }; 5 | -------------------------------------------------------------------------------- /components/vc-dropdown/src/index.js: -------------------------------------------------------------------------------- 1 | // base in 2.2.1 2 | import Dropdown from './Dropdown'; 3 | export default Dropdown; 4 | -------------------------------------------------------------------------------- /components/vc-switch/index.js: -------------------------------------------------------------------------------- 1 | // base rc-switch 1.8.0 2 | import Switch from './Switch'; 3 | 4 | export default Switch; 5 | -------------------------------------------------------------------------------- /components/vc-trigger/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-trigger 2.6.2 2 | import Trigger from './Trigger'; 3 | export default Trigger; 4 | -------------------------------------------------------------------------------- /components/back-top/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('back-top'); 4 | -------------------------------------------------------------------------------- /components/calendar/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('calendar'); 4 | -------------------------------------------------------------------------------- /components/carousel/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('carousel'); 4 | -------------------------------------------------------------------------------- /components/cascader/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('cascader'); 4 | -------------------------------------------------------------------------------- /components/checkbox/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('checkbox'); 4 | -------------------------------------------------------------------------------- /components/collapse/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('collapse'); 4 | -------------------------------------------------------------------------------- /components/comment/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('comment'); 4 | -------------------------------------------------------------------------------- /components/divider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('divider'); 4 | -------------------------------------------------------------------------------- /components/dropdown/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('dropdown'); 4 | -------------------------------------------------------------------------------- /components/form/constants.jsx: -------------------------------------------------------------------------------- 1 | export const FIELD_META_PROP = 'data-__meta'; 2 | export const FIELD_DATA_PROP = 'data-__field'; 3 | -------------------------------------------------------------------------------- /components/message/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('message'); 4 | -------------------------------------------------------------------------------- /components/popover/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popover'); 4 | -------------------------------------------------------------------------------- /components/progress/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('progress'); 4 | -------------------------------------------------------------------------------- /components/skeleton/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('skeleton'); 4 | -------------------------------------------------------------------------------- /components/style/core/index.less: -------------------------------------------------------------------------------- 1 | @import '../mixins/index'; 2 | @import 'base'; 3 | @import 'iconfont'; 4 | @import 'motion'; 5 | -------------------------------------------------------------------------------- /components/time-picker/locale/ar_EG.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'اختيار الوقت', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/bg_BG.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Избор на час', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/cs_CZ.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vybrat čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/da_DK.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vælg tid', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/el_GR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Επιλέξτε ώρα', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_GB.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Select time', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/en_US.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Select time', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/et_EE.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vali aeg', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fa_IR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'انتخاب زمان', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fi_FI.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Valitse aika', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/id_ID.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Pilih waktu', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/is_IS.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Velja tíma', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/mn_MN.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Цаг сонгох', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nb_NO.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Velg tid', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sk_SK.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Vybrať čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sl_SI.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Izberite čas', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sv_SE.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Välj tid', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/th_TH.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'เลือกเวลา', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/tr_TR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Zaman Seç', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/uk_UA.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Оберіть час', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/timeline/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('timeline'); 4 | -------------------------------------------------------------------------------- /components/tooltip/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tooltip'); 4 | -------------------------------------------------------------------------------- /components/transfer/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('transfer'); 4 | -------------------------------------------------------------------------------- /components/vc-calendar/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-calendar 9.8.2 2 | import Calendar from './src/'; 3 | export default Calendar; 4 | -------------------------------------------------------------------------------- /components/vc-m-feedback/demo/simple.less: -------------------------------------------------------------------------------- 1 | .normal { 2 | color: '#000'; 3 | } 4 | 5 | .active { 6 | font-size: 40px; 7 | } 8 | -------------------------------------------------------------------------------- /components/vc-slick/src/index.js: -------------------------------------------------------------------------------- 1 | // base react-slick 0.23.2 2 | import Slider from './slider'; 3 | 4 | export default Slider; 5 | -------------------------------------------------------------------------------- /components/vc-tooltip/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-tooltip 3.7.3 2 | import Tooltip from './Tooltip'; 3 | 4 | export default Tooltip; 5 | -------------------------------------------------------------------------------- /components/vc-tree/assets/line.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree/assets/line.gif -------------------------------------------------------------------------------- /scripts/.npmrc.template: -------------------------------------------------------------------------------- 1 | //registry.npmjs.org/:_authToken=${NPM_TOKEN} 2 | loglevel=info 3 | registry=https://registry.npmjs.org/ 4 | -------------------------------------------------------------------------------- /components/date-picker/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('date-picker'); 4 | -------------------------------------------------------------------------------- /components/pagination/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('pagination'); 4 | -------------------------------------------------------------------------------- /components/popconfirm/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('popconfirm'); 4 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('time-picker'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/ca_ES.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Seleccionar hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/de_DE.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Zeit auswählen', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/es_ES.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Seleccionar hora', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/hu_HU.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Válasszon időt', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/ku_IQ.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Demê hilbijêre', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_BE.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Selecteer tijd', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/nl_NL.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Selecteer tijd', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/pl_PL.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Wybierz godzinę', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/sr_RS.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Izaberite vreme', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/vi_VN.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: 'Chọn thời gian', 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('tree-select'); 4 | -------------------------------------------------------------------------------- /components/vc-cascader/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-cascader 0.16.2 2 | import Cascader from './Cascader'; 3 | export default Cascader; 4 | -------------------------------------------------------------------------------- /components/vc-dialog/assets/index.less: -------------------------------------------------------------------------------- 1 | @prefixCls: rc-dialog; 2 | 3 | @import './index/Dialog.less'; 4 | @import './index/Mask.less'; 5 | -------------------------------------------------------------------------------- /components/vc-dialog/index.js: -------------------------------------------------------------------------------- 1 | // based on vc-dialog 7.2.1 2 | import DialogWrap from './DialogWrap'; 3 | export default DialogWrap; 4 | -------------------------------------------------------------------------------- /components/vc-tree-select/src/Popup/MultiplePopup.jsx: -------------------------------------------------------------------------------- 1 | import BasePopup from '../Base/BasePopup'; 2 | 3 | export default BasePopup; 4 | -------------------------------------------------------------------------------- /components/vc-tree/assets/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree/assets/icons.png -------------------------------------------------------------------------------- /components/vc-tree/assets/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree/assets/loading.gif -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | **/*.spec.* 3 | **/style/ 4 | *.html 5 | /components/test/* 6 | es/ 7 | lib/ 8 | _site/ 9 | dist/ 10 | -------------------------------------------------------------------------------- /components/auto-complete/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('auto-complete'); 4 | -------------------------------------------------------------------------------- /components/auto-complete/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | import '../../select/style'; 5 | -------------------------------------------------------------------------------- /components/drawer/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | @import '../../style/mixins/index'; 3 | @import './drawer'; 4 | -------------------------------------------------------------------------------- /components/input-number/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('input-number'); 4 | -------------------------------------------------------------------------------- /components/notification/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('notification'); 4 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_BE.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: "Sélectionner l'heure", 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/fr_FR.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: "Sélectionner l'heure", 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/time-picker/locale/it_IT.js: -------------------------------------------------------------------------------- 1 | const locale = { 2 | placeholder: "Selezionare l'orario", 3 | }; 4 | 5 | export default locale; 6 | -------------------------------------------------------------------------------- /components/vc-dialog/assets/bootstrap.less: -------------------------------------------------------------------------------- 1 | @prefixCls: rc-dialog; 2 | @import './bootstrap/Dialog.less'; 3 | @import './index/Mask.less'; 4 | -------------------------------------------------------------------------------- /components/vc-m-feedback/index.js: -------------------------------------------------------------------------------- 1 | // based on 2.0.0 2 | import TouchFeedback from './src/TouchFeedback'; 3 | export default TouchFeedback; 4 | -------------------------------------------------------------------------------- /components/locale-provider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('locale-provider'); 4 | -------------------------------------------------------------------------------- /components/vc-slick/assets/ajax-loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/ajax-loader.gif -------------------------------------------------------------------------------- /components/vc-slick/assets/fonts/slick.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/fonts/slick.eot -------------------------------------------------------------------------------- /components/vc-slick/assets/fonts/slick.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/fonts/slick.ttf -------------------------------------------------------------------------------- /components/vc-tree-select/assets/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree-select/assets/icons.png -------------------------------------------------------------------------------- /components/vc-tree-select/assets/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree-select/assets/minus.gif -------------------------------------------------------------------------------- /components/icon/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('icon', { skip: ['custom.md'] }); 4 | -------------------------------------------------------------------------------- /components/vc-calendar/assets/index/Time.less: -------------------------------------------------------------------------------- 1 | @import './Input.less'; 2 | 3 | .@{prefixClass}-time-input { 4 | .input(); 5 | width: 40px; 6 | } 7 | -------------------------------------------------------------------------------- /components/vc-notification/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-notification 3.3.0 2 | import Notification from './Notification'; 3 | export default Notification; 4 | -------------------------------------------------------------------------------- /components/vc-slick/assets/fonts/slick.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/fonts/slick.woff -------------------------------------------------------------------------------- /components/vc-tree-select/assets/loading.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-tree-select/assets/loading.gif -------------------------------------------------------------------------------- /components/_util/isNumeric.js: -------------------------------------------------------------------------------- 1 | const isNumeric = value => { 2 | return !isNaN(parseFloat(value)) && isFinite(value); 3 | }; 4 | export default isNumeric; 5 | -------------------------------------------------------------------------------- /components/card/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tabs/style'; 6 | -------------------------------------------------------------------------------- /components/form/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../grid/style'; 6 | -------------------------------------------------------------------------------- /components/vc-drawer/src/index.js: -------------------------------------------------------------------------------- 1 | // base in 1.7.7 2 | // export this package's api 3 | import Drawer from './Drawer'; 4 | 5 | export default Drawer; 6 | -------------------------------------------------------------------------------- /components/breadcrumb/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('breadcrumb', { skip: ['router.md'] }); 4 | -------------------------------------------------------------------------------- /components/cascader/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/drawer/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/dropdown/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/input/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/menu/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/modal/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/modal/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | @import '../../style/mixins/index'; 3 | @import './modal'; 4 | @import './confirm'; 5 | -------------------------------------------------------------------------------- /components/select/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/slider/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../tooltip/style'; 6 | -------------------------------------------------------------------------------- /components/table/Column.jsx: -------------------------------------------------------------------------------- 1 | import { ColumnProps } from './interface'; 2 | 3 | export default { 4 | name: 'ATableColumn', 5 | props: ColumnProps, 6 | }; 7 | -------------------------------------------------------------------------------- /components/tree/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../checkbox/style'; 6 | -------------------------------------------------------------------------------- /components/vc-form/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-form 2.4.1 2 | import { createForm, createFormField } from './src/'; 3 | export { createForm, createFormField }; 4 | -------------------------------------------------------------------------------- /components/affix/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | 3 | .@{ant-prefix}-affix { 4 | position: fixed; 5 | z-index: @zindex-affix; 6 | } 7 | -------------------------------------------------------------------------------- /components/icon/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | @import '../../style/mixins/index'; 3 | 4 | @icon-prefix-cls: ~'@{ant-prefix}-icon'; 5 | -------------------------------------------------------------------------------- /components/time-picker/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | -------------------------------------------------------------------------------- /components/vc-tree/demo/basic.less: -------------------------------------------------------------------------------- 1 | .rc-tree li a.rc-tree-node-selected { 2 | .cus-label { 3 | background-color: white; 4 | border: none; 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /components/vc-upload/src/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-upload 2.4.4 2 | // export this package's api 3 | import Upload from './Upload'; 4 | 5 | export default Upload; 6 | -------------------------------------------------------------------------------- /components/_util/interopDefault.js: -------------------------------------------------------------------------------- 1 | // https://github.com/moment/moment/issues/3650 2 | export default function interopDefault(m) { 3 | return m.default || m; 4 | } 5 | -------------------------------------------------------------------------------- /components/popconfirm/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | 3 | // style dependencies 4 | import '../../popover/style'; 5 | import '../../button/style'; 6 | -------------------------------------------------------------------------------- /components/vc-tree-select/src/strategies.js: -------------------------------------------------------------------------------- 1 | export const SHOW_ALL = 'SHOW_ALL'; 2 | export const SHOW_PARENT = 'SHOW_PARENT'; 3 | export const SHOW_CHILD = 'SHOW_CHILD'; 4 | -------------------------------------------------------------------------------- /components/vc-upload/src/uid.js: -------------------------------------------------------------------------------- 1 | const now = +new Date(); 2 | let index = 0; 3 | 4 | export default function uid() { 5 | return `vc-upload-${now}-${++index}`; 6 | } 7 | -------------------------------------------------------------------------------- /site/theme/static/theme.less: -------------------------------------------------------------------------------- 1 | @site-heading-color: #0d1a26; 2 | @site-text-color: #314659; 3 | @site-text-color-secondary: #697b8c; 4 | @site-border-color-split: #ebedf0; 5 | -------------------------------------------------------------------------------- /components/form/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('form', { suffix: 'vue', skip: ['index.vue', 'vuex.vue'] }); 4 | -------------------------------------------------------------------------------- /components/input-number/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import InputNumber from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | focusTest(InputNumber); 5 | -------------------------------------------------------------------------------- /components/vc-slick/assets/img/react-slick/abstract01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/img/react-slick/abstract01.jpg -------------------------------------------------------------------------------- /components/vc-slick/assets/img/react-slick/abstract02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/img/react-slick/abstract02.jpg -------------------------------------------------------------------------------- /components/vc-slick/assets/img/react-slick/abstract03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/img/react-slick/abstract03.jpg -------------------------------------------------------------------------------- /components/vc-slick/assets/img/react-slick/abstract04.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/calamus0427/ant-design-vue/master/components/vc-slick/assets/img/react-slick/abstract04.jpg -------------------------------------------------------------------------------- /components/vc-progress/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-progress 2.2.7 2 | import Progress, { Line, Circle } from './src/'; 3 | 4 | export { Line, Circle }; 5 | 6 | export default Progress; 7 | -------------------------------------------------------------------------------- /components/rate/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import Rate from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('Rate', () => { 5 | focusTest(Rate); 6 | }); 7 | -------------------------------------------------------------------------------- /components/slider/__tests__/demo.test.js: -------------------------------------------------------------------------------- 1 | import demoTest from '../../../tests/shared/demoTest'; 2 | 3 | demoTest('slider', { skip: process.env.LIB_DIR === 'dist' && ['show-tooltip.md'] }); 4 | -------------------------------------------------------------------------------- /components/_util/callMoment.js: -------------------------------------------------------------------------------- 1 | // https://github.com/moment/moment/issues/3650 2 | export default function callMoment(moment, ...args) { 3 | return (moment.default || moment)(...args); 4 | } 5 | -------------------------------------------------------------------------------- /components/_util/store/index.js: -------------------------------------------------------------------------------- 1 | export { default as Provider } from './Provider'; 2 | 3 | export { default as connect } from './connect'; 4 | 5 | export { default as create } from './create'; 6 | -------------------------------------------------------------------------------- /components/calendar/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../radio/style'; 7 | -------------------------------------------------------------------------------- /components/col/index.js: -------------------------------------------------------------------------------- 1 | import { Col } from '../grid'; 2 | /* istanbul ignore next */ 3 | Col.install = function(Vue) { 4 | Vue.component(Col.name, Col); 5 | }; 6 | 7 | export default Col; 8 | -------------------------------------------------------------------------------- /components/pagination/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../input/style'; 7 | -------------------------------------------------------------------------------- /components/upload/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../progress/style'; 6 | import '../../tooltip/style'; 7 | -------------------------------------------------------------------------------- /components/row/index.js: -------------------------------------------------------------------------------- 1 | import { Row } from '../grid'; 2 | 3 | /* istanbul ignore next */ 4 | Row.install = function(Vue) { 5 | Vue.component(Row.name, Row); 6 | }; 7 | 8 | export default Row; 9 | -------------------------------------------------------------------------------- /components/switch/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import Switch from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('Switch', () => { 5 | focusTest(Switch); 6 | }); 7 | -------------------------------------------------------------------------------- /components/time-picker/locale/ru_RU.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Created by Andrey Gayvoronsky on 13/04/16. 3 | */ 4 | const locale = { 5 | placeholder: 'Выберите время', 6 | }; 7 | 8 | export default locale; 9 | -------------------------------------------------------------------------------- /components/tree-select/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../select/style'; 6 | import '../../checkbox/style'; 7 | -------------------------------------------------------------------------------- /components/vc-steps/index.js: -------------------------------------------------------------------------------- 1 | // base rc-steps 3.3.1 2 | import Steps from './Steps'; 3 | import Step from './Step'; 4 | 5 | Steps.Step = Step; 6 | 7 | export { Step }; 8 | export default Steps; 9 | -------------------------------------------------------------------------------- /components/badge/index.js: -------------------------------------------------------------------------------- 1 | import Badge from './Badge'; 2 | 3 | /* istanbul ignore next */ 4 | Badge.install = function(Vue) { 5 | Vue.component(Badge.name, Badge); 6 | }; 7 | 8 | export default Badge; 9 | -------------------------------------------------------------------------------- /components/vc-progress/src/index.js: -------------------------------------------------------------------------------- 1 | import Line from './Line'; 2 | import Circle from './Circle'; 3 | 4 | export { Line, Circle }; 5 | 6 | export default { 7 | Line, 8 | Circle, 9 | }; 10 | -------------------------------------------------------------------------------- /components/vc-slick/demo/config.js: -------------------------------------------------------------------------------- 1 | export const baseUrl = 2 | process.env.NODE_ENV === 'production' 3 | ? 'https://s3.amazonaws.com/static.neostack.com/img/react-slick' 4 | : '/img/react-slick'; 5 | -------------------------------------------------------------------------------- /components/style/mixins/size.less: -------------------------------------------------------------------------------- 1 | // Sizing shortcuts 2 | 3 | .size(@width; @height) { 4 | width: @width; 5 | height: @height; 6 | } 7 | 8 | .square(@size) { 9 | .size(@size; @size); 10 | } 11 | -------------------------------------------------------------------------------- /components/avatar/index.js: -------------------------------------------------------------------------------- 1 | import Avatar from './Avatar'; 2 | 3 | /* istanbul ignore next */ 4 | Avatar.install = function(Vue) { 5 | Vue.component(Avatar.name, Avatar); 6 | }; 7 | 8 | export default Avatar; 9 | -------------------------------------------------------------------------------- /components/tree-select/__tests__/index.test.js: -------------------------------------------------------------------------------- 1 | import TreeSelect from '..'; 2 | import focusTest from '../../../tests/shared/focusTest'; 3 | 4 | describe('TreeSelect', () => { 5 | focusTest(TreeSelect); 6 | }); 7 | -------------------------------------------------------------------------------- /components/tooltip/index.js: -------------------------------------------------------------------------------- 1 | import ToolTip from './Tooltip'; 2 | 3 | /* istanbul ignore next */ 4 | ToolTip.install = function(Vue) { 5 | Vue.component(ToolTip.name, ToolTip); 6 | }; 7 | 8 | export default ToolTip; 9 | -------------------------------------------------------------------------------- /components/vc-slider/index.js: -------------------------------------------------------------------------------- 1 | // base rc-slider 8.6.4 2 | import Vue from 'vue'; 3 | import ref from 'vue-ref'; 4 | import Slider from './src/'; 5 | 6 | Vue.use(ref, { name: 'ant-ref' }); 7 | export default Slider; 8 | -------------------------------------------------------------------------------- /components/list/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../spin/style'; 6 | import '../../pagination/style'; 7 | import '../../grid/style'; 8 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # 🎨 editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | indent_style = space 9 | indent_size = 2 10 | trim_trailing_whitespace = true 11 | insert_final_newline = true -------------------------------------------------------------------------------- /components/date-picker/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../input/style'; 6 | import '../../time-picker/style'; 7 | import '../../tag/style'; 8 | -------------------------------------------------------------------------------- /components/transfer/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../checkbox/style'; 6 | import '../../button/style'; 7 | import '../../input/style'; 8 | -------------------------------------------------------------------------------- /components/radio/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法。 4 | 5 | 6 | 7 | #### Basic 8 | The simplest use. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/vc-calendar/assets/common/Picker.less: -------------------------------------------------------------------------------- 1 | .@{prefixClass}-picker { 2 | position: absolute; 3 | left: -9999px; 4 | top: -9999px; 5 | z-index: 1000; 6 | 7 | &-hidden { 8 | display: none; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/skeleton/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的占位效果。 4 | 5 | 6 | 7 | #### Basic 8 | Simplest Skeleton usage. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/style/mixins/index.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------------------------------- 3 | @import 'size'; 4 | @import 'compatibility'; 5 | @import 'clearfix'; 6 | @import 'iconfont'; 7 | @import 'motion'; 8 | @import 'reset'; 9 | -------------------------------------------------------------------------------- /components/table/ColumnGroup.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | export default { 4 | name: 'ATableColumnGroup', 5 | props: { 6 | title: PropTypes.any, 7 | }, 8 | __ANT_TABLE_COLUMN_GROUP: true, 9 | }; 10 | -------------------------------------------------------------------------------- /components/vc-table/src/ColumnGroup.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../../_util/vue-types'; 2 | 3 | export default { 4 | name: 'ColumnGroup', 5 | props: { 6 | title: PropTypes.any, 7 | }, 8 | isTableColumnGroup: true, 9 | }; 10 | -------------------------------------------------------------------------------- /components/vc-tree/src/index.js: -------------------------------------------------------------------------------- 1 | import ProxyTree, { Tree } from './Tree'; 2 | import TreeNode from './TreeNode'; 3 | Tree.TreeNode = TreeNode; 4 | ProxyTree.TreeNode = TreeNode; 5 | 6 | export { Tree, TreeNode }; 7 | export default ProxyTree; 8 | -------------------------------------------------------------------------------- /components/input/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本使用 3 | 基本使用。 4 | 5 | 6 | 7 | #### Basic usage 8 | Basic usage example. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/time-picker/__tests__/__snapshots__/index.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`TimePicker renders addon correctly 1`] = `
`; 4 | -------------------------------------------------------------------------------- /components/_util/Dom/addEventListener.js: -------------------------------------------------------------------------------- 1 | import addDOMEventListener from 'add-dom-event-listener'; 2 | 3 | export default function addEventListenerWrap(target, eventType, cb, option) { 4 | return addDOMEventListener(target, eventType, cb, option); 5 | } 6 | -------------------------------------------------------------------------------- /components/_util/FormDecoratorDirective.js: -------------------------------------------------------------------------------- 1 | export function antDecorator(Vue) { 2 | return Vue.directive('decorator', {}); 3 | } 4 | 5 | export default { 6 | // just for tag 7 | install: Vue => { 8 | antDecorator(Vue); 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /components/_util/warning.js: -------------------------------------------------------------------------------- 1 | import warning from 'warning'; 2 | 3 | const warned = {}; 4 | export default (valid, message) => { 5 | if (!valid && !warned[message]) { 6 | warning(false, message); 7 | warned[message] = true; 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /components/rate/demo/half.md: -------------------------------------------------------------------------------- 1 | 2 | #### 半星 3 | 支持选中半星。 4 | 5 | 6 | 7 | #### Half star 8 | Support select half star. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/vc-tree-select/src/index.js: -------------------------------------------------------------------------------- 1 | import Select from './Select'; 2 | import SelectNode from './SelectNode'; 3 | 4 | export { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from './strategies'; 5 | export const TreeNode = SelectNode; 6 | 7 | export default Select; 8 | -------------------------------------------------------------------------------- /components/_util/Dom/contains.js: -------------------------------------------------------------------------------- 1 | export default function contains(root, n) { 2 | let node = n; 3 | while (node) { 4 | if (node === root) { 5 | return true; 6 | } 7 | node = node.parentNode; 8 | } 9 | 10 | return false; 11 | } 12 | -------------------------------------------------------------------------------- /components/_util/store/PropTypes.js: -------------------------------------------------------------------------------- 1 | import PropTypes from '../vue-types'; 2 | 3 | export const storeShape = PropTypes.shape({ 4 | subscribe: PropTypes.func.isRequired, 5 | setState: PropTypes.func.isRequired, 6 | getState: PropTypes.func.isRequired, 7 | }); 8 | -------------------------------------------------------------------------------- /components/skeleton/demo/active.md: -------------------------------------------------------------------------------- 1 | 2 | #### 动画效果 3 | 显示动画效果。 4 | 5 | 6 | 7 | #### Active Animation 8 | Display active animation. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | 17 | -------------------------------------------------------------------------------- /components/vc-tree/demo/draggable.less: -------------------------------------------------------------------------------- 1 | .draggable-demo { 2 | padding: 0 20px; 3 | .draggable-container { 4 | margin: 10px 30px; 5 | width: 200px; 6 | height: 200px; 7 | overflow: auto; 8 | border: 1px solid #ccc; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /components/_util/StateMixin.js: -------------------------------------------------------------------------------- 1 | export default { 2 | methods: { 3 | setState(state, callback) { 4 | Object.assign(this.$data, state); 5 | this.$nextTick(() => { 6 | callback && callback(); 7 | }); 8 | }, 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /components/_util/antDirective.js: -------------------------------------------------------------------------------- 1 | import { antInput } from './antInputDirective'; 2 | import { antDecorator } from './FormDecoratorDirective'; 3 | 4 | export default { 5 | install: Vue => { 6 | antInput(Vue); 7 | antDecorator(Vue); 8 | }, 9 | }; 10 | -------------------------------------------------------------------------------- /components/pagination/demo/more.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 更多 4 | 更多分页。 5 | 6 | 7 | 8 | #### more 9 | Mode pages. 10 | 11 | 12 | ```html 13 | 16 | ``` 17 | 18 | -------------------------------------------------------------------------------- /components/vc-pagination/KeyCode.js: -------------------------------------------------------------------------------- 1 | export default { 2 | ZERO: 48, 3 | NINE: 57, 4 | 5 | NUMPAD_ZERO: 96, 6 | NUMPAD_NINE: 105, 7 | 8 | BACKSPACE: 8, 9 | DELETE: 46, 10 | ENTER: 13, 11 | 12 | ARROW_UP: 38, 13 | ARROW_DOWN: 40, 14 | }; 15 | -------------------------------------------------------------------------------- /components/_util/env.js: -------------------------------------------------------------------------------- 1 | export const inBrowser = typeof window !== 'undefined'; 2 | export const UA = inBrowser && window.navigator.userAgent.toLowerCase(); 3 | export const isIE = UA && /msie|trident/.test(UA); 4 | export const isIE9 = UA && UA.indexOf('msie 9.0') > 0; 5 | -------------------------------------------------------------------------------- /components/spin/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本用法 3 | 一个简单的 loading 状态。 4 | 5 | 6 | 7 | #### basic Usage 8 | A simple loading status. 9 | 10 | 11 | ```html 12 | 17 | ``` 18 | -------------------------------------------------------------------------------- /components/vc-form/demo/styles.js: -------------------------------------------------------------------------------- 1 | export const regionStyle = { 2 | border: '1px solid red', 3 | marginTop: '10px', 4 | padding: '10px', 5 | }; 6 | 7 | export const errorStyle = { 8 | color: 'red', 9 | marginTop: '10px', 10 | padding: '10px', 11 | }; 12 | -------------------------------------------------------------------------------- /components/rate/demo/disabled.md: -------------------------------------------------------------------------------- 1 | 2 | #### 只读 3 | 只读,无法进行鼠标交互。 4 | 5 | 6 | 7 | #### Read only 8 | Read only, can't use mouse to interact. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/style/mixins/clearfix.less: -------------------------------------------------------------------------------- 1 | // mixins for clearfix 2 | // ------------------------ 3 | .clearfix() { 4 | zoom: 1; 5 | &:before, 6 | &:after { 7 | content: ''; 8 | display: table; 9 | } 10 | &:after { 11 | clear: both; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /components/vc-tree-select/demo/styles.js: -------------------------------------------------------------------------------- 1 | export const regionStyle = { 2 | border: '1px solid red', 3 | marginTop: '10px', 4 | padding: '10px', 5 | }; 6 | 7 | export const errorStyle = { 8 | color: 'red', 9 | marginTop: '10px', 10 | padding: '10px', 11 | }; 12 | -------------------------------------------------------------------------------- /components/back-top/style/responsive.less: -------------------------------------------------------------------------------- 1 | @media screen and (max-width: @screen-md) { 2 | .@{backtop-prefix-cls} { 3 | right: 60px; 4 | } 5 | } 6 | 7 | @media screen and (max-width: @screen-xs) { 8 | .@{backtop-prefix-cls} { 9 | right: 20px; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /components/divider/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | | 参数 | 说明 | 类型 | 默认值 | 4 | | --- | --- | --- | --- | 5 | | dashed | 是否虚线 | Boolean | false | 6 | | orientation | 分割线标题的位置 | enum: `left` `right` | `center` | 7 | | type | 水平还是垂直类型 | enum: `horizontal` `vertical` | `horizontal` | 8 | 9 | -------------------------------------------------------------------------------- /components/input/demo/textarea.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 文本域 4 | 用于多行输入。 5 | 6 | 7 | 8 | #### TextArea 9 | For multi-line input. 10 | 11 | 12 | ```html 13 | 16 | ``` 17 | 18 | -------------------------------------------------------------------------------- /components/pagination/demo/simple.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 简洁 4 | 简单的翻页。 5 | 6 | 7 | 8 | #### Simple mode 9 | Simple mode. 10 | 11 | 12 | ```html 13 | 16 | ``` 17 | 18 | -------------------------------------------------------------------------------- /components/_util/triggerEvent.js: -------------------------------------------------------------------------------- 1 | export default function triggerEvent(el, type) { 2 | if ('createEvent' in document) { 3 | // modern browsers, IE9+ 4 | const e = document.createEvent('HTMLEvents'); 5 | e.initEvent(type, false, true); 6 | el.dispatchEvent(e); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /components/alert/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法,适用于简短的警告提示。 4 | 5 | 6 | 7 | #### basic 8 | The simplest usage for short messages. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/progress/index.jsx: -------------------------------------------------------------------------------- 1 | import Progress from './progress'; 2 | 3 | export { ProgressProps } from './progress'; 4 | 5 | /* istanbul ignore next */ 6 | Progress.install = function(Vue) { 7 | Vue.component(Progress.name, Progress); 8 | }; 9 | 10 | export default Progress; 11 | -------------------------------------------------------------------------------- /components/vc-table/assets/bordered.less: -------------------------------------------------------------------------------- 1 | @tablePrefixCls: rc-table; 2 | @table-border-color: #e9e9e9; 3 | 4 | .@{tablePrefixCls}.bordered { 5 | table { 6 | border-collapse: collapse; 7 | } 8 | th, 9 | td { 10 | border: 1px solid @table-border-color; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /components/upload/__tests__/requests.js: -------------------------------------------------------------------------------- 1 | export const successRequest = ({ onSuccess, file }) => { 2 | setTimeout(() => { 3 | onSuccess(null, file); 4 | }); 5 | }; 6 | 7 | export const errorRequest = ({ onError }) => { 8 | setTimeout(() => { 9 | onError(); 10 | }); 11 | }; 12 | -------------------------------------------------------------------------------- /components/table/style/index.js: -------------------------------------------------------------------------------- 1 | import '../../style/index.less'; 2 | import './index.less'; 3 | 4 | // style dependencies 5 | import '../../radio/style'; 6 | import '../../checkbox/style'; 7 | import '../../dropdown/style'; 8 | import '../../spin/style'; 9 | import '../../pagination/style'; 10 | -------------------------------------------------------------------------------- /components/vc-select/OptGroup.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | export default { 3 | props: { 4 | value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), 5 | label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), 6 | }, 7 | isSelectOptGroup: true, 8 | }; 9 | -------------------------------------------------------------------------------- /components/table/FilterDropdownMenuWrapper.jsx: -------------------------------------------------------------------------------- 1 | export default { 2 | methods: { 3 | handelClick(e) { 4 | this.$emit('click', e); 5 | }, 6 | }, 7 | render() { 8 | const { $slots, handelClick } = this; 9 | return
{$slots.default}
; 10 | }, 11 | }; 12 | -------------------------------------------------------------------------------- /components/skeleton/demo/complex.md: -------------------------------------------------------------------------------- 1 | 2 | #### 复杂的组合 3 | 更复杂的组合。 4 | 5 | 6 | 7 | #### Complex combination 8 | Complex combination with avatar and multiple paragraphs. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | 17 | -------------------------------------------------------------------------------- /components/pagination/index.js: -------------------------------------------------------------------------------- 1 | import Pagination from './Pagination'; 2 | 3 | export { PaginationProps, PaginationConfig } from './Pagination'; 4 | 5 | /* istanbul ignore next */ 6 | Pagination.install = function(Vue) { 7 | Vue.component(Pagination.name, Pagination); 8 | }; 9 | 10 | export default Pagination; 11 | -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | export * from './ant-design-vue'; 6 | 7 | import * as Antd from './ant-design-vue'; 8 | export default Antd; 9 | -------------------------------------------------------------------------------- /components/date-picker/style/MonthPicker.less: -------------------------------------------------------------------------------- 1 | .@{calendar-prefix-cls}-month { 2 | .@{calendar-prefix-cls}-month-header-wrap { 3 | position: relative; 4 | height: 288px; 5 | } 6 | .@{calendar-prefix-cls}-month-panel, 7 | .@{calendar-prefix-cls}-year-panel { 8 | top: 0; 9 | height: 100%; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /components/spin/index.js: -------------------------------------------------------------------------------- 1 | import Spin, { setDefaultIndicator } from './Spin'; 2 | 3 | export { SpinProps } from './Spin'; 4 | 5 | Spin.setDefaultIndicator = setDefaultIndicator; 6 | 7 | /* istanbul ignore next */ 8 | Spin.install = function(Vue) { 9 | Vue.component(Spin.name, Spin); 10 | }; 11 | 12 | export default Spin; 13 | -------------------------------------------------------------------------------- /components/vc-tree-select/index.js: -------------------------------------------------------------------------------- 1 | // export this package's api 2 | // base 2.4.4 3 | import Vue from 'vue'; 4 | import TreeSelect from './src'; 5 | import ref from 'vue-ref'; 6 | 7 | Vue.use(ref, { name: 'ant-ref' }); 8 | export default TreeSelect; 9 | 10 | export { TreeNode, SHOW_ALL, SHOW_PARENT, SHOW_CHILD } from './src'; 11 | -------------------------------------------------------------------------------- /site/theme/static/nprogress.less: -------------------------------------------------------------------------------- 1 | #nprogress { 2 | .bar { 3 | background: @primary-color; 4 | } 5 | 6 | .peg { 7 | box-shadow: 0 0 10px @primary-color, 0 0 5px @primary-color; 8 | } 9 | 10 | .spinner-icon { 11 | border-top-color: @primary-color; 12 | border-left-color: @primary-color; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /components/vc-collapse/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-collapse 1.10.2 2 | import CollapsePanel from './src/Panel'; 3 | import Collapse from './src/Collapse'; 4 | import { collapseProps, panelProps } from './src/commonProps'; 5 | 6 | Collapse.Panel = CollapsePanel; 7 | 8 | export { collapseProps, panelProps }; 9 | export default Collapse; 10 | -------------------------------------------------------------------------------- /components/vc-tabs/src/KeyCode.js: -------------------------------------------------------------------------------- 1 | export default { 2 | /** 3 | * LEFT 4 | */ 5 | LEFT: 37, // also NUM_WEST 6 | /** 7 | * UP 8 | */ 9 | UP: 38, // also NUM_NORTH 10 | /** 11 | * RIGHT 12 | */ 13 | RIGHT: 39, // also NUM_EAST 14 | /** 15 | * DOWN 16 | */ 17 | DOWN: 40, // also NUM_SOUTH 18 | }; 19 | -------------------------------------------------------------------------------- /components/vc-lazy-load/demo/style.less: -------------------------------------------------------------------------------- 1 | .LazyLoad { 2 | opacity: 0; 3 | transition: all 2s ease-in-out; 4 | 5 | &.is-visible { 6 | opacity: 1; 7 | } 8 | } 9 | 10 | .filler { 11 | height: 150px; 12 | } 13 | 14 | .ScrollableContainer { 15 | height: 200px; 16 | overflow: scroll; 17 | background-color: grey; 18 | } 19 | -------------------------------------------------------------------------------- /components/vc-tabs/src/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-tabs 9.5.8 2 | import ref from 'vue-ref'; 3 | import Vue from 'vue'; 4 | import Tabs from './Tabs'; 5 | import TabPane from './TabPane'; 6 | import TabContent from './TabContent'; 7 | 8 | Vue.use(ref, { name: 'ant-ref' }); 9 | 10 | export default Tabs; 11 | export { TabPane, TabContent }; 12 | -------------------------------------------------------------------------------- /antd-tools/postcssConfig.js: -------------------------------------------------------------------------------- 1 | const rucksack = require('rucksack-css'); 2 | const autoprefixer = require('autoprefixer'); 3 | 4 | module.exports = { 5 | plugins: [ 6 | rucksack(), 7 | autoprefixer({ 8 | browsers: ['last 2 versions', 'Firefox ESR', '> 1%', 'ie >= 9', 'iOS >= 8', 'Android >= 4'], 9 | }), 10 | ], 11 | }; 12 | -------------------------------------------------------------------------------- /components/alert/demo/close-text.md: -------------------------------------------------------------------------------- 1 | 2 | #### 自定义关闭 3 | 可以自定义关闭,自定义的文字会替换原先的关闭 `Icon`。 4 | 5 | 6 | 7 | #### Customized Close Text 8 | Replace the default icon with customized text. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/radio/__tests__/__snapshots__/radio.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Radio should render correctly 1`] = ``; 4 | -------------------------------------------------------------------------------- /components/switch/demo/loading.md: -------------------------------------------------------------------------------- 1 | 2 | #### 加载中 3 | 标识开关操作仍在执行中。 4 | 5 | 6 | 7 | #### Loading 8 | Mark a pending state of switch. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/tag/index.js: -------------------------------------------------------------------------------- 1 | import Tag from './Tag'; 2 | import CheckableTag from './CheckableTag'; 3 | 4 | Tag.CheckableTag = CheckableTag; 5 | 6 | /* istanbul ignore next */ 7 | Tag.install = function(Vue) { 8 | Vue.component(Tag.name, Tag); 9 | Vue.component(Tag.CheckableTag.name, Tag.CheckableTag); 10 | }; 11 | 12 | export default Tag; 13 | -------------------------------------------------------------------------------- /components/vc-time-picker/assets/index.less: -------------------------------------------------------------------------------- 1 | @prefixClass: rc-time-picker; 2 | 3 | .@{prefixClass} { 4 | display: inline-block; 5 | box-sizing: border-box; 6 | * { 7 | box-sizing: border-box; 8 | } 9 | } 10 | 11 | @import './index/Picker'; 12 | @import './index/Panel'; 13 | @import './index/Header'; 14 | @import './index/Select'; 15 | -------------------------------------------------------------------------------- /components/button/index.js: -------------------------------------------------------------------------------- 1 | import Button from './button'; 2 | import ButtonGroup from './button-group'; 3 | 4 | Button.Group = ButtonGroup; 5 | 6 | /* istanbul ignore next */ 7 | Button.install = function(Vue) { 8 | Vue.component(Button.name, Button); 9 | Vue.component(ButtonGroup.name, ButtonGroup); 10 | }; 11 | 12 | export default Button; 13 | -------------------------------------------------------------------------------- /components/checkbox/demo/disabled.md: -------------------------------------------------------------------------------- 1 | 2 | #### 不可用 3 | checkbox 不可用 4 | 5 | 6 | 7 | #### Disabled 8 | Disabled checkbox 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/table/createStore.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | export const Store = PropTypes.shape({ 3 | setState: PropTypes.func, 4 | getState: PropTypes.func, 5 | subscribe: PropTypes.func, 6 | }).loose; 7 | 8 | import create from '../_util/store/create'; 9 | const createStore = create; 10 | 11 | export default createStore; 12 | -------------------------------------------------------------------------------- /components/vc-calendar/assets/common/index.less: -------------------------------------------------------------------------------- 1 | @prefixClass: rc-calendar; 2 | @timePickerClass: rc-time-picker; 3 | 4 | .@{prefixClass} { 5 | box-sizing: border-box; 6 | * { 7 | box-sizing: border-box; 8 | } 9 | } 10 | 11 | .@{prefixClass}-hidden { 12 | display: none; 13 | } 14 | 15 | @import 'Calendar.less'; 16 | @import 'Picker.less'; 17 | -------------------------------------------------------------------------------- /components/vc-calendar/assets/index.less: -------------------------------------------------------------------------------- 1 | @import './common/index.less'; 2 | @import 'index/Picker'; 3 | @import 'index/Calendar'; 4 | @import 'index/Time'; 5 | @import 'index/TimePanel'; 6 | @import 'index/MonthPanel'; 7 | @import 'index/YearPanel'; 8 | @import 'index/DecadePanel'; 9 | @import 'common/RangeCalendar'; 10 | @import 'common/FullCalendar'; 11 | -------------------------------------------------------------------------------- /components/vc-dialog/LazyRenderBox.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | const ILazyRenderBoxPropTypes = { 4 | visible: PropTypes.bool, 5 | hiddenClassName: PropTypes.string, 6 | }; 7 | 8 | export default { 9 | props: ILazyRenderBoxPropTypes, 10 | render() { 11 | return
{this.$slots.default}
; 12 | }, 13 | }; 14 | -------------------------------------------------------------------------------- /components/vc-tree-select/demo/demo.less: -------------------------------------------------------------------------------- 1 | .rc-tree-select-selection--multiple { 2 | max-height: 50px; 3 | overflow-y: scroll; 4 | } 5 | .rc-tree-select-dropdown { 6 | max-height: 350px; 7 | overflow-y: scroll; 8 | } 9 | .check-select { 10 | width: 300px; 11 | .rc-tree-select-selection--multiple { 12 | min-height: 50px; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /components/_util/store/Provider.jsx: -------------------------------------------------------------------------------- 1 | import { storeShape } from './PropTypes'; 2 | export default { 3 | name: 'StoreProvider', 4 | props: { 5 | store: storeShape.isRequired, 6 | }, 7 | provide() { 8 | return { 9 | storeContext: this.$props, 10 | }; 11 | }, 12 | render() { 13 | return this.$slots.default[0]; 14 | }, 15 | }; 16 | -------------------------------------------------------------------------------- /components/icon/twoTonePrimaryColor.js: -------------------------------------------------------------------------------- 1 | import VueIcon from '@ant-design/icons-vue'; 2 | 3 | export function setTwoToneColor(primaryColor) { 4 | return VueIcon.setTwoToneColors({ 5 | primaryColor, 6 | }); 7 | } 8 | 9 | export function getTwoToneColor() { 10 | const colors = VueIcon.getTwoToneColors(); 11 | return colors.primaryColor; 12 | } 13 | -------------------------------------------------------------------------------- /components/popover/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | 2 | ## API 3 | 4 | | 参数 | 说明 | 类型 | 默认值 | 5 | | --- | --- | --- | --- | 6 | | content | 卡片内容 | string\|slot\|VNode | 无 | 7 | | title | 卡片标题 | string\|slot\|VNode | 无 | 8 | 9 | 更多属性请参考 [Tooltip](/components/tooltip-cn/#API)。 10 | 11 | ## 注意 12 | 13 | 请确保 `Popover` 的子元素能接受 `mouseenter`、`mouseleave`、`focus`、`click` 事件。 14 | -------------------------------------------------------------------------------- /components/rate/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法。 4 | 5 | 6 | 7 | #### Basic 8 | The simplest usage. 9 | 10 | 11 | ```html 12 | 15 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/vc-menu/Divider.jsx: -------------------------------------------------------------------------------- 1 | export default { 2 | name: 'MenuDivider', 3 | props: { 4 | disabled: { 5 | type: Boolean, 6 | default: true, 7 | }, 8 | rootPrefixCls: String, 9 | }, 10 | render() { 11 | const { rootPrefixCls } = this.$props; 12 | return
  • ; 13 | }, 14 | }; 15 | -------------------------------------------------------------------------------- /types/component.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import Vue from 'vue'; 6 | 7 | export declare class AntdComponent extends Vue { 8 | static install(vue: typeof Vue): void; 9 | } 10 | -------------------------------------------------------------------------------- /.vcmrc: -------------------------------------------------------------------------------- 1 | { 2 | "helpMessage": "\nPlease fix your commit message (and consider using https://www.npmjs.com/package/commitizen)\n", 3 | "types": [ 4 | "feat", 5 | "fix", 6 | "docs", 7 | "style", 8 | "refactor", 9 | "perf", 10 | "test", 11 | "chore", 12 | "revert" 13 | ], 14 | "warnOnFail": false, 15 | "autoFix": false 16 | } -------------------------------------------------------------------------------- /components/progress/demo/dashboard.md: -------------------------------------------------------------------------------- 1 | 2 | #### 仪表盘 3 | By setting `type=dashboard`, you can get a dashboard style of progress easily. 4 | 5 | 6 | 7 | #### Dashboard 8 | A standard progress bar. 9 | 10 | 11 | ```html 12 | 17 | ``` 18 | -------------------------------------------------------------------------------- /components/style/mixins/reset.less: -------------------------------------------------------------------------------- 1 | @import '../themes/default'; 2 | 3 | .reset-component() { 4 | font-family: @font-family; 5 | font-size: @font-size-base; 6 | font-variant: @font-variant-base; 7 | line-height: @line-height-base; 8 | color: @text-color; 9 | box-sizing: border-box; 10 | margin: 0; 11 | padding: 0; 12 | list-style: none; 13 | } 14 | -------------------------------------------------------------------------------- /components/tooltip/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法。 4 | 5 | 6 | 7 | #### Basic 8 | The simplest usage. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | 22 | -------------------------------------------------------------------------------- /components/vc-form/src/index.jsx: -------------------------------------------------------------------------------- 1 | // export this package's api 2 | import createForm from './createForm'; 3 | import createFormField from './createFormField'; 4 | import formShape from './propTypes'; 5 | import Vue from 'vue'; 6 | import ref from 'vue-ref'; 7 | 8 | Vue.use(ref, { name: 'ant-ref' }); 9 | 10 | export { createFormField, formShape, createForm }; 11 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/zh_CN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '条/页', 4 | jump_to: '跳至', 5 | jump_to_confirm: '确定', 6 | page: '页', 7 | 8 | // Pagination.jsx 9 | prev_page: '上一页', 10 | next_page: '下一页', 11 | prev_5: '向前 5 页', 12 | next_5: '向后 5 页', 13 | prev_3: '向前 3 页', 14 | next_3: '向后 3 页', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/zh_TW.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '條/頁', 4 | jump_to: '跳至', 5 | jump_to_confirm: '確定', 6 | page: '頁', 7 | 8 | // Pagination.jsx 9 | prev_page: '上一頁', 10 | next_page: '下一頁', 11 | prev_5: '向前 5 頁', 12 | next_5: '向後 5 頁', 13 | prev_3: '向前 3 頁', 14 | next_3: '向後 3 頁', 15 | }; 16 | -------------------------------------------------------------------------------- /components/badge/demo/link.md: -------------------------------------------------------------------------------- 1 | 2 | #### 可点击 3 | 用 a 标签进行包裹即可。 4 | 5 | 6 | 7 | #### Clickable 8 | The badge can be wrapped with `a` tag to make it linkable. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/card/demo/simple.md: -------------------------------------------------------------------------------- 1 | 2 | #### 简洁卡片 3 | 只包含内容区域。 4 | 5 | 6 | 7 | #### Simple card 8 | A simple card only containing a content area. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/checkbox/index.js: -------------------------------------------------------------------------------- 1 | import Checkbox from './Checkbox'; 2 | import CheckboxGroup from './Group'; 3 | 4 | Checkbox.Group = CheckboxGroup; 5 | 6 | /* istanbul ignore next */ 7 | Checkbox.install = function(Vue) { 8 | Vue.component(Checkbox.name, Checkbox); 9 | Vue.component(CheckboxGroup.name, CheckboxGroup); 10 | }; 11 | 12 | export default Checkbox; 13 | -------------------------------------------------------------------------------- /components/switch/demo/size.md: -------------------------------------------------------------------------------- 1 | 2 | #### 两种大小 3 | `size="small"` 表示小号开关。 4 | 5 | 6 | 7 | #### Two sizes 8 | `size="small"` represents a small sized switch. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/nb_NO.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ side', 4 | jump_to: 'Gå til side', 5 | page: '', 6 | 7 | // Pagination.jsx 8 | prev_page: 'Forrige side', 9 | next_page: 'Neste side', 10 | prev_5: '5 forrige', 11 | next_5: '5 neste', 12 | prev_3: '3 forrige', 13 | next_3: '3 neste', 14 | }; 15 | -------------------------------------------------------------------------------- /index-with-locales.js: -------------------------------------------------------------------------------- 1 | const antd = require('./components'); 2 | const req = require.context('./components', true, /^\.\/locale-provider\/(?!__tests__).+_.+\.js$/); 3 | 4 | antd.locales = {}; 5 | 6 | req.keys().forEach(mod => { 7 | const match = mod.match(/\/([^/]+).js$/); 8 | antd.locales[match[1]] = req(mod).default; 9 | }); 10 | 11 | module.exports = antd; 12 | -------------------------------------------------------------------------------- /components/collapse/index.js: -------------------------------------------------------------------------------- 1 | import Collapse from './Collapse'; 2 | import CollapsePanel from './CollapsePanel'; 3 | 4 | Collapse.Panel = CollapsePanel; 5 | 6 | /* istanbul ignore next */ 7 | Collapse.install = function(Vue) { 8 | Vue.component(Collapse.name, Collapse); 9 | Vue.component(CollapsePanel.name, CollapsePanel); 10 | }; 11 | 12 | export default Collapse; 13 | -------------------------------------------------------------------------------- /components/time-picker/demo/interval-options.md: -------------------------------------------------------------------------------- 1 | 2 | #### 步长选项 3 | 可以使用 `hourStep` `minuteStep` `secondStep` 按步长展示可选的时分秒。 4 | 5 | 6 | 7 | #### interval option 8 | Show stepped options by `hourStep` `minuteStep` `secondStep`. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/vc-pagination/demo/more.vue: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ja_JP.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ ページ', 4 | jump_to: '移動', 5 | jump_to_confirm: '確認する', 6 | page: 'ページ', 7 | 8 | // Pagination.jsx 9 | prev_page: '前のページ', 10 | next_page: '次のページ', 11 | prev_5: '前 5ページ', 12 | next_5: '次 5ページ', 13 | prev_3: '前 3ページ', 14 | next_3: '次 3ページ', 15 | }; 16 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true, 3 | "trailingComma": "all", 4 | "printWidth": 100, 5 | "overrides": [ 6 | { 7 | "files": ".prettierrc", 8 | "options": { 9 | "parser": "json" 10 | } 11 | }, 12 | { 13 | "files": ".stylelintrc", 14 | "options": { 15 | "parser": "json" 16 | } 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /components/progress/demo/segment.md: -------------------------------------------------------------------------------- 1 | 2 | #### 分段进度条 3 | 标准的进度条。 4 | 5 | 6 | 7 | #### Progress bar with success segment 8 | A standard progress bar. 9 | 10 | 11 | ```html 12 | 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ko_KR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ 쪽', 4 | jump_to: '이동하기', 5 | jump_to_confirm: '확인하다', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: '이전 페이지', 10 | next_page: '다음 페이지', 11 | prev_5: '이전 5 페이지', 12 | next_5: '다음 5 페이지', 13 | prev_3: '이전 3 페이지', 14 | next_3: '다음 3 페이지', 15 | }; 16 | -------------------------------------------------------------------------------- /components/back-top/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法。 4 | 5 | 6 | 7 | #### basic 8 | The most basic usage. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /components/card/index.js: -------------------------------------------------------------------------------- 1 | import Card from './Card'; 2 | import Meta from './Meta'; 3 | import Grid from './Grid'; 4 | Card.Meta = Meta; 5 | Card.Grid = Grid; 6 | 7 | /* istanbul ignore next */ 8 | Card.install = function(Vue) { 9 | Vue.component(Card.name, Card); 10 | Vue.component(Meta.name, Meta); 11 | Vue.component(Grid.name, Grid); 12 | }; 13 | 14 | export default Card; 15 | -------------------------------------------------------------------------------- /components/list/__tests__/__snapshots__/empty.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`List renders empty list 1`] = ` 4 |
    5 |
    6 |
    7 |
    No data
    8 |
    9 |
    10 |
    11 | `; 12 | -------------------------------------------------------------------------------- /components/vc-form/src/createFormField.jsx: -------------------------------------------------------------------------------- 1 | class Field { 2 | constructor(fields) { 3 | Object.assign(this, fields); 4 | } 5 | } 6 | 7 | export function isFormField(obj) { 8 | return obj instanceof Field; 9 | } 10 | 11 | export default function createFormField(field) { 12 | if (isFormField(field)) { 13 | return field; 14 | } 15 | return new Field(field); 16 | } 17 | -------------------------------------------------------------------------------- /components/breadcrumb/index.js: -------------------------------------------------------------------------------- 1 | import Breadcrumb from './Breadcrumb'; 2 | import BreadcrumbItem from './BreadcrumbItem'; 3 | 4 | Breadcrumb.Item = BreadcrumbItem; 5 | 6 | /* istanbul ignore next */ 7 | Breadcrumb.install = function(Vue) { 8 | Vue.component(Breadcrumb.name, Breadcrumb); 9 | Vue.component(BreadcrumbItem.name, BreadcrumbItem); 10 | }; 11 | 12 | export default Breadcrumb; 13 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/fa_IR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ صفحه', 4 | jump_to: 'برو به', 5 | jump_to_confirm: 'تایید', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'صفحه قبلی', 10 | next_page: 'صفحه بعدی', 11 | prev_5: '۵ صفحه قبلی', 12 | next_5: '۵ صفحه بعدی', 13 | prev_3: '۳ صفحه قبلی', 14 | next_3: '۳ صفحه بعدی', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ru_RU.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ стр.', 4 | jump_to: 'Перейти', 5 | jump_to_confirm: 'подтвердить', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Назад', 10 | next_page: 'Вперед', 11 | prev_5: 'Предыдущие 5', 12 | next_5: 'Следующие 5', 13 | prev_3: 'Предыдущие 3', 14 | next_3: 'Следующие 3', 15 | }; 16 | -------------------------------------------------------------------------------- /components/comment/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | | Property | Description | Type | Default | 4 | | -------- | ----------- | ---- | ------- | 5 | | actions | 在评论内容下面呈现的操作项列表 | Array\|slot | - | 6 | | author | 要显示为注释作者的元素 | string\|slot | - | 7 | | avatar | 要显示为评论头像的元素 - 通常是 antd `Avatar` 或者src | string\|slot | - | 8 | | content | 评论的主要内容 | string\|slot | - | 9 | | datetime | 展示时间描述 | string\|slot | - | 10 | -------------------------------------------------------------------------------- /components/divider/index.en-US.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | ### Divider 4 | 5 | | Property | Description | Type | Default | 6 | | -------- | ----------- | ---- | ------- | 7 | | dashed | whether line is dashed | Boolean | false | 8 | | orientation | position of title inside divider | enum: `left` `right` `center` | `center` | 9 | | type | direction type of divider | enum: `horizontal` `vertical` | `horizontal` | 10 | -------------------------------------------------------------------------------- /components/list/__tests__/empty.test.js: -------------------------------------------------------------------------------- 1 | import { mount } from '@vue/test-utils'; 2 | import List from '..'; 3 | 4 | describe('List', () => { 5 | it('renders empty list', () => { 6 | const wrapper = mount({ 7 | render() { 8 | return } />; 9 | }, 10 | }); 11 | expect(wrapper.html()).toMatchSnapshot(); 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /components/pagination/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 基本 4 | 基础分页。 5 | 6 | 7 | 8 | #### Basic 9 | Basic pagination. 10 | 11 | 12 | ```html 13 | 16 | 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /components/vc-slider/src/index.js: -------------------------------------------------------------------------------- 1 | import Slider from './Slider'; 2 | import Range from './Range'; 3 | import Handle from './Handle'; 4 | import createSliderWithTooltip from './createSliderWithTooltip'; 5 | 6 | Slider.Range = Range; 7 | Slider.Handle = Handle; 8 | Slider.createSliderWithTooltip = createSliderWithTooltip; 9 | export default Slider; 10 | export { Range, Handle, createSliderWithTooltip }; 11 | -------------------------------------------------------------------------------- /components/vc-pagination/demo/simple.vue: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/sr_RS.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ strani', 4 | jump_to: 'Idi na', 5 | page: '', 6 | 7 | // Pagination.jsx 8 | prev_page: 'Prethodna strana', 9 | next_page: 'Sledeća strana', 10 | prev_5: 'Prethodnih 5 Strana', 11 | next_5: 'Sledećih 5 Strana', 12 | prev_3: 'Prethodnih 3 Strane', 13 | next_3: 'Sledećih 3 Strane', 14 | }; 15 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/th_TH.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ หน้า', 4 | jump_to: 'ไปยัง', 5 | jump_to_confirm: 'ยืนยัน', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'หน้าก่อนหน้า', 10 | next_page: 'หน้าถัดไป', 11 | prev_5: 'ย้อนกลับ 5 หน้า', 12 | next_5: 'ถัดไป 5 หน้า', 13 | prev_3: 'ย้อนกลับ 3 หน้า', 14 | next_3: 'ถัดไป 3 หน้า', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-tree/demo/contextmenu.less: -------------------------------------------------------------------------------- 1 | @contextmenuPrefixCls: rc-tree-contextmenu; 2 | .@{contextmenuPrefixCls} { 3 | position: absolute; 4 | left: -9999px; 5 | top: -9999px; 6 | z-index: 1070; 7 | display: block; 8 | background-color: #fff; 9 | 10 | &-hidden { 11 | display: none; 12 | } 13 | 14 | &-inner { 15 | border: 1px solid #ddd; 16 | padding: 10px 20px; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /components/popconfirm/demo/local.md: -------------------------------------------------------------------------------- 1 | 2 | #### 国际化 3 | 使用 `okText` 和 `cancelText` 自定义按钮文字。 4 | 5 | 6 | 7 | #### Locale text 8 | Set `okText` and `cancelText` props to customize the button's labels. 9 | 10 | 11 | ```html 12 | 17 | ``` 18 | 19 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/da_DK.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ side', 4 | jump_to: 'Gå til', 5 | jump_to_confirm: 'bekræft', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Forrige Side', 10 | next_page: 'Næste Side', 11 | prev_5: 'Forrige 5 Sider', 12 | next_5: 'Næste 5 Sider', 13 | prev_3: 'Forrige 3 Sider', 14 | next_3: 'Næste 3 Sider', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/en_GB.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ page', 4 | jump_to: 'Goto', 5 | jump_to_confirm: 'confirm', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Previous Page', 10 | next_page: 'Next Page', 11 | prev_5: 'Previous 5 Pages', 12 | next_5: 'Next 5 Pages', 13 | prev_3: 'Previous 3 Pages', 14 | next_3: 'Next 3 Pages', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/en_US.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ page', 4 | jump_to: 'Goto', 5 | jump_to_confirm: 'confirm', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Previous Page', 10 | next_page: 'Next Page', 11 | prev_5: 'Previous 5 Pages', 12 | next_5: 'Next 5 Pages', 13 | prev_3: 'Previous 3 Pages', 14 | next_3: 'Next 3 Pages', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/he_IL.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ עמוד', 4 | jump_to: 'עבור אל', 5 | jump_to_confirm: 'אישור', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'העמוד הקודם', 10 | next_page: 'העמוד הבא', 11 | prev_5: '5 עמודים קודמים', 12 | next_5: '5 עמודים הבאים', 13 | prev_3: '3 עמודים קודמים', 14 | next_3: '3 עמודים הבאים', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/hi_IN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ पृष्ठ', 4 | jump_to: 'इस पर चलें', 5 | jump_to_confirm: 'पुष्टि करें', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'पिछला पृष्ठ', 10 | next_page: 'अगला पृष्ठ', 11 | prev_5: 'पिछले 5 पृष्ठ', 12 | next_5: 'अगले 5 पृष्ठ', 13 | prev_3: 'पिछले 3 पृष्ठ', 14 | next_3: 'अगले 3 पेज', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/is_IS.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ síðu', 4 | jump_to: 'Síða', 5 | jump_to_confirm: 'staðfest', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Fyrri síða', 10 | next_page: 'Næsta síða', 11 | prev_5: 'Til baka 5 síður', 12 | next_5: 'Áfram 5 síður', 13 | prev_3: 'Til baka 3 síður', 14 | next_3: 'Áfram 3 síður', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ku_IQ.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ rûpel', 4 | jump_to: 'Biçe', 5 | jump_to_confirm: 'piştrast bike', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Rûpelê Pêş', 10 | next_page: 'Rûpelê Paş', 11 | prev_5: '5 Rûpelên Pêş', 12 | next_5: '5 Rûpelên Paş', 13 | prev_3: '3 Rûpelên Pêş', 14 | next_3: '3 Rûpelên Paş', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/sv_SE.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ sida', 4 | jump_to: 'Gå till', 5 | jump_to_confirm: 'bekräfta', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Föreg sida', 10 | next_page: 'Nästa sida', 11 | prev_5: 'Föreg 5 sidor', 12 | next_5: 'Nästa 5 sidor', 13 | prev_3: 'Föreg 3 sidor', 14 | next_3: 'Nästa 3 sidor', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/vi_VN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ trang', 4 | jump_to: 'Đến', 5 | jump_to_confirm: 'xác nhận', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Trang Trước', 10 | next_page: 'Trang Kế', 11 | prev_5: 'Về 5 Trang Trước', 12 | next_5: 'Đến 5 Trang Kế', 13 | prev_3: 'Về 3 Trang Trước', 14 | next_3: 'Đến 3 Trang Kế', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-select/Option.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | export default { 4 | props: { 5 | value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), 6 | label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), 7 | disabled: PropTypes.bool, 8 | title: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), 9 | }, 10 | isSelectOption: true, 11 | }; 12 | -------------------------------------------------------------------------------- /components/rate/demo/clear.md: -------------------------------------------------------------------------------- 1 | 2 | #### 清除 3 | 支持允许或者禁用清除。 4 | 5 | 6 | 7 | #### Clear star 8 | Support set allow to clear star when click again. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /components/style/core/iconfont.less: -------------------------------------------------------------------------------- 1 | @import '../themes/default'; 2 | @import '../mixins/iconfont'; 3 | 4 | .@{iconfont-css-prefix} { 5 | .iconfont-mixin(); 6 | } 7 | 8 | .@{iconfont-css-prefix}-spin:before { 9 | display: inline-block; 10 | animation: loadingCircle 1s infinite linear; 11 | } 12 | .@{iconfont-css-prefix}-spin { 13 | display: inline-block; 14 | animation: loadingCircle 1s infinite linear; 15 | } 16 | -------------------------------------------------------------------------------- /components/upload/index.jsx: -------------------------------------------------------------------------------- 1 | import Upload from './Upload'; 2 | import Dragger from './Dragger'; 3 | 4 | export { UploadProps, UploadListProps, UploadChangeParam } from './interface'; 5 | 6 | Upload.Dragger = Dragger; 7 | 8 | /* istanbul ignore next */ 9 | Upload.install = function(Vue) { 10 | Vue.component(Upload.name, Upload); 11 | Vue.component(Dragger.name, Dragger); 12 | }; 13 | 14 | export default Upload; 15 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/tr_TR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ sayfa', 4 | jump_to: 'Git', 5 | jump_to_confirm: 'onayla', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Önceki Sayfa', 10 | next_page: 'Sonraki Sayfa', 11 | prev_5: 'Önceki 5 Sayfa', 12 | next_5: 'Sonraki 5 Sayfa', 13 | prev_3: 'Önceki 3 Sayfa', 14 | next_3: 'Sonraki 3 Sayfa', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ug_CN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: 'تال/ھەر بەت', 4 | jump_to: 'بەتكە سەكرەش', 5 | jump_to_confirm: 'مۇقىملاشتۇرۇش', 6 | page: 'بەت', 7 | // Pagination.jsx 8 | prev_page: 'ئالدىنقى', 9 | next_page: 'كېيىنكى', 10 | prev_5: 'ئالدىغا 5 بەت', 11 | next_5: 'كەينىگە 5 بەت', 12 | prev_3: 'ئالدىغا 3 بەت', 13 | next_3: 'كەينىگە 3 بەت', 14 | }; 15 | -------------------------------------------------------------------------------- /components/vc-slick/demo/imglist.js: -------------------------------------------------------------------------------- 1 | import abstract01 from '../assets/img/react-slick/abstract01.jpg'; 2 | import abstract02 from '../assets/img/react-slick/abstract02.jpg'; 3 | import abstract03 from '../assets/img/react-slick/abstract03.jpg'; 4 | import abstract04 from '../assets/img/react-slick/abstract04.jpg'; 5 | 6 | export default { 7 | abstract01, 8 | abstract02, 9 | abstract03, 10 | abstract04, 11 | }; 12 | -------------------------------------------------------------------------------- /components/divider/demo/vertical.md: -------------------------------------------------------------------------------- 1 | 2 | #### 垂直分割线 3 | 使用 `type="vertical"` 设置为行内的垂直分割线。 4 | 5 | 6 | 7 | #### Vertical 8 | Use `type="vertical"` make it vertical. 9 | 10 | 11 | ```html 12 | 21 | ``` 22 | -------------------------------------------------------------------------------- /components/popconfirm/demo/icon.md: -------------------------------------------------------------------------------- 1 | 2 | #### 自定义 Icon 图标 3 | 使用 `icon` 自定义提示 `icon`。 4 | 5 | 6 | 7 | #### Customize icon 8 | Set `icon` props to customize the icon. 9 | 10 | 11 | ```html 12 | 18 | ``` 19 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/de_DE.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ Seite', 4 | jump_to: 'Gehe zu', 5 | jump_to_confirm: 'bestätigen', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Vorherige Seite', 10 | next_page: 'Nächste Seite', 11 | prev_5: '5 Seiten zurück', 12 | next_5: '5 Seiten vor', 13 | prev_3: '3 Seiten zurück', 14 | next_3: '3 Seiten vor', 15 | }; 16 | -------------------------------------------------------------------------------- /components/back-top/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | 2 | ## API 3 | 4 | > 有默认样式,距离底部 `50px`,可覆盖。 5 | > 6 | > 自定义样式宽高不大于 40px \* 40px。 7 | 8 | | 参数 | 说明 | 类型 | 默认值 | 9 | | --- | --- | --- | --- | 10 | | target | 设置需要监听其滚动事件的元素,值为一个返回对应 DOM 元素的函数 | Function | () => window | 11 | | visibilityHeight | 滚动高度达到此参数值才出现 `BackTop` | number | 400 | 12 | 13 | ### 事件 14 | | 事件名称 | 说明 | 回调参数 | 15 | | --- | --- | --- | 16 | | click | 点击按钮的回调函数 | Function | 17 | -------------------------------------------------------------------------------- /components/tabs/demo/disabled.md: -------------------------------------------------------------------------------- 1 | 2 | #### 禁用 3 | 禁用某一项。 4 | 5 | 6 | 7 | #### Disabled 8 | Disabled a tab. 9 | 10 | 11 | ```html 12 | 19 | ``` -------------------------------------------------------------------------------- /components/vc-pagination/locale/mm_MM.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ စာမျက်နှာ', 4 | jump_to: 'သွားရန်', 5 | jump_to_confirm: 'သေချာပြီ', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'ယခင်စာမျက်နှာ', 10 | next_page: 'နောက်စာမျက်နှာ', 11 | prev_5: 'ယခင် ၅ခုမြောက်', 12 | next_5: 'နောက် ၅ခုမြောက်', 13 | prev_3: 'ယခင် ၃ခုမြောက်', 14 | next_3: 'နောက် ၃ခုမြောက်', 15 | }; 16 | -------------------------------------------------------------------------------- /components/card/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 典型卡片 3 | 包含标题、内容、操作区域。 4 | 5 | 6 | 7 | #### Basic card 8 | A basic card containing a title, content and an extra corner content. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /components/spin/demo/size.md: -------------------------------------------------------------------------------- 1 | 2 | #### 各种大小 3 | 小的用于文本加载,默认用于卡片容器级加载,大的用于**页面级**加载。 4 | 5 | 6 | 7 | #### Size 8 | A small `Spin` use in loading text, default `Spin` use in loading card-level block, and large `Spin` use in loading **page**. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/style/core/motion.less: -------------------------------------------------------------------------------- 1 | @import '../mixins/motion'; 2 | @import 'motion/fade'; 3 | @import 'motion/move'; 4 | @import 'motion/other'; 5 | @import 'motion/slide'; 6 | @import 'motion/swing'; 7 | @import 'motion/zoom'; 8 | 9 | // For common/openAnimation 10 | .ant-motion-collapse { 11 | overflow: hidden; 12 | &-active { 13 | transition: height 0.15s @ease-in-out, opacity 0.15s @ease-in-out !important; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /components/vc-pagination/demo/stupid.vue: -------------------------------------------------------------------------------- 1 | 22 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ar_EG.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ الصفحة', 4 | jump_to: 'الذهاب إلى', 5 | jump_to_confirm: 'تأكيد', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'الصفحة السابقة', 10 | next_page: 'الصفحة التالية', 11 | prev_5: 'خمس صفحات سابقة', 12 | next_5: 'خمس صفحات تالية', 13 | prev_3: 'ثلاث صفحات سابقة', 14 | next_3: 'ثلاث صفحات تالية', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/fi_FI.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ sivu', 4 | jump_to: 'Mene', 5 | jump_to_confirm: 'Potvrdite', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Edellinen sivu', 10 | next_page: 'Seuraava sivu', 11 | prev_5: 'Edelliset 5 sivua', 12 | next_5: 'Seuraavat 5 sivua', 13 | prev_3: 'Edelliset 3 sivua', 14 | next_3: 'Seuraavat 3 sivua', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/kn_IN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ ಪುಟ', 4 | jump_to: 'ಜಿಗಿತವನ್ನು', 5 | jump_to_confirm: 'ಖಚಿತಪಡಿಸಲು ಜಿಗಿತವನ್ನು', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'ಹಿಂದಿನ ಪುಟ', 10 | next_page: 'ಮುಂದಿನ ಪುಟ', 11 | prev_5: 'ಹಿಂದಿನ 5 ಪುಟಗಳು', 12 | next_5: 'ಮುಂದಿನ 5 ಪುಟಗಳು', 13 | prev_3: 'ಹಿಂದಿನ 3 ಪುಟಗಳು', 14 | next_3: 'ಮುಂದಿನ 3 ಪುಟಗಳು', 15 | }; 16 | -------------------------------------------------------------------------------- /components/checkbox/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本用法 3 | 简单的checkbox 4 | 5 | 6 | 7 | #### Basic 8 | Basic usage of checkbox 9 | 10 | 11 | ```html 12 | 15 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/time-picker/demo/disabled.md: -------------------------------------------------------------------------------- 1 | 2 | #### 禁用 3 | 禁用时间选择。 4 | 5 | 6 | 7 | #### disabled 8 | A disabled state of the `TimePicker`. 9 | 10 | 11 | ```html 12 | 15 | 23 | ``` 24 | -------------------------------------------------------------------------------- /components/tree/index.jsx: -------------------------------------------------------------------------------- 1 | import Tree from './Tree'; 2 | import DirectoryTree from './DirectoryTree'; 3 | 4 | Tree.TreeNode.name = 'ATreeNode'; 5 | Tree.DirectoryTree = DirectoryTree; 6 | /* istanbul ignore next */ 7 | Tree.install = function(Vue) { 8 | Vue.component(Tree.name, Tree); 9 | Vue.component(Tree.TreeNode.name, Tree.TreeNode); 10 | Vue.component(DirectoryTree.name, DirectoryTree); 11 | }; 12 | 13 | export default Tree; 14 | -------------------------------------------------------------------------------- /components/upload/demo/directory.md: -------------------------------------------------------------------------------- 1 | 2 | #### 文件夹上传 3 | 支持上传一个文件夹里的所有文件。 4 | 5 | 6 | 7 | #### Upload directory 8 | You can select and upload a whole directory. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ca_ES.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ pàgina', 4 | jump_to: 'Anar a', 5 | jump_to_confirm: 'Confirma', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Pàgina prèvia', 10 | next_page: 'Pàgina següent', 11 | prev_5: '5 pàgines prèvies', 12 | next_5: '5 pàgines següents', 13 | prev_3: '3 pàgines prèvies', 14 | next_3: '3 pàgines següents', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/fr_BE.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ page', 4 | jump_to: 'Aller à', 5 | jump_to_confirm: 'confirmer', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Page précédente', 10 | next_page: 'Page suivante', 11 | prev_5: '5 Pages précédentes', 12 | next_5: '5 Pages suivantes', 13 | prev_3: '3 Pages précédentes', 14 | next_3: '3 Pages suivantes', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/fr_FR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ page', 4 | jump_to: 'Aller à', 5 | jump_to_confirm: 'confirmer', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Page précédente', 10 | next_page: 'Page suivante', 11 | prev_5: '5 Pages précédentes', 12 | next_5: '5 Pages suivantes', 13 | prev_3: '3 Pages précédentes', 14 | next_3: '3 Pages suivantes', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/mn_MN.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ хуудас', 4 | jump_to: 'Шилжих', 5 | jump_to_confirm: 'сонгох', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Өмнөх хуудас', 10 | next_page: 'Дараагийн хуудас', 11 | prev_5: 'Дараагийн 5 хуудас', 12 | next_5: 'Дараагийн 5 хуудас', 13 | prev_3: 'Дараагийн 3 хуудас', 14 | next_3: 'Дараагийн 3 хуудас', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/pt_PT.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ página', 4 | jump_to: 'Saltar', 5 | jump_to_confirm: 'confirmar', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Página Anterior', 10 | next_page: 'Página Seguinte', 11 | prev_5: 'Recuar 5 Páginas', 12 | next_5: 'Avançar 5 Páginas', 13 | prev_3: 'Recuar 3 Páginas', 14 | next_3: 'Avançar 3 Páginas', 15 | }; 16 | -------------------------------------------------------------------------------- /components/anchor/index.jsx: -------------------------------------------------------------------------------- 1 | import Anchor from './Anchor'; 2 | import AnchorLink from './AnchorLink'; 3 | 4 | export { AnchorProps } from './Anchor'; 5 | export { AnchorLinkProps } from './AnchorLink'; 6 | 7 | Anchor.Link = AnchorLink; 8 | 9 | /* istanbul ignore next */ 10 | Anchor.install = function(Vue) { 11 | Vue.component(Anchor.name, Anchor); 12 | Vue.component(Anchor.Link.name, Anchor.Link); 13 | }; 14 | 15 | export default Anchor; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/es_ES.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ página', 4 | jump_to: 'Ir a', 5 | jump_to_confirm: 'confirmar', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Página anterior', 10 | next_page: 'Página siguiente', 11 | prev_5: '5 páginas previas', 12 | next_5: '5 páginas siguientes', 13 | prev_3: '3 páginas previas', 14 | next_3: '3 páginas siguientes', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/it_IT.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ pagina', 4 | jump_to: 'vai a', 5 | jump_to_confirm: 'Conferma', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Pagina precedente', 10 | next_page: 'Pagina successiva', 11 | prev_5: 'Precedente 5 pagine', 12 | next_5: 'Prossime 5 pagine', 13 | prev_3: 'Precedente 3 pagine', 14 | next_3: 'Prossime 3 pagine', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/nl_BE.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ pagina', 4 | jump_to: 'Ga naar', 5 | jump_to_confirm: 'bevestigen', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Vorige pagina', 10 | next_page: 'Volgende pagina', 11 | prev_5: "Vorige 5 pagina's", 12 | next_5: "Volgende 5 pagina's", 13 | prev_3: "Vorige 3 pagina's", 14 | next_3: "Volgende 3 pagina's", 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/nl_NL.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ pagina', 4 | jump_to: 'Ga naar', 5 | jump_to_confirm: 'bevestigen', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Vorige pagina', 10 | next_page: 'Volgende pagina', 11 | prev_5: "Vorige 5 pagina's", 12 | next_5: "Volgende 5 pagina's", 13 | prev_3: "Vorige 3 pagina's", 14 | next_3: "Volgende 3 pagina's", 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/pl_PL.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ stronę', 4 | jump_to: 'Idź do', 5 | jump_to_confirm: 'potwierdzać', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Poprzednia strona', 10 | next_page: 'Następna strona', 11 | prev_5: 'Poprzednie 5 stron', 12 | next_5: 'Następne 5 stron', 13 | prev_3: 'Poprzednie 3 strony', 14 | next_3: 'Następne 3 strony', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/sl_SI.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ strani', 4 | jump_to: 'Pojdi na', 5 | jump_to_confirm: 'potrdi', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Prejšnja stran', 10 | next_page: 'Naslednja stran', 11 | prev_5: 'Prejšnjih 5 strani', 12 | next_5: 'Naslednjih 5 strani', 13 | prev_3: 'Prejšnje 3 strani', 14 | next_3: 'Naslednje 3 strani', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-lazy-load/src/utils/getElementPosition.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Finds element's position relative to the whole document, 3 | * rather than to the viewport as it is the case with .getBoundingClientRect(). 4 | */ 5 | export default function getElementPosition(element) { 6 | const rect = element.getBoundingClientRect(); 7 | 8 | return { 9 | top: rect.top + window.pageYOffset, 10 | left: rect.left + window.pageXOffset, 11 | }; 12 | } 13 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/pt_BR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ páginas', 4 | jump_to: 'Vá até', 5 | jump_to_confirm: 'confirme', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Página anterior', 10 | next_page: 'Próxima página', 11 | prev_5: '5 páginas anteriores', 12 | next_5: '5 próximas páginas', 13 | prev_3: '3 páginas anteriores', 14 | next_3: '3 próximas páginas', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/ro_RO.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ pagină', 4 | jump_to: 'Mergi la', 5 | jump_to_confirm: 'confirm', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Pagina Anterioară', 10 | next_page: 'Pagina Următoare', 11 | prev_5: '5 Pagini Anterioare', 12 | next_5: '5 Pagini Următoare', 13 | prev_3: '3 Pagini Anterioare', 14 | next_3: '3 Pagini Următoare', 15 | }; 16 | -------------------------------------------------------------------------------- /components/slider/demo/show-tooltip.md: -------------------------------------------------------------------------------- 1 | 2 | #### 控制 ToolTip 的显示 3 | 当 `tooltipVisible` 为 `true` 时,将始终显示ToolTip;反之则始终不显示,即使在拖动、移入时也是如此。 4 | 5 | 6 | 7 | #### Control visible of ToolTip 8 | When `tooltipVisible` is `true`, ToolTip will show always, or ToolTip will not show anyway, even if dragging or hovering. 9 | 10 | 11 | ```html 12 | 15 | ``` 16 | -------------------------------------------------------------------------------- /components/vc-pagination/demo/styles.vue: -------------------------------------------------------------------------------- 1 | 22 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/bg_BG.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ страница', 4 | jump_to: 'Към', 5 | jump_to_confirm: 'потвърждавам', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Предишна страница', 10 | next_page: 'Следваща страница', 11 | prev_5: 'Предишни 5 страници', 12 | next_5: 'Следващи 5 страници', 13 | prev_3: 'Предишни 3 страници', 14 | next_3: 'Следващи 3 страници', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/cs_CZ.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ strana', 4 | jump_to: 'Přejít', 5 | jump_to_confirm: 'potvrdit', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Předchozí strana', 10 | next_page: 'Následující strana', 11 | prev_5: 'Předchozích 5 stran', 12 | next_5: 'Následujících 5 stran', 13 | prev_3: 'Předchozí 3 strany', 14 | next_3: 'Následující 3 strany', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/et_EE.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ leheküljel', 4 | jump_to: 'Hüppa', 5 | jump_to_confirm: 'Kinnitage', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Eelmine leht', 10 | next_page: 'Järgmine leht', 11 | prev_5: 'Eelmised 5 lehekülge', 12 | next_5: 'Järgmised 5 lehekülge', 13 | prev_3: 'Eelmised 3 lehekülge', 14 | next_3: 'Järgmised 3 lehekülge', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-select/index.js: -------------------------------------------------------------------------------- 1 | // based on vc-select 8.7.0 2 | import ProxySelect, { Select } from './Select'; 3 | import Option from './Option'; 4 | import { SelectPropTypes } from './PropTypes'; 5 | import OptGroup from './OptGroup'; 6 | Select.Option = Option; 7 | Select.OptGroup = OptGroup; 8 | ProxySelect.Option = Option; 9 | ProxySelect.OptGroup = OptGroup; 10 | export { Select, Option, OptGroup, SelectPropTypes }; 11 | export default ProxySelect; 12 | -------------------------------------------------------------------------------- /components/calendar/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 一个通用的日历面板,支持年/月切换。 4 | 5 | 6 | 7 | #### basic 8 | A basic calendar component with Year/Month switch. 9 | 10 | 11 | ```html 12 | 15 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/el_GR.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ σελίδα', 4 | jump_to: 'Μετάβαση', 5 | jump_to_confirm: 'επιβεβαιώνω', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Προηγούμενη Σελίδα', 10 | next_page: 'Επόμενη Σελίδα', 11 | prev_5: 'Προηγούμενες 5 Σελίδες', 12 | next_5: 'Επόμενες 5 σελίδες', 13 | prev_3: 'Προηγούμενες 3 Σελίδες', 14 | next_3: 'Επόμενες 3 Σελίδες', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/id_ID.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ halaman', 4 | jump_to: 'Menuju', 5 | jump_to_confirm: 'konfirmasi', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Halaman Sebelumnya', 10 | next_page: 'Halaman Berikutnya', 11 | prev_5: '5 Halaman Sebelumnya', 12 | next_5: '5 Halaman Berikutnya', 13 | prev_3: '3 Halaman Sebelumnya', 14 | next_3: '3 Halaman Berikutnya', 15 | }; 16 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/uk_UA.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ сторінці', 4 | jump_to: 'Перейти', 5 | jump_to_confirm: 'підтвердити', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Попередня сторінка', 10 | next_page: 'Наступна сторінка', 11 | prev_5: 'Попередні 5 сторінок', 12 | next_5: 'Наступні 5 сторінок', 13 | prev_3: 'Попередні 3 сторінки', 14 | next_3: 'Наступні 3 сторінки', 15 | }; 16 | -------------------------------------------------------------------------------- /components/layout/style/light.less: -------------------------------------------------------------------------------- 1 | .@{layout-prefix-cls} { 2 | &-sider { 3 | &-light { 4 | background: @layout-sider-background-light; 5 | } 6 | &-light &-trigger { 7 | color: @layout-trigger-color-light; 8 | background: @layout-trigger-background-light; 9 | } 10 | &-light &-zero-width-trigger { 11 | color: @layout-trigger-color-light; 12 | background: @layout-trigger-background-light; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /components/steps/demo/small-size.md: -------------------------------------------------------------------------------- 1 | 2 | #### 迷你版 3 | 迷你版的步骤条,通过设置 `` 启用。 4 | 5 | 6 | 7 | #### Mini version 8 | By setting like this: ``, you can get a mini version. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/vc-calendar/src/util/toTime.js: -------------------------------------------------------------------------------- 1 | export function goStartMonth(time) { 2 | return time.clone().startOf('month'); 3 | } 4 | 5 | export function goEndMonth(time) { 6 | return time.clone().endOf('month'); 7 | } 8 | 9 | export function goTime(time, direction, unit) { 10 | return time.clone().add(direction, unit); 11 | } 12 | 13 | export function includesTime(timeList = [], time, unit) { 14 | return timeList.some(t => t.isSame(time, unit)); 15 | } 16 | -------------------------------------------------------------------------------- /antd-tools/runCmd.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const getRunCmdEnv = require('./utils/getRunCmdEnv'); 4 | 5 | function runCmd(cmd, _args, fn) { 6 | const args = _args || []; 7 | const runner = require('child_process').spawn(cmd, args, { 8 | // keep color 9 | stdio: 'inherit', 10 | env: getRunCmdEnv(), 11 | }); 12 | 13 | runner.on('close', code => { 14 | if (fn) { 15 | fn(code); 16 | } 17 | }); 18 | } 19 | 20 | module.exports = runCmd; 21 | -------------------------------------------------------------------------------- /components/vc-m-feedback/src/PropTypes.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../../_util/vue-types'; 2 | 3 | export const ITouchProps = { 4 | disabled: PropTypes.bool, 5 | activeClassName: PropTypes.string, 6 | activeStyle: PropTypes.any, 7 | // onTouchStart: PropTypes.func, 8 | // onTouchEnd: PropTypes.func, 9 | // onTouchCancel: PropTypes.func, 10 | // onMouseDown: PropTypes.func, 11 | // onMouseUp: PropTypes.func, 12 | // onMouseLeave: PropTypes.func, 13 | }; 14 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/sk_SK.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ strana', 4 | jump_to: 'Choď na', 5 | jump_to_confirm: 'potvrdit', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Predchádzajúca strana', 10 | next_page: 'Nasledujúca strana', 11 | prev_5: 'Predchádzajúcich 5 strán', 12 | next_5: 'Nasledujúcich 5 strán', 13 | prev_3: 'Predchádzajúce 3 strany', 14 | next_3: 'Nasledujúce 3 strany', 15 | }; 16 | -------------------------------------------------------------------------------- /types/breadcrumb/breadcrumb-item.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class BreadcrumbItem extends AntdComponent { 8 | /** 9 | * add navigation 10 | * @default '' 11 | * @type string 12 | */ 13 | href?: String; 14 | } 15 | -------------------------------------------------------------------------------- /types/radio/radio-button.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { Radio } from './radio'; 6 | 7 | export declare class RadioButton extends Radio { 8 | /** 9 | * Type of radio button 10 | * @type string 11 | */ 12 | type: 'primary' | 'danger' | 'dashed' | 'ghost' | 'default'; 13 | } 14 | -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "test": { 4 | "presets": [ 5 | ["env", { "targets": { "node": "current" } }] 6 | ], 7 | "plugins": [ 8 | "transform-vue-jsx", 9 | "transform-object-assign", 10 | "transform-object-rest-spread", 11 | "transform-class-properties", 12 | "transform-runtime" 13 | ] 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /components/_util/isFlexSupported.js: -------------------------------------------------------------------------------- 1 | export default function isFlexSupported() { 2 | if (typeof window !== 'undefined' && window.document && window.document.documentElement) { 3 | const { documentElement } = window.document; 4 | return ( 5 | 'flex' in documentElement.style || 6 | 'webkitFlex' in documentElement.style || 7 | 'Flex' in documentElement.style || 8 | 'msFlex' in documentElement.style 9 | ); 10 | } 11 | return false; 12 | } 13 | -------------------------------------------------------------------------------- /components/radio/index.js: -------------------------------------------------------------------------------- 1 | import Radio from './Radio'; 2 | import Group from './Group'; 3 | import Button from './RadioButton'; 4 | 5 | Radio.Group = Group; 6 | Radio.Button = Button; 7 | 8 | /* istanbul ignore next */ 9 | Radio.install = function(Vue) { 10 | Vue.component(Radio.name, Radio); 11 | Vue.component(Radio.Group.name, Radio.Group); 12 | Vue.component(Radio.Button.name, Radio.Button); 13 | }; 14 | 15 | export { Button, Group }; 16 | export default Radio; 17 | -------------------------------------------------------------------------------- /types/tag/checkable-tag.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class CheckableTag extends AntdComponent { 8 | /** 9 | * Checked status of Tag 10 | * @default false 11 | * @type boolean 12 | */ 13 | checked: boolean; 14 | } 15 | -------------------------------------------------------------------------------- /components/rate/demo/text.md: -------------------------------------------------------------------------------- 1 | 2 | #### 文案展现 3 | 给评分组件加上文案展示。 4 | 5 | 6 | 7 | #### Show copywriting 8 | Add copywriting in rate components. 9 | 10 | 11 | ```html 12 | 18 | 27 | ``` 28 | -------------------------------------------------------------------------------- /components/timeline/index.jsx: -------------------------------------------------------------------------------- 1 | import Timeline from './Timeline'; 2 | 3 | export { TimelineProps } from './Timeline'; 4 | export { TimeLineItemProps } from './TimelineItem'; 5 | import TimelineItem from './TimelineItem'; 6 | 7 | Timeline.Item = TimelineItem; 8 | 9 | /* istanbul ignore next */ 10 | Timeline.install = function(Vue) { 11 | Vue.component(Timeline.name, Timeline); 12 | Vue.component(TimelineItem.name, TimelineItem); 13 | }; 14 | 15 | export default Timeline; 16 | -------------------------------------------------------------------------------- /site/theme/static/docsearch.less: -------------------------------------------------------------------------------- 1 | .algolia-autocomplete { 2 | .ds-dropdown-menu { 3 | border: none; 4 | box-shadow: @box-shadow-base; 5 | 6 | [class^='ds-dataset-'] { 7 | border: none; 8 | } 9 | 10 | &:before { 11 | display: none; 12 | } 13 | } 14 | 15 | .algolia-docsearch-suggestion--title { 16 | color: @site-text-color; 17 | } 18 | 19 | .algolia-docsearch-suggestion--highlight { 20 | color: @primary-color; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /types/tootip/tooltip.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import Vue from 'vue'; 6 | import { TooltipCommon } from './common'; 7 | 8 | export declare class Tooltip extends TooltipCommon { 9 | /** 10 | * The text shown in the tooltip 11 | * @type any (string | slot) 12 | */ 13 | title: any; 14 | } 15 | -------------------------------------------------------------------------------- /components/card/demo/border-less.md: -------------------------------------------------------------------------------- 1 | 2 | #### 无边框 3 | 在灰色背景上使用无边框的卡片 4 | 5 | 6 | 7 | #### No border 8 | A borderless card on a gray background. 9 | 10 | 11 | ```html 12 | 21 | 22 | ``` 23 | -------------------------------------------------------------------------------- /components/pagination/demo/jump.md: -------------------------------------------------------------------------------- 1 | 2 | #### 跳转 3 | 快速跳转到某一页。 4 | 5 | 6 | 7 | #### Jumper 8 | Jump to a page directly. 9 | 10 | 11 | ```html 12 | 15 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/progress/demo/line.md: -------------------------------------------------------------------------------- 1 | 2 | #### 进度条 3 | 标准的进度条。 4 | 5 | 6 | 7 | #### Progress bar 8 | A standard progress bar. 9 | 10 | 11 | ```html 12 | 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /components/vc-menu/index.js: -------------------------------------------------------------------------------- 1 | // based on rc-menu 7.4.21 2 | import Menu from './Menu'; 3 | import SubMenu from './SubMenu'; 4 | import MenuItem, { menuItemProps } from './MenuItem'; 5 | import MenuItemGroup from './MenuItemGroup'; 6 | import Divider from './Divider'; 7 | 8 | export { 9 | SubMenu, 10 | MenuItem as Item, 11 | menuItemProps as itemProps, 12 | MenuItem, 13 | MenuItemGroup, 14 | MenuItemGroup as ItemGroup, 15 | Divider, 16 | }; 17 | 18 | export default Menu; 19 | -------------------------------------------------------------------------------- /site/components/api.vue: -------------------------------------------------------------------------------- 1 | 10 | 24 | -------------------------------------------------------------------------------- /site/theme/static/new-version-info-modal.less: -------------------------------------------------------------------------------- 1 | .new-version-info-modal { 2 | img { 3 | width: 100px; 4 | position: absolute; 5 | left: 34px; 6 | top: 36px; 7 | } 8 | p { 9 | margin-top: 1em; 10 | } 11 | .anticon { 12 | display: none; 13 | } 14 | .ant-confirm-body { 15 | .ant-confirm-title { 16 | font-size: 18px; 17 | } 18 | margin-left: 120px; 19 | .ant-confirm-content { 20 | margin-left: 0; 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 8 | 9 | 17 | -------------------------------------------------------------------------------- /components/affix/demo/on-change.md: -------------------------------------------------------------------------------- 1 | 2 | #### 固定状态改变的回调 3 | 可以获得是否固定的状态。 4 | 5 | 6 | 7 | #### Callback 8 | Callback with affixed state. 9 | 10 | 11 | ```html 12 | 17 | 26 | ``` 27 | -------------------------------------------------------------------------------- /components/avatar/demo/badge.md: -------------------------------------------------------------------------------- 1 | 2 | #### 带徽标的头像 3 | 通常用于消息提示。 4 | 5 | 6 | 7 | #### With Badge 8 | Usually used for messages remind. 9 | 10 | 11 | ```html 12 | 22 | ``` 23 | -------------------------------------------------------------------------------- /components/popover/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法,浮层的大小由内容区域决定。 4 | 5 | 6 | 7 | #### Basic 8 | The most basic example. The size of the floating layer depends on the contents region. 9 | 10 | 11 | ```html 12 | 21 | ``` 22 | -------------------------------------------------------------------------------- /components/config-provider/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | ## 使用 2 | 3 | ConfigProvider 使用 Vue 的 [provide / inject](https://vuejs.org/v2/api/#provide-inject) 特性,只需在应用外围包裹一次即可全局生效。 4 | 5 | ````html 6 | 7 | 8 | 9 | ```` 10 | 11 | ## API 12 | 13 | | 参数 | 说明 | 类型 | 默认值 | 14 | | --- | --- | --- | --- | 15 | | getPopupContainer | 弹出框(Select, Tooltip, Menu 等等)渲染父节点,默认渲染到 body 上。 | Function(triggerNode) | () => document.body | 16 | -------------------------------------------------------------------------------- /components/dropdown/index.js: -------------------------------------------------------------------------------- 1 | import Dropdown from './dropdown'; 2 | import DropdownButton from './dropdown-button'; 3 | 4 | export { DropdownProps } from './dropdown'; 5 | export { DropdownButtonProps } from './dropdown-button'; 6 | 7 | Dropdown.Button = DropdownButton; 8 | 9 | /* istanbul ignore next */ 10 | Dropdown.install = function(Vue) { 11 | Vue.component(Dropdown.name, Dropdown); 12 | Vue.component(DropdownButton.name, DropdownButton); 13 | }; 14 | 15 | export default Dropdown; 16 | -------------------------------------------------------------------------------- /components/grid/demo/sort.md: -------------------------------------------------------------------------------- 1 | 2 | #### 栅格排序 3 | 列排序。 4 | 通过使用 `push` 和 `pull` 类就可以很容易的改变列(column)的顺序。 5 | 6 | 7 | 8 | #### Grid sort 9 | By using `push` and` pull` class you can easily change column order. 10 | 11 | 12 | ```html 13 | 21 | ``` 22 | 23 | 24 | -------------------------------------------------------------------------------- /components/layout/index.js: -------------------------------------------------------------------------------- 1 | import Layout from './layout'; 2 | import Sider from './Sider'; 3 | 4 | Layout.Sider = Sider; 5 | 6 | /* istanbul ignore next */ 7 | Layout.install = function(Vue) { 8 | Vue.component(Layout.name, Layout); 9 | Vue.component(Layout.Header.name, Layout.Header); 10 | Vue.component(Layout.Footer.name, Layout.Footer); 11 | Vue.component(Layout.Sider.name, Layout.Sider); 12 | Vue.component(Layout.Content.name, Layout.Content); 13 | }; 14 | export default Layout; 15 | -------------------------------------------------------------------------------- /components/message/demo/info.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 普通提示 4 | 信息提醒反馈。 5 | 6 | 7 | 8 | #### Normal prompt 9 | Normal messages as feedbacks. 10 | 11 | 12 | ```html 13 | 16 | 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /types/input/input-search.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class InputSearch extends AntdComponent { 8 | /** 9 | * to show an enter button after input 10 | * @default false 11 | * @type any (boolean | slot) 12 | */ 13 | enterButton: any; 14 | } 15 | -------------------------------------------------------------------------------- /components/steps/demo/progress-dot.md: -------------------------------------------------------------------------------- 1 | 2 | #### 点状步骤条 3 | 包含步骤点的进度条。 4 | 5 | 6 | 7 | #### Dot Style 8 | Steps with progress dot style. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/avatar/index.zh-CN.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | | 参数 | 说明 | 类型 | 默认值 | 4 | | --- | --- | --- | --- | 5 | | icon | 设置头像的图标类型,参考 `Icon` 组件 | string | - | 6 | | shape | 指定头像的形状 | Enum{ 'circle', 'square' } | `circle` | 7 | | size | 设置头像的大小 | number \| Enum{ 'large', 'small', 'default' } | `default` | 8 | | src | 图片类头像的资源地址 | string | - | 9 | | srcSet | 设置图片类头像响应式资源地址 | string | - | 10 | | alt | 图像无法显示时的替代文本 | string | - | 11 | | loadError | 图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为 | () => boolean | - | 12 | 13 | -------------------------------------------------------------------------------- /components/popover/index.en-US.md: -------------------------------------------------------------------------------- 1 | 2 | ## API 3 | 4 | | Param | Description | Type | Default value | 5 | | ----- | ----------- | ---- | ------------- | 6 | | content | Content of the card | string\|slot\|vNode | - | 7 | | title | Title of the card | string\|slot\|VNode | - | 8 | 9 | Consult [Tooltip's documentation](/components/tooltip/#API) to find more APIs. 10 | 11 | ## Note 12 | 13 | Please ensure that the child node of `Popover` accepts `onMouseenter`, `onMouseleave`, `onFocus`, `onClick` events. 14 | -------------------------------------------------------------------------------- /components/spin/demo/inside.md: -------------------------------------------------------------------------------- 1 | 2 | #### 容器 3 | 放入一个容器中。 4 | 5 | 6 | 7 | #### Inside a container 8 | Spin in a container. 9 | 10 | 11 | ```html 12 | 22 | 27 | ``` 28 | -------------------------------------------------------------------------------- /antd-tools/utils/getRunCmdEnv.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const path = require('path'); 4 | 5 | module.exports = function getRunCmdEnv() { 6 | const env = {}; 7 | Object.keys(process.env).forEach(key => { 8 | env[key] = process.env[key]; 9 | }); 10 | // make sure `antd-tools/node_modules/.bin` in the PATH env 11 | const nodeModulesBinDir = path.join(__dirname, '../../node_modules/.bin'); 12 | env.PATH = env.PATH ? `${nodeModulesBinDir}:${env.PATH}` : nodeModulesBinDir; 13 | return env; 14 | }; 15 | -------------------------------------------------------------------------------- /components/button/demo/block.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### block 按钮 4 | `block`属性将使按钮适合其父宽度。 5 | 6 | 7 | 8 | #### block Button 9 | `block` property will make the button fit to its parent width. 10 | 11 | 12 | ```html 13 | 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /types/button/button-group.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class ButtonGroup extends AntdComponent { 8 | /** 9 | * can be set to small large or omitted 10 | * @default 'default' 11 | * @type string 12 | */ 13 | size: 'small' | 'large' | 'default'; 14 | } 15 | -------------------------------------------------------------------------------- /types/locale-provider.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from './component'; 6 | 7 | export declare class LocaleProvider extends AntdComponent { 8 | /** 9 | * language package setting, you can find the packages in this path: antd/lib/locale-provider/ 10 | * @type object 11 | */ 12 | locale: object; 13 | } 14 | -------------------------------------------------------------------------------- /antd-tools/utils/get-npm-args.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | // NOTE: the following code was partially adopted from https://github.com/iarna/in-publish 4 | module.exports = function getNpmArgs() { 5 | let npmArgv = null; 6 | 7 | try { 8 | npmArgv = JSON.parse(process.env.npm_config_argv); 9 | } catch (err) { 10 | return null; 11 | } 12 | 13 | if (typeof npmArgv !== 'object' || !npmArgv.cooked || !Array.isArray(npmArgv.cooked)) { 14 | return null; 15 | } 16 | 17 | return npmArgv.cooked; 18 | }; 19 | -------------------------------------------------------------------------------- /components/progress/demo/linecap.md: -------------------------------------------------------------------------------- 1 | 2 | #### 圆角/方角边缘 3 | `strokeLinecap="square|round"` 可以调整进度条边缘的形状。 4 | 5 | 6 | 7 | #### Square linecaps 8 | `strokeLinecap="square|round"` 可以调整进度条边缘的形状。 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/----please-use-new-issue-ant-design-vue---.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "⚠️ Please use issue-helper ⚠️" 3 | about: The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed 4 | immediately. 5 | labels: 6 | 7 | --- 8 | 9 | The issue which is not created via https://vuecomponent.github.io/issue-helper/ will be closed immediately. 10 | 11 | --- 12 | 13 | 注意:不是用 https://vuecomponent.github.io/issue-helper/ 或 http://ant-design-vue.gitee.io/issue-helper/ 创建的 issue 会被立即关闭。 14 | -------------------------------------------------------------------------------- /components/steps/demo/vertical.md: -------------------------------------------------------------------------------- 1 | 2 | #### 竖直方向的步骤条 3 | 简单的竖直方向的步骤条。 4 | 5 | 6 | 7 | #### Vertical 8 | A simple step bar in the vertical direction. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/badge/demo/no-wrapper.md: -------------------------------------------------------------------------------- 1 | 2 | #### 独立使用 3 | 不包裹任何元素即是独立使用,可自定样式展现。 4 | 在右上角的 badge 则限定为红色。 5 | 6 | 7 | 8 | #### Standalone 9 | Used in standalone when children is empty. 10 | 11 | 12 | ```html 13 | 20 | ``` 21 | -------------------------------------------------------------------------------- /components/breadcrumb/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 最简单的用法 4 | 5 | 6 | 7 | #### Basic usage 8 | The simplest use 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /types/select/option-group.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class OptionGroup extends AntdComponent { 8 | /** 9 | * Key 10 | * @type string 11 | */ 12 | key: string; 13 | 14 | /** 15 | * Group label 16 | * @type any (string | slot) 17 | */ 18 | label: any; 19 | } 20 | -------------------------------------------------------------------------------- /components/alert/demo/style.md: -------------------------------------------------------------------------------- 1 | 2 | #### 四种样式 3 | 共有四种样式 `success`、`info`、`warning`、`error`。 4 | 5 | 6 | 7 | #### More types 8 | There are 4 types of Alert: `success`, `info`, `warning`, `error`. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /components/button/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 按钮类型 4 | 按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。 5 | 6 | 7 | 8 | #### Type 9 | There are `primary` button, `default` button, `dashed` button and `danger` button in antd. 10 | 11 | 12 | ```html 13 | 21 | ``` 22 | 23 | -------------------------------------------------------------------------------- /components/progress/demo/line-mini.md: -------------------------------------------------------------------------------- 1 | 2 | #### 小型进度条 3 | 适合放在较狭窄的区域内。 4 | 5 | 6 | 7 | #### Mini size progress bar 8 | Appropriate for a narrow area. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | 22 | 23 | -------------------------------------------------------------------------------- /components/switch/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本用法 3 | 最简单的用法。 4 | 5 | 6 | 7 | #### basic Usage 8 | The most basic usage. 9 | 10 | 11 | ```html 12 | 17 | 30 | ``` 31 | -------------------------------------------------------------------------------- /components/_util/getScroll.js: -------------------------------------------------------------------------------- 1 | export default function getScroll(target, top) { 2 | if (typeof window === 'undefined') { 3 | return 0; 4 | } 5 | 6 | const prop = top ? 'pageYOffset' : 'pageXOffset'; 7 | const method = top ? 'scrollTop' : 'scrollLeft'; 8 | const isWindow = target === window; 9 | 10 | let ret = isWindow ? target[prop] : target[method]; 11 | // ie6,7,8 standard mode 12 | if (isWindow && typeof ret !== 'number') { 13 | ret = window.document.documentElement[method]; 14 | } 15 | 16 | return ret; 17 | } 18 | -------------------------------------------------------------------------------- /components/card/Grid.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | export default { 4 | name: 'ACardGrid', 5 | __ANT_CARD_GRID: true, 6 | props: { 7 | prefixCls: PropTypes.string.def('ant-card'), 8 | }, 9 | render() { 10 | const { prefixCls = 'ant-card' } = this.$props; 11 | const classString = { 12 | [`${prefixCls}-grid`]: true, 13 | }; 14 | return ( 15 |
    16 | {this.$slots.default} 17 |
    18 | ); 19 | }, 20 | }; 21 | -------------------------------------------------------------------------------- /components/pagination/demo/controlled.md: -------------------------------------------------------------------------------- 1 | 2 | #### 受控 3 | 受控制的页码。 4 | 5 | 6 | 7 | #### Controlled 8 | Controlled page number. 9 | 10 | 11 | ```html 12 | 15 | 29 | ``` 30 | 31 | -------------------------------------------------------------------------------- /components/spin/demo/tip.md: -------------------------------------------------------------------------------- 1 | 2 | #### 自定义描述文案 3 | 自定义描述文案。 4 | 5 | 6 | 7 | #### Customized description 8 | Customized description content. 9 | 10 | 11 | ```html 12 | 19 | 28 | ``` 29 | -------------------------------------------------------------------------------- /components/style/mixins/compatibility.less: -------------------------------------------------------------------------------- 1 | // Compatibility for browsers. 2 | 3 | // Placeholder text 4 | .placeholder(@color: @input-placeholder-color) { 5 | // Firefox 6 | &::-moz-placeholder { 7 | color: @color; 8 | opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 9 | } 10 | // Internet Explorer 10+ 11 | &:-ms-input-placeholder { 12 | color: @color; 13 | } 14 | // Safari and Chrome 15 | &::-webkit-input-placeholder { 16 | color: @color; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /components/tabs/demo/extra.md: -------------------------------------------------------------------------------- 1 | 2 | #### 附加内容 3 | 可以在页签右边添加附加操作。 4 | 5 | 6 | 7 | #### Extra content 8 | You can add extra actions to the right of Tabs. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | -------------------------------------------------------------------------------- /scripts/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | require('colorful').colorful(); 6 | const gulp = require('gulp'); 7 | const program = require('commander'); 8 | 9 | program.on('--help', () => { 10 | console.log(' Usage:'.to.bold.blue.color); 11 | console.log(); 12 | }); 13 | 14 | program.parse(process.argv); 15 | 16 | const task = program.args[0]; 17 | 18 | if (!task) { 19 | program.help(); 20 | } else { 21 | console.log('scripts run', task); 22 | 23 | require('./gulpfile'); 24 | 25 | gulp.start(task); 26 | } 27 | -------------------------------------------------------------------------------- /types/tree/dictionary-tree.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | import { Tree } from './tree'; 7 | 8 | export declare class DictionaryTree extends Tree { 9 | /** 10 | * Directory open logic, optional false 'click' 'doubleclick' 11 | * @default 'click' 12 | * @type string 13 | */ 14 | expandAction: string; 15 | } 16 | -------------------------------------------------------------------------------- /types/anchor/anchor-link.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { AntdComponent } from '../component'; 6 | 7 | export declare class AnchorLink extends AntdComponent { 8 | /** 9 | * target of hyperlink 10 | * @type string 11 | */ 12 | href: string; 13 | 14 | /** 15 | * content of hyperlink 16 | * @type any (string | slot) 17 | */ 18 | title: any; 19 | } 20 | -------------------------------------------------------------------------------- /antd-tools/cli/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | require('colorful').colorful(); 6 | const gulp = require('gulp'); 7 | const program = require('commander'); 8 | 9 | program.on('--help', () => { 10 | console.log(' Usage:'.to.bold.blue.color); 11 | console.log(); 12 | }); 13 | 14 | program.parse(process.argv); 15 | 16 | const task = program.args[0]; 17 | 18 | if (!task) { 19 | program.help(); 20 | } else { 21 | console.log('antd-tools run', task); 22 | 23 | require('../gulpfile'); 24 | 25 | gulp.start(task); 26 | } 27 | -------------------------------------------------------------------------------- /components/time-picker/demo/hide-column.md: -------------------------------------------------------------------------------- 1 | 2 | #### 选择时分 3 | TimePicker 浮层中的列会随着 `format` 变化,当略去 `format` 中的某部分时,浮层中对应的列也会消失。 4 | 5 | 6 | 7 | #### Hour and minute 8 | While part of `format` is omitted, the corresponding column in panel will disappear, too. 9 | 10 | 11 | ```html 12 | 15 | 23 | ``` 24 | -------------------------------------------------------------------------------- /components/date-picker/locale/de_DE.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/de_DE'; 2 | import TimePickerLocale from '../../time-picker/locale/de_DE'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Datum auswählen', 8 | rangePlaceholder: ['Startdatum', 'Enddatum'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/timeline/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本用法 3 | 基本的时间轴。 4 | 5 | 6 | 7 | #### Basic 8 | Basic timeline. 9 | 10 | 11 | ```html 12 | 20 | ``` 21 | 22 | 23 | -------------------------------------------------------------------------------- /components/date-picker/locale/ja_JP.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/ja_JP'; 2 | import TimePickerLocale from '../../time-picker/locale/ja_JP'; 3 | 4 | const locale = { 5 | lang: { 6 | placeholder: '日付を選択', 7 | rangePlaceholder: ['開始日付', '終了日付'], 8 | ...CalendarLocale, 9 | }, 10 | timePickerLocale: { 11 | ...TimePickerLocale, 12 | }, 13 | }; 14 | 15 | // All settings at: 16 | // https://github.com/ant-design/ant-design/blob/master/components/date-picker/lo 17 | // cale/example.json 18 | 19 | export default locale; 20 | -------------------------------------------------------------------------------- /components/date-picker/locale/nl_BE.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/nl_BE'; 2 | import TimePickerLocale from '../../time-picker/locale/nl_BE'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Selecteer datum', 8 | rangePlaceholder: ['Begin datum', 'Eind datum'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/date-picker/locale/nl_NL.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/nl_NL'; 2 | import TimePickerLocale from '../../time-picker/locale/nl_NL'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Selecteer datum', 8 | rangePlaceholder: ['Begin datum', 'Eind datum'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/date-picker/style/index.less: -------------------------------------------------------------------------------- 1 | @import '../../style/themes/default'; 2 | @import '../../style/mixins/index'; 3 | @import '../../input/style/mixin'; 4 | @import '../../button/style/mixin'; 5 | 6 | @calendar-prefix-cls: ~'@{ant-prefix}-calendar'; 7 | @calendar-timepicker-prefix-cls: ~'@{ant-prefix}-calendar-time-picker'; 8 | 9 | @import 'Picker'; 10 | @import 'Calendar'; 11 | @import 'RangePicker'; 12 | @import 'TimePicker'; 13 | @import 'MonthPanel'; 14 | @import 'YearPanel'; 15 | @import 'DecadePanel'; 16 | @import 'MonthPicker'; 17 | @import 'WeekPicker'; 18 | -------------------------------------------------------------------------------- /components/steps/demo/error.md: -------------------------------------------------------------------------------- 1 | 2 | #### 步骤运行错误 3 | 使用 Steps 的 `status` 属性来指定当前步骤的状态。 4 | 5 | 6 | 7 | #### Error status 8 | By using `status` of `Steps`, you can specify the state for current step. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/switch/demo/text.md: -------------------------------------------------------------------------------- 1 | 2 | #### 文字和图标 3 | 带有文字和图标。 4 | 5 | 6 | 7 | #### Text & icon 8 | With text and icon. 9 | 10 | 11 | ```html 12 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/vc-steps/assets/custom-icon.less: -------------------------------------------------------------------------------- 1 | @import 'variables'; 2 | 3 | .@{stepsPrefixClass}-item-custom { 4 | .@{stepsPrefixClass}-item-icon { 5 | background: none; 6 | border: 0; 7 | width: auto; 8 | height: auto; 9 | > .@{stepsPrefixClass}-icon { 10 | font-size: 20px; 11 | top: 1px; 12 | width: 20px; 13 | height: 20px; 14 | } 15 | } 16 | &.@{stepsPrefixClass}-item-process { 17 | .@{stepsPrefixClass}-item-icon > .@{stepsPrefixClass}-icon { 18 | color: @process-icon-color; 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /types/popover.d.ts: -------------------------------------------------------------------------------- 1 | // Project: https://github.com/vueComponent/ant-design-vue 2 | // Definitions by: akki-jat 3 | // Definitions: https://github.com/vueComponent/ant-design-vue/types 4 | 5 | import { TooltipCommon } from './tootip/common'; 6 | 7 | export declare class Popover extends TooltipCommon { 8 | /** 9 | * Content of the card 10 | * @type any (string | slot | VNode) 11 | */ 12 | content: any; 13 | 14 | /** 15 | * Title of the card 16 | * @type any (string | slot | VNode) 17 | */ 18 | title: any; 19 | } 20 | -------------------------------------------------------------------------------- /components/date-picker/locale/fr_BE.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/fr_BE'; 2 | import TimePickerLocale from '../../time-picker/locale/fr_BE'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Sélectionner une date', 8 | rangePlaceholder: ['Date de début', 'Date de fin'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/date-picker/locale/fr_FR.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/fr_FR'; 2 | import TimePickerLocale from '../../time-picker/locale/fr_FR'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Sélectionner une date', 8 | rangePlaceholder: ['Date de début', 'Date de fin'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/date-picker/locale/it_IT.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/it_IT'; 2 | import TimePickerLocale from '../../time-picker/locale/it_IT'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Selezionare la data', 8 | rangePlaceholder: ["Data d'inizio", 'Data di fine'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/steps/demo/vertical-small.md: -------------------------------------------------------------------------------- 1 | 2 | #### 竖直方向的小型步骤条 3 | 简单的竖直方向的小型步骤条。 4 | 5 | 6 | 7 | #### Vertical mini version 8 | A simple mini version step bar in the vertical direction. 9 | 10 | 11 | ```html 12 | 19 | ``` 20 | -------------------------------------------------------------------------------- /components/vc-pagination/demo/default.vue: -------------------------------------------------------------------------------- 1 | 28 | -------------------------------------------------------------------------------- /components/date-picker/locale/el_GR.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/el_GR'; 2 | import TimePickerLocale from '../../time-picker/locale/el_GR'; 3 | 4 | // Merge into a locale object 5 | const locale = { 6 | lang: { 7 | placeholder: 'Επιλέξτε ημερομηνία', 8 | rangePlaceholder: ['Αρχική ημερομηνία', 'Τελική ημερομηνία'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: https://github.com/ant-design/ant-design/issues/424 17 | 18 | export default locale; 19 | -------------------------------------------------------------------------------- /components/date-picker/locale/sv_SE.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/sv_SE'; 2 | import TimePickerLocale from '../../time-picker/locale/sv_SE'; 3 | 4 | const locale = { 5 | lang: { 6 | placeholder: 'Välj datum', 7 | rangePlaceholder: ['Startdatum', 'Slutdatum'], 8 | ...CalendarLocale, 9 | }, 10 | timePickerLocale: { 11 | ...TimePickerLocale, 12 | }, 13 | }; 14 | 15 | // All settings at: 16 | // https://github.com/ant-design/ant-design/blob/master/components/date-picker/lo 17 | // cale/example.json 18 | 19 | export default locale; 20 | -------------------------------------------------------------------------------- /components/vc-pagination/locale/hu_HU.js: -------------------------------------------------------------------------------- 1 | export default { 2 | // Options.jsx 3 | items_per_page: '/ oldal', // '/ page', 4 | jump_to: 'Ugrás', // 'Goto', 5 | jump_to_confirm: 'megerősít', // 'confirm', 6 | page: '', 7 | 8 | // Pagination.jsx 9 | prev_page: 'Előző oldal', // 'Previous Page', 10 | next_page: 'Következő oldal', // 'Next Page', 11 | prev_5: 'Előző 5 oldal', // 'Previous 5 Pages', 12 | next_5: 'Következő 5 oldal', // 'Next 5 Pages', 13 | prev_3: 'Előző 3 oldal', // 'Previous 3 Pages', 14 | next_3: 'Következő 3 oldal', // 'Next 3 Pages', 15 | }; 16 | -------------------------------------------------------------------------------- /components/breadcrumb/demo/withIcon.md: -------------------------------------------------------------------------------- 1 | 2 | #### 带有图标的 3 | 图标放在文字前面 4 | 5 | 6 | 7 | #### With an Icon 8 | The icon should be placed in front of the text 9 | 10 | 11 | ```html 12 | 26 | ``` 27 | -------------------------------------------------------------------------------- /components/message/demo/duration.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | #### 修改延时 4 | 自定义时长 `10s`,默认时长为 `3s`。 5 | 6 | 7 | 8 | #### Customize duration 9 | Customize message display duration from default `3s` to `10s`. 10 | 11 | 12 | ```html 13 | 16 | 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /components/progress/demo/circle.md: -------------------------------------------------------------------------------- 1 | 2 | #### 进度圈 3 | 圈形的进度。 4 | 5 | 6 | 7 | #### Circular progress bar 8 | A circular progress bar. 9 | 10 | 11 | ```html 12 | 19 | 26 | ``` 27 | 28 | -------------------------------------------------------------------------------- /components/rate/demo/character.md: -------------------------------------------------------------------------------- 1 | 2 | #### 其他字符 3 | 可以将星星替换为其他字符,比如字母,数字,字体图标甚至中文。 4 | 5 | 6 | 7 | #### Other Character 8 | Replace the default star to other character like alphabet, digit, iconfont or even Chinese word. 9 | 10 | 11 | ```html 12 | 24 | ``` 25 | -------------------------------------------------------------------------------- /components/tabs/demo/icon.md: -------------------------------------------------------------------------------- 1 | 2 | #### 图标 3 | 有图标的标签。 4 | 5 | 6 | 7 | #### Icon 8 | The Tab with Icon. 9 | 10 | 11 | ```html 12 | 30 | ``` 31 | -------------------------------------------------------------------------------- /components/vc-table/src/Column.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../../_util/vue-types'; 2 | 3 | export default { 4 | name: 'Column', 5 | props: { 6 | colSpan: PropTypes.number, 7 | title: PropTypes.any, 8 | dataIndex: PropTypes.string, 9 | width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), 10 | fixed: PropTypes.oneOf([true, 'left', 'right']), 11 | customRender: PropTypes.func, 12 | className: PropTypes.string, 13 | // onCellClick: PropTypes.func, 14 | customCell: PropTypes.func, 15 | customHeaderCell: PropTypes.func, 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /components/comment/index.en-US.md: -------------------------------------------------------------------------------- 1 | ## API 2 | 3 | | Property | Description | Type | Default | 4 | | -------- | ----------- | ---- | ------- | 5 | | actions | List of action items rendered below the comment content | Array \| slot | - | 6 | | author | The element to display as the comment author | string\|slot | - | 7 | | avatar | The element to display as the comment avatar - generally an antd `Avatar` or src | string\|slot | - | 8 | | content | The main content of the comment | string\|slot | - | 9 | | datetime | A datetime element containing the time to be displayed | string\|slot | - | 10 | -------------------------------------------------------------------------------- /components/date-picker/locale/uk_UA.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/uk_UA'; 2 | import TimePickerLocale from '../../time-picker/locale/uk_UA'; 3 | 4 | const locale = { 5 | lang: { 6 | placeholder: 'Оберіть дату', 7 | rangePlaceholder: ['Початкова дата', 'Кінцева дата'], 8 | ...CalendarLocale, 9 | }, 10 | timePickerLocale: { 11 | ...TimePickerLocale, 12 | }, 13 | }; 14 | 15 | // All settings at: 16 | // https://github.com/ant-design/ant-design/blob/master/components/date-picker/lo 17 | // cale/example.json 18 | 19 | export default locale; 20 | -------------------------------------------------------------------------------- /components/time-picker/demo/basic.md: -------------------------------------------------------------------------------- 1 | 2 | #### 基本 3 | 点击 TimePicker,然后可以在浮层中选择或者输入某一时间。 4 | 5 | 6 | 7 | #### Basic 8 | Click `TimePicker`, and then we could select or input a time in panel. 9 | 10 | 11 | ```html 12 | 15 | 26 | ``` 27 | -------------------------------------------------------------------------------- /components/vc-steps/demo/customIcon.vue: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /components/vc-switch/PropTypes.js: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | export const switchPropTypes = { 4 | prefixCls: PropTypes.string, 5 | disabled: PropTypes.bool.def(false), 6 | checkedChildren: PropTypes.any, 7 | unCheckedChildren: PropTypes.any, 8 | // onChange: PropTypes.func, 9 | // onMouseUp: PropTypes.func, 10 | // onClick: PropTypes.func, 11 | tabIndex: PropTypes.number, 12 | checked: PropTypes.bool.def(false), 13 | defaultChecked: PropTypes.bool.def(false), 14 | autoFocus: PropTypes.bool.def(false), 15 | loadingIcon: PropTypes.any, 16 | }; 17 | -------------------------------------------------------------------------------- /components/calendar/demo/card.md: -------------------------------------------------------------------------------- 1 | 2 | #### 卡片模式 3 | 用于嵌套在空间有限的容器中。 4 | 5 | 6 | 7 | #### Card 8 | Nested inside a container element for rendering in limited space. 9 | 10 | 11 | ```html 12 | 17 | 26 | ``` 27 | 28 | -------------------------------------------------------------------------------- /components/date-picker/locale/sk_SK.js: -------------------------------------------------------------------------------- 1 | import CalendarLocale from '../../vc-calendar/src/locale/sk_SK'; 2 | import TimePickerLocale from '../../time-picker/locale/sk_SK'; 3 | 4 | // 统一合并为完整的 Locale 5 | const locale = { 6 | lang: { 7 | placeholder: 'Vybrať dátum', 8 | rangePlaceholder: ['Od', 'Do'], 9 | ...CalendarLocale, 10 | }, 11 | timePickerLocale: { 12 | ...TimePickerLocale, 13 | }, 14 | }; 15 | 16 | // All settings at: 17 | // https://github.com/ant-design/ant-design/blob/master/components/date-picker/lo 18 | // cale/example.json 19 | 20 | export default locale; 21 | -------------------------------------------------------------------------------- /components/grid/demo/flex-order.md: -------------------------------------------------------------------------------- 1 | 2 | #### Flex 排序 3 | 从堆叠到水平排列。 4 | 通过 Flex 布局的 Order 来改变元素的排序。 5 | 6 | 7 | 8 | #### Flex Order 9 | To change the element sort by Flex layout order. 10 | 11 | 12 | ```html 13 | 23 | ``` 24 | 25 | 26 | -------------------------------------------------------------------------------- /components/upload/Dragger.jsx: -------------------------------------------------------------------------------- 1 | import { getOptionProps } from '../_util/props-util'; 2 | import Upload from './Upload'; 3 | import { UploadProps } from './interface'; 4 | 5 | export default { 6 | name: 'AUploadDragger', 7 | props: UploadProps, 8 | render() { 9 | const props = getOptionProps(this); 10 | const draggerProps = { 11 | props: { 12 | ...props, 13 | type: 'drag', 14 | }, 15 | on: this.$listeners, 16 | style: { height: this.height }, 17 | }; 18 | return {this.$slots.default}; 19 | }, 20 | }; 21 | -------------------------------------------------------------------------------- /components/config-provider/index.jsx: -------------------------------------------------------------------------------- 1 | import PropTypes from '../_util/vue-types'; 2 | 3 | const ConfigProvider = { 4 | name: 'AConfigProvider', 5 | props: { 6 | getPopupContainer: PropTypes.func, 7 | }, 8 | provide() { 9 | return { 10 | configProvider: this.$props, 11 | }; 12 | }, 13 | render() { 14 | return this.$slots.default ? this.$slots.default[0] : null; 15 | }, 16 | }; 17 | 18 | /* istanbul ignore next */ 19 | ConfigProvider.install = function(Vue) { 20 | Vue.component(ConfigProvider.name, ConfigProvider); 21 | }; 22 | 23 | export default ConfigProvider; 24 | --------------------------------------------------------------------------------