eoss-mobiles 0.1.23 → 0.1.24

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.
@@ -7086,10 +7086,10 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7086
7086
  if (this.list) {
7087
7087
  return this.list;
7088
7088
  }
7089
- if (this.page && this.data && this.data.length && this.config['total-items'] < this.data.length + 1) {
7090
- this.config['total-items'] = this.data.length - this.lose;
7089
+ if (this.page && this.data && this.data.length && this.config.totalCount < this.data.length + 1) {
7090
+ this.config.totalCount = this.data.length - this.lose;
7091
7091
  return this.data.filter(function (item, index) {
7092
- return index > (_this.config.pageNum - 1) * _this.config['items-per-page'] - 1 && index < _this.config.pageNum * _this.config['items-per-page'];
7092
+ return index > (_this.config.pageNum - 1) * _this.config.pageSize - 1 && index < _this.config.pageNum * _this.config.pageSize;
7093
7093
  });
7094
7094
  }
7095
7095
 
@@ -7142,7 +7142,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7142
7142
  });
7143
7143
  var reqData = util.extend({}, this.param, {
7144
7144
  pageNum: this.config.pageNum,
7145
- pageSize: this.config['items-per-page']
7145
+ pageSize: this.config.pageSize
7146
7146
  });
7147
7147
  if (where) {
7148
7148
  reqData = util.extend({}, reqData, where);
@@ -7157,7 +7157,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7157
7157
  if (res.rCode === 0 || res.status === 'success') {
7158
7158
  var results = _this3.parseData !== undefined ? _this3.parseData(res.results || res.data || res) : res.results || res.data;
7159
7159
  _this3.list = results.data || results.records || results.list || [];
7160
- _this3.config['total-items'] = results.count || results.total || results['total-items'];
7160
+ _this3.config.totalCount = results.count || results.total || results.totalCount;
7161
7161
  } else {
7162
7162
  _this3.list = [];
7163
7163
  }
@@ -7205,7 +7205,7 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7205
7205
  } else {
7206
7206
  _this5.theadData = results.theadData || [];
7207
7207
  _this5.list = results.data || results.records || [];
7208
- _this5.config['total-items'] = results.count || results.total || results['total-items'];
7208
+ _this5.config.totalCount = results.count || results.total || results.totalCount;
7209
7209
  }
7210
7210
  } else {
7211
7211
  _this5.theadData = [];
@@ -7663,8 +7663,8 @@ var table_src_mainvue_type_script_lang_js_extends = Object.assign || function (t
7663
7663
  attrs: {
7664
7664
  // ...this.config,
7665
7665
  pageNum: this.config.pageNum,
7666
- 'items-per-page': this.config['items-per-page'],
7667
- 'total-items': this.config['total-items']
7666
+ pageSize: this.config.pageSize,
7667
+ totalCount: this.config.totalCount
7668
7668
  },
7669
7669
  class: 'em-table-page',
7670
7670
  style: { 'text-align': this.page.position || 'center' },
@@ -15635,8 +15635,8 @@ stepper_src_main.install = function (Vue) {
15635
15635
  };
15636
15636
 
15637
15637
  /* harmony default export */ var stepper = (stepper_src_main);
15638
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=template&id=c6074322&
15639
- var mainvue_type_template_id_c6074322_render = function () {
15638
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=template&id=519d70e2&
15639
+ var mainvue_type_template_id_519d70e2_render = function () {
15640
15640
  var _vm = this
15641
15641
  var _h = _vm.$createElement
15642
15642
  var _c = _vm._self._c || _h
@@ -15646,6 +15646,10 @@ var mainvue_type_template_id_c6074322_render = function () {
15646
15646
  _vm._b(
15647
15647
  {
15648
15648
  staticClass: "em-pagination",
15649
+ attrs: {
15650
+ "items-per-page": _vm.newPageSize,
15651
+ "total-items": _vm.newTotalCount,
15652
+ },
15649
15653
  scopedSlots: _vm._u([
15650
15654
  _vm._l(_vm.$scopedSlots, function (index, name) {
15651
15655
  return {
@@ -15687,11 +15691,11 @@ var mainvue_type_template_id_c6074322_render = function () {
15687
15691
  2
15688
15692
  )
15689
15693
  }
15690
- var mainvue_type_template_id_c6074322_staticRenderFns = []
15691
- mainvue_type_template_id_c6074322_render._withStripped = true
15694
+ var mainvue_type_template_id_519d70e2_staticRenderFns = []
15695
+ mainvue_type_template_id_519d70e2_render._withStripped = true
15692
15696
 
15693
15697
 
15694
- // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=c6074322&
15698
+ // CONCATENATED MODULE: ./packages/pagination/src/main.vue?vue&type=template&id=519d70e2&
15695
15699
 
15696
15700
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/pagination/src/main.vue?vue&type=script&lang=js&
15697
15701
  //
@@ -15712,6 +15716,14 @@ mainvue_type_template_id_c6074322_render._withStripped = true
15712
15716
  pageNum: {
15713
15717
  type: Number,
15714
15718
  default: 1
15719
+ },
15720
+ pageSize: {
15721
+ type: Number,
15722
+ default: 20
15723
+ },
15724
+ totalCount: {
15725
+ type: Number,
15726
+ default: 0
15715
15727
  }
15716
15728
  },
15717
15729
  computed: {
@@ -15722,6 +15734,22 @@ mainvue_type_template_id_c6074322_render._withStripped = true
15722
15734
  set: function set(val) {
15723
15735
  return val;
15724
15736
  }
15737
+ },
15738
+ newPageSize: {
15739
+ get: function get() {
15740
+ return this.pageSize;
15741
+ },
15742
+ set: function set(val) {
15743
+ return val;
15744
+ }
15745
+ },
15746
+ newTotalCount: {
15747
+ get: function get() {
15748
+ return this.totalCount;
15749
+ },
15750
+ set: function set(val) {
15751
+ return val;
15752
+ }
15725
15753
  }
15726
15754
  }
15727
15755
  });
@@ -15737,8 +15765,8 @@ mainvue_type_template_id_c6074322_render._withStripped = true
15737
15765
 
15738
15766
  var pagination_src_main_component = normalizeComponent(
15739
15767
  packages_pagination_src_mainvue_type_script_lang_js_,
15740
- mainvue_type_template_id_c6074322_render,
15741
- mainvue_type_template_id_c6074322_staticRenderFns,
15768
+ mainvue_type_template_id_519d70e2_render,
15769
+ mainvue_type_template_id_519d70e2_staticRenderFns,
15742
15770
  false,
15743
15771
  null,
15744
15772
  null,
@@ -15811,7 +15839,7 @@ if (typeof window !== 'undefined' && window.Vue) {
15811
15839
  }
15812
15840
 
15813
15841
  /* harmony default export */ var src = __webpack_exports__["default"] = ({
15814
- version: '0.1.23',
15842
+ version: '0.1.24',
15815
15843
  install: install,
15816
15844
  Button: packages_button,
15817
15845
  ButtonGroup: button_group,