@opentinyvue/vue-grid-toolbar 2.24.0 → 2.26.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 +15 -17
  2. package/package.json +33 -33
package/lib/index.js CHANGED
@@ -854,9 +854,9 @@ function __vue2_injectStyles$3(context) {
854
854
  this[o] = __cssModules$3[o];
855
855
  }
856
856
  }
857
- var CustomSwitch = /* @__PURE__ */ function() {
857
+ var CustomSwitch = /* @__PURE__ */ (function() {
858
858
  return __component__$3.exports;
859
- }();
859
+ })();
860
860
  var __vue2_script$2 = defineComponent({
861
861
  components: {
862
862
  TinyAlert: Alert,
@@ -1646,9 +1646,9 @@ function __vue2_injectStyles$2(context) {
1646
1646
  this[o] = __cssModules$2[o];
1647
1647
  }
1648
1648
  }
1649
- var GridCustom = /* @__PURE__ */ function() {
1649
+ var GridCustom = /* @__PURE__ */ (function() {
1650
1650
  return __component__$2.exports;
1651
- }();
1651
+ })();
1652
1652
  var __vue2_script$1 = {
1653
1653
  name: "TinyGridCustomSelect",
1654
1654
  components: {
@@ -1783,9 +1783,9 @@ function __vue2_injectStyles$1(context) {
1783
1783
  this[o] = __cssModules$1[o];
1784
1784
  }
1785
1785
  }
1786
- var GridCustomSelect = /* @__PURE__ */ function() {
1786
+ var GridCustomSelect = /* @__PURE__ */ (function() {
1787
1787
  return __component__$1.exports;
1788
- }();
1788
+ })();
1789
1789
  var position = ["left", "right"];
1790
1790
  var TitleRender = {
1791
1791
  props: ["column"],
@@ -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: {
@@ -3250,9 +3252,9 @@ function __vue2_injectStyles(context) {
3250
3252
  this[o] = __cssModules[o];
3251
3253
  }
3252
3254
  }
3253
- var GridCustomSaas = /* @__PURE__ */ function() {
3255
+ var GridCustomSaas = /* @__PURE__ */ (function() {
3254
3256
  return __component__.exports;
3255
- }();
3257
+ })();
3256
3258
  var classMap = {
3257
3259
  isActive: "is__active"
3258
3260
  };
@@ -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.26.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.26.0",
12
+ "@opentinyvue/vue-alert": "~2.26.0",
13
+ "@opentinyvue/vue-button": "~2.26.0",
14
+ "@opentinyvue/vue-checkbox": "~2.26.0",
15
+ "@opentinyvue/vue-checkbox-group": "~2.26.0",
16
+ "@opentinyvue/vue-col": "~2.26.0",
17
+ "@opentinyvue/vue-common": "~2.26.0",
18
+ "@opentinyvue/vue-dialog-box": "~2.26.0",
19
+ "@opentinyvue/vue-directive": "~2.26.0",
20
+ "@opentinyvue/vue-dropdown": "~2.26.0",
21
+ "@opentinyvue/vue-dropdown-item": "~2.26.0",
22
+ "@opentinyvue/vue-dropdown-menu": "~2.26.0",
23
+ "@opentinyvue/vue-grid": "~2.26.0",
24
+ "@opentinyvue/vue-icon": "~2.26.0",
25
+ "@opentinyvue/vue-input": "~2.26.0",
26
+ "@opentinyvue/vue-layout": "~2.26.0",
27
+ "@opentinyvue/vue-locale": "~2.26.0",
28
+ "@opentinyvue/vue-modal": "~2.26.0",
29
+ "@opentinyvue/vue-option": "~2.26.0",
30
+ "@opentinyvue/vue-popover": "~2.26.0",
31
+ "@opentinyvue/vue-radio": "~2.26.0",
32
+ "@opentinyvue/vue-radio-group": "~2.26.0",
33
+ "@opentinyvue/vue-renderless": "~3.26.0",
34
+ "@opentinyvue/vue-row": "~2.26.0",
35
+ "@opentinyvue/vue-search": "~2.26.0",
36
+ "@opentinyvue/vue-select": "~2.26.0",
37
+ "@opentinyvue/vue-split": "~2.26.0",
38
+ "@opentinyvue/vue-tab-item": "~2.26.0",
39
+ "@opentinyvue/vue-tabs": "~2.26.0",
40
+ "@opentinyvue/vue-theme": "~3.26.0",
41
+ "@opentinyvue/vue-tooltip": "~2.26.0",
42
+ "@opentinyvue/vue-tree": "~2.26.0"
43
43
  },
44
44
  "types": "index.d.ts",
45
45
  "scripts": {