diff --git a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap index b69734f8f..d0773d9d3 100644 --- a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap @@ -1,11 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`renders ./antdv-demo/docs/tree-select/demo/async.md correctly 1`] = `Please select`; +exports[`renders ./antdv-demo/docs/tree-select/demo/async.md correctly 1`] = `Please select`; -exports[`renders ./antdv-demo/docs/tree-select/demo/basic.md correctly 1`] = `Please select`; +exports[`renders ./antdv-demo/docs/tree-select/demo/basic.md correctly 1`] = `Please select`; exports[`renders ./antdv-demo/docs/tree-select/demo/checkable.md correctly 1`] = ` -
+
@@ -16,6 +16,6 @@ exports[`renders ./antdv-demo/docs/tree-select/demo/multiple.md correctly 1`] =
Please select
`; -exports[`renders ./antdv-demo/docs/tree-select/demo/suffix.md correctly 1`] = `Please select`; +exports[`renders ./antdv-demo/docs/tree-select/demo/suffix.md correctly 1`] = `Please select`; -exports[`renders ./antdv-demo/docs/tree-select/demo/treeData.md correctly 1`] = `Please select`; +exports[`renders ./antdv-demo/docs/tree-select/demo/treeData.md correctly 1`] = `Please select`; diff --git a/components/tree-select/index.jsx b/components/tree-select/index.jsx index d65d6afa2..ac0ca2db2 100644 --- a/components/tree-select/index.jsx +++ b/components/tree-select/index.jsx @@ -13,7 +13,11 @@ import { ConfigConsumerProps } from '../config-provider'; import Base from '../base'; export { TreeData, TreeSelectProps } from './interface'; -import Icon from '../icon'; +import LoadingOutlined from '@ant-design/icons-vue/LoadingOutlined'; +import CaretDownOutlined from '@ant-design/icons-vue/CaretDownOutlined'; +import DownOutlined from '@ant-design/icons-vue/DownOutlined'; +import CloseOutlined from '@ant-design/icons-vue/CloseOutlined'; +import CloseCircleOutlined from '@ant-design/icons-vue/CloseCircleOutlined'; import omit from 'omit.js'; const TreeSelect = { @@ -51,12 +55,12 @@ const TreeSelect = { }, renderSwitcherIcon(prefixCls, { isLeaf, loading }) { if (loading) { - return ; + return ; } if (isLeaf) { return null; } - return ; + return ; }, onChange() { this.$emit('change', ...arguments); @@ -133,12 +137,12 @@ const TreeSelect = { checkable = ; } - const inputIcon = suffixIcon || ; + const inputIcon = suffixIcon || ; - const finalRemoveIcon = removeIcon || ; + const finalRemoveIcon = removeIcon || ; const finalClearIcon = clearIcon || ( - + ); const VcTreeSelectProps = { props: Object.assign(