From 0ce9d646a7396d7854e9c61f33224899e88fbaf3 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Wed, 28 Nov 2018 21:58:42 +0800 Subject: [PATCH 1/2] feat: update back-top badge breadcrumb button calendar card carousel cascader collapse --- .../__tests__/__snapshots__/demo.test.js.snap | 76 ++- components/anchor/demo/index.vue | 2 +- components/back-top/demo/index.vue | 1 + components/badge/Badge.jsx | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- components/badge/demo/index.vue | 2 + .../__tests__/__snapshots__/demo.test.js.snap | 2 +- components/breadcrumb/demo/index.vue | 1 + .../__tests__/__snapshots__/demo.test.js.snap | 67 ++- .../__snapshots__/index.test.js.snap | 30 +- components/button/button.jsx | 23 +- components/button/demo/index.vue | 1 + components/button/index.en-US.md | 2 +- components/button/index.zh-CN.md | 4 +- components/calendar/Header.jsx | 2 +- .../__snapshots__/index.test.js.snap | 306 ++++++++++++ components/calendar/__tests__/index.test.js | 12 + components/calendar/demo/index.vue | 1 + components/calendar/index.en-US.md | 2 +- components/calendar/index.jsx | 15 +- components/calendar/locale/mn_MN.js | 2 + .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__snapshots__/index.test.js.snap | 14 + components/card/__tests__/index.test.js | 12 + components/card/demo/index.vue | 1 + .../__tests__/__snapshots__/demo.test.js.snap | 10 +- components/carousel/demo/index.vue | 1 + components/carousel/index.en-US.md | 2 +- components/carousel/index.jsx | 4 +- components/carousel/index.zh-CN.md | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 64 ++- .../__snapshots__/index.test.js.snap | 7 +- .../__tests__/__snapshots__/demo.test.js.snap | 5 +- components/collapse/demo/index.vue | 1 + .../__snapshots__/DatePicker.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 5 +- .../__tests__/__snapshots__/demo.test.js.snap | 36 +- .../__tests__/__snapshots__/demo.test.js.snap | 28 +- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__snapshots__/index.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 96 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 18 +- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__snapshots__/index.test.js.snap | 438 ++++++++++++------ .../__tests__/__snapshots__/demo.test.js.snap | 92 ++-- .../__snapshots__/index.test.js.snap | 5 +- .../__tests__/__snapshots__/demo.test.js.snap | 50 +- .../__snapshots__/index.test.js.snap | 6 +- .../__tests__/__snapshots__/demo.test.js.snap | 242 +++++++--- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- .../__tests__/__snapshots__/demo.test.js.snap | 8 +- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__snapshots__/Table.filter.test.js.snap | 2 +- .../__snapshots__/Table.sorter.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 62 ++- .../__tests__/__snapshots__/demo.test.js.snap | 22 +- .../__tests__/__snapshots__/demo.test.js.snap | 24 +- .../__tests__/__snapshots__/demo.test.js.snap | 9 +- .../__tests__/__snapshots__/demo.test.js.snap | 42 +- .../__snapshots__/index.test.js.snap | 12 +- .../__snapshots__/search.test.js.snap | 7 +- .../__tests__/__snapshots__/demo.test.js.snap | 20 +- .../__tests__/__snapshots__/demo.test.js.snap | 34 +- .../__snapshots__/uploadlist.test.js.snap | 44 +- 65 files changed, 1541 insertions(+), 493 deletions(-) create mode 100644 components/calendar/__tests__/__snapshots__/index.test.js.snap create mode 100644 components/calendar/locale/mn_MN.js diff --git a/components/alert/__tests__/__snapshots__/demo.test.js.snap b/components/alert/__tests__/__snapshots__/demo.test.js.snap index 23160bc1e..9a54cd606 100644 --- a/components/alert/__tests__/__snapshots__/demo.test.js.snap +++ b/components/alert/__tests__/__snapshots__/demo.test.js.snap @@ -2,10 +2,18 @@ exports[`renders ./components/alert/demo/banner.md correctly 1`] = `
Su | +Mo | +Tu | +We | +Th | +Fr | +Sa | +
---|---|---|---|---|---|---|
+
+
+ 30
+
+ |
+
+
+
+ 01
+
+ |
+
+
+
+ 02
+
+ |
+
+
+
+ 03
+
+ |
+
+
+
+ 04
+
+ |
+
+
+
+ 05
+
+ |
+
+
+
+ 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
+
+ |
+
Card content
+Card 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.
diff --git a/components/collapse/demo/index.vue b/components/collapse/demo/index.vue index 3a671fb60..3536dd1e5 100644 --- a/components/collapse/demo/index.vue +++ b/components/collapse/demo/index.vue @@ -29,6 +29,7 @@ const md = { export default { category: 'Components', type: 'Data Display', + zhType: '数据展示', title: 'Collapse', subtitle: '折叠面板', cols: 1, diff --git a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap index 0fa634fcb..1a5e51c50 100644 --- a/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +++ b/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`DatePicker prop locale should works 1`] = `