UNPKG

wot-design-uni

Version:

一个基于Vue3+TS开发的uni-app组件库,提供70+高质量组件,支持暗黑模式、国际化和自定义主题。

17 lines (14 loc) 528 B
import type { ExtractPropTypes } from 'vue' import { baseProps, makeArrayProp, makeBooleanProp, makeRequiredProp, makeStringProp } from '../common/props' import type { FormItemRule } from '../wd-form/types' export const formItemProps = { ...baseProps, prop: makeRequiredProp(String), rules: makeArrayProp<FormItemRule>(), required: Boolean, center: makeBooleanProp(false), label: String, labelWidth: makeStringProp('100px'), isLink: Boolean } export type FormItemProps = ExtractPropTypes<typeof formItemProps>