diff --git a/README-zh_CN.md b/README-zh_CN.md index 2fead4df9..83ff673a3 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -6,6 +6,7 @@ # [Ant Design Vue](https://vuecomponent.github.io/ant-design/) [](https://travis-ci.org/vueComponent/ant-design) +[](https://codecov.io/gh/vueComponent/ant-design) [](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design) [](https://www.npmjs.org/package/vue-antd-ui) [](http://www.npmtrends.com/vue-antd-ui) diff --git a/README.md b/README.md index 70c435791..3b2d6520c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ # [Ant Design Vue](https://vuecomponent.github.io/ant-design/) [](https://travis-ci.org/vueComponent/ant-design) +[](https://codecov.io/gh/vueComponent/ant-design) [](https://beta.gemnasium.com/projects/github.com/vueComponent/ant-design) [](https://www.npmjs.org/package/vue-antd-ui) [](http://www.npmtrends.com/vue-antd-ui) diff --git a/components/_util/ContainerRender.jsx b/components/_util/ContainerRender.jsx index 523922b95..9540e6db4 100644 --- a/components/_util/ContainerRender.jsx +++ b/components/_util/ContainerRender.jsx @@ -1,8 +1,6 @@ import Vue from 'vue' import PropTypes from './vue-types' -import antRefDirective from './antRefDirective' -Vue.use(antRefDirective) export default { props: { diff --git a/components/calendar/__tests__/__snapshots__/demo.test.js.snap b/components/calendar/__tests__/__snapshots__/demo.test.js.snap new file mode 100644 index 000000000..46891212f --- /dev/null +++ b/components/calendar/__tests__/__snapshots__/demo.test.js.snap @@ -0,0 +1,1658 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders ./components/calendar/demo/basic.md correctly 1`] = ` +
Su | +Mo | +Tu | +We | +Th | +Fr | +Sa | +
---|---|---|---|---|---|---|
+
+
+ 30
+
+ |
+
+
+
+ 31
+
+ |
+
+
+
+ 01
+
+ |
+
+
+
+ 02
+
+ |
+
+
+
+ 03
+
+ |
+
+
+
+ 04
+
+ |
+
+
+
+ 05
+
+ |
+
+
+
+ 06
+
+ |
+
+
+
+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
+
+ 06
+
+ |
+
+
+
+ 07
+
+ |
+
+
+
+ 08
+
+ |
+
+
+
+ 09
+
+ |
+
+
+
+ 10
+
+ |
+
+
+
+ 11
+
+ |
+
+
+
+ 12
+
+ |
+
+
+
+ 13
+
+ |
+
+
+
+ 14
+
+ |
+
+
+
+ 15
+
+ |
+
+
+
+ 16
+
+ |
+
+
+
+ 17
+
+ |
+
+
+
+ 18
+
+ |
+
+
+
+ 19
+
+ |
+
+
+
+ 20
+
+ |
+
+
+
+ 21
+
+ |
+
+
+
+ 22
+
+ |
+
+
+
+ 23
+
+ |
+
+
+
+ 24
+
+ |
+
+
+
+ 25
+
+ |
+
+
+
+ 26
+
+ |
+
+
+
+ 27
+
+ |
+
+
+
+ 28
+
+ |
+
+
+
+ 29
+
+ |
+
+
+
+ 30
+
+ |
+
+
+
+ 31
+
+ |
+
+
+
+ 01
+
+ |
+
+
+
+ 02
+
+ |
+
+
+
+ 03
+
+ |
+
+
+
+ 04
+
+ |
+
+
+
+ 05
+
+ |
+
+
+
+ 06
+
+ |
+
+
+
+ 07
+
+ |
+
+
+
+ 08
+
+ |
+
+
+
+ 09
+
+ |
+
+
+
+ 10
+
+ |
+
+
+
+ 11
+
+ |
+
card content
+card content
+card content
+card content
+card content
+card content
+Card content
+Card content
+Card content
++
+
+
+
Card content
+Card content
+Card content
+app content
++ +
++ + +
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+A dog is a type of domesticated animal.Known for its loyalty and faithfulness,it can be found as a welcome guest in many households across the world.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+ +Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed nonne merninisti licere mihi ista probare, quae sunt a te dicta? Refert tamen, quo modo.
+sub-element align left
+sub-element align center
+sub-element align right
+sub-element monospaced arrangement
+sub-element align full
+Align Top
+col-4
+col-4
+col-4
+col-4
+Align Center
+col-4
+col-4
+col-4
+col-4
+Align Bottom
+col-4
+col-4
+col-4
+col-4
+<Row :gutter="16"> + <Col :span="6"/> + <Col :span="6"/> + <Col :span="6"/> + <Col :span="6"/> +</Row>