vxe-table 3.7.8-beta.1 → 3.7.9-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/helper/vetur/attributes.json +8 -0
  2. package/helper/vetur/tags.json +3 -1
  3. package/lib/filter/src/panel.js +5 -3
  4. package/lib/filter/src/panel.min.js +1 -1
  5. package/lib/grid/src/grid.js +151 -70
  6. package/lib/grid/src/grid.min.js +1 -1
  7. package/lib/icon/style/style.css +9 -1
  8. package/lib/icon/style/style.min.css +9 -1
  9. package/lib/index.css +1 -1
  10. package/lib/index.umd.js +247 -87
  11. package/lib/index.umd.min.js +1 -1
  12. package/lib/locale/lang/en-US.js +9 -1
  13. package/lib/locale/lang/en-US.min.js +1 -1
  14. package/lib/locale/lang/en-US.umd.js +9 -1
  15. package/lib/locale/lang/ja-JP.js +9 -1
  16. package/lib/locale/lang/ja-JP.min.js +1 -1
  17. package/lib/locale/lang/ja-JP.umd.js +9 -1
  18. package/lib/locale/lang/zh-CN.js +9 -1
  19. package/lib/locale/lang/zh-CN.min.js +1 -1
  20. package/lib/locale/lang/zh-CN.umd.js +9 -1
  21. package/lib/locale/lang/zh-HK.min.js +1 -1
  22. package/lib/locale/lang/zh-HK.umd.js +9 -1
  23. package/lib/locale/lang/zh-MO.min.js +1 -1
  24. package/lib/locale/lang/zh-MO.umd.js +9 -1
  25. package/lib/locale/lang/zh-TC.js +9 -1
  26. package/lib/locale/lang/zh-TC.min.js +1 -1
  27. package/lib/locale/lang/zh-TC.umd.js +9 -1
  28. package/lib/locale/lang/zh-TW.min.js +1 -1
  29. package/lib/locale/lang/zh-TW.umd.js +9 -1
  30. package/lib/pager/src/pager.js +62 -6
  31. package/lib/pager/src/pager.min.js +1 -1
  32. package/lib/style.css +1 -1
  33. package/lib/style.min.css +1 -1
  34. package/lib/table/src/cell.js +2 -2
  35. package/lib/table/src/cell.min.js +1 -1
  36. package/lib/table/src/methods.js +24 -9
  37. package/lib/table/src/methods.min.js +1 -1
  38. package/lib/tools/log.js +1 -1
  39. package/lib/tools/log.min.js +1 -1
  40. package/lib/v-x-e-table/index.js +1 -1
  41. package/lib/v-x-e-table/index.min.js +1 -1
  42. package/lib/v-x-e-table/src/conf.js +2 -0
  43. package/lib/v-x-e-table/src/conf.min.js +1 -1
  44. package/lib/v-x-e-table/style/style.css +9 -1
  45. package/lib/v-x-e-table/style/style.min.css +1 -1
  46. package/package.json +2 -2
  47. package/packages/filter/src/panel.js +4 -3
  48. package/packages/grid/src/grid.js +147 -73
  49. package/packages/locale/lang/en-US.js +9 -1
  50. package/packages/locale/lang/ja-JP.js +9 -1
  51. package/packages/locale/lang/zh-CN.js +9 -1
  52. package/packages/locale/lang/zh-TC.js +9 -1
  53. package/packages/pager/src/pager.js +65 -6
  54. package/packages/table/src/cell.js +2 -2
  55. package/packages/table/src/methods.js +20 -8
  56. package/packages/v-x-e-table/src/conf.js +2 -0
  57. package/styles/icon.scss +10 -1
  58. package/types/pager.d.ts +1 -1
  59. /package/lib/icon/style/{iconfont.1705230733472.ttf → iconfont.1705883476685.ttf} +0 -0
  60. /package/lib/icon/style/{iconfont.1705230733472.woff → iconfont.1705883476685.woff} +0 -0
  61. /package/lib/icon/style/{iconfont.1705230733472.woff2 → iconfont.1705883476685.woff2} +0 -0
  62. /package/lib/{iconfont.1705230733472.ttf → iconfont.1705883476685.ttf} +0 -0
  63. /package/lib/{iconfont.1705230733472.woff → iconfont.1705883476685.woff} +0 -0
  64. /package/lib/{iconfont.1705230733472.woff2 → iconfont.1705883476685.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -10373,6 +10373,8 @@ var iconPrefix = 'vxe-icon-';
10373
10373
  SELECT_OPEN: iconPrefix + 'caret-down rotate180',
10374
10374
  SELECT_CLOSE: iconPrefix + 'caret-down',
10375
10375
  // pager
10376
+ PAGER_HOME: iconPrefix + 'home-page',
10377
+ PAGER_END: iconPrefix + 'end-page',
10376
10378
  PAGER_JUMP_PREV: iconPrefix + 'arrow-double-left',
10377
10379
  PAGER_JUMP_NEXT: iconPrefix + 'arrow-double-right',
10378
10380
  PAGER_PREV_PAGE: iconPrefix + 'arrow-left',
@@ -10591,7 +10593,7 @@ var es_array_concat = __webpack_require__(2222);
10591
10593
 
10592
10594
 
10593
10595
  function getLog(message, params) {
10594
- return "[vxe-table v".concat("3.7.8-beta.0", "] ").concat(conf.i18n(message, params));
10596
+ return "[vxe-table v".concat("3.7.9-beta.0", "] ").concat(conf.i18n(message, params));
10595
10597
  }
10596
10598
  function outLog(type) {
10597
10599
  return function (message, params) {
@@ -12023,7 +12025,7 @@ var setup = config;
12023
12025
  var globalStore = {};
12024
12026
  var VXETable = {
12025
12027
  v: v,
12026
- version: "3.7.8-beta.0",
12028
+ version: "3.7.9-beta.0",
12027
12029
  reg: reg,
12028
12030
  use: use,
12029
12031
  setup: setup,
@@ -14370,7 +14372,7 @@ var es_promise_finally = __webpack_require__(7727);
14370
14372
 
14371
14373
 
14372
14374
 
14373
- function renderHelpIcon(h, params) {
14375
+ function renderTitlePrefixIcon(h, params) {
14374
14376
  var $table = params.$table,
14375
14377
  column = params.column;
14376
14378
  var titlePrefix = column.titlePrefix || column.titleHelp;
@@ -14536,7 +14538,7 @@ var Cell = {
14536
14538
  return renderTitleContent(h, params, utils.formatText(column.getTitle(), 1));
14537
14539
  },
14538
14540
  renderDefaultHeader: function renderDefaultHeader(h, params) {
14539
- return renderHelpIcon(h, params).concat(Cell.renderHeaderTitle(h, params));
14541
+ return renderTitlePrefixIcon(h, params).concat(Cell.renderHeaderTitle(h, params));
14540
14542
  },
14541
14543
  renderDefaultCell: function renderDefaultCell(h, params) {
14542
14544
  var $table = params.$table,
@@ -16832,12 +16834,14 @@ var Methods = {
16832
16834
  * 如果存在排序,继续处理
16833
16835
  */
16834
16836
  getTableData: function getTableData() {
16835
- var tableFullData = this.tableFullData,
16837
+ var treeConfig = this.treeConfig,
16838
+ tableFullData = this.tableFullData,
16836
16839
  afterFullData = this.afterFullData,
16837
16840
  tableData = this.tableData,
16838
- footerTableData = this.footerTableData;
16841
+ footerTableData = this.footerTableData,
16842
+ tableFullTreeData = this.tableFullTreeData;
16839
16843
  return {
16840
- fullData: tableFullData.slice(0),
16844
+ fullData: treeConfig ? tableFullTreeData.slice(0) : tableFullData.slice(0),
16841
16845
  visibleData: afterFullData.slice(0),
16842
16846
  tableData: tableData.slice(0),
16843
16847
  footerData: footerTableData.slice(0)
@@ -16885,9 +16889,22 @@ var Methods = {
16885
16889
  * 设置为固定列
16886
16890
  */
16887
16891
  setColumnFixed: function setColumnFixed(fieldOrColumn, fixed) {
16892
+ var isMaxFixedColumn = this.isMaxFixedColumn,
16893
+ columnOpts = this.columnOpts;
16894
+ var maxFixedSize = columnOpts.maxFixedSize;
16888
16895
  var column = handleFieldOrColumn(this, fieldOrColumn);
16889
16896
  var targetColumn = getRootColumn(this, column);
16890
16897
  if (targetColumn && targetColumn.fixed !== fixed) {
16898
+ // 是否超过最大固定列数量
16899
+ if (!targetColumn.fixed && isMaxFixedColumn) {
16900
+ if (v_x_e_table.modal) {
16901
+ v_x_e_table.modal.message({
16902
+ status: 'error',
16903
+ content: conf.i18n('vxe.table.maxFixedCol', [maxFixedSize])
16904
+ });
16905
+ }
16906
+ return this.$nextTick();
16907
+ }
16891
16908
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree([targetColumn], function (column) {
16892
16909
  column.fixed = fixed;
16893
16910
  });
@@ -22794,8 +22811,10 @@ var Table = Object.assign(table, {
22794
22811
  }))];
22795
22812
  },
22796
22813
  renderFooter: function renderFooter(h) {
22797
- var hasCheckOption = this.hasCheckOption,
22814
+ var $xetable = this.$parent,
22815
+ hasCheckOption = this.hasCheckOption,
22798
22816
  filterStore = this.filterStore;
22817
+ var filterOpts = $xetable.filterOpts;
22799
22818
  var column = filterStore.column,
22800
22819
  multiple = filterStore.multiple;
22801
22820
  var filterRender = column.filterRender;
@@ -22813,11 +22832,11 @@ var Table = Object.assign(table, {
22813
22832
  on: {
22814
22833
  click: this.confirmFilter
22815
22834
  }
22816
- }, conf.i18n('vxe.table.confirmFilter')), h('button', {
22835
+ }, filterOpts.confirmButtonText || conf.i18n('vxe.table.confirmFilter')), h('button', {
22817
22836
  on: {
22818
22837
  click: this.resetFilter
22819
22838
  }
22820
- }, conf.i18n('vxe.table.resetFilter'))])] : [];
22839
+ }, filterOpts.resetButtonText || conf.i18n('vxe.table.resetFilter'))])] : [];
22821
22840
  },
22822
22841
  // 全部筛选事件
22823
22842
  filterCheckAllEvent: function filterCheckAllEvent(evnt, value) {
@@ -33635,6 +33654,152 @@ function getTableOns(_vm) {
33635
33654
  }
33636
33655
  return ons;
33637
33656
  }
33657
+
33658
+ /**
33659
+ * 渲染表单
33660
+ */
33661
+ function renderForms(h, _vm) {
33662
+ var _e = _vm._e,
33663
+ $scopedSlots = _vm.$scopedSlots,
33664
+ formConfig = _vm.formConfig;
33665
+ var formSlot = $scopedSlots.form;
33666
+ var hasForm = !!(formSlot || isEnableConf(formConfig));
33667
+ return hasForm ? h('div', {
33668
+ key: 'form',
33669
+ ref: 'formWrapper',
33670
+ class: 'vxe-grid--form-wrapper'
33671
+ }, formSlot ? formSlot.call(_vm, {
33672
+ $grid: _vm
33673
+ }, h) : renderDefaultForm(h, _vm)) : _e();
33674
+ }
33675
+
33676
+ /**
33677
+ * 渲染工具栏
33678
+ */
33679
+ function renderToolbars(h, _vm) {
33680
+ var _e = _vm._e,
33681
+ $scopedSlots = _vm.$scopedSlots,
33682
+ toolbarConfig = _vm.toolbarConfig,
33683
+ toolbar = _vm.toolbar;
33684
+ var toolbarSlot = $scopedSlots.toolbar;
33685
+ var hasToolbar = !!(toolbarSlot || isEnableConf(toolbarConfig) || toolbar);
33686
+ return hasToolbar ? h('div', {
33687
+ key: 'toolbar',
33688
+ ref: 'toolbarWrapper',
33689
+ class: 'vxe-grid--toolbar-wrapper'
33690
+ }, toolbarSlot ? toolbarSlot.call(_vm, {
33691
+ $grid: _vm
33692
+ }, h) : [h('vxe-toolbar', {
33693
+ props: _vm.toolbarOpts,
33694
+ ref: 'xToolbar',
33695
+ scopedSlots: getToolbarSlots(_vm)
33696
+ })]) : _e();
33697
+ }
33698
+
33699
+ /**
33700
+ * 渲染表格顶部区域
33701
+ */
33702
+ function renderTops(h, _vm) {
33703
+ var _e = _vm._e,
33704
+ $scopedSlots = _vm.$scopedSlots;
33705
+ var topSlot = $scopedSlots.top;
33706
+ return topSlot ? h('div', {
33707
+ key: 'top',
33708
+ ref: 'topWrapper',
33709
+ class: 'vxe-grid--top-wrapper'
33710
+ }, topSlot.call(_vm, {
33711
+ $grid: _vm
33712
+ }, h)) : _e();
33713
+ }
33714
+
33715
+ /**
33716
+ * 渲染表格
33717
+ */
33718
+ function renderTables(h, _vm) {
33719
+ var $scopedSlots = _vm.$scopedSlots,
33720
+ tableProps = _vm.tableProps;
33721
+ return h('vxe-table', {
33722
+ key: 'table',
33723
+ props: tableProps,
33724
+ on: getTableOns(_vm),
33725
+ scopedSlots: $scopedSlots,
33726
+ ref: 'xTable'
33727
+ });
33728
+ }
33729
+
33730
+ /**
33731
+ * 渲染表格底部区域
33732
+ */
33733
+ function renderBottoms(h, _vm) {
33734
+ var _e = _vm._e,
33735
+ $scopedSlots = _vm.$scopedSlots;
33736
+ var bottomSlot = $scopedSlots.bottom;
33737
+ return bottomSlot ? h('div', {
33738
+ key: 'bottom',
33739
+ ref: 'bottomWrapper',
33740
+ class: 'vxe-grid--bottom-wrapper'
33741
+ }, bottomSlot.call(_vm, {
33742
+ $grid: _vm
33743
+ }, h)) : _e();
33744
+ }
33745
+
33746
+ /**
33747
+ * 渲染分页
33748
+ */
33749
+ function renderPagers(h, _vm) {
33750
+ var _e = _vm._e,
33751
+ $scopedSlots = _vm.$scopedSlots,
33752
+ pagerConfig = _vm.pagerConfig,
33753
+ proxyConfig = _vm.proxyConfig,
33754
+ tablePage = _vm.tablePage;
33755
+ var pagerSlot = $scopedSlots.pager;
33756
+ var hasPager = !!(pagerSlot || isEnableConf(pagerConfig));
33757
+ return hasPager ? h('div', {
33758
+ key: 'pager',
33759
+ ref: 'pagerWrapper',
33760
+ class: 'vxe-grid--pager-wrapper'
33761
+ }, pagerSlot ? pagerSlot.call(_vm, {
33762
+ $grid: _vm
33763
+ }, h) : [h('vxe-pager', {
33764
+ props: _objectSpread2(_objectSpread2({}, _vm.pagerOpts), proxyConfig ? tablePage : {}),
33765
+ on: {
33766
+ 'page-change': _vm.pageChangeEvent
33767
+ },
33768
+ scopedSlots: getPagerSlots(_vm)
33769
+ })]) : _e();
33770
+ }
33771
+ var defaultLayouts = ['Form', 'Toolbar', 'Top', 'Table', 'Bottom', 'Pager'];
33772
+ function renderLayout(h, _vm) {
33773
+ var layouts = _vm.layouts;
33774
+ var vns = [];
33775
+ var currLayouts = layouts && layouts.length ? layouts : conf.grid.layouts || defaultLayouts;
33776
+ currLayouts.forEach(function (name) {
33777
+ switch (name) {
33778
+ case 'Form':
33779
+ vns.push(renderForms(h, _vm));
33780
+ break;
33781
+ case 'Toolbar':
33782
+ vns.push(renderToolbars(h, _vm));
33783
+ break;
33784
+ case 'Top':
33785
+ vns.push(renderTops(h, _vm));
33786
+ break;
33787
+ case 'Table':
33788
+ vns.push(renderTables(h, _vm));
33789
+ break;
33790
+ case 'Bottom':
33791
+ vns.push(renderBottoms(h, _vm));
33792
+ break;
33793
+ case 'Pager':
33794
+ vns.push(renderPagers(h, _vm));
33795
+ break;
33796
+ default:
33797
+ if (false) {}
33798
+ break;
33799
+ }
33800
+ });
33801
+ return vns;
33802
+ }
33638
33803
  Object.keys(packages_table.methods).forEach(function (name) {
33639
33804
  grid_methods[name] = function () {
33640
33805
  var _this$$refs$xTable;
@@ -33645,6 +33810,7 @@ Object.keys(packages_table.methods).forEach(function (name) {
33645
33810
  name: 'VxeGrid',
33646
33811
  mixins: [size],
33647
33812
  props: _objectSpread2(_objectSpread2({}, packages_table.props), {}, {
33813
+ layouts: Array,
33648
33814
  columns: Array,
33649
33815
  pagerConfig: [Boolean, Object],
33650
33816
  proxyConfig: Object,
@@ -33795,80 +33961,12 @@ Object.keys(packages_table.methods).forEach(function (name) {
33795
33961
  },
33796
33962
  render: function render(h) {
33797
33963
  var _ref;
33798
- var $scopedSlots = this.$scopedSlots,
33799
- vSize = this.vSize,
33964
+ var vSize = this.vSize,
33800
33965
  isZMax = this.isZMax;
33801
- var hasForm = !!($scopedSlots.form || isEnableConf(this.formConfig));
33802
- var hasToolbar = !!($scopedSlots.toolbar || isEnableConf(this.toolbarConfig) || this.toolbar);
33803
- var hasPager = !!($scopedSlots.pager || isEnableConf(this.pagerConfig));
33804
33966
  return h('div', {
33805
33967
  class: ['vxe-grid', (_ref = {}, _defineProperty(_ref, "size--".concat(vSize), vSize), _defineProperty(_ref, 'is--animat', !!this.animat), _defineProperty(_ref, 'is--round', this.round), _defineProperty(_ref, 'is--maximize', isZMax), _defineProperty(_ref, 'is--loading', this.loading || this.tableLoading), _ref)],
33806
33968
  style: this.renderStyle
33807
- }, [
33808
- /**
33809
- * 渲染表单
33810
- */
33811
- hasForm ? h('div', {
33812
- ref: 'formWrapper',
33813
- class: 'vxe-grid--form-wrapper'
33814
- }, $scopedSlots.form ? $scopedSlots.form.call(this, {
33815
- $grid: this
33816
- }, h) : renderDefaultForm(h, this)) : null,
33817
- /**
33818
- * 渲染工具栏
33819
- */
33820
- hasToolbar ? h('div', {
33821
- ref: 'toolbarWrapper',
33822
- class: 'vxe-grid--toolbar-wrapper'
33823
- }, $scopedSlots.toolbar ? $scopedSlots.toolbar.call(this, {
33824
- $grid: this
33825
- }, h) : [h('vxe-toolbar', {
33826
- props: this.toolbarOpts,
33827
- ref: 'xToolbar',
33828
- scopedSlots: getToolbarSlots(this)
33829
- })]) : null,
33830
- /**
33831
- * 渲染表格顶部区域
33832
- */
33833
- $scopedSlots.top ? h('div', {
33834
- ref: 'topWrapper',
33835
- class: 'vxe-grid--top-wrapper'
33836
- }, $scopedSlots.top.call(this, {
33837
- $grid: this
33838
- }, h)) : null,
33839
- /**
33840
- * 渲染表格
33841
- */
33842
- h('vxe-table', {
33843
- props: this.tableProps,
33844
- on: getTableOns(this),
33845
- scopedSlots: $scopedSlots,
33846
- ref: 'xTable'
33847
- }),
33848
- /**
33849
- * 渲染表格底部区域
33850
- */
33851
- $scopedSlots.bottom ? h('div', {
33852
- ref: 'bottomWrapper',
33853
- class: 'vxe-grid--bottom-wrapper'
33854
- }, $scopedSlots.bottom.call(this, {
33855
- $grid: this
33856
- }, h)) : null,
33857
- /**
33858
- * 渲染分页
33859
- */
33860
- hasPager ? h('div', {
33861
- ref: 'pagerWrapper',
33862
- class: 'vxe-grid--pager-wrapper'
33863
- }, $scopedSlots.pager ? $scopedSlots.pager.call(this, {
33864
- $grid: this
33865
- }, h) : [h('vxe-pager', {
33866
- props: _objectSpread2(_objectSpread2({}, this.pagerOpts), this.proxyConfig ? this.tablePage : {}),
33867
- on: {
33868
- 'page-change': this.pageChangeEvent
33869
- },
33870
- scopedSlots: getPagerSlots(this)
33871
- })]) : null]);
33969
+ }, renderLayout(h, this));
33872
33970
  },
33873
33971
  methods: _objectSpread2(_objectSpread2({}, grid_methods), {}, {
33874
33972
  callSlot: function callSlot(slotFunc, params, h, vNodes) {
@@ -35436,6 +35534,7 @@ var Toolbar = Object.assign(toolbar, {
35436
35534
 
35437
35535
 
35438
35536
 
35537
+
35439
35538
  /* harmony default export */ var pager = ({
35440
35539
  name: 'VxePager',
35441
35540
  mixins: [size],
@@ -35533,7 +35632,9 @@ var Toolbar = Object.assign(toolbar, {
35533
35632
  iconJumpPrev: String,
35534
35633
  iconJumpNext: String,
35535
35634
  iconNextPage: String,
35536
- iconJumpMore: String
35635
+ iconJumpMore: String,
35636
+ iconHomePage: String,
35637
+ iconEndPage: String
35537
35638
  },
35538
35639
  inject: {
35539
35640
  $xegrid: {
@@ -35602,7 +35703,11 @@ var Toolbar = Object.assign(toolbar, {
35602
35703
  })));
35603
35704
  }
35604
35705
  this.layouts.forEach(function (name) {
35605
- childNodes.push(_this["render".concat(name)](h));
35706
+ if (_this["render".concat(name)](h)) {
35707
+ childNodes.push(_this["render".concat(name)](h));
35708
+ } else {
35709
+ if (false) {}
35710
+ }
35606
35711
  });
35607
35712
  if ($scopedSlots.right) {
35608
35713
  childNodes.push(h('span', {
@@ -35620,6 +35725,40 @@ var Toolbar = Object.assign(toolbar, {
35620
35725
  }, childNodes)]);
35621
35726
  },
35622
35727
  methods: {
35728
+ // 首页
35729
+ renderHome: function renderHome(h) {
35730
+ return h('button', {
35731
+ class: ['vxe-pager--prev-btn', {
35732
+ 'is--disabled': this.currentPage <= 1
35733
+ }],
35734
+ attrs: {
35735
+ type: 'button',
35736
+ title: conf.i18n('vxe.pager.homePageTitle')
35737
+ },
35738
+ on: {
35739
+ click: this.homePage
35740
+ }
35741
+ }, [h('i', {
35742
+ class: ['vxe-pager--btn-icon', this.iconHomePage || conf.icon.PAGER_HOME]
35743
+ })]);
35744
+ },
35745
+ // 末页
35746
+ renderEnd: function renderEnd(h) {
35747
+ return h('button', {
35748
+ class: ['vxe-pager--prev-btn', {
35749
+ 'is--disabled': this.currentPage <= 1
35750
+ }],
35751
+ attrs: {
35752
+ type: 'button',
35753
+ title: conf.i18n('vxe.pager.endPageTitle')
35754
+ },
35755
+ on: {
35756
+ click: this.endPage
35757
+ }
35758
+ }, [h('i', {
35759
+ class: ['vxe-pager--btn-icon', this.iconEndPage || conf.icon.PAGER_END]
35760
+ })]);
35761
+ },
35623
35762
  // 上一页
35624
35763
  renderPrevPage: function renderPrevPage(h) {
35625
35764
  return h('button', {
@@ -35628,7 +35767,7 @@ var Toolbar = Object.assign(toolbar, {
35628
35767
  }],
35629
35768
  attrs: {
35630
35769
  type: 'button',
35631
- title: conf.i18n('vxe.pager.prevPage')
35770
+ title: conf.i18n('vxe.pager.prevPageTitle')
35632
35771
  },
35633
35772
  on: {
35634
35773
  click: this.prevPage
@@ -35646,7 +35785,7 @@ var Toolbar = Object.assign(toolbar, {
35646
35785
  }],
35647
35786
  attrs: {
35648
35787
  type: 'button',
35649
- title: conf.i18n('vxe.pager.prevJump')
35788
+ title: conf.i18n('vxe.pager.prevJumpTitle')
35650
35789
  },
35651
35790
  on: {
35652
35791
  click: this.prevJump
@@ -35678,7 +35817,7 @@ var Toolbar = Object.assign(toolbar, {
35678
35817
  }],
35679
35818
  attrs: {
35680
35819
  type: 'button',
35681
- title: conf.i18n('vxe.pager.nextJump')
35820
+ title: conf.i18n('vxe.pager.nextJumpTitle')
35682
35821
  },
35683
35822
  on: {
35684
35823
  click: this.nextJump
@@ -35697,7 +35836,7 @@ var Toolbar = Object.assign(toolbar, {
35697
35836
  }],
35698
35837
  attrs: {
35699
35838
  type: 'button',
35700
- title: conf.i18n('vxe.pager.nextPage')
35839
+ title: conf.i18n('vxe.pager.nextPageTitle')
35701
35840
  },
35702
35841
  on: {
35703
35842
  click: this.nextPage
@@ -35837,6 +35976,19 @@ var Toolbar = Object.assign(toolbar, {
35837
35976
  getPageCount: function getPageCount(total, size) {
35838
35977
  return Math.max(Math.ceil(total / size), 1);
35839
35978
  },
35979
+ homePage: function homePage() {
35980
+ var currentPage = this.currentPage;
35981
+ if (currentPage > 1) {
35982
+ this.jumpPage(1);
35983
+ }
35984
+ },
35985
+ endPage: function endPage() {
35986
+ var currentPage = this.currentPage,
35987
+ pageCount = this.pageCount;
35988
+ if (currentPage < pageCount) {
35989
+ this.jumpPage(pageCount);
35990
+ }
35991
+ },
35840
35992
  prevPage: function prevPage() {
35841
35993
  var currentPage = this.currentPage,
35842
35994
  pageCount = this.pageCount;
@@ -39906,10 +40058,18 @@ var Pulldown = Object.assign(pulldown, {
39906
40058
  pagesize: '{0}条/页',
39907
40059
  total: '共 {0} 条记录',
39908
40060
  pageClassifier: '页',
40061
+ homePage: '首页',
40062
+ homePageTitle: '首页',
39909
40063
  prevPage: '上一页',
40064
+ prevPageTitle: '上一页',
39910
40065
  nextPage: '下一页',
40066
+ nextPageTitle: '下一页',
39911
40067
  prevJump: '向上跳页',
39912
- nextJump: '向下跳页'
40068
+ prevJumpTitle: '向上跳页',
40069
+ nextJump: '向下跳页',
40070
+ nextJumpTitle: '向下跳页',
40071
+ endPage: '末页',
40072
+ endPageTitle: '末页'
39913
40073
  },
39914
40074
  alert: {
39915
40075
  title: '消息提示'