ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
1 lines • 6.29 kB
Source Map (JSON)
{"version":3,"file":"props.cjs","sources":["../../../../../packages/element/form/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType, VNode } from 'vue'\nimport { formProps as elFormProps } from 'element-plus'\nimport type { FormColumn } from '../../types'\n\nexport const RowJustify = [\n 'start',\n 'center',\n 'end',\n 'space-around',\n 'space-between',\n 'space-evenly',\n] as const\n\nexport const RowAlign = ['top', 'middle', 'bottom'] as const\n\nexport const formProps = {\n ...elFormProps,\n rules: elFormProps.rules,\n modelValue: {\n type: [Object, Array] as PropType<any>,\n default: () => ({}),\n },\n activeCollapse: {\n type: [Array, String] as PropType<string[] | string>,\n default: () => [],\n },\n columns: {\n type: Array as PropType<FormColumn[]>,\n default: () => [],\n },\n options: {\n type: Object,\n default: () => {},\n },\n colon: {\n type: Boolean,\n default: false,\n },\n gutter: {\n type: Number,\n default: 0,\n },\n justify: {\n type: String,\n values: RowJustify,\n default: 'start',\n },\n align: {\n type: String,\n values: RowAlign,\n default: 'top',\n },\n column: {\n type: Number,\n },\n type: {\n type: String as PropType<'normal' | 'group' | 'array' | 'collapse' | 'step'>,\n default: 'normal',\n },\n contentPosition: {\n type: String as PropType<'left' | 'right' | 'center'>,\n default: 'center',\n },\n borderStyle: {\n type: String as PropType<'none' | 'solid' | 'hidden' | 'dashed' | ''>,\n default: 'solid',\n },\n accordion: {\n type: Boolean,\n default: false,\n },\n processStatus: {\n type: String as PropType<'wait' | 'process' | 'finish' | 'error' | 'success'>,\n default: 'process',\n },\n finishStatus: {\n type: String as PropType<'wait' | 'process' | 'finish' | 'error' | 'success'>,\n default: 'success',\n },\n simple: {\n type: Boolean,\n default: false,\n },\n max: {\n type: Number,\n },\n min: {\n type: Number,\n },\n activeStep: {\n type: Number,\n default: 0,\n },\n footer: {\n type: [Boolean, Function] as PropType<boolean | (() => VNode)>,\n },\n draggable: {\n type: Boolean,\n default: false,\n },\n action: {\n type: [Boolean, Function] as PropType<boolean | (() => VNode)>,\n default: true,\n },\n}\n\nexport const formItemProps = {\n formConfig: {\n type: Object,\n default: () => ({}),\n },\n modelValue: {\n type: Object,\n default: () => ({ }),\n },\n options: {\n type: Object,\n default: () => ({ }),\n },\n col: {\n type: Object as PropType<FormColumn>,\n default: () => ({ }),\n },\n}\n\nexport const filterFormProps = {\n ...formProps,\n collapsed: {\n type: Boolean,\n default: true,\n },\n filterHiddenFields: {\n type: Boolean,\n default: true,\n },\n searchButtonLoading: {\n type: Boolean,\n default: false,\n },\n searchButtonLabel: {\n type: String,\n },\n resetButtonLabel: {\n type: String,\n },\n resetButtonLoading: {\n type: Boolean,\n default: false,\n },\n searchButtonProps: {\n type: Object,\n default: () => ({}),\n },\n resetButtonProps: {\n type: Object,\n default: () => ({}),\n },\n renderOperation: {\n type: Function as PropType<() => VNode>,\n },\n}\n\nexport type ToggleButtonType = 'up' | 'expand'\nexport type FormProps = ExtractPropTypes<typeof formProps>\nexport type FormItemProps = ExtractPropTypes<typeof formItemProps>\nexport type FilterFormProps = ExtractPropTypes<typeof filterFormProps>\nexport const formProvideKey = Symbol('formKey')\nexport const formItemProvideKey = Symbol('formItemKey')\nexport const FORM_ITEM_FILTER_KEYS = ['children', 'max', 'field', 'fieldProps']\nexport const FORM_FILTER_KEYS = [\n 'gutter',\n 'justify',\n 'align',\n 'options',\n 'modelValue',\n 'columns',\n 'children',\n 'colon',\n 'activeCollapse',\n 'type',\n 'contentPosition',\n 'borderStyle',\n 'accordion',\n 'processStatus',\n 'finishStatus',\n 'simple',\n 'max',\n 'collapsed',\n 'searchButtonLoading',\n 'searchButtonLabel',\n 'resetButtonLabel',\n 'resetButtonLoading',\n 'searchButtonProps',\n 'resetButtonProps',\n 'renderOperation',\n 'footer',\n 'activeStep',\n]\n"],"names":["RowJustify","RowAlign","formProps","elementPlus","formItemProps","filterFormProps","formProvideKey","formItemProvideKey","FORM_ITEM_FILTER_KEYS","FORM_FILTER_KEYS"],"mappings":"gHAIOA,EAAA,CAAmB,QACxB,SACA,MACA,eACA,gBACA,cAEF,EAEOC,EAAA,CAAA,MAAA,SAAA,QAAA,EAEAC,EAAA,CAAkB,GAAAC,EAAA,UACpB,MAAAA,EAAA,UAAA,MACgB,WAAA,CACP,KAAA,CAAA,OAAA,KAAA,EACU,QAAA,KAAA,CAAA,EACH,EACnB,eAAA,CACgB,KAAA,CAAA,MAAA,MAAA,EACM,QAAA,IAAA,CAAA,CACJ,EAClB,QAAA,CACS,KAAA,MACD,QAAA,IAAA,CAAA,CACU,EAClB,QAAA,CACS,KAAA,OACD,QAAA,IAAA,CACS,CAAC,EAClB,MAAA,CACO,KAAA,QACC,QAAA,EACG,EACX,OAAA,CACQ,KAAA,OACA,QAAA,CACG,EACX,QAAA,CACS,KAAA,OACD,OAAAH,EACE,QAAA,OACC,EACX,MAAA,CACO,KAAA,OACC,OAAAC,EACE,QAAA,KACC,EACX,OAAA,CACQ,KAAA,MACA,EACR,KAAA,CACM,KAAA,OACE,QAAA,QACG,EACX,gBAAA,CACiB,KAAA,OACT,QAAA,QACG,EACX,YAAA,CACa,KAAA,OACL,QAAA,OACG,EACX,UAAA,CACW,KAAA,QACH,QAAA,EACG,EACX,cAAA,CACe,KAAA,OACP,QAAA,SACG,EACX,aAAA,CACc,KAAA,OACN,QAAA,SACG,EACX,OAAA,CACQ,KAAA,QACA,QAAA,EACG,EACX,IAAA,CACK,KAAA,MACG,EACR,IAAA,CACK,KAAA,MACG,EACR,WAAA,CACY,KAAA,OACJ,QAAA,CACG,EACX,OAAA,CACQ,KAAA,CAAA,QAAA,QAAA,CACkB,EAC1B,UAAA,CACW,KAAA,QACH,QAAA,EACG,EACX,OAAA,CACQ,KAAA,CAAA,QAAA,QAAA,EACkB,QAAA,EACf,CAEb,EAEOG,EAAA,CAAsB,WAAA,CACf,KAAA,OACJ,QAAA,KAAA,CAAA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