
import { Input } from 'antd';
import { Settings, InputSettingsProps } from './settings';

// 定义组件属性类型
interface InputProps {
  text?: string;
  size?: 'small' | 'middle' | 'large';
  placeholder?: string;
}

// 输入框组件
const Component: React.FC<InputProps> = (props) => {
  const { text = '', size = 'middle', placeholder = '请输入...' } = props;
  
  return (
    <Input 
      value={text}
      size={size}
      placeholder={placeholder}
      style={{
        width: '100%',
      }}
    />
  );
};
export interface InputUMDModule {
  Component: React.FC<InputProps>;
  Settings: React.FC<InputSettingsProps>;
  type: string;
  name: string;
  defaultProps:InputProps
}
declare global {
  interface Window {
    BaseInput?: InputUMDModule;
  }
}
export const type = 'input'
export const defaultProps = {
  text:'按钮1'
}
export { Component, Settings };