UNPKG

element-plus

Version:

A Component Library for Vue 3

53 lines (50 loc) 1.01 kB
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs'; import { componentSizes } from '../../../constants/size.mjs'; const formItemValidateStates = [ "", "error", "validating", "success" ]; const formItemProps = buildProps({ label: String, labelWidth: { type: [String, Number], default: "" }, labelPosition: { type: String, values: ["left", "right", "top", ""], default: "" }, prop: { type: definePropType([String, Array]) }, required: { type: Boolean, default: void 0 }, rules: { type: definePropType([Object, Array]) }, error: String, validateStatus: { type: String, values: formItemValidateStates }, for: String, inlineMessage: { type: [String, Boolean], default: "" }, showMessage: { type: Boolean, default: true }, size: { type: String, values: componentSizes } }); export { formItemProps, formItemValidateStates }; //# sourceMappingURL=form-item.mjs.map