We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db7b0a commit 7082d6fCopy full SHA for 7082d6f
components/vc-cascader/Menus.jsx
@@ -4,6 +4,7 @@ import arrayTreeFilter from 'array-tree-filter'
4
import BaseMixin from '../_util/BaseMixin'
5
6
export default {
7
+ name: 'CascaderMenus',
8
mixins: [BaseMixin],
9
props: {
10
value: PropTypes.array.def([]),
@@ -46,13 +47,14 @@ export default {
46
47
const onSelect = (e) => {
48
this.__emit('select', option, menuIndex, e)
49
}
50
+ const key = option[this.getFieldName('value')]
51
const expandProps = {
52
attrs: {
53
},
54
on: {
55
click: onSelect,
56
- key: option[this.getFieldName('value')],
57
+ key: Array.isArray(key) ? key.join('__ant__') : key,
58
59
let menuItemCls = `${prefixCls}-menu-item`
60
const hasChildren = option[this.getFieldName('children')] &&
0 commit comments