{"version":3,"file":"pagination.mjs","sources":["../../../../../../../packages/components/table/src/config/pagination.ts"],"sourcesContent":["import { buildProps } from '@ll-plus/utils'\r\n\r\nimport Pagination from '../components/pagination.vue'\r\n\r\nimport type { ExtractPropTypes } from 'vue'\r\n\r\nexport const tablePaginationProps = buildProps({\r\n  /**\r\n   * @description 当前页数\r\n   */\r\n  current: {\r\n    type: Number,\r\n  },\r\n  /**\r\n   * @description 每页条数\r\n   */\r\n  pageSize: {\r\n    type: Number,\r\n  },\r\n  /**\r\n   * @description 数据总数\r\n   */\r\n  total: {\r\n    type: Number,\r\n  },\r\n  /**\r\n   * @description 用于显示数据总量和当前数据顺序\r\n   */\r\n  showTotal: {\r\n    type: Function,\r\n  },\r\n  /**\r\n   * @description 页码或 pageSize 改变的回调，参数是改变后的页码及每页条数\r\n   */\r\n  onChange: {\r\n    type: Function, // 函数不能写默认值,写了就是必要要传\r\n  },\r\n  /**\r\n   * @description 页码或 pageSize 改变的回调，参数是改变后的页码及每页条数\r\n   */\r\n  simple: {\r\n    type: Boolean,\r\n  },\r\n  // 分页器尺寸\r\n  size: {\r\n    type: String,\r\n    default: 'medium',\r\n  },\r\n  /**\r\n   * @description 分页对齐方式，可选值：left、center、right\r\n   */\r\n  alignment: {\r\n    type: String,\r\n    default: 'right',\r\n    validator: (val: string) => ['left', 'center', 'right'].includes(val),\r\n  },\r\n} as const)\r\n\r\n// props\r\nexport type TablePaginationProps = ExtractPropTypes<typeof tablePaginationProps>\r\n\r\n// instance\r\nexport type TablePaginationInstance = InstanceType<typeof Pagination>\r\n"],"names":[],"mappings":";;;;AAMO,MAAM,uBAAuB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAI7C,OAAA,EAAS;AAAA,IACP,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAEA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,SAAA,EAAW;AAAA,IACT,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS,OAAA;AAAA,IACT,SAAA,EAAW,CAAC,GAAA,KAAgB,CAAC,QAAQ,QAAA,EAAU,OAAO,CAAA,CAAE,QAAA,CAAS,GAAG;AAAA;AAExE,CAAU;;;;"}