From 380e4cd53dd893e142a19966fc7a0b19c69cb9f4 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sat, 5 Jan 2019 11:24:25 +0800 Subject: [PATCH] perf: some code --- .../__tests__/__snapshots__/demo.test.js.snap | 2 +- .../__tests__/__snapshots__/demo.test.js.snap | 4 +- components/modal/Modal.jsx | 2 +- components/modal/confirm.js | 3 +- components/pagination/Pagination.jsx | 2 - .../__snapshots__/index.test.js.snap | 12 + components/progress/__tests__/index.test.js | 5 + components/spin/Spin.jsx | 20 +- .../__snapshots__/index.test.js.snap | 12 +- .../__snapshots__/Table.filter.test.js.snap | 64 ++-- .../Table.pagination.test.js.snap | 68 ++-- .../Table.rowSelection.test.js.snap | 173 +++++---- .../__snapshots__/Table.test.js.snap | 67 +++- .../__snapshots__/empty.test.js.snap | 337 +++++++++++++++--- components/vc-menu/MenuItem.jsx | 2 +- 15 files changed, 552 insertions(+), 221 deletions(-) diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 7403a0621..cd35ad056 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -545,7 +545,7 @@ exports[`renders ./components/form/demo/validate-other.vue correctly 1`] = `
Name |
---|
- Jack | -
- Lucy | -
- Tom | -
- Jerry | -
+ Name
+ |
+
---|
+ Jack | +
+ Lucy | +
+ Tom | +
+ Jerry | +
-
- |
-
- Name
- |
-
---|---|
- | - Jack | -
- | - Lucy | -
- | - Tom | -
- | - Jerry | -
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
|
- |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | |||||||||||||||
- | |||||||||||||||
- | |||||||||||||||
- |
Name | Age | |
---|---|---|
First Name | Last Name | |
- John | -Brown | -32 | -
- Jim | -Green | -42 | -
+ Name
+ |
+
+ Age
+ |
+ |
---|---|---|
+ First Name
+ |
+
+ Last Name
+ |
+ |
+ John | +Brown | +32 | +
+ Jim | +Green | +42 | +
Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 |
---|
+ Column 1
+ |
+
+ Column 2
+ |
+
+ Column 3
+ |
+
+ Column 4
+ |
+
+ Column 5
+ |
+
+ Column 6
+ |
+
+ Column 7
+ |
+
+ Column 8
+ |
+
---|
Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 |
---|
+ Column 1
+ |
+
+ Column 2
+ |
+
+ Column 3
+ |
+
+ Column 4
+ |
+
+ Column 5
+ |
+
+ Column 6
+ |
+
+ Column 7
+ |
+
+ Column 8
+ |
+
---|
Full Name | Age | Column 1 | Column 2 | Column 3 | Column 4 | Column 5 | Column 6 | Column 7 | Column 8 | Action |
---|
Full Name | Age |
---|
Action |
---|
+ Full Name
+ |
+
+ Age
+ |
+
+ Column 1
+ |
+
+ Column 2
+ |
+
+ Column 3
+ |
+
+ Column 4
+ |
+
+ Column 5
+ |
+
+ Column 6
+ |
+
+ Column 7
+ |
+
+ Column 8
+ |
+
+ Action
+ |
+
---|
+ Full Name
+ |
+
+ Age
+ |
+
---|
+ Action
+ |
+
---|
- Column 1
- |
-
- Column 2
- |
-
- Column 3
- |
-
- Column 4
- |
-
- Column 5
- |
-
- Column 6
- |
-
- Column 7
- |
-
- Column 8
- |
-
---|
+ Column 1
+ |
+
+ Column 2
+ |
+
+ Column 3
+ |
+
+ Column 4
+ |
+
+ Column 5
+ |
+
+ Column 6
+ |
+
+ Column 7
+ |
+
+ Column 8
+ |
+
---|