@ -4,6 +4,7 @@ import type { DefaultOptionType, SingleValueType } from '../Cascader';
import { SEARCH _MARK } from '../hooks/useSearchOptions' ;
import { SEARCH _MARK } from '../hooks/useSearchOptions' ;
import type { Key } from '../../_util/type' ;
import type { Key } from '../../_util/type' ;
import { useInjectCascader } from '../context' ;
import { useInjectCascader } from '../context' ;
import { cloneVNode } from 'vue' ;
export const FIX _LABEL = '__cascader_fix_label__' ;
export const FIX _LABEL = '__cascader_fix_label__' ;
export interface ColumnProps {
export interface ColumnProps {
prefixCls : string ;
prefixCls : string ;
@ -151,10 +152,10 @@ export default function Column({
) }
) }
< div class = { ` ${ menuItemPrefixCls } -content ` } > { label } < / div >
< div class = { ` ${ menuItemPrefixCls } -content ` } > { label } < / div >
{ ! isLoading && expandIcon && ! isMergedLeaf && (
{ ! isLoading && expandIcon && ! isMergedLeaf && (
< div class = { ` ${ menuItemPrefixCls } -expand-icon ` } > { expandIcon} < / div >
< div class = { ` ${ menuItemPrefixCls } -expand-icon ` } > { cloneVNode( expandIcon) } < / div >
) }
) }
{ isLoading && loadingIcon && (
{ isLoading && loadingIcon && (
< div class = { ` ${ menuItemPrefixCls } -loading-icon ` } > { loadingIcon} < / div >
< div class = { ` ${ menuItemPrefixCls } -loading-icon ` } > { cloneVNode( loadingIcon) } < / div >
) }
) }
< / li >
< / li >
) ;
) ;