import { type InputOption } from './Input.vue'; import { DateItem } from '../type'; import type { DefineComponent } from 'vue' export type FormItem = { id: string; name: string; type?: 'text' | 'number' | 'password' | 'select' | 'textarea' | 'date'; value: string; placeholder?: string; disabled?: boolean; readonly?: boolean; width?: string; height?: string; options?: InputOption[]; /** 是否启用选项过滤 (仅 type 为 select 时有效) */ filter?: boolean; /** 格式化 (仅 type 为 date 时有效) */ format?: (date: DateItem) => string; /** 是否启用校验(仅 type 为 select 或 date 时有效) */ verify?: boolean; /** 弹窗 z-index(仅 type 为 select 或 date 时有效)*/ zIndex?: number; /** 是否警告 */ warning?: boolean; } interface Props { /** 表单项默认宽 */ itemWidth?: string; /** 标单项默认高 */ itemHeight?: string; } declare const _default: DefineComponent export default _default