{"version":3,"file":"props.cjs","sources":["../../../../../../packages/components/descriptions/src/props.ts"],"sourcesContent":["import type { Breakpoint } from '@antdv/types';\nimport type { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';\nimport { PropTypes } from '@antdv/utils';\nimport { DEFAULT_COLUMN_MAP } from './constants';\n\nexport const DescriptionsItemProps = {\n  prefixCls: String,\n  label: PropTypes.any,\n  span: Number,\n};\n\nexport function descriptionsItemProp() {\n  return {\n    prefixCls: String,\n    label: PropTypes.any,\n    labelStyle: { type: Object as PropType<CSSProperties>, default: () => ({}) },\n    contentStyle: { type: Object as PropType<CSSProperties>, default: () => ({}) },\n    span: { type: Number, default: 1 },\n  };\n}\n\nexport function descriptionsProps() {\n  return {\n    prefixCls: String,\n    bordered: { type: Boolean, default: undefined },\n    size: { type: String as PropType<'default' | 'middle' | 'small'>, default: 'default' },\n    title: PropTypes.any,\n    extra: PropTypes.any,\n    column: {\n      type: [Number, Object] as PropType<number | Partial<Record<Breakpoint, number>>>,\n      default: (): number | Partial<Record<Breakpoint, number>> => DEFAULT_COLUMN_MAP,\n    },\n    layout: String as PropType<'horizontal' | 'vertical'>,\n    colon: { type: Boolean, default: undefined },\n    labelStyle: { type: Object as PropType<CSSProperties>, default: () => ({}) },\n    contentStyle: { type: Object as PropType<CSSProperties>, default: () => ({}) },\n  };\n}\n\nexport type DescriptionsProps = HTMLAttributes & Partial<ExtractPropTypes<ReturnType<typeof descriptionsProps>>>;\n\nexport type DescriptionsItemProp = Partial<ExtractPropTypes<ReturnType<typeof descriptionsItemProp>>>;\n"],"names":["PropTypes","DEFAULT_COLUMN_MAP"],"mappings":";;;;;;AAKO,MAAM,qBAAwB,GAAA;AAAA,EACnC,SAAW,EAAA,MAAA;AAAA,EACX,OAAOA,gBAAU,CAAA,GAAA;AAAA,EACjB,IAAM,EAAA,MAAA;AACR,EAAA;AAEO,SAAS,oBAAuB,GAAA;AACrC,EAAO,OAAA;AAAA,IACL,SAAW,EAAA,MAAA;A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