@opentinyvue/vue-grid-toolbar 2.24.0 → 2.25.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 (2) hide show
  1. package/lib/index.js +7 -9
  2. package/package.json +33 -33
package/lib/index.js CHANGED
@@ -2701,6 +2701,8 @@ var render2 = function render3() {
2701
2701
  staticClass: "tiny-grid-toolbar-modal",
2702
2702
  attrs: {
2703
2703
  "width": "800",
2704
+ "tiny_mode": "pc",
2705
+ "tiny_mode_root": "",
2704
2706
  "title": " "
2705
2707
  },
2706
2708
  on: {
@@ -3774,8 +3776,9 @@ var GridToolbar = defineComponent({
3774
3776
  var comp = $grid || table;
3775
3777
  var sort = setting && !!setting.sortable;
3776
3778
  if (comp) {
3779
+ var _comp$reloadCustoms;
3777
3780
  var colWidth = this.loadColWidth();
3778
- comp.reloadCustoms(customs, sort, colWidth).then(function(fullColumn) {
3781
+ (_comp$reloadCustoms = comp.reloadCustoms(customs, sort, colWidth)) == null ? void 0 : _comp$reloadCustoms.then(function(fullColumn) {
3779
3782
  _this31.tableFullColumn = fullColumn;
3780
3783
  });
3781
3784
  }
@@ -3873,17 +3876,12 @@ var GridToolbar = defineComponent({
3873
3876
  });
3874
3877
  },
3875
3878
  applySettings: function applySettings(_ref21) {
3876
- var _this33 = this;
3877
3879
  var columns = _ref21.columns, pageSize = _ref21.pageSize, updatedSorting = _ref21.updatedSorting;
3878
3880
  var sort = this.setting && !!this.setting.sortable || updatedSorting;
3879
3881
  if (this.$grid) {
3880
3882
  if (columns && columns.length) {
3881
3883
  var colWidth = this.loadColWidth();
3882
- this.$grid.reloadCustoms(columns, sort, colWidth).then(function() {
3883
- _this33.$grid.handleTableData(true).then(function() {
3884
- _this33.$grid.recalculate();
3885
- });
3886
- });
3884
+ this.$grid.reloadCustoms(columns, sort, colWidth);
3887
3885
  }
3888
3886
  if (isNumber(pageSize) && this.$grid.pagerConfig && this.$grid.pagerConfig.pageSize !== pageSize) {
3889
3887
  this.$grid.pageSizeChange(pageSize);
@@ -3969,13 +3967,13 @@ var GridToolbar = defineComponent({
3969
3967
  });
3970
3968
  },
3971
3969
  refreshEvent: function refreshEvent() {
3972
- var _this34 = this;
3970
+ var _this33 = this;
3973
3971
  var $grid = this.$grid, isRefresh = this.isRefresh, refreshOpts2 = this.refreshOpts;
3974
3972
  var catchHandler = function catchHandler2(e) {
3975
3973
  return e;
3976
3974
  };
3977
3975
  var nextHandler = function nextHandler2() {
3978
- return _this34.isRefresh = false;
3976
+ return _this33.isRefresh = false;
3979
3977
  };
3980
3978
  if (isRefresh) return;
3981
3979
  this.isRefresh = true;
package/package.json CHANGED
@@ -1,45 +1,45 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-grid-toolbar",
3
3
  "type": "module",
4
- "version": "2.24.0",
4
+ "version": "2.25.0",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,
8
8
  "main": "./lib/index.js",
9
9
  "module": "./lib/index.js",
10
10
  "dependencies": {
11
- "@opentinyvue/utils": "~3.24.0",
12
- "@opentinyvue/vue-alert": "~2.24.0",
13
- "@opentinyvue/vue-button": "~2.24.0",
14
- "@opentinyvue/vue-checkbox": "~2.24.0",
15
- "@opentinyvue/vue-checkbox-group": "~2.24.0",
16
- "@opentinyvue/vue-col": "~2.24.0",
17
- "@opentinyvue/vue-common": "~2.24.0",
18
- "@opentinyvue/vue-dialog-box": "~2.24.0",
19
- "@opentinyvue/vue-directive": "~2.24.0",
20
- "@opentinyvue/vue-dropdown": "~2.24.0",
21
- "@opentinyvue/vue-dropdown-item": "~2.24.0",
22
- "@opentinyvue/vue-dropdown-menu": "~2.24.0",
23
- "@opentinyvue/vue-grid": "~2.24.0",
24
- "@opentinyvue/vue-icon": "~2.24.0",
25
- "@opentinyvue/vue-input": "~2.24.0",
26
- "@opentinyvue/vue-layout": "~2.24.0",
27
- "@opentinyvue/vue-locale": "~2.24.0",
28
- "@opentinyvue/vue-modal": "~2.24.0",
29
- "@opentinyvue/vue-option": "~2.24.0",
30
- "@opentinyvue/vue-popover": "~2.24.0",
31
- "@opentinyvue/vue-radio": "~2.24.0",
32
- "@opentinyvue/vue-radio-group": "~2.24.0",
33
- "@opentinyvue/vue-renderless": "~3.24.0",
34
- "@opentinyvue/vue-row": "~2.24.0",
35
- "@opentinyvue/vue-search": "~2.24.0",
36
- "@opentinyvue/vue-select": "~2.24.0",
37
- "@opentinyvue/vue-split": "~2.24.0",
38
- "@opentinyvue/vue-tab-item": "~2.24.0",
39
- "@opentinyvue/vue-tabs": "~2.24.0",
40
- "@opentinyvue/vue-theme": "~3.24.0",
41
- "@opentinyvue/vue-tooltip": "~2.24.0",
42
- "@opentinyvue/vue-tree": "~2.24.0"
11
+ "@opentinyvue/utils": "~3.25.0",
12
+ "@opentinyvue/vue-alert": "~2.25.0",
13
+ "@opentinyvue/vue-button": "~2.25.0",
14
+ "@opentinyvue/vue-checkbox": "~2.25.0",
15
+ "@opentinyvue/vue-checkbox-group": "~2.25.0",
16
+ "@opentinyvue/vue-col": "~2.25.0",
17
+ "@opentinyvue/vue-common": "~2.25.0",
18
+ "@opentinyvue/vue-dialog-box": "~2.25.0",
19
+ "@opentinyvue/vue-directive": "~2.25.0",
20
+ "@opentinyvue/vue-dropdown": "~2.25.0",
21
+ "@opentinyvue/vue-dropdown-item": "~2.25.0",
22
+ "@opentinyvue/vue-dropdown-menu": "~2.25.0",
23
+ "@opentinyvue/vue-grid": "~2.25.0",
24
+ "@opentinyvue/vue-icon": "~2.25.0",
25
+ "@opentinyvue/vue-input": "~2.25.0",
26
+ "@opentinyvue/vue-layout": "~2.25.0",
27
+ "@opentinyvue/vue-locale": "~2.25.0",
28
+ "@opentinyvue/vue-modal": "~2.25.0",
29
+ "@opentinyvue/vue-option": "~2.25.0",
30
+ "@opentinyvue/vue-popover": "~2.25.0",
31
+ "@opentinyvue/vue-radio": "~2.25.0",
32
+ "@opentinyvue/vue-radio-group": "~2.25.0",
33
+ "@opentinyvue/vue-renderless": "~3.25.0",
34
+ "@opentinyvue/vue-row": "~2.25.0",
35
+ "@opentinyvue/vue-search": "~2.25.0",
36
+ "@opentinyvue/vue-select": "~2.25.0",
37
+ "@opentinyvue/vue-split": "~2.25.0",
38
+ "@opentinyvue/vue-tab-item": "~2.25.0",
39
+ "@opentinyvue/vue-tabs": "~2.25.0",
40
+ "@opentinyvue/vue-theme": "~3.25.0",
41
+ "@opentinyvue/vue-tooltip": "~2.25.0",
42
+ "@opentinyvue/vue-tree": "~2.25.0"
43
43
  },
44
44
  "types": "index.d.ts",
45
45
  "scripts": {