UNPKG

vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 1.66 kB
{"version":3,"file":"props.cjs","sources":["../../../components/pagination/props.ts"],"sourcesContent":["import { booleanProp, buildProps, eventProp, localeProp, sizeProp } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { PaginationPlugin, PaginationSlots } from './symbol'\n\nexport const paginationProps = buildProps({\n size: sizeProp,\n locale: localeProp('pagination'),\n total: Number,\n noBorder: booleanProp,\n background: booleanProp,\n pageSize: Number,\n sizeOptions: Array as PropType<number[]>,\n itemCount: Number,\n active: Number,\n disabled: booleanProp,\n disableItem: Function as PropType<(page: number) => boolean>,\n turnPageCount: Number,\n itemUnit: String,\n plugins: Array as PropType<(PaginationPlugin | undefined | null)[]>,\n noTitle: booleanProp,\n itemTag: String,\n listTag: String,\n slots: Object as PropType<PaginationSlots>,\n onChange: eventProp<(page: number) => void>(),\n onPageSizeChange: eventProp<(size: number) => void>(),\n})\n\nexport type PaginationProps = ExtractPropTypes<typeof paginationProps>\nexport type PaginationCProps = ConfigurableProps<PaginationProps, 'total'>\n"],"names":["paginationProps","buildProps","sizeProp","localeProp","booleanProp","eventProp"],"mappings":"oHAMaA,EAAkBC,EAAAA,WAAW,CACxC,KAAMC,EAAA,SACN,OAAQC,aAAW,YAAY,EAC/B,MAAO,OACP,SAAUC,EAAA,YACV,WAAYA,EAAA,YACZ,SAAU,OACV,YAAa,MACb,UAAW,OACX,OAAQ,OACR,SAAUA,EAAA,YACV,YAAa,SACb,cAAe,OACf,SAAU,OACV,QAAS,MACT,QAASA,EAAA,YACT,QAAS,OACT,QAAS,OACT,MAAO,OACP,SAAUC,EAAAA,UAAkC,EAC5C,iBAAkBA,EAAkC,UAAA,CACtD,CAAC"}