You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
638 B

import Icon from '../icon';
import { isValidElement } from '../_util/props-util';
import { cloneElement } from '../_util/vnode';
export default {
functional: true,
render: function render(h, context) {
var props = context.props;
var suffixIcon = props.suffixIcon,
prefixCls = props.prefixCls;
return (suffixIcon && isValidElement(suffixIcon) ? cloneElement(suffixIcon, {
'class': prefixCls + '-picker-icon'
}) : h(
'span',
{ 'class': prefixCls + '-picker-icon' },
[suffixIcon]
)) || h(Icon, {
attrs: { type: 'calendar' },
'class': prefixCls + '-picker-icon' });
}
};