From 2f4281a2273f3db316148c841e10f8eeba7942f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E7=82=B9=E5=8C=85=E5=AD=90?= Date: Sat, 28 Mar 2020 15:52:26 +0800 Subject: [PATCH] feat: update transfer icon (#1969) --- .../__tests__/__snapshots__/demo.test.js.snap | 68 ++++++------------- .../__snapshots__/index.test.js.snap | 12 +--- .../__snapshots__/search.test.js.snap | 8 +-- components/transfer/operation.jsx | 6 +- components/transfer/search.jsx | 7 +- 5 files changed, 32 insertions(+), 69 deletions(-) diff --git a/components/transfer/__tests__/__snapshots__/demo.test.js.snap b/components/transfer/__tests__/__snapshots__/demo.test.js.snap index e247b1b4f..7bef1d57c 100644 --- a/components/transfer/__tests__/__snapshots__/demo.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/demo.test.js.snap @@ -6,7 +6,7 @@ exports[`renders ./antdv-demo/docs/transfer/demo/advanced.md correctly 1`] = `
20 items
-
+
-
+
6 itemsTarget
@@ -128,11 +120,7 @@ exports[`renders ./antdv-demo/docs/transfer/demo/custom-item.md correctly 1`] =
-
+
0 item
@@ -161,7 +149,7 @@ exports[`renders ./antdv-demo/docs/transfer/demo/large-data.md correctly 1`] = `
2000 items
-
+
0 item
-
+
6 items
@@ -2424,13 +2398,11 @@ exports[`renders ./antdv-demo/docs/transfer/demo/table-transfer.md correctly 1`]
diff --git a/components/transfer/__tests__/__snapshots__/index.test.js.snap b/components/transfer/__tests__/__snapshots__/index.test.js.snap index b32fec2be..632355f6d 100644 --- a/components/transfer/__tests__/__snapshots__/index.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/index.test.js.snap @@ -11,11 +11,7 @@ exports[`Transfer should render correctly 1`] = `
-
+
1 item
@@ -37,11 +33,7 @@ exports[`Transfer should show sorted targetkey 1`] = `
-
+
2 items
diff --git a/components/transfer/__tests__/__snapshots__/search.test.js.snap b/components/transfer/__tests__/__snapshots__/search.test.js.snap index 73f6b2a89..3ae519943 100644 --- a/components/transfer/__tests__/__snapshots__/search.test.js.snap +++ b/components/transfer/__tests__/__snapshots__/search.test.js.snap @@ -1,9 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Search should show cross icon when input value exists 1`] = `
`; +exports[`Search should show cross icon when input value exists 1`] = `
`; -exports[`Search should show cross icon when input value exists 2`] = ` -
-`; +exports[`Search should show cross icon when input value exists 2`] = `
`; diff --git a/components/transfer/operation.jsx b/components/transfer/operation.jsx index 31f48a963..16c7d50d8 100644 --- a/components/transfer/operation.jsx +++ b/components/transfer/operation.jsx @@ -1,3 +1,5 @@ +import LeftOutlined from '@ant-design/icons-vue/LeftOutlined'; +import RightOutlined from '@ant-design/icons-vue/RightOutlined'; import PropTypes from '../_util/vue-types'; import { getOptionProps } from '../_util/props-util'; import Button from '../button'; @@ -35,8 +37,8 @@ export default { size="small" disabled={disabled || !rightActive} onClick={moveToRight} - icon="right" > + {rightArrowText}
diff --git a/components/transfer/search.jsx b/components/transfer/search.jsx index 7ee509ac4..d957b3944 100644 --- a/components/transfer/search.jsx +++ b/components/transfer/search.jsx @@ -1,6 +1,7 @@ import PropTypes from '../_util/vue-types'; import { initDefaultProps, getOptionProps } from '../_util/props-util'; -import Icon from '../icon'; +import CloseCircleFilled from '@ant-design/icons-vue/CloseCircleFilled'; +import SearchOutlined from '@ant-design/icons-vue/SearchOutlined'; import Input from '../input'; export const TransferSearchProps = { @@ -33,11 +34,11 @@ export default { const icon = value && value.length > 0 ? ( - + ) : ( - + );