@opentinyvue/vue-grid-toolbar 3.24.0 → 3.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 +7 -9
  2. package/package.json +33 -33
package/lib/index.js CHANGED
@@ -3090,6 +3090,8 @@ function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) {
3090
3090
  var _directive_clickoutside = resolveDirective("clickoutside");
3091
3091
  return openBlock(), createBlock(_component_tiny_modal, {
3092
3092
  width: "800",
3093
+ tiny_mode: "pc",
3094
+ tiny_mode_root: "",
3093
3095
  title: " ",
3094
3096
  class: "tiny-grid-toolbar-modal",
3095
3097
  modelValue: _ctx.visible,
@@ -4309,8 +4311,9 @@ var GridToolbar = defineComponent({
4309
4311
  var comp = $grid || table;
4310
4312
  var sort = setting && !!setting.sortable;
4311
4313
  if (comp) {
4314
+ var _comp$reloadCustoms;
4312
4315
  var colWidth = this.loadColWidth();
4313
- comp.reloadCustoms(customs, sort, colWidth).then(function(fullColumn) {
4316
+ (_comp$reloadCustoms = comp.reloadCustoms(customs, sort, colWidth)) == null ? void 0 : _comp$reloadCustoms.then(function(fullColumn) {
4314
4317
  _this31.tableFullColumn = fullColumn;
4315
4318
  });
4316
4319
  }
@@ -4408,17 +4411,12 @@ var GridToolbar = defineComponent({
4408
4411
  });
4409
4412
  },
4410
4413
  applySettings: function applySettings(_ref21) {
4411
- var _this33 = this;
4412
4414
  var columns = _ref21.columns, pageSize = _ref21.pageSize, updatedSorting = _ref21.updatedSorting;
4413
4415
  var sort = this.setting && !!this.setting.sortable || updatedSorting;
4414
4416
  if (this.$grid) {
4415
4417
  if (columns && columns.length) {
4416
4418
  var colWidth = this.loadColWidth();
4417
- this.$grid.reloadCustoms(columns, sort, colWidth).then(function() {
4418
- _this33.$grid.handleTableData(true).then(function() {
4419
- _this33.$grid.recalculate();
4420
- });
4421
- });
4419
+ this.$grid.reloadCustoms(columns, sort, colWidth);
4422
4420
  }
4423
4421
  if (isNumber(pageSize) && this.$grid.pagerConfig && this.$grid.pagerConfig.pageSize !== pageSize) {
4424
4422
  this.$grid.pageSizeChange(pageSize);
@@ -4504,13 +4502,13 @@ var GridToolbar = defineComponent({
4504
4502
  });
4505
4503
  },
4506
4504
  refreshEvent: function refreshEvent() {
4507
- var _this34 = this;
4505
+ var _this33 = this;
4508
4506
  var $grid = this.$grid, isRefresh = this.isRefresh, refreshOpts2 = this.refreshOpts;
4509
4507
  var catchHandler = function catchHandler2(e) {
4510
4508
  return e;
4511
4509
  };
4512
4510
  var nextHandler = function nextHandler2() {
4513
- return _this34.isRefresh = false;
4511
+ return _this33.isRefresh = false;
4514
4512
  };
4515
4513
  if (isRefresh) return;
4516
4514
  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": "3.24.0",
4
+ "version": "3.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": "~3.24.0",
13
- "@opentinyvue/vue-button": "~3.24.0",
14
- "@opentinyvue/vue-checkbox": "~3.24.0",
15
- "@opentinyvue/vue-checkbox-group": "~3.24.0",
16
- "@opentinyvue/vue-col": "~3.24.0",
17
- "@opentinyvue/vue-common": "~3.24.0",
18
- "@opentinyvue/vue-dialog-box": "~3.24.0",
19
- "@opentinyvue/vue-directive": "~3.24.0",
20
- "@opentinyvue/vue-dropdown": "~3.24.0",
21
- "@opentinyvue/vue-dropdown-item": "~3.24.0",
22
- "@opentinyvue/vue-dropdown-menu": "~3.24.0",
23
- "@opentinyvue/vue-grid": "~3.24.0",
24
- "@opentinyvue/vue-icon": "~3.24.0",
25
- "@opentinyvue/vue-input": "~3.24.0",
26
- "@opentinyvue/vue-layout": "~3.24.0",
27
- "@opentinyvue/vue-locale": "~3.24.0",
28
- "@opentinyvue/vue-modal": "~3.24.0",
29
- "@opentinyvue/vue-option": "~3.24.0",
30
- "@opentinyvue/vue-popover": "~3.24.0",
31
- "@opentinyvue/vue-radio": "~3.24.0",
32
- "@opentinyvue/vue-radio-group": "~3.24.0",
33
- "@opentinyvue/vue-renderless": "~3.24.0",
34
- "@opentinyvue/vue-row": "~3.24.0",
35
- "@opentinyvue/vue-search": "~3.24.0",
36
- "@opentinyvue/vue-select": "~3.24.0",
37
- "@opentinyvue/vue-split": "~3.24.0",
38
- "@opentinyvue/vue-tab-item": "~3.24.0",
39
- "@opentinyvue/vue-tabs": "~3.24.0",
40
- "@opentinyvue/vue-theme": "~3.24.0",
41
- "@opentinyvue/vue-tooltip": "~3.24.0",
42
- "@opentinyvue/vue-tree": "~3.24.0"
11
+ "@opentinyvue/utils": "~3.26.0",
12
+ "@opentinyvue/vue-alert": "~3.26.0",
13
+ "@opentinyvue/vue-button": "~3.26.0",
14
+ "@opentinyvue/vue-checkbox": "~3.26.0",
15
+ "@opentinyvue/vue-checkbox-group": "~3.26.0",
16
+ "@opentinyvue/vue-col": "~3.26.0",
17
+ "@opentinyvue/vue-common": "~3.26.0",
18
+ "@opentinyvue/vue-dialog-box": "~3.26.0",
19
+ "@opentinyvue/vue-directive": "~3.26.0",
20
+ "@opentinyvue/vue-dropdown": "~3.26.0",
21
+ "@opentinyvue/vue-dropdown-item": "~3.26.0",
22
+ "@opentinyvue/vue-dropdown-menu": "~3.26.0",
23
+ "@opentinyvue/vue-grid": "~3.26.0",
24
+ "@opentinyvue/vue-icon": "~3.26.0",
25
+ "@opentinyvue/vue-input": "~3.26.0",
26
+ "@opentinyvue/vue-layout": "~3.26.0",
27
+ "@opentinyvue/vue-locale": "~3.26.0",
28
+ "@opentinyvue/vue-modal": "~3.26.0",
29
+ "@opentinyvue/vue-option": "~3.26.0",
30
+ "@opentinyvue/vue-popover": "~3.26.0",
31
+ "@opentinyvue/vue-radio": "~3.26.0",
32
+ "@opentinyvue/vue-radio-group": "~3.26.0",
33
+ "@opentinyvue/vue-renderless": "~3.26.0",
34
+ "@opentinyvue/vue-row": "~3.26.0",
35
+ "@opentinyvue/vue-search": "~3.26.0",
36
+ "@opentinyvue/vue-select": "~3.26.0",
37
+ "@opentinyvue/vue-split": "~3.26.0",
38
+ "@opentinyvue/vue-tab-item": "~3.26.0",
39
+ "@opentinyvue/vue-tabs": "~3.26.0",
40
+ "@opentinyvue/vue-theme": "~3.26.0",
41
+ "@opentinyvue/vue-tooltip": "~3.26.0",
42
+ "@opentinyvue/vue-tree": "~3.26.0"
43
43
  },
44
44
  "types": "index.d.ts",
45
45
  "scripts": {