import { ExtractPropTypes, InjectionKey, PropType, computed } from "vue"; import { ArrayAble, FormItemContext, FormItemRule } from './lform-item' export const formProps = { model: Object, rules: { type: Object as PropType>> }, showMessage: { type: Boolean, default: false } } as const export type FormProps = Partial> export interface FormContext extends FormProps{ addField: (field: FormItemContext) => void } export const FormContextKey: InjectionKey = Symbol() export const formEmit = [ ]; export const useForm = (props:any, emits:any) => { const lClass = computed(() => { return [ 'l-from', { } ] }) return { lClass } }