UNPKG

element-plus

Version:

A Component Library for Vue 3

1 lines 2.27 kB
{"version":3,"file":"row.mjs","sources":["../../../../../../packages/components/row/src/row.ts"],"sourcesContent":["import { buildProps } from '@element-plus/utils'\n\nimport type { ExtractPublicPropTypes } from 'vue'\nimport type Row from './row.vue'\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 interface RowProps {\n /**\n * @description custom element tag\n */\n tag?: string\n /**\n * @description grid spacing\n */\n gutter?: number\n /**\n * @description horizontal alignment of flex layout\n */\n justify?: (typeof RowJustify)[number]\n /**\n * @description vertical alignment of flex layout\n */\n align?: (typeof RowAlign)[number]\n}\n\n/**\n * @deprecated Removed after 3.0.0, Use `RowProps` instead.\n */\nexport const rowProps = buildProps({\n /**\n * @description custom element tag\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description grid spacing\n */\n gutter: {\n type: Number,\n default: 0,\n },\n /**\n * @description horizontal alignment of flex layout\n */\n justify: {\n type: String,\n values: RowJustify,\n default: 'start',\n },\n /**\n * @description vertical alignment of flex layout\n */\n align: {\n type: String,\n values: RowAlign,\n },\n} as const)\n\n/**\n * @deprecated Removed after 3.0.0, Use `RowProps` instead.\n */\nexport type RowPropsPublic = ExtractPublicPropTypes<typeof rowProps>\nexport type RowInstance = InstanceType<typeof Row> & unknown\n"],"names":[],"mappings":";;AAKO,MAAM,UAAA,GAAa;AAAA,EACxB,OAAA;AAAA,EACA,QAAA;AAAA,EACA,KAAA;AAAA,EACA,cAAA;AAAA,EACA,eAAA;AAAA,EACA;AACF;AAEO,MAAM,QAAA,GAAW,CAAC,KAAA,EAAO,QAAA,EAAU,QAAQ;AAwB3C,MAAM,WAAW,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIjC,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,OAAA,EAAS;AAAA,IACP,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ,UAAA;AAAA,IACR,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,MAAA,EAAQ;AAAA;AAEZ,CAAU;;;;"}