/**
 * ldesign v0.2.22
 * (c) 2022/12/7 16:21 built by swimly
 * @license MIT
 */

'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const PaginationProps = {
  current: {
    type: Number,
    default: void 0
  },
  defaultCurrent: {
    type: Number,
    default: 1
  },
  disabled: Boolean,
  foldedMaxPageBtn: {
    type: Number,
    default: 5
  },
  maxPageBtn: {
    type: Number,
    default: 10
  },
  pageEllipsisMode: {
    type: String,
    default: "mid",
    validator(val) {
      if (!val) return true;
      return ["mid", "both-ends"].includes(val);
    }
  },
  pageSize: {
    type: Number,
    default: void 0
  },
  defaultPageSize: {
    type: Number,
    default: 10
  },
  pageSizeOptions: {
    type: Array,
    default: () => [5, 10, 20, 50]
  },
  selectProps: {
    type: Object
  },
  showFirstAndLastPageBtn: Boolean,
  showJumper: Boolean,
  showPageNumber: {
    type: Boolean,
    default: true
  },
  showPageSize: {
    type: Boolean,
    default: true
  },
  showPreviousAndNextBtn: {
    type: Boolean,
    default: true
  },
  size: {
    type: String,
    default: "medium",
    validator(val) {
      if (!val) return true;
      return ["small", "medium"].includes(val);
    }
  },
  theme: {
    type: String,
    default: "default",
    validator(val) {
      if (!val) return true;
      return ["default", "simple"].includes(val);
    }
  },
  total: {
    type: Number,
    default: 0
  },
  totalContent: {
    type: [Boolean, Function],
    default: true
  },
  onChange: Function,
  onCurrentChange: Function,
  onPageSizeChange: Function
};
const PaginationMiniProps = {
  disabled: {
    type: [Boolean, Object]
  },
  layout: {
    type: String,
    default: "horizontal",
    validator(val) {
      if (!val) return true;
      return ["horizontal", "vertical"].includes(val);
    }
  },
  showCurrent: {
    type: Boolean,
    default: true
  },
  size: {
    type: String,
    default: "medium",
    validator(val) {
      if (!val) return true;
      return ["small", "medium", "large"].includes(val);
    }
  },
  tips: {
    type: Object
  },
  variant: {
    type: String,
    default: "text",
    validator(val) {
      if (!val) return true;
      return ["text", "outline"].includes(val);
    }
  },
  onChange: Function
};

exports.PaginationMiniProps = PaginationMiniProps;
exports.PaginationProps = PaginationProps;
//# sourceMappingURL=props.js.map
