import { defineComponent } from 'vue'; import FileTextOutlined from '@ant-design/icons-vue/FileTextOutlined'; import { floatButtonContentProps } from './interface'; import { filterEmpty } from '../_util/props-util'; const FloatButtonContent = defineComponent({ compatConfig: { MODE: 3 }, name: 'AFloatButtonContent', inheritAttrs: false, props: floatButtonContentProps(), setup(props, { attrs, slots }) { return () => { const { prefixCls } = props; const description = filterEmpty(slots.description?.()); return (
{slots.icon || description.length ? ( <> {slots.icon &&
{slots.icon()}
} {description.length ? (
{description}
) : null} ) : (
)}
); }; }, }); export default FloatButtonContent;