diff --git a/.jest.js b/.jest.js index 6d6ff3e4b..37fd6d5e8 100644 --- a/.jest.js +++ b/.jest.js @@ -1,15 +1,12 @@ const libDir = process.env.LIB_DIR; const transformIgnorePatterns = [ - '/dist/', - 'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir + '/dist/', 'node_modules\/[^/]+?\/(?!(es|node_modules)\/)', // Ignore modules without es dir ]; module.exports = { testURL: 'http://localhost/', - setupFiles: [ - './tests/setup.js', - ], + setupFiles: ['./tests/setup.js'], moduleFileExtensions: [ "js", "jsx", @@ -18,25 +15,22 @@ module.exports = { "md", "jpg" ], - modulePathIgnorePatterns: [ - '/_site/', - ], + modulePathIgnorePatterns: ['/_site/'], testPathIgnorePatterns: [ - '/node_modules/', - 'node', + '/node_modules/', 'node' ], transform: { ".*\\.(vue|md)$": "/node_modules/vue-jest", "^.+\\.(js|jsx)$": "/node_modules/babel-jest" }, - testRegex: libDir === 'dist' ? 'demo\\.test\\.js$' : '.*\\.test\\.js$', + testRegex: libDir === 'dist' + ? 'demo\\.test\\.js$' + : '.*\\.test\\.js$', moduleNameMapper: { "^@/(.*)$": "/$1", - "vue-antd-ui": "/components/index.js", + "ant-design-vue": "/components/index.js" }, - snapshotSerializers: [ - "/node_modules/jest-serializer-vue" - ], + snapshotSerializers: ["/node_modules/jest-serializer-vue"], collectCoverage: process.env.COVERAGE === 'true', collectCoverageFrom: [ "components/**/*.{js,jsx,vue}", @@ -52,5 +46,5 @@ module.exports = { '!components/style.js', "!**/node_modules/**" ], - transformIgnorePatterns, + transformIgnorePatterns }; diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 73cee98f7..3c57097a7 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -5,129 +5,129 @@ ## 1.0.1 `2018-07-27` -- 🌟 Optimize Chinese input for `Input` components(just support v-model) [4a5154](https://github.com/vueComponent/ant-design/commit/4a51544bd6470ab628dda80e9d7593e4603dd0b6) -- 🐞 Fix `treeSelect` `treeData[i].children` throw error when null[#81](https://github.com/vueComponent/ant-design/issues/81) -- 🐞 Fix `Calendar` change event call twice[#82](https://github.com/vueComponent/ant-design/issues/82) -- 🐞 Fix the `description` and `title` slot attribute of the `Card` component does not work[#83](https://github.com/vueComponent/ant-design/issues/83) -- 🐞 Fix `dropdownClassName` attribute of `DataPicker` component does not working[02ab242](https://github.com/vueComponent/ant-design/commit/02ab242197b923f2157f41d98a7930512475a799) +- 🌟 Optimize Chinese input for `Input` components(just support v-model) [4a5154](https://github.com/vueComponent/ant-design-vue/commit/4a51544bd6470ab628dda80e9d7593e4603dd0b6) +- 🐞 Fix `treeSelect` `treeData[i].children` throw error when null[#81](https://github.com/vueComponent/ant-design-vue/issues/81) +- 🐞 Fix `Calendar` change event call twice[#82](https://github.com/vueComponent/ant-design-vue/issues/82) +- 🐞 Fix the `description` and `title` slot attribute of the `Card` component does not work[#83](https://github.com/vueComponent/ant-design-vue/issues/83) +- 🐞 Fix `dropdownClassName` attribute of `DataPicker` component does not working[02ab242](https://github.com/vueComponent/ant-design-vue/commit/02ab242197b923f2157f41d98a7930512475a799) ## 1.0.0 `2018-07-21` -- 🌟 Add `Carousel` component [edddbd](https://github.com/vueComponent/ant-design/commit/edddbd982a279b62229ce825855c14c556866ece) +- 🌟 Add `Carousel` component [edddbd](https://github.com/vueComponent/ant-design-vue/commit/edddbd982a279b62229ce825855c14c556866ece) - modify some error document ## 0.7.1 `2018-07-17` -- 🐞 fix `Tooltip` containing disabled button does not show and style[#73](https://github.com/vueComponent/ant-design/issues/73) -- 🐞 add `Table` panagation deep watch[#b464c6](https://github.com/vueComponent/ant-design/commit/b464c6f6ee4df6df1b6c55f29ac85b2f462763bc) +- 🐞 fix `Tooltip` containing disabled button does not show and style[#73](https://github.com/vueComponent/ant-design-vue/issues/73) +- 🐞 add `Table` panagation deep watch[#b464c6](https://github.com/vueComponent/ant-design-vue/commit/b464c6f6ee4df6df1b6c55f29ac85b2f462763bc) ## 0.7.0 `2018-07-11` - 🌟 Add `TreeSelect` component -- 🌟 `Select` add `options`, Easy to generate a selection list directly[#37](https://github.com/vueComponent/ant-design/issues/37) -- 🐞 Fix `blur` event error when using `Select` component in `Tooltip`[#67](https://github.com/vueComponent/ant-design/issues/67) -- 🐞 Modify the `Upload` component `action` attribute to optional[#66](https://github.com/vueComponent/ant-design/issues/66) +- 🌟 `Select` add `options`, Easy to generate a selection list directly[#37](https://github.com/vueComponent/ant-design-vue/issues/37) +- 🐞 Fix `blur` event error when using `Select` component in `Tooltip`[#67](https://github.com/vueComponent/ant-design-vue/issues/67) +- 🐞 Modify the `Upload` component `action` attribute to optional[#66](https://github.com/vueComponent/ant-design-vue/issues/66) ## 0.6.8 `2018-07-05` -- 🐞 Fix `notification` h is not defined[#63](https://github.com/vueComponent/ant-design/issues/63) -- 🐞 Fix `Transfer` local-provider miss `titles`[#64](https://github.com/vueComponent/ant-design/issues/64) +- 🐞 Fix `notification` h is not defined[#63](https://github.com/vueComponent/ant-design-vue/issues/63) +- 🐞 Fix `Transfer` local-provider miss `titles`[#64](https://github.com/vueComponent/ant-design-vue/issues/64) ## 0.6.7 `2018-07-03` -- 🐞 Fix `Form` component cannot be updated when using template syntax[#62](https://github.com/vueComponent/ant-design/issues/62) +- 🐞 Fix `Form` component cannot be updated when using template syntax[#62](https://github.com/vueComponent/ant-design-vue/issues/62) ## 0.6.6 `2018-07-03` -- 🐞 Fix `Upload` type validation error issue and update related demo[#61](https://github.com/vueComponent/ant-design/issues/61) -- 🐞 Fix `Upload` image preview does not jump correctly[1584b3](https://github.com/vueComponent/ant-design/commit/1584b3839e500d2d6b07abf704f5cd084ca00e87) +- 🐞 Fix `Upload` type validation error issue and update related demo[#61](https://github.com/vueComponent/ant-design-vue/issues/61) +- 🐞 Fix `Upload` image preview does not jump correctly[1584b3](https://github.com/vueComponent/ant-design-vue/commit/1584b3839e500d2d6b07abf704f5cd084ca00e87) ## 0.6.5 `2018-07-01` -- 🐞 Fix `Select` `getPopupContainer` not working [#56](https://github.com/vueComponent/ant-design/issues/56) -- 🐞 Fix `Select` popup position is not updated[8254f7](https://github.com/vueComponent/ant-design/commit/8254f783a32189b63ffcf2c53702b50afef1f3db) +- 🐞 Fix `Select` `getPopupContainer` not working [#56](https://github.com/vueComponent/ant-design-vue/issues/56) +- 🐞 Fix `Select` popup position is not updated[8254f7](https://github.com/vueComponent/ant-design-vue/commit/8254f783a32189b63ffcf2c53702b50afef1f3db) ## 0.6.4 `2018-06-28` -- 🐞 Fix `InputSearch` `v-model` return wrong value[#53](https://github.com/vueComponent/ant-design/issues/53) +- 🐞 Fix `InputSearch` `v-model` return wrong value[#53](https://github.com/vueComponent/ant-design-vue/issues/53) ## 0.6.3 `2018-06-26` -- 🐞 Fix `Popover` `v-model` not working[#49](https://github.com/vueComponent/ant-design/issues/49) +- 🐞 Fix `Popover` `v-model` not working[#49](https://github.com/vueComponent/ant-design-vue/issues/49) ## 0.6.2 `2018-06-24` -- 🌟 `Form` component data auto-checking support for `template` syntax[7c9232](https://github.com/vueComponent/ant-design/commit/7c923278b3678a822ff90da0cb8db7653d79e15c) -- `Select`: 🐞 add `focus` `blur` methods[52f6f5](https://github.com/vueComponent/ant-design/commit/52f6f50dbe38631c0e698a6ea23b3686f6c2a375) +- 🌟 `Form` component data auto-checking support for `template` syntax[7c9232](https://github.com/vueComponent/ant-design-vue/commit/7c923278b3678a822ff90da0cb8db7653d79e15c) +- `Select`: 🐞 add `focus` `blur` methods[52f6f5](https://github.com/vueComponent/ant-design-vue/commit/52f6f50dbe38631c0e698a6ea23b3686f6c2a375) - `Radio` - - 🐞 Fix Radiogroup `disabled` className[9df74b](https://github.com/vueComponent/ant-design/commit/9df74bedd7640b6066010c498f942ce544c658b7) - - 🐞 Fix `autoFoucs` `focus` `blur` `mouseenter` `mouseleave` not working[f7886c](https://github.com/vueComponent/ant-design/commit/f7886c7203730bedf519bc45f5f78726735d3aac) -- `TimePicker`: 🐞 Fix `autoFoucs` `focus` `blur` not working[28d009](https://github.com/vueComponent/ant-design/commit/28d009d3ced807051a86a2c09cd2764303de98f7) + - 🐞 Fix Radiogroup `disabled` className[9df74b](https://github.com/vueComponent/ant-design-vue/commit/9df74bedd7640b6066010c498f942ce544c658b7) + - 🐞 Fix `autoFoucs` `focus` `blur` `mouseenter` `mouseleave` not working[f7886c](https://github.com/vueComponent/ant-design-vue/commit/f7886c7203730bedf519bc45f5f78726735d3aac) +- `TimePicker`: 🐞 Fix `autoFoucs` `focus` `blur` not working[28d009](https://github.com/vueComponent/ant-design-vue/commit/28d009d3ced807051a86a2c09cd2764303de98f7) ## 0.6.1 `2018-06-17` - 🌟 Add `List` Component - `Table` - - 🐞 Fix `'querySelectorAll` error when updating height[#33](https://github.com/vueComponent/ant-design/issues/33) - - 🐞 fix `defaultChecked` not working[ec1999](https://github.com/vueComponent/ant-design/commit/ec1999dea4cea126b78e3fd84bef620b876e9841) - - `columns key` support `number` type[9b7f5c](https://github.com/vueComponent/ant-design/commit/9b7f5c2f81b6f83190e5b022b2b1e28de3f68a2b) + - 🐞 Fix `'querySelectorAll` error when updating height[#33](https://github.com/vueComponent/ant-design-vue/issues/33) + - 🐞 fix `defaultChecked` not working[ec1999](https://github.com/vueComponent/ant-design-vue/commit/ec1999dea4cea126b78e3fd84bef620b876e9841) + - `columns key` support `number` type[9b7f5c](https://github.com/vueComponent/ant-design-vue/commit/9b7f5c2f81b6f83190e5b022b2b1e28de3f68a2b) - `Tooltip`: 🛠 update events API `change` to `visibleChange` -- `Textarea`: 🐞 Fix `autoFoucs` not working[787927](https://github.com/vueComponent/ant-design/commit/787927912307db7edb9821a440feacd216e3a6a2) -- `InputSearch`: 🐞 Add `focus` `blur` methods[3cff62](https://github.com/vueComponent/ant-design/commit/3cff62997d16811ae17618f9b41617973d805d7d) -- `InputNumber`: 🐞 Fix `autoFoucs` not working[88f165](https://github.com/vueComponent/ant-design/commit/88f165edb5c3993f4dba90c3267a1ea037e0869b) -- `DatePicker`: 🐞 Fix `autoFoucs` not working[264abf](https://github.com/vueComponent/ant-design/commit/264abff59791181b9190ca0914b780a8df6aa81a) -- `Cascader`: 🐞 Fix `autoFoucs` not working[be69bd](https://github.com/vueComponent/ant-design/commit/be69bd9af1bae184a4ebe8c4ef9560479ab11027) -- `Rate`: 🐞 Fix `autoFoucs` not working,and `blur` error[c2c984](https://github.com/vueComponent/ant-design/commit/c2c9841eb9b8e5ce4decff57a925e60d4bd7d809) -- `RangePicker`: 🐞 Fix value type check error problem[228f44](https://github.com/vueComponent/ant-design/commit/228f4478a5d169d22960c97d1d8a8320c58da9cc) +- `Textarea`: 🐞 Fix `autoFoucs` not working[787927](https://github.com/vueComponent/ant-design-vue/commit/787927912307db7edb9821a440feacd216e3a6a2) +- `InputSearch`: 🐞 Add `focus` `blur` methods[3cff62](https://github.com/vueComponent/ant-design-vue/commit/3cff62997d16811ae17618f9b41617973d805d7d) +- `InputNumber`: 🐞 Fix `autoFoucs` not working[88f165](https://github.com/vueComponent/ant-design-vue/commit/88f165edb5c3993f4dba90c3267a1ea037e0869b) +- `DatePicker`: 🐞 Fix `autoFoucs` not working[264abf](https://github.com/vueComponent/ant-design-vue/commit/264abff59791181b9190ca0914b780a8df6aa81a) +- `Cascader`: 🐞 Fix `autoFoucs` not working[be69bd](https://github.com/vueComponent/ant-design-vue/commit/be69bd9af1bae184a4ebe8c4ef9560479ab11027) +- `Rate`: 🐞 Fix `autoFoucs` not working,and `blur` error[c2c984](https://github.com/vueComponent/ant-design-vue/commit/c2c9841eb9b8e5ce4decff57a925e60d4bd7d809) +- `RangePicker`: 🐞 Fix value type check error problem[228f44](https://github.com/vueComponent/ant-design-vue/commit/228f4478a5d169d22960c97d1d8a8320c58da9cc) ## 0.6.0 `2018-06-04` - 🌟 Add `Anchor` Component - `Table` - - 🐞 Fix show `emptyText` problem when `loading.spinning` [17b9dc](https://github.com/vueComponent/ant-design/commit/17b9dc14f5225eb75542facdb5053f4916b9d77f) - - 🐞 Fixed `header style` not working [#30](https://github.com/vueComponent/ant-design/pull/30) -- 🐞 `DatePicker`: Fix the issue of `change` event repeatedly call when `showTime` is `true` [81ab82](https://github.com/vueComponent/ant-design/commit/81ab829b1d0f67ee926b106de788fc5b41ec4f9c) -- 🐞 `InputNumber`: Fix `placeholder` not working [ce39dc](https://github.com/vueComponent/ant-design/commit/ce39dc3506474a4b31632e03c38b518cf4060cef#diff-c9d10303f22c684e66d71ab1f9dac5f9R50) + - 🐞 Fix show `emptyText` problem when `loading.spinning` [17b9dc](https://github.com/vueComponent/ant-design-vue/commit/17b9dc14f5225eb75542facdb5053f4916b9d77f) + - 🐞 Fixed `header style` not working [#30](https://github.com/vueComponent/ant-design-vue/pull/30) +- 🐞 `DatePicker`: Fix the issue of `change` event repeatedly call when `showTime` is `true` [81ab82](https://github.com/vueComponent/ant-design-vue/commit/81ab829b1d0f67ee926b106de788fc5b41ec4f9c) +- 🐞 `InputNumber`: Fix `placeholder` not working [ce39dc](https://github.com/vueComponent/ant-design-vue/commit/ce39dc3506474a4b31632e03c38b518cf4060cef#diff-c9d10303f22c684e66d71ab1f9dac5f9R50) ## 0.5.4 `2018-05-26` -- 🐞 Fix missing `less` file problem in dist directory[ca084b9](https://github.com/vueComponent/ant-design/commit/ca084b9e6f0958c25a8278454c864ac8127cce95) +- 🐞 Fix missing `less` file problem in dist directory[ca084b9](https://github.com/vueComponent/ant-design-vue/commit/ca084b9e6f0958c25a8278454c864ac8127cce95) ## 0.5.3 `2018-05-25` -- 🐞 Fixed issue with building `antd-with-locales.js` containing test files[90583a3](https://github.com/vueComponent/ant-design/commit/90583a3c42e8b520747d6f6ac10cfd718d447030) +- 🐞 Fixed issue with building `antd-with-locales.js` containing test files[90583a3](https://github.com/vueComponent/ant-design-vue/commit/90583a3c42e8b520747d6f6ac10cfd718d447030) ## 0.5.2 `2018-05-25` -- 🐞 `Timeline`: Fix duplicated loading component bug [fa5141b](https://github.com/vueComponent/ant-design/commit/fa5141bd0061385f251b9026a07066677426b319) +- 🐞 `Timeline`: Fix duplicated loading component bug [fa5141b](https://github.com/vueComponent/ant-design-vue/commit/fa5141bd0061385f251b9026a07066677426b319) - `Transfer` - - 🐞 Fix search box clear button does not work Problem [4582da3](https://github.com/vueComponent/ant-design/commit/4582da3725e65c47a542f164532ab75a5618c265) - - 💄 Override property change listener logic to avoid unnecessary [0920d23](https://github.com/vueComponent/ant-design/commit/0920d23f12f6c133f667cd65316f1f0e6af27a33) -- 💄 `Select`: Optimizing `title` display logic [9314957](https://github.com/vueComponent/ant-design/commit/931495768f8b573d12ce4e058e853c875f22bcd3) + - 🐞 Fix search box clear button does not work Problem [4582da3](https://github.com/vueComponent/ant-design-vue/commit/4582da3725e65c47a542f164532ab75a5618c265) + - 💄 Override property change listener logic to avoid unnecessary [0920d23](https://github.com/vueComponent/ant-design-vue/commit/0920d23f12f6c133f667cd65316f1f0e6af27a33) +- 💄 `Select`: Optimizing `title` display logic [9314957](https://github.com/vueComponent/ant-design-vue/commit/931495768f8b573d12ce4e058e853c875f22bcd3) - `Form` - - 🐞 Fixed Form component `directive` error [#20](https://github.com/vueComponent/ant-design/issues/20) - - 🌟 Maintain an ref for wrapped component instance, use `wrappedComponentRef` [c5e421c](https://github.com/vueComponent/ant-design/commit/c5e421cdb2768e93288ce7b4654bee2114f8e5ba) -- 🐞 `DatePicker`: Fix calendar keyboard event does not work [e9b6914](https://github.com/vueComponent/ant-design/commit/e9b6914282b1ac8d84b4262b8a6b33aa4e515831) -- `Avatar`: Fixing font size adaptation issues [#22](https://github.com/vueComponent/ant-design/pull/22) + - 🐞 Fixed Form component `directive` error [#20](https://github.com/vueComponent/ant-design-vue/issues/20) + - 🌟 Maintain an ref for wrapped component instance, use `wrappedComponentRef` [c5e421c](https://github.com/vueComponent/ant-design-vue/commit/c5e421cdb2768e93288ce7b4654bee2114f8e5ba) +- 🐞 `DatePicker`: Fix calendar keyboard event does not work [e9b6914](https://github.com/vueComponent/ant-design-vue/commit/e9b6914282b1ac8d84b4262b8a6b33aa4e515831) +- `Avatar`: Fixing font size adaptation issues [#22](https://github.com/vueComponent/ant-design-vue/pull/22) - 🌟 Added single test for some components - 🌟 sorted component library `dependencies` and `devDependencies`, deleted unused packages, and added `peerDependencies` @@ -135,7 +135,7 @@ `2018-05-10` -- 🐞 `Table`: Fix `customRow` events not working[#16](https://github.com/vueComponent/ant-design/issues/16) +- 🐞 `Table`: Fix `customRow` events not working[#16](https://github.com/vueComponent/ant-design-vue/issues/16) ## 0.5.0 @@ -172,11 +172,11 @@ #### Others -- support use [Vue.use(antd)](https://github.com/vueComponent/ant-design/issues/3) +- support use [Vue.use(antd)](https://github.com/vueComponent/ant-design-vue/issues/3) ## 0.3.1 #### Features -- first version, provide 45 [components](https://github.com/vueComponent/ant-design/blob/c7e83d6142f0c5e72ef8fe794620478e69a50a8e/site/components.js) +- first version, provide 45 [components](https://github.com/vueComponent/ant-design-vue/blob/c7e83d6142f0c5e72ef8fe794620478e69a50a8e/site/components.js) diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 993b5b4de..5cab107f5 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -5,78 +5,78 @@ ## 1.0.1 `2018-07-27` -- 🌟 针对`Input`组件优化中文输入(仅在v-model绑定时生效) [4a5154](https://github.com/vueComponent/ant-design/commit/4a51544bd6470ab628dda80e9d7593e4603dd0b6) -- 🐞 修复`TreeSelect` `treeeData[i].children`为`null`时报错问题[#81](https://github.com/vueComponent/ant-design/issues/81) -- 🐞 修复`Calendar`组件的 change 事件触发两次的问题[#82](https://github.com/vueComponent/ant-design/issues/82) -- 🐞 修复`Card`组件的`description`和`title`属性slot不生效问题[#83](https://github.com/vueComponent/ant-design/issues/83) -- 🐞 修复`DataPicker`组件的`dropdownClassName`属性不生效问题[02ab242](https://github.com/vueComponent/ant-design/commit/02ab242197b923f2157f41d98a7930512475a799) +- 🌟 针对`Input`组件优化中文输入(仅在v-model绑定时生效) [4a5154](https://github.com/vueComponent/ant-design-vue/commit/4a51544bd6470ab628dda80e9d7593e4603dd0b6) +- 🐞 修复`TreeSelect` `treeeData[i].children`为`null`时报错问题[#81](https://github.com/vueComponent/ant-design-vue/issues/81) +- 🐞 修复`Calendar`组件的 change 事件触发两次的问题[#82](https://github.com/vueComponent/ant-design-vue/issues/82) +- 🐞 修复`Card`组件的`description`和`title`属性slot不生效问题[#83](https://github.com/vueComponent/ant-design-vue/issues/83) +- 🐞 修复`DataPicker`组件的`dropdownClassName`属性不生效问题[02ab242](https://github.com/vueComponent/ant-design-vue/commit/02ab242197b923f2157f41d98a7930512475a799) ## 1.0.0 `2018-07-21` -- 🌟 新增`Carousel 走马灯`组件[edddbd](https://github.com/vueComponent/ant-design/commit/edddbd982a279b62229ce825855c14c556866ece) +- 🌟 新增`Carousel 走马灯`组件[edddbd](https://github.com/vueComponent/ant-design-vue/commit/edddbd982a279b62229ce825855c14c556866ece) - 更正了若干文档错误 ## 0.7.1 `2018-07-17` -- 🐞 修复`Tooltip`包含`Button`时的样式及功能问题[#73](https://github.com/vueComponent/ant-design/issues/73) -- 🐞 add `Table` panagation deep watch[#b464c6](https://github.com/vueComponent/ant-design/commit/b464c6f6ee4df6df1b6c55f29ac85b2f462763bc) +- 🐞 修复`Tooltip`包含`Button`时的样式及功能问题[#73](https://github.com/vueComponent/ant-design-vue/issues/73) +- 🐞 add `Table` panagation deep watch[#b464c6](https://github.com/vueComponent/ant-design-vue/commit/b464c6f6ee4df6df1b6c55f29ac85b2f462763bc) ## 0.7.0 `2018-07-11` - 🌟 新增`TreeSelect`组件 -- 🌟 `Select`组件新增`options`,方便直接生成选择列表[#37](https://github.com/vueComponent/ant-design/issues/37) -- 🐞 修复`Tooltip`中使用`Select`组件时,`blur`事件报错问题[#67](https://github.com/vueComponent/ant-design/issues/67) -- 🐞 修改`Upload`组件`action`属性为可选[#66](https://github.com/vueComponent/ant-design/issues/66) +- 🌟 `Select`组件新增`options`,方便直接生成选择列表[#37](https://github.com/vueComponent/ant-design-vue/issues/37) +- 🐞 修复`Tooltip`中使用`Select`组件时,`blur`事件报错问题[#67](https://github.com/vueComponent/ant-design-vue/issues/67) +- 🐞 修改`Upload`组件`action`属性为可选[#66](https://github.com/vueComponent/ant-design-vue/issues/66) ## 0.6.8 `2018-07-05` -- 🐞 修复`notification` h is not defined[#63](https://github.com/vueComponent/ant-design/issues/63) -- 🐞 修复`Transfer`国际化缺少titles问题[#64](https://github.com/vueComponent/ant-design/issues/64) +- 🐞 修复`notification` h is not defined[#63](https://github.com/vueComponent/ant-design-vue/issues/63) +- 🐞 修复`Transfer`国际化缺少titles问题[#64](https://github.com/vueComponent/ant-design-vue/issues/64) ## 0.6.7 `2018-07-03` -- 🐞 修复`Form`使用模板语法时组件不能更新[#62](https://github.com/vueComponent/ant-design/issues/62) +- 🐞 修复`Form`使用模板语法时组件不能更新[#62](https://github.com/vueComponent/ant-design-vue/issues/62) ## 0.6.6 `2018-07-03` -- 🐞 修复`Upload`的类型校验错误问题并更新相关demo[#61](https://github.com/vueComponent/ant-design/issues/61) -- 🐞 修复`Upload`图片预览不能正确跳转问题[1584b3](https://github.com/vueComponent/ant-design/commit/1584b3839e500d2d6b07abf704f5cd084ca00e87) +- 🐞 修复`Upload`的类型校验错误问题并更新相关demo[#61](https://github.com/vueComponent/ant-design-vue/issues/61) +- 🐞 修复`Upload`图片预览不能正确跳转问题[1584b3](https://github.com/vueComponent/ant-design-vue/commit/1584b3839e500d2d6b07abf704f5cd084ca00e87) ## 0.6.5 `2018-07-01` -- 🐞 修复`Select`的`getPopupContainer`不生效问题[#56](https://github.com/vueComponent/ant-design/issues/56) -- 🐞 修复`Select`的弹出框位置不更新问题[8254f7](https://github.com/vueComponent/ant-design/commit/8254f783a32189b63ffcf2c53702b50afef1f3db) +- 🐞 修复`Select`的`getPopupContainer`不生效问题[#56](https://github.com/vueComponent/ant-design-vue/issues/56) +- 🐞 修复`Select`的弹出框位置不更新问题[8254f7](https://github.com/vueComponent/ant-design-vue/commit/8254f783a32189b63ffcf2c53702b50afef1f3db) ## 0.6.4 `2018-06-28` -- 🐞 修复`InputSearch`的`v-model`返回值错误问题[#53](https://github.com/vueComponent/ant-design/issues/53) +- 🐞 修复`InputSearch`的`v-model`返回值错误问题[#53](https://github.com/vueComponent/ant-design-vue/issues/53) ## 0.6.3 `2018-06-26` -- 🐞 修复`Popover`的`v-model`不生效问题[#49](https://github.com/vueComponent/ant-design/issues/49) +- 🐞 修复`Popover`的`v-model`不生效问题[#49](https://github.com/vueComponent/ant-design-vue/issues/49) ## 0.6.2 `2018-06-24` -- 🌟 `Form`组件数据自动校验功能支持`template`语法[7c9232](https://github.com/vueComponent/ant-design/commit/7c923278b3678a822ff90da0cb8db7653d79e15c) -- `Select`: 🐞 添加`focus` `blur`方法[52f6f5](https://github.com/vueComponent/ant-design/commit/52f6f50dbe38631c0e698a6ea23b3686f6c2a375) +- 🌟 `Form`组件数据自动校验功能支持`template`语法[7c9232](https://github.com/vueComponent/ant-design-vue/commit/7c923278b3678a822ff90da0cb8db7653d79e15c) +- `Select`: 🐞 添加`focus` `blur`方法[52f6f5](https://github.com/vueComponent/ant-design-vue/commit/52f6f50dbe38631c0e698a6ea23b3686f6c2a375) - `Radio` - - 🐞 修复Radiogroup `disabled` className[9df74b](https://github.com/vueComponent/ant-design/commit/9df74bedd7640b6066010c498f942ce544c658b7) - - 🐞 修复`autoFoucs` `focus` `blur` `mouseenter` `mouseleave` 不生效问题[f7886c](https://github.com/vueComponent/ant-design/commit/f7886c7203730bedf519bc45f5f78726735d3aac) -- `TimePicker`: 🐞 修复`autoFoucs` `focus` `blur`不生效问题[28d009](https://github.com/vueComponent/ant-design/commit/28d009d3ced807051a86a2c09cd2764303de98f7) + - 🐞 修复Radiogroup `disabled` className[9df74b](https://github.com/vueComponent/ant-design-vue/commit/9df74bedd7640b6066010c498f942ce544c658b7) + - 🐞 修复`autoFoucs` `focus` `blur` `mouseenter` `mouseleave` 不生效问题[f7886c](https://github.com/vueComponent/ant-design-vue/commit/f7886c7203730bedf519bc45f5f78726735d3aac) +- `TimePicker`: 🐞 修复`autoFoucs` `focus` `blur`不生效问题[28d009](https://github.com/vueComponent/ant-design-vue/commit/28d009d3ced807051a86a2c09cd2764303de98f7) ## 0.6.1 @@ -84,18 +84,18 @@ `2018-06-17` - 🌟 新增`List`列表组件 - `Table` - - 🐞 修复更新高度时报错问题[#33](https://github.com/vueComponent/ant-design/issues/33) - - 🐞 修复`defaultChecked`不生效问题[ec1999](https://github.com/vueComponent/ant-design/commit/ec1999dea4cea126b78e3fd84bef620b876e9841) - - `columns key`支持数字类型[9b7f5c](https://github.com/vueComponent/ant-design/commit/9b7f5c2f81b6f83190e5b022b2b1e28de3f68a2b) + - 🐞 修复更新高度时报错问题[#33](https://github.com/vueComponent/ant-design-vue/issues/33) + - 🐞 修复`defaultChecked`不生效问题[ec1999](https://github.com/vueComponent/ant-design-vue/commit/ec1999dea4cea126b78e3fd84bef620b876e9841) + - `columns key`支持数字类型[9b7f5c](https://github.com/vueComponent/ant-design-vue/commit/9b7f5c2f81b6f83190e5b022b2b1e28de3f68a2b) - `Tooltip` - 🛠 更新事件API`change`为`visibleChange` -- `Textarea`: 🐞 修复`autoFoucs`不生效问题[787927](https://github.com/vueComponent/ant-design/commit/787927912307db7edb9821a440feacd216e3a6a2) -- `InputSearch`: 🐞 添加`focus` `blur`方法[3cff62](https://github.com/vueComponent/ant-design/commit/3cff62997d16811ae17618f9b41617973d805d7d) -- `InputNumber`: 🐞 修复`autoFoucs`不生效问题[88f165](https://github.com/vueComponent/ant-design/commit/88f165edb5c3993f4dba90c3267a1ea037e0869b) -- `DatePicker`: 🐞 修复`autoFoucs`不生效问题[264abf](https://github.com/vueComponent/ant-design/commit/264abff59791181b9190ca0914b780a8df6aa81a) -- `Cascader`: 🐞 修复`autoFoucs`不生效问题[be69bd](https://github.com/vueComponent/ant-design/commit/be69bd9af1bae184a4ebe8c4ef9560479ab11027) -- `Rate`: 🐞 修复`autoFoucs`不生效问题,及`blur`报错问题[c2c984](https://github.com/vueComponent/ant-design/commit/c2c9841eb9b8e5ce4decff57a925e60d4bd7d809) -- `RangePicker`: 🐞 修复值类型校验出错问题[228f44](https://github.com/vueComponent/ant-design/commit/228f4478a5d169d22960c97d1d8a8320c58da9cc) +- `Textarea`: 🐞 修复`autoFoucs`不生效问题[787927](https://github.com/vueComponent/ant-design-vue/commit/787927912307db7edb9821a440feacd216e3a6a2) +- `InputSearch`: 🐞 添加`focus` `blur`方法[3cff62](https://github.com/vueComponent/ant-design-vue/commit/3cff62997d16811ae17618f9b41617973d805d7d) +- `InputNumber`: 🐞 修复`autoFoucs`不生效问题[88f165](https://github.com/vueComponent/ant-design-vue/commit/88f165edb5c3993f4dba90c3267a1ea037e0869b) +- `DatePicker`: 🐞 修复`autoFoucs`不生效问题[264abf](https://github.com/vueComponent/ant-design-vue/commit/264abff59791181b9190ca0914b780a8df6aa81a) +- `Cascader`: 🐞 修复`autoFoucs`不生效问题[be69bd](https://github.com/vueComponent/ant-design-vue/commit/be69bd9af1bae184a4ebe8c4ef9560479ab11027) +- `Rate`: 🐞 修复`autoFoucs`不生效问题,及`blur`报错问题[c2c984](https://github.com/vueComponent/ant-design-vue/commit/c2c9841eb9b8e5ce4decff57a925e60d4bd7d809) +- `RangePicker`: 🐞 修复值类型校验出错问题[228f44](https://github.com/vueComponent/ant-design-vue/commit/228f4478a5d169d22960c97d1d8a8320c58da9cc) ## 0.6.0 @@ -103,36 +103,36 @@ `2018-06-04` - 🌟 新增`Anchor`锚点组件 - `Table` - - 🐞 修复`loading.spinning`时显示`emptyText`问题[17b9dc](https://github.com/vueComponent/ant-design/commit/17b9dc14f5225eb75542facdb5053f4916b9d77f) - - 🐞 修复`header style`不生效问题[#30](https://github.com/vueComponent/ant-design/pull/30) -- `DatePicker`: 🐞 修复属性`showTime`为`true`时,重复调用`change`事件问题[81ab82](https://github.com/vueComponent/ant-design/commit/81ab829b1d0f67ee926b106de788fc5b41ec4f9c) -- `InputNumber`: 🐞 修复`placeholder`不生效问题[ce39dc](https://github.com/vueComponent/ant-design/commit/ce39dc3506474a4b31632e03c38b518cf4060cef#diff-c9d10303f22c684e66d71ab1f9dac5f9R50) + - 🐞 修复`loading.spinning`时显示`emptyText`问题[17b9dc](https://github.com/vueComponent/ant-design-vue/commit/17b9dc14f5225eb75542facdb5053f4916b9d77f) + - 🐞 修复`header style`不生效问题[#30](https://github.com/vueComponent/ant-design-vue/pull/30) +- `DatePicker`: 🐞 修复属性`showTime`为`true`时,重复调用`change`事件问题[81ab82](https://github.com/vueComponent/ant-design-vue/commit/81ab829b1d0f67ee926b106de788fc5b41ec4f9c) +- `InputNumber`: 🐞 修复`placeholder`不生效问题[ce39dc](https://github.com/vueComponent/ant-design-vue/commit/ce39dc3506474a4b31632e03c38b518cf4060cef#diff-c9d10303f22c684e66d71ab1f9dac5f9R50) ## 0.5.4 `2018-05-26` -- 🐞 修复dist目录缺少less文件问题[ca084b9](https://github.com/vueComponent/ant-design/commit/ca084b9e6f0958c25a8278454c864ac8127cce95) +- 🐞 修复dist目录缺少less文件问题[ca084b9](https://github.com/vueComponent/ant-design-vue/commit/ca084b9e6f0958c25a8278454c864ac8127cce95) ## 0.5.3 `2018-05-25` -- 🐞 修复构建`antd-with-locales.js`包含测试文件的问题[90583a3](https://github.com/vueComponent/ant-design/commit/90583a3c42e8b520747d6f6ac10cfd718d447030) +- 🐞 修复构建`antd-with-locales.js`包含测试文件的问题[90583a3](https://github.com/vueComponent/ant-design-vue/commit/90583a3c42e8b520747d6f6ac10cfd718d447030) ## 0.5.2 `2018-05-25` -- 🐞 `Timeline`: 修复重复显示loading组件bug[fa5141b](https://github.com/vueComponent/ant-design/commit/fa5141bd0061385f251b9026a07066677426b319) +- 🐞 `Timeline`: 修复重复显示loading组件bug[fa5141b](https://github.com/vueComponent/ant-design-vue/commit/fa5141bd0061385f251b9026a07066677426b319) - `Transfer` - - 🐞 修复搜索框的清除按钮不起作用问题[4582da3](https://github.com/vueComponent/ant-design/commit/4582da3725e65c47a542f164532ab75a5618c265) - - 💄 重写了属性变化监听逻辑,避免不必要的[0920d23](https://github.com/vueComponent/ant-design/commit/0920d23f12f6c133f667cd65316f1f0e6af27a33) -- 💄 `Select`: 优化`title`显示逻辑[9314957](https://github.com/vueComponent/ant-design/commit/931495768f8b573d12ce4e058e853c875f22bcd3) + - 🐞 修复搜索框的清除按钮不起作用问题[4582da3](https://github.com/vueComponent/ant-design-vue/commit/4582da3725e65c47a542f164532ab75a5618c265) + - 💄 重写了属性变化监听逻辑,避免不必要的[0920d23](https://github.com/vueComponent/ant-design-vue/commit/0920d23f12f6c133f667cd65316f1f0e6af27a33) +- 💄 `Select`: 优化`title`显示逻辑[9314957](https://github.com/vueComponent/ant-design-vue/commit/931495768f8b573d12ce4e058e853c875f22bcd3) - `Form` - - 🐞 修复Form组件指令报错问题[#20](https://github.com/vueComponent/ant-design/issues/20) - - 🌟 优化获取Form包装组件实例功能[c5e421c](https://github.com/vueComponent/ant-design/commit/c5e421cdb2768e93288ce7b4654bee2114f8e5ba) -- 🐞 `DatePicker`: 修复日历键盘事件不起作用问题[e9b6914](https://github.com/vueComponent/ant-design/commit/e9b6914282b1ac8d84b4262b8a6b33aa4e515831) -- `Avatar`: 修复字体大小自适应问题[#22](https://github.com/vueComponent/ant-design/pull/22) + - 🐞 修复Form组件指令报错问题[#20](https://github.com/vueComponent/ant-design-vue/issues/20) + - 🌟 优化获取Form包装组件实例功能[c5e421c](https://github.com/vueComponent/ant-design-vue/commit/c5e421cdb2768e93288ce7b4654bee2114f8e5ba) +- 🐞 `DatePicker`: 修复日历键盘事件不起作用问题[e9b6914](https://github.com/vueComponent/ant-design-vue/commit/e9b6914282b1ac8d84b4262b8a6b33aa4e515831) +- `Avatar`: 修复字体大小自适应问题[#22](https://github.com/vueComponent/ant-design-vue/pull/22) - 🌟 添加了部分组件的单测 - 🌟 整理了组件库依赖(dependencies、devDependencies),删除不再使用的包,并添加peerDependencies @@ -141,7 +141,7 @@ `2018-05-10` -- 🐞 `Table`: 修复 `customRow` 自定义事件不生效问题[#16](https://github.com/vueComponent/ant-design/issues/16) +- 🐞 `Table`: 修复 `customRow` 自定义事件不生效问题[#16](https://github.com/vueComponent/ant-design-vue/issues/16) ## 0.5.0 @@ -179,12 +179,12 @@ #### 其它 -- 支持导入所有组件[Vue.use(antd)](https://github.com/vueComponent/ant-design/issues/3) +- 支持导入所有组件[Vue.use(antd)](https://github.com/vueComponent/ant-design-vue/issues/3) ## 0.3.1 #### Features -- 对外第一个版本,提供常用45个[组件](https://github.com/vueComponent/ant-design/blob/c7e83d6142f0c5e72ef8fe794620478e69a50a8e/site/components.js) +- 对外第一个版本,提供常用45个[组件](https://github.com/vueComponent/ant-design-vue/blob/c7e83d6142f0c5e72ef8fe794620478e69a50a8e/site/components.js) diff --git a/LICENSE b/LICENSE index 5f0f8bf29..3e8b38aea 100644 --- a/LICENSE +++ b/LICENSE @@ -1,7 +1,7 @@ MIT License -Copyright (c) 2017-present vue-antd-ui +Copyright (c) 2017-present ant-design-vue Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README-zh_CN.md b/README-zh_CN.md index f88ec9b91..add8e76d8 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -1,30 +1,30 @@

- - + +

-# [Ant Design Vue](https://vuecomponent.github.io/ant-design/) +# [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/) [![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design) -[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design) -[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm) -[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm) -[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui) -[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui) +[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design) +[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm) +[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm) +[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue) +[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue) [![Join the chat at https://gitter.im/vueComponent/ant-design-english](https://badges.gitter.im/vueComponent/ant-design-english.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design-english?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) (English) [![Join the chat at https://gitter.im/vueComponent/ant-design](https://img.shields.io/gitter/room/vueComponent/ant-design.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(中文) Ant Design 3.X 的 Vue 实现,开发和服务于企业级后台产品。 -[官网国内镜像](http://tangjinzhou.gitee.io/ant-design/docs/vue/introduce-cn/) +[官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/) [README in English](README.md) ## 赞助 -vue-antd-ui是一个开源的独立项目,为了项目能够更好的持续的发展,我们期望获得你的支持,你可以通过如下任何一种方式支持我们: +ant-design-vue是一个开源的独立项目,为了项目能够更好的持续的发展,我们期望获得你的支持,你可以通过如下任何一种方式支持我们: - [Patreon](https://www.patreon.com/tangjinzhou) - [opencollective](https://opencollective.com/ant-design-278) @@ -45,11 +45,11 @@ vue-antd-ui是一个开源的独立项目,为了项目能够更好的持续的 ### 使用 npm 或 yarn 安装 ```bash -$ npm install vue-antd-ui --save +$ npm install ant-design-vue --save ``` ```bash -$ yarn add vue-antd-ui +$ yarn add ant-design-vue ``` 如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。 @@ -57,7 +57,7 @@ $ yarn add vue-antd-ui ## 链接 -- [首页](https://vuecomponent.github.io/ant-design/) +- [首页](https://vuecomponent.github.io/ant-design-vue/) - [Vue官方文档](https://cn.vuejs.org/) - [Antd React](http://ant.design/) diff --git a/README.md b/README.md index 2b0c34255..68584d16c 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,23 @@

- - + +

-# [Ant Design Vue](https://vuecomponent.github.io/ant-design/) +# [Ant Design Vue](https://vuecomponent.github.io/ant-design-vue/) [![Travis branch](https://img.shields.io/travis/vueComponent/ant-design.svg?style=flat-square)](https://travis-ci.org/vueComponent/ant-design) -[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design) -[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm) -[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design/master/dependencies/npm) -[![npm package](https://img.shields.io/npm/v/vue-antd-ui.svg?style=flat-square)](https://www.npmjs.org/package/vue-antd-ui) -[![NPM downloads](http://img.shields.io/npm/dm/vue-antd-ui.svg?style=flat-square)](http://www.npmtrends.com/vue-antd-ui) +[![codecov](https://img.shields.io/codecov/c/github/vueComponent/ant-design-vue/master.svg?style=flat-square)](https://codecov.io/gh/vueComponent/ant-design) +[![bitHound Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/dependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm) +[![bitHound Dev Dependencies](https://www.bithound.io/github/vueComponent/ant-design-vue/badges/devDependencies.svg)](https://www.bithound.io/github/vueComponent/ant-design-vue/master/dependencies/npm) +[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue) +[![NPM downloads](http://img.shields.io/npm/dm/ant-design-vue.svg?style=flat-square)](http://www.npmtrends.com/ant-design-vue) [![Join the chat at https://gitter.im/vueComponent/ant-design-english](https://badges.gitter.im/vueComponent/ant-design-english.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design-english?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) (English) [![Join the chat at https://gitter.im/vueComponent/ant-design](https://img.shields.io/gitter/room/vueComponent/ant-design.svg?style=flat-square)](https://gitter.im/vueComponent/ant-design?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)(中文) An enterprise-class UI components based on Ant Design 3.X and Vue. -[官网国内镜像](http://tangjinzhou.gitee.io/ant-design/docs/vue/introduce-cn/) +[官网国内镜像](http://tangjinzhou.gitee.io/ant-design-vue/docs/vue/introduce-cn/) [中文 README](README-zh_CN.md) @@ -29,7 +29,7 @@ An enterprise-class UI components based on Ant Design 3.X and Vue. ## Donation -vue-antd-ui is an open source independent project. In order to achieve better and sustainable development of the project, we hope to get your support. You can support us in any of the following ways: +ant-design-vue is an open source independent project. In order to achieve better and sustainable development of the project, we hope to get your support. You can support us in any of the following ways: - [Patreon](https://www.patreon.com/tangjinzhou) - [opencollective](https://opencollective.com/ant-design-278) @@ -44,11 +44,11 @@ vue-antd-ui is an open source independent project. In order to achieve better an **We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling. ```bash -$ npm install vue-antd-ui --save +$ npm install ant-design-vue --save ``` ```bash -$ yarn add vue-antd-ui +$ yarn add ant-design-vue ``` If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm). @@ -56,7 +56,7 @@ If you are in a bad network environment,you can try other registries and tools ## Links -- [Home page](https://vuecomponent.github.io/ant-design/) +- [Home page](https://vuecomponent.github.io/ant-design-vue/) - [Vue](https://vuejs.org/) - [Ant Design React](http://ant.design/) diff --git a/antd-tools/getWebpackConfig.js b/antd-tools/getWebpackConfig.js index c8c69f707..1c10d1e19 100644 --- a/antd-tools/getWebpackConfig.js +++ b/antd-tools/getWebpackConfig.js @@ -18,18 +18,15 @@ module.exports = function (modules) { }, ] - // if (distFileBaseName !== 'antd') { - // pluginImportOptions.push({ - // style: 'css', - // libraryDirectory: 'components', - // libraryName: 'antd', - // }) - // } + // if (distFileBaseName !== 'antd') { pluginImportOptions.push({ style: + // 'css', libraryDirectory: 'components', libraryName: 'antd', }) } - babelConfig.plugins.push([ - require.resolve('babel-plugin-import'), - pluginImportOptions, - ]) + babelConfig + .plugins + .push([ + require.resolve('babel-plugin-import'), + pluginImportOptions, + ]) const config = { devtool: 'source-map', @@ -40,8 +37,12 @@ module.exports = function (modules) { }, resolve: { - modules: ['node_modules', path.join(__dirname, '../node_modules')], - extensions: ['.js', '.jsx', '.vue', '.md', '.json'], + modules: [ + 'node_modules', path.join(__dirname, '../node_modules'), + ], + extensions: [ + '.js', '.jsx', '.vue', '.md', '.json', + ], alias: { 'vue$': 'vue/dist/vue.esm.js', '@': process.cwd(), @@ -73,26 +74,24 @@ module.exports = function (modules) { options: { loaders: { js: [ - { loader: 'babel-loader', + { + loader: 'babel-loader', options: { presets: ['env'], - plugins: [ - 'transform-vue-jsx', - 'transform-object-rest-spread', - ], - }}, + plugins: ['transform-vue-jsx', 'transform-object-rest-spread'], + }, + }, ], }, }, }, ], - }, - { + }, { test: /\.(js|jsx)$/, - loader: 'babel-loader', exclude: /node_modules/, + loader: 'babel-loader', + exclude: /node_modules/, options: babelConfig, - }, - { + }, { test: /\.css$/, use: ExtractTextPlugin.extract({ use: [ @@ -101,19 +100,13 @@ module.exports = function (modules) { options: { sourceMap: true, }, - }, - { + }, { loader: 'postcss-loader', - options: Object.assign( - {}, - postcssConfig, - { sourceMap: true } - ), + options: Object.assign({}, postcssConfig, { sourceMap: true }), }, ], }), - }, - { + }, { test: /\.less$/, use: ExtractTextPlugin.extract({ use: [ @@ -122,16 +115,10 @@ module.exports = function (modules) { options: { sourceMap: true, }, - }, - { + }, { loader: 'postcss-loader', - options: Object.assign( - {}, - postcssConfig, - { sourceMap: true } - ), - }, - { + options: Object.assign({}, postcssConfig, { sourceMap: true }), + }, { loader: 'less-loader', options: { sourceMap: true, @@ -144,16 +131,12 @@ module.exports = function (modules) { }, plugins: [ - new ExtractTextPlugin({ - filename: '[name].css', - disable: false, - allChunks: true, - }), + new ExtractTextPlugin({ filename: '[name].css', disable: false, allChunks: true }), new CaseSensitivePathsPlugin(), new webpack.BannerPlugin(` ${distFileBaseName} v${pkg.version} -Copyright 2017-present, vue-antd-ui. +Copyright 2017-present, ant-design-vue. All rights reserved. `), new webpack.ProgressPlugin((percentage, msg, addInfo) => { @@ -187,32 +170,38 @@ All rights reserved. const uncompressedConfig = deepAssign({}, config) - config.plugins = config.plugins.concat([ - new webpack.optimize.UglifyJsPlugin({ - sourceMap: true, - output: { - ascii_only: true, - }, - compress: { - warnings: false, - }, - }), - new webpack.optimize.ModuleConcatenationPlugin(), - new webpack.LoaderOptionsPlugin({ - minimize: true, - }), - new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'), - }), - ]) + config.plugins = config + .plugins + .concat([ + new webpack + .optimize + .UglifyJsPlugin({ + sourceMap: true, + output: { + ascii_only: true, + }, + compress: { + warnings: false, + }, + }), + new webpack + .optimize + .ModuleConcatenationPlugin(), + new webpack.LoaderOptionsPlugin({ minimize: true }), + new webpack.DefinePlugin({ + 'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'production'), + }), + ]) uncompressedConfig.entry = { [distFileBaseName]: entry, } - uncompressedConfig.plugins.push(new webpack.DefinePlugin({ - 'process.env.NODE_ENV': JSON.stringify('development'), - })) + uncompressedConfig + .plugins + .push(new webpack.DefinePlugin({ + 'process.env.NODE_ENV': JSON.stringify('development'), + })) return [config, uncompressedConfig] } diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 78e04c329..d5ad3d4e5 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -137,8 +137,8 @@ function tag () { execSync(`git config --global user.email ${process.env.GITHUB_USER_EMAIL}`) execSync(`git config --global user.name ${process.env.GITHUB_USER_NAME}`) execSync(`git tag ${version}`) - execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git ${version}:${version}`) - execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design.git master:master`) + execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design-vue.git ${version}:${version}`) + execSync(`git push https://${process.env.GITHUB_TOKEN}@github.com/vueComponent/ant-design-vue.git master:master`) console.log('tagged') } diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index 8d1f1005e..bdbe43a39 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -10,7 +10,7 @@ | autoFocus | get focus when component mounted | boolean | false | | backfill | backfill selected item the input when using keyboard | boolean | false | | slot="default" (for customize input element) | customize input element | HTMLInputElement / HTMLTextAreaElement | `` | -| dataSource | Data source for autocomplete | slot \| [DataSourceItemType](https://github.com/vueComponent/ant-design/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | +| dataSource | Data source for autocomplete | slot \| [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | | defaultActiveFirstOption | Whether active first option by default | boolean | true | | defaultValue | Initial selected option. | string\|string\[]\|{ key: string, label: string\|vNodes }\|Array<{ key: string, label: string\|vNodes }> | - | | disabled | Whether disabled select | boolean | false | diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 6936c7952..dfb6fe01b 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -10,7 +10,7 @@ | autoFocus | 自动获取焦点 | boolean | false | | backfill | 使用键盘选择选项的时候把选中项回填到输入框中 | boolean | false | | slot="default" (自定义输入框) | 自定义输入框 | HTMLInputElement / HTMLTextAreaElement | `` | -| dataSource | 自动完成的数据源 | slot \| [DataSourceItemType](https://github.com/vueComponent/ant-design/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | +| dataSource | 自动完成的数据源 | slot \| [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | | defaultActiveFirstOption | 是否默认高亮第一个选项。 | boolean | true | | defaultValue | 指定默认选中的条目 | string\|string\[]\|{ key: string, label: string\|vNodes }\|Array<{ key: string, label: string\|vNodes}> | 无 | | disabled | 是否禁用 | boolean | false | diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md index 92508d73e..c248c7404 100644 --- a/components/calendar/index.en-US.md +++ b/components/calendar/index.en-US.md @@ -27,7 +27,7 @@ customize the progress dot by setting a scoped slot | disabledDate | Function that specifies the dates that cannot be selected | (currentDate: moment) => boolean | - | | fullscreen | Whether to display in full-screen | boolean | `true` | | locale | The calendar's locale | object | [default] -(https://github.com/vueComponent/ant-design/blob/master/components/date-picker/locale/example.json) | +(https://github.com/vueComponent/ant-design-vue/blob/master/components/date-picker/locale/example.json) | | mode | The display mode of the calendar | `month` \| `year` | `month` | | monthCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will be appended to the cell | function(date: moment) | - | | monthFullCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will override the cell | function(date: moment) | - | diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md index 46cdbef7f..be9253c32 100644 --- a/components/calendar/index.zh-CN.md +++ b/components/calendar/index.zh-CN.md @@ -25,7 +25,7 @@ | defaultValue | 默认展示的日期 | [moment](http://momentjs.com/) | 默认日期 | | disabledDate | 不可选择的日期 | (currentDate: moment) => boolean | 无 | | fullscreen | 是否全屏显示 | boolean | true | -| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design/blob/master/components/date-picker/locale/example.json) | +| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/master/components/date-picker/locale/example.json) | | mode | 初始模式,`month/year` | string | month | | monthCellRender | 作用域插槽,自定义渲染月单元格,返回内容会被追加到单元格 | function(date: moment) | 无 | | monthFullCellRender | 作用域插槽,自定义渲染月单元格,返回内容覆盖单元格 | function(date: moment) | 无 | diff --git a/components/carousel/__tests__/__snapshots__/demo.test.js.snap b/components/carousel/__tests__/__snapshots__/demo.test.js.snap index 1f574dc7c..a43594461 100644 --- a/components/carousel/__tests__/__snapshots__/demo.test.js.snap +++ b/components/carousel/__tests__/__snapshots__/demo.test.js.snap @@ -279,63 +279,63 @@ exports[`renders ./components/carousel/demo/customPaging.md correctly 1`] = `
- +
@@ -345,22 +345,22 @@ exports[`renders ./components/carousel/demo/customPaging.md correctly 1`] = ` diff --git a/components/carousel/demo/customPaging.md b/components/carousel/demo/customPaging.md index 2cf06c7eb..e0e39b051 100644 --- a/components/carousel/demo/customPaging.md +++ b/components/carousel/demo/customPaging.md @@ -20,7 +20,7 @@ Custom paging display ```` -We provide some locale like English, Chinese, Russian, German, French and etc, all locale packages can be found in [here](https://github.com/vueComponent/ant-design/tree/master/components/locale-provider). +We provide some locale like English, Chinese, Russian, German, French and etc, all locale packages can be found in [here](https://github.com/vueComponent/ant-design-vue/tree/master/components/locale-provider). Note: if you need to use antd's UMD dist file, please use `antd/dist/antd-with-locales.js` and corresponding moment locale: @@ -43,7 +43,7 @@ const { LocaleProvider, locales } = window.antd; ### Add a new language -If you can't find your language, you are welcome to create a locale package based on [en_US](https://github.com/vueComponent/ant-design/blob/master/components/locale-provider/en_US.js) and send us a pull request. +If you can't find your language, you are welcome to create a locale package based on [en_US](https://github.com/vueComponent/ant-design-vue/blob/master/components/locale-provider/en_US.js) and send us a pull request. ### Other localization needs diff --git a/components/locale-provider/index.zh-CN.md b/components/locale-provider/index.zh-CN.md index 237406827..821370fdc 100644 --- a/components/locale-provider/index.zh-CN.md +++ b/components/locale-provider/index.zh-CN.md @@ -13,7 +13,7 @@ LocaleProvider 使用 Vue 的 [provide/inject](https://cn.vuejs.org/v2/api/#prov ```` -我们提供了英语,中文,俄语,法语,德语等多种语言支持,所有语言包可以在 [这里](https://github.com/vueComponent/ant-design/tree/master/components/locale-provider) 找到。 +我们提供了英语,中文,俄语,法语,德语等多种语言支持,所有语言包可以在 [这里](https://github.com/vueComponent/ant-design-vue/tree/master/components/locale-provider) 找到。 注意:如果你需要使用 UMD 版的 dist 文件,应该引入 `antd/dist/antd-with-locales.js`,同时引入 moment 对应的 locale,然后按以下方式使用: @@ -42,7 +42,7 @@ const { LocaleProvider, locales } = window.antd; ### 增加语言包 -如果你找不到你需要的语言包,欢迎你在 [英文语言包](https://github.com/vueComponent/ant-design/blob/master/components/locale-provider/en_US.js) 的基础上创建一个新的语言包,并给我们 Pull Request。 +如果你找不到你需要的语言包,欢迎你在 [英文语言包](https://github.com/vueComponent/ant-design-vue/blob/master/components/locale-provider/en_US.js) 的基础上创建一个新的语言包,并给我们 Pull Request。 ### 其他国际化需求 diff --git a/components/modal/demo/info.md b/components/modal/demo/info.md index 28d11264c..6c615bb3e 100644 --- a/components/modal/demo/info.md +++ b/components/modal/demo/info.md @@ -19,7 +19,7 @@ In the various types of information modal dialog, only one button to close dialo - ` : '' - newContent += style ? ` + ` + : '' + newContent += style + ? ` - ` : '' - newContent += scopedStyle ? ` + ` + : '' + newContent += scopedStyle + ? ` - ` : '' + ` + : '' const t = new Token('html_block', '', 0) t.content = newContent tokens.push(t) @@ -132,9 +151,7 @@ md.core.ruler.push('update_template', function replace ({ tokens }) { module.exports = { entry: { - index: [ - `./site/${process.env.ENTRY_INDEX || 'index'}.js`, - ], + index: [`./site/${process.env.ENTRY_INDEX || 'index'}.js`], }, module: { rules: [ @@ -143,50 +160,46 @@ module.exports = { use: [ { loader: 'vue-antd-md-loader', - options: Object.assign(md, { wrapper: 'div', + options: Object.assign(md, { + wrapper: 'div', vueLoaderOptions: { loaders: { js: [ - { loader: 'babel-loader', + { + loader: 'babel-loader', options: { presets: ['env'], - plugins: [ - 'transform-vue-jsx', - 'transform-object-rest-spread', - ], - }}, + plugins: ['transform-vue-jsx', 'transform-object-rest-spread'], + }, + }, ], }, }, }), }, ], - }, - { + }, { test: /\.vue$/, loader: 'vue-loader', options: { loaders: { js: [ - { loader: 'babel-loader', + { + loader: 'babel-loader', options: { presets: ['env'], - plugins: [ - 'transform-vue-jsx', - 'transform-object-rest-spread', - 'syntax-dynamic-import', - ], - }}, + plugins: ['transform-vue-jsx', 'transform-object-rest-spread', 'syntax-dynamic-import'], + }, + }, ], }, }, - }, - { + }, { test: /\.(js|jsx)$/, - loader: 'babel-loader', exclude: /node_modules/, + loader: 'babel-loader', + exclude: /node_modules/, options: babelConfig, - }, - { + }, { test: /\.(png|jpg|gif|svg)$/, loader: 'file-loader', options: { @@ -196,12 +209,16 @@ module.exports = { ], }, resolve: { - modules: ['node_modules', path.join(__dirname, '../node_modules')], - extensions: ['.js', '.jsx', '.vue', '.md'], + modules: [ + 'node_modules', path.join(__dirname, '../node_modules'), + ], + extensions: [ + '.js', '.jsx', '.vue', '.md', + ], alias: { 'vue$': 'vue/dist/vue.esm.js', 'antd': path.join(__dirname, 'components'), - 'vue-antd-ui': path.join(__dirname, 'components'), + 'ant-design-vue': path.join(__dirname, 'components'), '@': path.join(__dirname, ''), }, }, diff --git a/webpack.config.js b/webpack.config.js index b751a07b7..22f1bae3a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -7,7 +7,7 @@ const baseWebpackConfig = require('./webpack.base.config') module.exports = merge(baseWebpackConfig, { output: { path: path.resolve(__dirname, './dist'), - publicPath: '/ant-design/', + publicPath: '/ant-design-vue/', filename: 'build.js', }, module: { @@ -39,7 +39,7 @@ module.exports = merge(baseWebpackConfig, { host: '0.0.0.0', historyApiFallback: { rewrites: [ - { from: /./, to: '/ant-design/index.html' }, + { from: /./, to: '/ant-design-vue/index.html' }, ], }, disableHostCheck: true, diff --git a/webpack.site.config.js b/webpack.site.config.js index 4be2041bd..468c3e243 100644 --- a/webpack.site.config.js +++ b/webpack.site.config.js @@ -14,7 +14,7 @@ const modulePlugin = new ExtractTextPlugin({ module.exports = merge(baseWebpackConfig, { output: { path: path.resolve(__dirname, './site-dist'), - publicPath: '/ant-design/', + publicPath: '/ant-design-vue/', filename: '[name].[chunkhash].js', chunkFilename: '[chunkhash].async.js', },