@opentinyvue/vue-grid-toolbar 3.23.0 → 3.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.
- package/lib/index.js +8 -10
- package/package.json +33 -33
- package/src/custom-switch.vue.d.ts +2 -0
- package/src/custom.vue.d.ts +2 -0
- package/src/index.d.ts +2 -0
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)
|
|
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
|
|
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
|
|
4511
|
+
return _this33.isRefresh = false;
|
|
4514
4512
|
};
|
|
4515
4513
|
if (isRefresh) return;
|
|
4516
4514
|
this.isRefresh = true;
|
|
@@ -4565,7 +4563,7 @@ var GridToolbar = defineComponent({
|
|
|
4565
4563
|
}
|
|
4566
4564
|
}
|
|
4567
4565
|
});
|
|
4568
|
-
var version = "3.
|
|
4566
|
+
var version = "3.undefined";
|
|
4569
4567
|
GridToolbar.install = function(Vue) {
|
|
4570
4568
|
Vue.component(GridToolbar.name, GridToolbar);
|
|
4571
4569
|
};
|
package/package.json
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-grid-toolbar",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.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.
|
|
12
|
-
"@opentinyvue/vue-alert": "~3.
|
|
13
|
-
"@opentinyvue/vue-button": "~3.
|
|
14
|
-
"@opentinyvue/vue-checkbox": "~3.
|
|
15
|
-
"@opentinyvue/vue-checkbox-group": "~3.
|
|
16
|
-
"@opentinyvue/vue-col": "~3.
|
|
17
|
-
"@opentinyvue/vue-common": "~3.
|
|
18
|
-
"@opentinyvue/vue-dialog-box": "~3.
|
|
19
|
-
"@opentinyvue/vue-directive": "~3.
|
|
20
|
-
"@opentinyvue/vue-dropdown": "~3.
|
|
21
|
-
"@opentinyvue/vue-dropdown-item": "~3.
|
|
22
|
-
"@opentinyvue/vue-dropdown-menu": "~3.
|
|
23
|
-
"@opentinyvue/vue-grid": "~3.
|
|
24
|
-
"@opentinyvue/vue-icon": "~3.
|
|
25
|
-
"@opentinyvue/vue-input": "~3.
|
|
26
|
-
"@opentinyvue/vue-layout": "~3.
|
|
27
|
-
"@opentinyvue/vue-locale": "~3.
|
|
28
|
-
"@opentinyvue/vue-modal": "~3.
|
|
29
|
-
"@opentinyvue/vue-option": "~3.
|
|
30
|
-
"@opentinyvue/vue-popover": "~3.
|
|
31
|
-
"@opentinyvue/vue-radio": "~3.
|
|
32
|
-
"@opentinyvue/vue-radio-group": "~3.
|
|
33
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
34
|
-
"@opentinyvue/vue-row": "~3.
|
|
35
|
-
"@opentinyvue/vue-search": "~3.
|
|
36
|
-
"@opentinyvue/vue-select": "~3.
|
|
37
|
-
"@opentinyvue/vue-split": "~3.
|
|
38
|
-
"@opentinyvue/vue-tab-item": "~3.
|
|
39
|
-
"@opentinyvue/vue-tabs": "~3.
|
|
40
|
-
"@opentinyvue/vue-theme": "~3.
|
|
41
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
42
|
-
"@opentinyvue/vue-tree": "~3.
|
|
11
|
+
"@opentinyvue/utils": "~3.25.0",
|
|
12
|
+
"@opentinyvue/vue-alert": "~3.25.0",
|
|
13
|
+
"@opentinyvue/vue-button": "~3.25.0",
|
|
14
|
+
"@opentinyvue/vue-checkbox": "~3.25.0",
|
|
15
|
+
"@opentinyvue/vue-checkbox-group": "~3.25.0",
|
|
16
|
+
"@opentinyvue/vue-col": "~3.25.0",
|
|
17
|
+
"@opentinyvue/vue-common": "~3.25.0",
|
|
18
|
+
"@opentinyvue/vue-dialog-box": "~3.25.0",
|
|
19
|
+
"@opentinyvue/vue-directive": "~3.25.0",
|
|
20
|
+
"@opentinyvue/vue-dropdown": "~3.25.0",
|
|
21
|
+
"@opentinyvue/vue-dropdown-item": "~3.25.0",
|
|
22
|
+
"@opentinyvue/vue-dropdown-menu": "~3.25.0",
|
|
23
|
+
"@opentinyvue/vue-grid": "~3.25.0",
|
|
24
|
+
"@opentinyvue/vue-icon": "~3.25.0",
|
|
25
|
+
"@opentinyvue/vue-input": "~3.25.0",
|
|
26
|
+
"@opentinyvue/vue-layout": "~3.25.0",
|
|
27
|
+
"@opentinyvue/vue-locale": "~3.25.0",
|
|
28
|
+
"@opentinyvue/vue-modal": "~3.25.0",
|
|
29
|
+
"@opentinyvue/vue-option": "~3.25.0",
|
|
30
|
+
"@opentinyvue/vue-popover": "~3.25.0",
|
|
31
|
+
"@opentinyvue/vue-radio": "~3.25.0",
|
|
32
|
+
"@opentinyvue/vue-radio-group": "~3.25.0",
|
|
33
|
+
"@opentinyvue/vue-renderless": "~3.25.0",
|
|
34
|
+
"@opentinyvue/vue-row": "~3.25.0",
|
|
35
|
+
"@opentinyvue/vue-search": "~3.25.0",
|
|
36
|
+
"@opentinyvue/vue-select": "~3.25.0",
|
|
37
|
+
"@opentinyvue/vue-split": "~3.25.0",
|
|
38
|
+
"@opentinyvue/vue-tab-item": "~3.25.0",
|
|
39
|
+
"@opentinyvue/vue-tabs": "~3.25.0",
|
|
40
|
+
"@opentinyvue/vue-theme": "~3.25.0",
|
|
41
|
+
"@opentinyvue/vue-tooltip": "~3.25.0",
|
|
42
|
+
"@opentinyvue/vue-tree": "~3.25.0"
|
|
43
43
|
},
|
|
44
44
|
"types": "index.d.ts",
|
|
45
45
|
"scripts": {
|
|
@@ -17,6 +17,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
17
17
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
18
18
|
tiny_renderless: FunctionConstructor;
|
|
19
19
|
tiny_theme: StringConstructor;
|
|
20
|
+
tiny_mcp_config: ObjectConstructor;
|
|
20
21
|
tiny_chart_theme: ObjectConstructor;
|
|
21
22
|
}, unknown, {
|
|
22
23
|
IconSave: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
@@ -86,6 +87,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
86
87
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
87
88
|
tiny_renderless: FunctionConstructor;
|
|
88
89
|
tiny_theme: StringConstructor;
|
|
90
|
+
tiny_mcp_config: ObjectConstructor;
|
|
89
91
|
tiny_chart_theme: ObjectConstructor;
|
|
90
92
|
}>> & {
|
|
91
93
|
"onInit-storage"?: ((...args: any[]) => any) | undefined;
|
package/src/custom.vue.d.ts
CHANGED
|
@@ -36,6 +36,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
36
36
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
37
37
|
tiny_renderless: FunctionConstructor;
|
|
38
38
|
tiny_theme: StringConstructor;
|
|
39
|
+
tiny_mcp_config: ObjectConstructor;
|
|
39
40
|
tiny_chart_theme: ObjectConstructor;
|
|
40
41
|
}, unknown, {
|
|
41
42
|
activeName: string;
|
|
@@ -147,6 +148,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
147
148
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
148
149
|
tiny_renderless: FunctionConstructor;
|
|
149
150
|
tiny_theme: StringConstructor;
|
|
151
|
+
tiny_mcp_config: ObjectConstructor;
|
|
150
152
|
tiny_chart_theme: ObjectConstructor;
|
|
151
153
|
}>> & {
|
|
152
154
|
onInput?: ((...args: any[]) => any) | undefined;
|
package/src/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ declare const _default: hooks.DefineComponent<{
|
|
|
42
42
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
43
43
|
tiny_renderless: FunctionConstructor;
|
|
44
44
|
tiny_theme: StringConstructor;
|
|
45
|
+
tiny_mcp_config: ObjectConstructor;
|
|
45
46
|
tiny_chart_theme: ObjectConstructor;
|
|
46
47
|
}, {
|
|
47
48
|
slots: Readonly<{
|
|
@@ -182,6 +183,7 @@ declare const _default: hooks.DefineComponent<{
|
|
|
182
183
|
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
183
184
|
tiny_renderless: FunctionConstructor;
|
|
184
185
|
tiny_theme: StringConstructor;
|
|
186
|
+
tiny_mcp_config: ObjectConstructor;
|
|
185
187
|
tiny_chart_theme: ObjectConstructor;
|
|
186
188
|
}>>, {
|
|
187
189
|
loading: boolean;
|