"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'Pagination',
  "group": (0, _locale.t)('pagination.key_4eBwRWaT6h8N'),
  title: (0, _locale.t)('pagination.key_xivoTkpWUa78'),
  category: (0, _locale.t)('pagination.key_sMXkE7iF3V73'),
  props: [{
    title: (0, _locale.t)('pagination.key_8NxUFdbwuREL'),
    display: 'block',
    type: 'group',
    items: [{
      name: 'defaultPageSize',
      title: {
        label: (0, _locale.t)('pagination.key_VYxElMFM4YeZ'),
        tip: (0, _locale.t)('pagination.key_ggudWEwdHVti')
      },
      propType: 'number',
      setter: 'NumberSetter',
      defaultValue: 10
    }, {
      name: 'pageSize',
      title: {
        label: (0, _locale.t)('pagination.key_7nS1EOKboaBE'),
        tip: (0, _locale.t)('pagination.key_HQSBFYcfqPae')
      },
      propType: 'number',
      setter: 'NumberSetter',
      defaultValue: 10
    }, {
      name: 'total',
      title: {
        label: (0, _locale.t)('pagination.key_AugbNxCq0j2T'),
        tip: (0, _locale.t)('pagination.key_aFH8Zid98DgP')
      },
      propType: 'number',
      setter: 'NumberSetter',
      defaultValue: 15
    }, {
      name: 'defaultCurrent',
      title: {
        label: (0, _locale.t)('pagination.key_CyeJaxv5a50F'),
        tip: (0, _locale.t)('pagination.key_l3WSkTFaxqjJ')
      },
      propType: 'number',
      setter: 'NumberSetter',
      defaultValue: 1
    }, {
      name: 'current',
      title: {
        label: (0, _locale.t)('pagination.key_saY2FlLxRsZr'),
        tip: (0, _locale.t)('pagination.key_ZMcVdE9O3BgF')
      },
      propType: 'number',
      setter: 'NumberSetter',
      defaultValue: 1
    }]
  }, {
    title: (0, _locale.t)('pagination.key_b5b9ZUsrZkAK'),
    display: 'block',
    type: 'group',
    items: [{
      name: 'disabled',
      title: {
        label: (0, _locale.t)('pagination.key_FRtngubiX4AE'),
        tip: (0, _locale.t)('pagination.key_qWIWj4R0X1JY')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'showSizeChanger',
      title: {
        label: (0, _locale.t)('pagination.key_R1F8rQD0k1pg'),
        tip: (0, _locale.t)('pagination.key_ZIbgomJBx5u5')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'showQuickJumper',
      title: {
        label: (0, _locale.t)('pagination.key_fOm5nk0fCJys'),
        tip: (0, _locale.t)('pagination.key_GAX1ToSAUpvc')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'hideOnSinglePage',
      title: {
        label: (0, _locale.t)('pagination.key_EHGY8MOBg8rT'),
        tip: (0, _locale.t)('pagination.key_e3XuHE7OvT8A')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'showLessItems',
      title: {
        label: (0, _locale.t)('pagination.key_DZQkSjFGI2GM'),
        tip: (0, _locale.t)('pagination.key_zZQKELIvm8G1')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'pageSizeOptions',
      title: {
        label: (0, _locale.t)('pagination.key_eSC0gQvSowSw'),
        tip: (0, _locale.t)('pagination.key_Bf162wWZE2zv')
      },
      propType: 'object',
      setter: 'JsonSetter'
    }]
  }, {
    title: (0, _locale.t)('pagination.key_MPGV1HV3h8pS'),
    display: 'block',
    type: 'group',
    items: [{
      name: 'simple',
      title: {
        label: (0, _locale.t)('pagination.key_lZgIJjIRvyGW'),
        tip: (0, _locale.t)('pagination.key_TSGEATyzDuUd')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'size',
      title: {
        label: (0, _locale.t)('pagination.key_gJXoaV57I3My'),
        tip: (0, _locale.t)('pagination.key_20zGyBd1tIcJ')
      },
      propType: {
        type: 'oneOf',
        value: ['default', 'small']
      },
      setter: [{
        componentName: 'RadioGroupSetter',
        props: {
          options: [{
            title: (0, _locale.t)('pagination.key_ZlhLYddhtANN'),
            value: 'default'
          }, {
            title: (0, _locale.t)('pagination.key_RmyJfqAXsvQV'),
            value: 'small'
          }]
        }
      }, 'VariableSetter'],
      defaultValue: 'default'
    }, {
      name: 'showTotal',
      title: {
        label: (0, _locale.t)('pagination.key_UPYHkdQoKZmi'),
        tip: (0, _locale.t)('pagination.key_TcXT3RVbw1Fc')
      },
      propType: 'func',
      setter: [{
        componentName: 'FunctionSetter',
        props: {
          template: (0, _locale.t)('pagination.key_37c5e4ug6kVi')
        }
      }, 'VariableSetter']
    }, {
      name: 'showTitle',
      title: {
        label: (0, _locale.t)('pagination.key_4KNEFfSBbDUd'),
        tip: (0, _locale.t)('pagination.key_JiTodhavV5oU')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }, {
      name: 'responsive',
      title: {
        label: (0, _locale.t)('pagination.key_Abop3TTuSxYF'),
        tip: (0, _locale.t)('pagination.key_6WcawpQMSEaU')
      },
      propType: 'bool',
      setter: 'BoolSetter',
      defaultValue: false
    }]
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};