vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.99 kB
Source Map (JSON)
{"version":3,"file":"props.mjs","sources":["../../../components/row/props.ts"],"sourcesContent":["import { buildProps } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { ColumnFlex, ColumnOptions, RowGridAlign, RowGridJustify } from './symbol'\n\nexport const rowProps = buildProps({\n tag: String,\n gap: [Number, Array] as PropType<number | number[]>,\n justify: String as PropType<RowGridJustify>,\n align: String as PropType<RowGridAlign>,\n columnFlex: {\n type: [Boolean, Object] as PropType<boolean | Partial<ColumnFlex>>,\n default: null,\n },\n})\n\nexport type RowProps = ExtractPropTypes<typeof rowProps>\nexport type RowCProps = ConfigurableProps<RowProps>\n\nconst mediaProp = [Number, Object] as PropType<number | ColumnOptions>\n\nexport const columnProps = buildProps({\n tag: String,\n span: Number,\n offset: Number,\n push: Number,\n pull: Number,\n order: Number,\n xs: mediaProp,\n sm: mediaProp,\n md: mediaProp,\n lg: mediaProp,\n xl: mediaProp,\n xxl: mediaProp,\n flex: [Number, String],\n useFlex: {\n type: [Boolean, Object] as PropType<boolean | Partial<ColumnFlex>>,\n default: null,\n },\n})\n\nexport type ColumnProps = ExtractPropTypes<typeof columnProps>\nexport type ColumnCProps = ConfigurableProps<ColumnProps>\n"],"names":["rowProps","buildProps","mediaProp","columnProps"],"mappings":";AAMO,MAAMA,IAAWC,EAAW;AAAA,EACjC,KAAK;AAAA,EACL,KAAK,CAAC,QAAQ,KAAK;AAAA,EACnB,SAAS;AAAA,EACT,OAAO;AAAA,EACP,YAAY;AAAA,IACV,MAAM,CAAC,SAAS,MAAM;AAAA,IACtB,SAAS;AAAA,EAAA;AAEb,CAAC,GAKKC,IAAY,CAAC,QAAQ,MAAM,GAEpBC,IAAcF,EAAW;AAAA,EACpC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,MAAM;AAAA,EACN,OAAO;AAAA,EACP,IAAIC;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,IAAIA;AAAA,EACJ,KAAKA;AAAA,EACL,MAAM,CAAC,QAAQ,MAAM;AAAA,EACrB,SAAS;AAAA,IACP,MAAM,CAAC,SAAS,MAAM;AAAA,IACtB,SAAS;AAAA,EAAA;AAEb,CAAC;"}