+
Please select
`;
-exports[`renders ./components/tree-select/demo/treeData.md correctly 1`] = `
-
Please select
-`;
+exports[`renders ./components/tree-select/demo/suffix.md correctly 1`] = `
Please select`;
+
+exports[`renders ./components/tree-select/demo/treeData.md correctly 1`] = `
Please select`;
diff --git a/components/tree-select/demo/basic.md b/components/tree-select/demo/basic.md
index 735280343..39cdbfece 100644
--- a/components/tree-select/demo/basic.md
+++ b/components/tree-select/demo/basic.md
@@ -22,7 +22,7 @@ The most basic usage.
>
-
+
@@ -39,12 +39,13 @@ The most basic usage.
export default {
data () {
return {
+ treeExpandedKeys: [],
value: undefined,
}
},
methods: {
onChange (value) {
- console.log(arguments)
+ console.log(value)
this.value = value
},
},
diff --git a/components/tree-select/demo/checkable.md b/components/tree-select/demo/checkable.md
index 9abca3780..49be73220 100644
--- a/components/tree-select/demo/checkable.md
+++ b/components/tree-select/demo/checkable.md
@@ -18,7 +18,6 @@ Multiple and checkable.
treeCheckable
:showCheckedStrategy="SHOW_PARENT"
searchPlaceholder='Please select'
- treeNodeFilterProp='label'
/>
@@ -27,29 +26,29 @@ import { TreeSelect } from 'ant-design-vue'
const SHOW_PARENT = TreeSelect.SHOW_PARENT
const treeData = [{
- label: 'Node1',
+ title: 'Node1',
value: '0-0',
key: '0-0',
children: [{
- label: 'Child Node1',
+ title: 'Child Node1',
value: '0-0-0',
key: '0-0-0',
}],
}, {
- label: 'Node2',
+ title: 'Node2',
value: '0-1',
key: '0-1',
children: [{
- label: 'Child Node3',
+ title: 'Child Node3',
value: '0-1-0',
key: '0-1-0',
disabled: true,
}, {
- label: 'Child Node4',
+ title: 'Child Node4',
value: '0-1-1',
key: '0-1-1',
}, {
- label: 'Child Node5',
+ title: 'Child Node5',
value: '0-1-2',
key: '0-1-2',
}],
@@ -64,7 +63,7 @@ export default {
},
methods: {
onChange (value) {
- console.log('onChange ', value, arguments)
+ console.log('onChange ', value)
this.value = value
},
},
diff --git a/components/tree-select/demo/index.vue b/components/tree-select/demo/index.vue
index a0e0f736d..7a74cb360 100644
--- a/components/tree-select/demo/index.vue
+++ b/components/tree-select/demo/index.vue
@@ -3,6 +3,7 @@ import Basic from './basic'
import Checkable from './checkable'
import Multiple from './multiple'
import TreeData from './treeData'
+import Suffix from './suffix'
import CN from '../index.zh-CN.md'
import US from '../index.en-US.md'
@@ -35,6 +36,7 @@ export default {
+
diff --git a/components/tree-select/demo/multiple.md b/components/tree-select/demo/multiple.md
index 3fcf57a50..789d9bf89 100644
--- a/components/tree-select/demo/multiple.md
+++ b/components/tree-select/demo/multiple.md
@@ -47,14 +47,14 @@ export default {
},
methods: {
onChange (value) {
- console.log(arguments)
+ console.log(value)
this.value = value
},
onSearch () {
- console.log(arguments)
+ console.log(...arguments)
},
onSelect () {
- console.log(arguments)
+ console.log(...arguments)
},
},
}
diff --git a/components/tree-select/demo/suffix.md b/components/tree-select/demo/suffix.md
new file mode 100644
index 000000000..1ea335936
--- /dev/null
+++ b/components/tree-select/demo/suffix.md
@@ -0,0 +1,54 @@
+
+#### 后缀图标
+最简单的用法。
+
+
+
+#### Suffix
+The most basic usage.
+
+
+```html
+
+
+
+
+
+
+
+
+
+
+ sss
+
+
+
+
+
+
+
+```
diff --git a/components/tree-select/demo/treeData.md b/components/tree-select/demo/treeData.md
index e207ce136..ad386ce80 100644
--- a/components/tree-select/demo/treeData.md
+++ b/components/tree-select/demo/treeData.md
@@ -16,10 +16,9 @@ The tree structure can be populated using `treeData` property. This is a quick a
:treeData="treeData"
placeholder='Please select'
treeDefaultExpandAll
- labelInValue
v-model="value"
>
-
+
Child Node1 {{value}}
@@ -27,22 +26,22 @@ The tree structure can be populated using `treeData` property. This is a quick a