diff --git a/components/steps/__tests__/__snapshots__/demo.test.js.snap b/components/steps/__tests__/__snapshots__/demo.test.js.snap index a3063b6a7..ebb9ec8c5 100644 --- a/components/steps/__tests__/__snapshots__/demo.test.js.snap +++ b/components/steps/__tests__/__snapshots__/demo.test.js.snap @@ -122,7 +122,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/error.md correctly 1`] = `
-
+
Finished
This is a description.
@@ -132,7 +132,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/error.md correctly 1`] = `
-
+
In Progress
This is a description.
@@ -157,7 +157,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/icon.md correctly 1`] = `
-
+
Login
@@ -166,7 +166,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/icon.md correctly 1`] = `
-
+
Verification
@@ -175,7 +175,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/icon.md correctly 1`] = `
-
+
Pay
@@ -184,7 +184,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/icon.md correctly 1`] = `
-
+
Done
@@ -199,7 +199,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/nav.md correctly 1`] = `
-
+
Step 1
00:00:05
@@ -234,7 +234,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/nav.md correctly 1`] = `
-
+
Step 1
@@ -272,7 +272,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/nav.md correctly 1`] = `
-
+
finish 1
@@ -281,7 +281,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/nav.md correctly 1`] = `
-
+
finish 2
@@ -404,7 +404,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/simple.md correctly 1`] = `
-
+
Finished @@ -442,7 +442,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/small-size.md correctly 1`] = `
-
+
Finished
@@ -513,7 +513,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/vertical.md correctly 1`] = `
-
+
Finished
This is a description.
@@ -548,7 +548,7 @@ exports[`renders ./antdv-demo/docs/steps/demo/vertical-small.md correctly 1`] =
-
+
Finished
This is a description.
diff --git a/components/steps/index.jsx b/components/steps/index.jsx index 6d50e5755..2c60e6c81 100644 --- a/components/steps/index.jsx +++ b/components/steps/index.jsx @@ -1,7 +1,8 @@ +import CloseOutlined from '@ant-design/icons-vue/CloseOutlined'; +import CheckOutlined from '@ant-design/icons-vue/CheckOutlined'; import PropTypes from '../_util/vue-types'; import { initDefaultProps, getOptionProps, getListeners } from '../_util/props-util'; import VcSteps from '../vc-steps'; -import Icon from '../icon'; import { ConfigConsumerProps } from '../config-provider'; import Base from '../base'; @@ -42,8 +43,8 @@ const Steps = { const iconPrefix = getPrefixCls('', customizeIconPrefixCls); const icons = { - finish: , - error: , + finish: , + error: , }; const stepsProps = { props: { diff --git a/components/switch/__tests__/__snapshots__/demo.test.js.snap b/components/switch/__tests__/__snapshots__/demo.test.js.snap index f6de9f256..196bc8e51 100644 --- a/components/switch/__tests__/__snapshots__/demo.test.js.snap +++ b/components/switch/__tests__/__snapshots__/demo.test.js.snap @@ -4,14 +4,8 @@ exports[`renders ./antdv-demo/docs/switch/demo/basic.md correctly 1`] = `

`; -exports[`renders ./antdv-demo/docs/switch/demo/loading.md correctly 1`] = ` -

-`; +exports[`renders ./antdv-demo/docs/switch/demo/loading.md correctly 1`] = `

`; exports[`renders ./antdv-demo/docs/switch/demo/size.md correctly 1`] = `

`; -exports[`renders ./antdv-demo/docs/switch/demo/text.md correctly 1`] = `


`; +exports[`renders ./antdv-demo/docs/switch/demo/text.md correctly 1`] = `


`; diff --git a/components/switch/index.jsx b/components/switch/index.jsx index fae809549..cbf7e9435 100644 --- a/components/switch/index.jsx +++ b/components/switch/index.jsx @@ -1,8 +1,8 @@ +import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined'; import PropTypes from '../_util/vue-types'; import hasProp, { getOptionProps, getComponentFromProp, getListeners } from '../_util/props-util'; import VcSwitch from '../vc-switch'; import Wave from '../_util/wave'; -import Icon from '../icon'; import { ConfigConsumerProps } from '../config-provider'; import Base from '../base'; import warning from '../_util/warning'; @@ -58,7 +58,7 @@ const Switch = { [`${prefixCls}-loading`]: loading, }; const loadingIcon = loading ? ( - + ) : null; const switchProps = { props: { diff --git a/components/tabs/TabBar.jsx b/components/tabs/TabBar.jsx index aba267d77..a961b9bf9 100644 --- a/components/tabs/TabBar.jsx +++ b/components/tabs/TabBar.jsx @@ -1,4 +1,7 @@ -import Icon from '../icon'; +import UpOutlined from '@ant-design/icons-vue/UpOutlined'; +import DownOutlined from '@ant-design/icons-vue/DownOutlined'; +import LeftOutlined from '@ant-design/icons-vue/LeftOutlined'; +import RightOutlined from '@ant-design/icons-vue/RightOutlined'; import ScrollableInkTabBar from '../vc-tabs/src/ScrollableInkTabBar'; import { cloneElement } from '../_util/vnode'; const TabBar = { @@ -17,16 +20,22 @@ const TabBar = { const inkBarAnimated = typeof animated === 'object' ? animated.inkBar : animated; const isVertical = tabPosition === 'left' || tabPosition === 'right'; - const prevIconType = isVertical ? 'up' : 'left'; - const nextIconType = isVertical ? 'down' : 'right'; const prevIcon = ( - + { + isVertical ? + : + + } ); const nextIcon = ( - + { + isVertical ? + : + + } ); diff --git a/components/tabs/__tests__/__snapshots__/demo.test.js.snap b/components/tabs/__tests__/__snapshots__/demo.test.js.snap index 029fce7c1..a4c255ded 100644 --- a/components/tabs/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tabs/__tests__/__snapshots__/demo.test.js.snap @@ -4,7 +4,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/basic.md correctly 1`] = `
-
+
@@ -35,7 +35,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/basic.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/tabs/demo/card.md correctly 1`] = `
-
+
@@ -66,7 +66,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/card-top.md correctly 1`] = `
-
+
@@ -103,20 +103,16 @@ exports[`renders ./antdv-demo/docs/tabs/demo/custom-add-trigger.md correctly 1`]
-
+
@@ -143,7 +139,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/custom-tab-bar.md correctly 1`] = `
-
+
@@ -174,7 +170,7 @@ exports[`renders ./antdv-demo/docs/tabs/demo/custom-tab-bar.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/tabs/demo/disabled.md correctly 1`] = `
-
+
@@ -204,21 +200,17 @@ exports[`renders ./antdv-demo/docs/tabs/demo/disabled.md correctly 1`] = ` exports[`renders ./antdv-demo/docs/tabs/demo/editable-card.md correctly 1`] = `
-
-
+
+