import type { FormColumnsType } from '../../libs' import type HyInputProps from '../hy-input/typing' import type HyTextareaProps from '../hy-textarea/typing' import type HySwitchProps from '../hy-switch/typing' import type HyPickerProps from '../hy-picker/typing' import type HyRadioProps from '../hy-radio/typing' import type HyCheckButtonProps from '../hy-check-button/typing' import type { PropType } from 'vue' const formGroupProps = { /** * 表单域提示文字的位置 * @values left, top * */ labelPosition: { type: String, default: 'left' }, /** * label宽度 * */ labelWidth: { type: [String, Number], default: 'auto' }, /** * 是否右对齐 * */ right: { type: Boolean, default: false }, /** * label字体的对齐方式 * @values left,center,right * */ labelAlign: { type: String, default: 'left' }, /** * 显示底部下划线 * */ border: { type: Boolean, default: false }, /** * 是否全部禁用 * */ disabled: { type: Boolean, default: false }, /** * 输入框属性api集合 * */ input: { type: Object as PropType> }, /** * 文本域属性api集合 * */ textarea: { type: Array as PropType> }, /** * 选择器属性api集合 * */ picker: { type: Array as PropType> }, /** * 开关属性api集合 * */ switchItem: { type: Array as PropType> }, /** * 单选属性api集合 * */ radio: { type: Array as PropType> }, /** * 选择按钮属性api集合 * */ checkButton: { type: Array as PropType> }, /** * 表单配置 * */ columns: { type: Array as PropType }, /** * 表单值 * */ formData: { type: Object as PropType> } } export default formGroupProps