@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 2.08 kB
Source Map (JSON)
{"version":3,"file":"props.mjs","sources":["../../../components/row/props.ts"],"sourcesContent":["import { buildProps } from '@vexip-ui/config'\r\n\r\nimport type { ExtractPropTypes, PropType } from 'vue'\r\nimport type { ConfigurableProps } from '@vexip-ui/config'\r\nimport type { ColumnFlex, ColumnOptions, RowGridAlign, RowGridJustify } from './symbol'\r\n\r\nexport const rowProps = buildProps({\r\n tag: String,\r\n gap: [Number, Array] as PropType<number | number[]>,\r\n justify: String as PropType<RowGridJustify>,\r\n align: String as PropType<RowGridAlign>,\r\n columnFlex: {\r\n type: [Boolean, Object] as PropType<boolean | Partial<ColumnFlex>>,\r\n default: null,\r\n },\r\n})\r\n\r\nexport type RowProps = ExtractPropTypes<typeof rowProps>\r\nexport type RowCProps = ConfigurableProps<RowProps>\r\n\r\nconst mediaProp = [Number, Object] as PropType<number | ColumnOptions>\r\n\r\nexport const columnProps = buildProps({\r\n tag: String,\r\n span: Number,\r\n offset: Number,\r\n push: Number,\r\n pull: Number,\r\n order: Number,\r\n xs: mediaProp,\r\n sm: mediaProp,\r\n md: mediaProp,\r\n lg: mediaProp,\r\n xl: mediaProp,\r\n xxl: mediaProp,\r\n flex: [Number, String],\r\n useFlex: {\r\n type: [Boolean, Object] as PropType<boolean | Partial<ColumnFlex>>,\r\n default: null,\r\n },\r\n})\r\n\r\nexport type ColumnProps = ExtractPropTypes<typeof columnProps>\r\nexport type ColumnCProps = ConfigurableProps<ColumnProps>\r\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;"}