import { computed, defineComponent } from 'vue'; import classNames from '../_util/classNames'; import PropTypes from '../_util/vue-types'; import { tuple } from '../_util/type'; import useConfigInject from '../_util/hooks/useConfigInject'; import type { SkeletonElementProps } from './Element'; import Element, { skeletonElementProps } from './Element'; import omit from '../_util/omit'; export interface SkeletonInputProps extends Omit { size?: 'large' | 'small' | 'default'; } const SkeletonInput = defineComponent({ name: 'ASkeletonInput', props: { ...omit(skeletonElementProps(), ['shape']), size: PropTypes.oneOf(tuple('large', 'small', 'default')), }, setup(props) { const { prefixCls } = useConfigInject('skeleton', props); const cls = computed(() => classNames(prefixCls.value, `${prefixCls.value}-element`, { [`${prefixCls.value}-active`]: props.active, }), ); return () => { return (
); }; }, }); export default SkeletonInput;