|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
import { cloneVNode, type FunctionalComponent, type PropType } from 'vue'; |
|
|
|
|
import { cloneVNode } from 'vue'; |
|
|
|
|
import type { VNode, FunctionalComponent, PropType } from 'vue'; |
|
|
|
|
import type { MouseEventHandler } from '../_util/EventInterface'; |
|
|
|
|
import type { VueNode } from '../_util/type'; |
|
|
|
|
import PropTypes from '../_util/vue-types'; |
|
|
|
@ -23,7 +24,7 @@ const TransBtn: TransBtnType = (props, { slots }) => {
|
|
|
|
|
if (typeof customizeIcon === 'function') { |
|
|
|
|
icon = customizeIcon(customizeIconProps); |
|
|
|
|
} else { |
|
|
|
|
icon = cloneVNode(customizeIcon); |
|
|
|
|
icon = cloneVNode(customizeIcon as VNode); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|