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