@opentinyvue/vue-grid-toolbar 3.22.1 → 3.24.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 +119 -119
- 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
|
@@ -1263,12 +1263,12 @@ var _sfc_main$2 = defineComponent({
|
|
|
1263
1263
|
return [].concat(fixedLeft, normal, fixedRight);
|
|
1264
1264
|
},
|
|
1265
1265
|
initNumberSorting: function initNumberSorting(columns) {
|
|
1266
|
-
var
|
|
1266
|
+
var _this0 = this;
|
|
1267
1267
|
if (this.isGroup) return;
|
|
1268
1268
|
this.sortingOptions = [];
|
|
1269
1269
|
columns.forEach(function(column, index) {
|
|
1270
1270
|
column.sortingIndex = index + 1;
|
|
1271
|
-
|
|
1271
|
+
_this0.sortingOptions.push(column.sortingIndex);
|
|
1272
1272
|
});
|
|
1273
1273
|
},
|
|
1274
1274
|
handelNumberSorting: function handelNumberSorting(sort, row) {
|
|
@@ -1423,12 +1423,12 @@ var _sfc_main$2 = defineComponent({
|
|
|
1423
1423
|
this.handleClose();
|
|
1424
1424
|
},
|
|
1425
1425
|
resetSettings: function resetSettings(event) {
|
|
1426
|
-
var
|
|
1426
|
+
var _this1 = this;
|
|
1427
1427
|
if (this.activeName === "base") {
|
|
1428
1428
|
this.columns = this.getColumnConfigs(this.data);
|
|
1429
1429
|
if (this.settings.columns && this.settings.columns.length) {
|
|
1430
1430
|
this.settings.columns.forEach(function(setting) {
|
|
1431
|
-
var column = find(
|
|
1431
|
+
var column = find(_this1.columns, function(item) {
|
|
1432
1432
|
return item.property === setting.property;
|
|
1433
1433
|
});
|
|
1434
1434
|
if (column) {
|
|
@@ -1452,7 +1452,7 @@ var _sfc_main$2 = defineComponent({
|
|
|
1452
1452
|
this.$emit("showModal", false);
|
|
1453
1453
|
},
|
|
1454
1454
|
handleReset: function handleReset(event) {
|
|
1455
|
-
var
|
|
1455
|
+
var _this10 = this;
|
|
1456
1456
|
var equal = function equal2(cols1, cols2) {
|
|
1457
1457
|
var props1 = [];
|
|
1458
1458
|
var props2 = [];
|
|
@@ -1466,14 +1466,14 @@ var _sfc_main$2 = defineComponent({
|
|
|
1466
1466
|
};
|
|
1467
1467
|
if (typeof this.resetMethod === "function") {
|
|
1468
1468
|
this.resetMethod().then(function(sourceSettings) {
|
|
1469
|
-
|
|
1469
|
+
_this10.buildSettings();
|
|
1470
1470
|
var _ref5 = sourceSettings || {}, columns = _ref5.columns, sortType = _ref5.sortType, pageSize = _ref5.pageSize;
|
|
1471
|
-
if (columns && columns.length &&
|
|
1472
|
-
|
|
1471
|
+
if (columns && columns.length && _this10.settings.columns && _this10.settings.columns.length) {
|
|
1472
|
+
_this10.settings.columns.forEach(function(setting) {
|
|
1473
1473
|
var source = find(columns, function(item) {
|
|
1474
1474
|
return item.property === setting.property;
|
|
1475
1475
|
});
|
|
1476
|
-
var target = find(
|
|
1476
|
+
var target = find(_this10.columns, function(item) {
|
|
1477
1477
|
return item.property === setting.property;
|
|
1478
1478
|
});
|
|
1479
1479
|
if (source) {
|
|
@@ -1481,25 +1481,25 @@ var _sfc_main$2 = defineComponent({
|
|
|
1481
1481
|
Object.assign(target, source);
|
|
1482
1482
|
}
|
|
1483
1483
|
});
|
|
1484
|
-
if (equal(columns,
|
|
1484
|
+
if (equal(columns, _this10.settings.columns)) {
|
|
1485
1485
|
var settingColumns = [];
|
|
1486
1486
|
var gridColumns = [];
|
|
1487
1487
|
columns.forEach(function(source) {
|
|
1488
|
-
var settingCol = find(
|
|
1488
|
+
var settingCol = find(_this10.settings.columns, function(item) {
|
|
1489
1489
|
return source.property === item.property;
|
|
1490
1490
|
});
|
|
1491
|
-
var targetCol = find(
|
|
1491
|
+
var targetCol = find(_this10.columns, function(item) {
|
|
1492
1492
|
return source.property === item.property;
|
|
1493
1493
|
});
|
|
1494
1494
|
settingColumns.push(settingCol);
|
|
1495
1495
|
gridColumns.push(targetCol);
|
|
1496
1496
|
});
|
|
1497
|
-
|
|
1498
|
-
|
|
1497
|
+
_this10.settings.columns = settingColumns;
|
|
1498
|
+
_this10.columns = gridColumns;
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
sortType && (
|
|
1502
|
-
pageSize && (
|
|
1501
|
+
sortType && (_this10.settings.sortType = sortType);
|
|
1502
|
+
pageSize && (_this10.settings.pageSize = pageSize);
|
|
1503
1503
|
});
|
|
1504
1504
|
} else {
|
|
1505
1505
|
this.resetSettings(event);
|
|
@@ -1944,12 +1944,12 @@ var _sfc_main$1 = {
|
|
|
1944
1944
|
});
|
|
1945
1945
|
},
|
|
1946
1946
|
getColumnConfigs: function getColumnConfigs2(configs) {
|
|
1947
|
-
var
|
|
1947
|
+
var _this11 = this;
|
|
1948
1948
|
var _getColNodes2 = function getColNodes(columns2) {
|
|
1949
1949
|
return columns2.map(function(_ref8) {
|
|
1950
1950
|
var id = _ref8.id, title = _ref8.title, property = _ref8.property, fixed = _ref8.fixed, visible = _ref8.visible, order = _ref8.order, sortable = _ref8.sortable, level = _ref8.level, children = _ref8.children;
|
|
1951
1951
|
if (property) {
|
|
1952
|
-
var
|
|
1952
|
+
var _this11$setting;
|
|
1953
1953
|
var column = {
|
|
1954
1954
|
id,
|
|
1955
1955
|
title,
|
|
@@ -1961,7 +1961,7 @@ var _sfc_main$1 = {
|
|
|
1961
1961
|
level,
|
|
1962
1962
|
children
|
|
1963
1963
|
};
|
|
1964
|
-
column.disabled = Boolean((
|
|
1964
|
+
column.disabled = Boolean((_this11$setting = _this11.setting) == null ? void 0 : _this11$setting.customDisable == null ? void 0 : _this11$setting.customDisable(column));
|
|
1965
1965
|
children && (column.children = _getColNodes2(children));
|
|
1966
1966
|
return column;
|
|
1967
1967
|
}
|
|
@@ -2176,7 +2176,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2176
2176
|
},
|
|
2177
2177
|
watch: {
|
|
2178
2178
|
value: function value2(val) {
|
|
2179
|
-
var
|
|
2179
|
+
var _this12 = this;
|
|
2180
2180
|
if (val) {
|
|
2181
2181
|
this.initOpt();
|
|
2182
2182
|
this.columns = this.getColumnConfigs(this.data);
|
|
@@ -2188,10 +2188,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2188
2188
|
});
|
|
2189
2189
|
this.defaultcheckedkeys = this.getDefaultcheckedkeys();
|
|
2190
2190
|
setTimeout(function() {
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
if (
|
|
2194
|
-
|
|
2191
|
+
_this12.initDragEvent();
|
|
2192
|
+
_this12.initDrag = true;
|
|
2193
|
+
if (_this12.$refs.tree) {
|
|
2194
|
+
_this12.allCheckedKeys = [].concat(_this12.$refs.tree.getCheckedKeys(), _this12.$refs.tree.getHalfCheckedKeys());
|
|
2195
2195
|
}
|
|
2196
2196
|
}, 100);
|
|
2197
2197
|
this.reset();
|
|
@@ -2215,9 +2215,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2215
2215
|
},
|
|
2216
2216
|
activeName: {
|
|
2217
2217
|
handler: function handler7(val) {
|
|
2218
|
-
var
|
|
2218
|
+
var _this13 = this;
|
|
2219
2219
|
setTimeout(function() {
|
|
2220
|
-
|
|
2220
|
+
_this13.animateShow = val;
|
|
2221
2221
|
}, 0);
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
@@ -2247,10 +2247,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2247
2247
|
return this.tinyTable.tinyTheme || GridConfig.themes.AURORA;
|
|
2248
2248
|
},
|
|
2249
2249
|
visibleColumns: function visibleColumns() {
|
|
2250
|
-
var
|
|
2250
|
+
var _this14 = this;
|
|
2251
2251
|
if (this.isGroup) {
|
|
2252
2252
|
return this.columns.filter(function(column) {
|
|
2253
|
-
return
|
|
2253
|
+
return _this14.allCheckedKeys.includes(column.id);
|
|
2254
2254
|
});
|
|
2255
2255
|
} else {
|
|
2256
2256
|
return this.columns.filter(function(column) {
|
|
@@ -2259,9 +2259,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2259
2259
|
}
|
|
2260
2260
|
},
|
|
2261
2261
|
selectedTemplateVal: function selectedTemplateVal() {
|
|
2262
|
-
var
|
|
2262
|
+
var _this15 = this;
|
|
2263
2263
|
return this.templateOptions.find(function(item) {
|
|
2264
|
-
return item.id ===
|
|
2264
|
+
return item.id === _this15.selectedTemplate;
|
|
2265
2265
|
}) || {};
|
|
2266
2266
|
},
|
|
2267
2267
|
isIndeterminate: {
|
|
@@ -2396,7 +2396,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2396
2396
|
}
|
|
2397
2397
|
},
|
|
2398
2398
|
getColumnConfigs: function getColumnConfigs3(configs) {
|
|
2399
|
-
var
|
|
2399
|
+
var _this16 = this;
|
|
2400
2400
|
var alwaysShowColumns = this.alwaysShowColumns;
|
|
2401
2401
|
this.colIds = [];
|
|
2402
2402
|
var _getColNodes3 = function getColNodes(columns2) {
|
|
@@ -2418,7 +2418,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2418
2418
|
expand: true
|
|
2419
2419
|
};
|
|
2420
2420
|
children && (column.children = _getColNodes3(children));
|
|
2421
|
-
|
|
2421
|
+
_this16.colIds.push(id);
|
|
2422
2422
|
return column;
|
|
2423
2423
|
}
|
|
2424
2424
|
return null;
|
|
@@ -2438,10 +2438,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2438
2438
|
}
|
|
2439
2439
|
},
|
|
2440
2440
|
initSortAndFixedOption: function initSortAndFixedOption(columns) {
|
|
2441
|
-
var
|
|
2441
|
+
var _this17 = this;
|
|
2442
2442
|
columns.forEach(function(column) {
|
|
2443
|
-
column.sortOption = column.order === "asc" ? [
|
|
2444
|
-
column.fixedOption = column.fixed === "left" ? [
|
|
2443
|
+
column.sortOption = column.order === "asc" ? [_this17.opt.desc, _this17.opt.cancelSort] : column.order === "desc" ? [_this17.opt.asc, _this17.opt.cancelSort] : [_this17.opt.asc, _this17.opt.desc];
|
|
2444
|
+
column.fixedOption = column.fixed === "left" ? [_this17.opt.right, _this17.opt.cancelFixed] : column.fixed === "right" ? [_this17.opt.left, _this17.opt.cancelFixed] : [_this17.opt.left, _this17.opt.right];
|
|
2445
2445
|
});
|
|
2446
2446
|
},
|
|
2447
2447
|
initSortingColumns: function initSortingColumns(columns) {
|
|
@@ -2462,13 +2462,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2462
2462
|
return result;
|
|
2463
2463
|
},
|
|
2464
2464
|
getGroupedColumns: function getGroupedColumns() {
|
|
2465
|
-
var
|
|
2465
|
+
var _this18 = this;
|
|
2466
2466
|
var result = [];
|
|
2467
2467
|
if (this.columnsGroup.length) {
|
|
2468
2468
|
this.columnsGroup.forEach(function(item) {
|
|
2469
2469
|
var data6 = [];
|
|
2470
2470
|
item.data.forEach(function(col) {
|
|
2471
|
-
var column =
|
|
2471
|
+
var column = _this18.originColumns.find(function(c) {
|
|
2472
2472
|
return c.property === col;
|
|
2473
2473
|
});
|
|
2474
2474
|
if (column) {
|
|
@@ -2503,25 +2503,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2503
2503
|
return checkedkeys;
|
|
2504
2504
|
},
|
|
2505
2505
|
deleteTemplate: function deleteTemplate(item, $event) {
|
|
2506
|
-
var
|
|
2506
|
+
var _this19 = this;
|
|
2507
2507
|
$event.stopPropagation();
|
|
2508
2508
|
Modal.confirm(t("ui.grid.individuation.switchdelcon"), t("ui.grid.individuation.switchdelconfirm")).then(function(res) {
|
|
2509
2509
|
if (res === "confirm") {
|
|
2510
|
-
if (!
|
|
2511
|
-
|
|
2510
|
+
if (!_this19.setting.remote && item.id === _this19.selectedTemplate) {
|
|
2511
|
+
_this19.selectedTemplate = "";
|
|
2512
2512
|
setTimeout(function() {
|
|
2513
|
-
|
|
2513
|
+
_this19.templateOptions = _this19.$refs.switch.options;
|
|
2514
2514
|
});
|
|
2515
2515
|
}
|
|
2516
|
-
|
|
2517
|
-
|
|
2516
|
+
_this19.$refs.switch.handleDelConfirm("yes", item);
|
|
2517
|
+
_this19.$emit("delete-template", item);
|
|
2518
2518
|
}
|
|
2519
2519
|
});
|
|
2520
2520
|
},
|
|
2521
2521
|
selectedTemplateChange: function selectedTemplateChange() {
|
|
2522
|
-
var
|
|
2522
|
+
var _this20 = this;
|
|
2523
2523
|
var selected = this.templateOptions.find(function(opt) {
|
|
2524
|
-
return opt.id ===
|
|
2524
|
+
return opt.id === _this20.selectedTemplate;
|
|
2525
2525
|
});
|
|
2526
2526
|
if (selected) {
|
|
2527
2527
|
this.columns = mergeArray(this.columns, selected.setting.custom.columns);
|
|
@@ -2539,7 +2539,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2539
2539
|
this.updatedSorting = true;
|
|
2540
2540
|
if (this.$refs.tree) {
|
|
2541
2541
|
setTimeout(function() {
|
|
2542
|
-
|
|
2542
|
+
_this20.allCheckedKeys = [].concat(_this20.$refs.tree.getCheckedKeys(), _this20.$refs.tree.getHalfCheckedKeys());
|
|
2543
2543
|
}, 100);
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
@@ -2558,11 +2558,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2558
2558
|
},
|
|
2559
2559
|
// 勿同步,search组件input事件第一个参数就是val
|
|
2560
2560
|
searchChange: function searchChange(val) {
|
|
2561
|
-
var
|
|
2561
|
+
var _this21 = this;
|
|
2562
2562
|
var getRenderedTitle = function getRenderedTitle2(col) {
|
|
2563
2563
|
var result = "";
|
|
2564
2564
|
if (typeof col.title === "function") {
|
|
2565
|
-
var titleElm =
|
|
2565
|
+
var titleElm = _this21.$el.querySelector(".custom-saas-title-render." + col.id);
|
|
2566
2566
|
result = titleElm && titleElm.textContent || "";
|
|
2567
2567
|
result = result.toUpperCase();
|
|
2568
2568
|
} else if (col.title) {
|
|
@@ -2662,13 +2662,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2662
2662
|
}).length >= this.maxFixedNum;
|
|
2663
2663
|
},
|
|
2664
2664
|
updateSortingIndex: function updateSortingIndex() {
|
|
2665
|
-
var
|
|
2665
|
+
var _this22 = this;
|
|
2666
2666
|
this.sortingOptions = [];
|
|
2667
2667
|
var index = 1;
|
|
2668
2668
|
this.columns.forEach(function(column) {
|
|
2669
2669
|
if (column.visible) {
|
|
2670
2670
|
column.sortingIndex = index;
|
|
2671
|
-
|
|
2671
|
+
_this22.sortingOptions.push(column.sortingIndex);
|
|
2672
2672
|
index++;
|
|
2673
2673
|
} else {
|
|
2674
2674
|
column.sortingIndex = null;
|
|
@@ -2705,8 +2705,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2705
2705
|
buildSettings: function buildSettings2() {
|
|
2706
2706
|
var props = ["order", "fixed", "visible", "sortable"].concat(this.keys);
|
|
2707
2707
|
!this.updatedSorting && !this.columnsGroup.length && (this.columns = [].concat(this.groupedColumns[0].data));
|
|
2708
|
-
this.settings.columns = mapTree(this.columns, function(
|
|
2709
|
-
var property =
|
|
2708
|
+
this.settings.columns = mapTree(this.columns, function(_ref0) {
|
|
2709
|
+
var property = _ref0.property, rest = _objectWithoutPropertiesLoose(_ref0, _excluded3);
|
|
2710
2710
|
var node = {
|
|
2711
2711
|
property
|
|
2712
2712
|
};
|
|
@@ -2718,13 +2718,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2718
2718
|
return this.settings;
|
|
2719
2719
|
},
|
|
2720
2720
|
saveSettings: function saveSettings2(val) {
|
|
2721
|
-
var
|
|
2721
|
+
var _this23 = this;
|
|
2722
2722
|
var visible = typeof val === "boolean" ? val : false;
|
|
2723
2723
|
this.buildSettings();
|
|
2724
2724
|
this.$emit("saveSettings", this.settings, visible, this.updatedSorting);
|
|
2725
2725
|
if (this.multipleHistory && this.selectedTemplate) {
|
|
2726
2726
|
var selected = this.templateOptions.find(function(opt) {
|
|
2727
|
-
return opt.id ===
|
|
2727
|
+
return opt.id === _this23.selectedTemplate;
|
|
2728
2728
|
});
|
|
2729
2729
|
if (selected && JSON.stringify(selected.setting.custom.columns) !== JSON.stringify(this.settings.columns)) {
|
|
2730
2730
|
this.$refs.switch.handleSaveConfirm("overwrite", true);
|
|
@@ -2733,7 +2733,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2733
2733
|
!visible && this.handleClose();
|
|
2734
2734
|
},
|
|
2735
2735
|
resetSettings: function resetSettings2(event) {
|
|
2736
|
-
var
|
|
2736
|
+
var _this24 = this;
|
|
2737
2737
|
if (this.activeName === "base") {
|
|
2738
2738
|
this.columns = this.getColumnConfigs(this.data);
|
|
2739
2739
|
this.checkedColumns = this.columns.filter(function(col) {
|
|
@@ -2743,7 +2743,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2743
2743
|
});
|
|
2744
2744
|
if (this.settings.columns && this.settings.columns.length) {
|
|
2745
2745
|
this.settings.columns.forEach(function(setting) {
|
|
2746
|
-
var column = find(
|
|
2746
|
+
var column = find(_this24.columns, function(item) {
|
|
2747
2747
|
return item.property === setting.property;
|
|
2748
2748
|
});
|
|
2749
2749
|
if (column) {
|
|
@@ -2767,7 +2767,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2767
2767
|
this.$emit("showModal", false);
|
|
2768
2768
|
},
|
|
2769
2769
|
handleReset: function handleReset2(event) {
|
|
2770
|
-
var
|
|
2770
|
+
var _this25 = this;
|
|
2771
2771
|
var equal = function equal2(cols1, cols2) {
|
|
2772
2772
|
var props1 = [];
|
|
2773
2773
|
var props2 = [];
|
|
@@ -2781,15 +2781,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2781
2781
|
};
|
|
2782
2782
|
if (typeof this.resetMethod === "function") {
|
|
2783
2783
|
this.resetMethod().then(function(sourceSettings) {
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
var
|
|
2787
|
-
if (columns && columns.length &&
|
|
2788
|
-
|
|
2784
|
+
_this25.updatedSorting = true;
|
|
2785
|
+
_this25.buildSettings();
|
|
2786
|
+
var _ref1 = sourceSettings || {}, columns = _ref1.columns, sortType = _ref1.sortType, pageSize = _ref1.pageSize;
|
|
2787
|
+
if (columns && columns.length && _this25.settings.columns && _this25.settings.columns.length) {
|
|
2788
|
+
_this25.settings.columns.forEach(function(setting) {
|
|
2789
2789
|
var source = find(columns, function(item) {
|
|
2790
2790
|
return item.property === setting.property;
|
|
2791
2791
|
});
|
|
2792
|
-
var target = find(
|
|
2792
|
+
var target = find(_this25.columns, function(item) {
|
|
2793
2793
|
return item.property === setting.property;
|
|
2794
2794
|
});
|
|
2795
2795
|
if (source) {
|
|
@@ -2797,26 +2797,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2797
2797
|
Object.assign(target, source);
|
|
2798
2798
|
}
|
|
2799
2799
|
});
|
|
2800
|
-
if (equal(columns,
|
|
2800
|
+
if (equal(columns, _this25.settings.columns)) {
|
|
2801
2801
|
var settingColumns = [];
|
|
2802
2802
|
var gridColumns = [];
|
|
2803
2803
|
columns.forEach(function(source) {
|
|
2804
|
-
var settingCol = find(
|
|
2804
|
+
var settingCol = find(_this25.settings.columns, function(item) {
|
|
2805
2805
|
return source.property === item.property;
|
|
2806
2806
|
});
|
|
2807
|
-
var targetCol = find(
|
|
2807
|
+
var targetCol = find(_this25.columns, function(item) {
|
|
2808
2808
|
return source.property === item.property;
|
|
2809
2809
|
});
|
|
2810
2810
|
settingColumns.push(settingCol);
|
|
2811
2811
|
gridColumns.push(targetCol);
|
|
2812
2812
|
});
|
|
2813
|
-
|
|
2814
|
-
|
|
2813
|
+
_this25.settings.columns = settingColumns;
|
|
2814
|
+
_this25.columns = gridColumns;
|
|
2815
2815
|
}
|
|
2816
2816
|
}
|
|
2817
|
-
sortType && (
|
|
2818
|
-
pageSize && (
|
|
2819
|
-
|
|
2817
|
+
sortType && (_this25.settings.sortType = sortType);
|
|
2818
|
+
pageSize && (_this25.settings.pageSize = pageSize);
|
|
2819
|
+
_this25.checkedColumns = _this25.columns.filter(function(col) {
|
|
2820
2820
|
return col.visible;
|
|
2821
2821
|
}).map(function(col) {
|
|
2822
2822
|
return col.property;
|
|
@@ -2873,10 +2873,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2873
2873
|
this.columnsSorted = true;
|
|
2874
2874
|
},
|
|
2875
2875
|
initDragEvent: function initDragEvent() {
|
|
2876
|
-
var
|
|
2876
|
+
var _this26 = this;
|
|
2877
2877
|
var handleUpdate = function handleUpdate2(e) {
|
|
2878
2878
|
var from = e.from, to = e.to, oldIndex = e.oldIndex, newIndex = e.newIndex;
|
|
2879
|
-
|
|
2879
|
+
_this26.handleFixed("drag", from, to, oldIndex, newIndex);
|
|
2880
2880
|
};
|
|
2881
2881
|
if (!this.dropConfig.plugin) return;
|
|
2882
2882
|
this.dropConfig.plugin.create(this.$refs.list, {
|
|
@@ -2885,7 +2885,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2885
2885
|
handle: ".toolbar-drag-item",
|
|
2886
2886
|
onUpdate: handleUpdate,
|
|
2887
2887
|
onMove: function onMove(e) {
|
|
2888
|
-
if (e.related && (e.related.classList.contains("left") || e.related.classList.contains("right")) && !(e.dragged.classList.contains("left") || e.dragged.classList.contains("right")) &&
|
|
2888
|
+
if (e.related && (e.related.classList.contains("left") || e.related.classList.contains("right")) && !(e.dragged.classList.contains("left") || e.dragged.classList.contains("right")) && _this26.fixedNumberIsMax()) {
|
|
2889
2889
|
Modal.message({
|
|
2890
2890
|
message: t("ui.grid.individuation.maxFreezeNumMsg"),
|
|
2891
2891
|
status: "warning",
|
|
@@ -2894,22 +2894,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2894
2894
|
return false;
|
|
2895
2895
|
}
|
|
2896
2896
|
var rowName = e.dragged && e.dragged.getAttribute("data-row");
|
|
2897
|
-
var row =
|
|
2897
|
+
var row = _this26.columns.find(function(row2) {
|
|
2898
2898
|
return row2.property === rowName;
|
|
2899
2899
|
}) || {};
|
|
2900
|
-
var cancel = typeof
|
|
2900
|
+
var cancel = typeof _this26.onBeforeMove === "function" ? _this26.onBeforeMove("row", row, e) : true;
|
|
2901
2901
|
return cancel === void 0 || cancel;
|
|
2902
2902
|
}
|
|
2903
2903
|
});
|
|
2904
2904
|
},
|
|
2905
2905
|
clickSortDisplay: function clickSortDisplay(column, index) {
|
|
2906
|
-
var
|
|
2906
|
+
var _this27 = this;
|
|
2907
2907
|
column.numberSortVisible = true;
|
|
2908
2908
|
this.columns.forEach(function(col) {
|
|
2909
2909
|
return col !== column && (col.numberSortVisible = false);
|
|
2910
2910
|
});
|
|
2911
2911
|
this.$nextTick(function() {
|
|
2912
|
-
var selectVm =
|
|
2912
|
+
var selectVm = _this27.$refs["select" + index];
|
|
2913
2913
|
selectVm = isArray(selectVm) && selectVm[0] ? selectVm[0] : null;
|
|
2914
2914
|
if (selectVm) {
|
|
2915
2915
|
selectVm.focus();
|
|
@@ -3791,15 +3791,15 @@ var GridCustomSaas = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_ren
|
|
|
3791
3791
|
var classMap = {
|
|
3792
3792
|
isActive: "is__active"
|
|
3793
3793
|
};
|
|
3794
|
-
function createMacroTask(
|
|
3795
|
-
var _vm =
|
|
3794
|
+
function createMacroTask(_ref10) {
|
|
3795
|
+
var _vm = _ref10._vm;
|
|
3796
3796
|
setTimeout(function() {
|
|
3797
3797
|
if (_vm.settingStore.activeBtn || _vm.settingStore.activeWrapper) return;
|
|
3798
3798
|
_vm.closeSetting();
|
|
3799
3799
|
}, 300);
|
|
3800
3800
|
}
|
|
3801
|
-
function renderToolsWrapper(
|
|
3802
|
-
var _vm =
|
|
3801
|
+
function renderToolsWrapper(_ref11) {
|
|
3802
|
+
var _vm = _ref11._vm, $tools = _ref11.$tools, $grid = _ref11.$grid, table = _ref11.table;
|
|
3803
3803
|
return h("div", {
|
|
3804
3804
|
class: "tiny-grid-tools__wrapper"
|
|
3805
3805
|
}, $tools.call(_vm, {
|
|
@@ -3807,8 +3807,8 @@ function renderToolsWrapper(_ref13) {
|
|
|
3807
3807
|
$table: table
|
|
3808
3808
|
}, h));
|
|
3809
3809
|
}
|
|
3810
|
-
function renderFullScreenWrapper(
|
|
3811
|
-
var _vm =
|
|
3810
|
+
function renderFullScreenWrapper(_ref12) {
|
|
3811
|
+
var _vm = _ref12._vm;
|
|
3812
3812
|
return h("div", {
|
|
3813
3813
|
class: "tiny-grid-fullscreen__wrapper"
|
|
3814
3814
|
}, [h("div", {
|
|
@@ -3820,8 +3820,8 @@ function renderFullScreenWrapper(_ref14) {
|
|
|
3820
3820
|
class: "tiny-svg-size"
|
|
3821
3821
|
})])]);
|
|
3822
3822
|
}
|
|
3823
|
-
function renderRefreshWrapper(
|
|
3824
|
-
var _vm =
|
|
3823
|
+
function renderRefreshWrapper(_ref13) {
|
|
3824
|
+
var _vm = _ref13._vm;
|
|
3825
3825
|
return h("div", {
|
|
3826
3826
|
class: "tiny-grid-refresh__wrapper"
|
|
3827
3827
|
}, [h("div", {
|
|
@@ -3835,11 +3835,11 @@ function renderRefreshWrapper(_ref15) {
|
|
|
3835
3835
|
}]
|
|
3836
3836
|
})])]);
|
|
3837
3837
|
}
|
|
3838
|
-
function renderCustomWrapper(
|
|
3839
|
-
var
|
|
3840
|
-
var _vm =
|
|
3838
|
+
function renderCustomWrapper(_ref14) {
|
|
3839
|
+
var _ref15;
|
|
3840
|
+
var _vm = _ref14._vm, settingStore = _ref14.settingStore, settingsBtnOns = _ref14.settingsBtnOns, tableFullColumn = _ref14.tableFullColumn, setting = _ref14.setting, initSettings = _ref14.initSettings;
|
|
3841
3841
|
return h("div", {
|
|
3842
|
-
class: ["tiny-grid-custom__wrapper", (
|
|
3842
|
+
class: ["tiny-grid-custom__wrapper", (_ref15 = {}, _ref15[classMap.isActive] = settingStore.customVisible, _ref15)],
|
|
3843
3843
|
ref: "customWrapper"
|
|
3844
3844
|
}, [
|
|
3845
3845
|
// TODO: 此处应使用图标按钮,但saas主题图标按钮样式有问题。
|
|
@@ -3902,8 +3902,8 @@ function renderCustomWrapper(_ref16) {
|
|
|
3902
3902
|
})])
|
|
3903
3903
|
]);
|
|
3904
3904
|
}
|
|
3905
|
-
function getScopedSlots(
|
|
3906
|
-
var item =
|
|
3905
|
+
function getScopedSlots(_ref16) {
|
|
3906
|
+
var item = _ref16.item, _vm = _ref16._vm, vSize2 = _ref16.vSize;
|
|
3907
3907
|
var scopedSlots = null;
|
|
3908
3908
|
var childHandler = function childHandler2(child) {
|
|
3909
3909
|
var res = [null];
|
|
@@ -3936,9 +3936,9 @@ function getScopedSlots(_ref18) {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
return scopedSlots;
|
|
3938
3938
|
}
|
|
3939
|
-
function renderButtonWrapper(
|
|
3939
|
+
function renderButtonWrapper(_ref17) {
|
|
3940
3940
|
var _childrenArg;
|
|
3941
|
-
var _vm =
|
|
3941
|
+
var _vm = _ref17._vm, $buttons = _ref17.$buttons, $grid = _ref17.$grid, table = _ref17.table, buttons = _ref17.buttons, vSize2 = _ref17.vSize;
|
|
3942
3942
|
var childrenArg;
|
|
3943
3943
|
if ($buttons) {
|
|
3944
3944
|
childrenArg = $buttons.call(_vm, {
|
|
@@ -4103,7 +4103,7 @@ var GridToolbar = defineComponent({
|
|
|
4103
4103
|
}
|
|
4104
4104
|
},
|
|
4105
4105
|
created: function created5() {
|
|
4106
|
-
var
|
|
4106
|
+
var _this28 = this;
|
|
4107
4107
|
var settingOpts2 = this.settingOpts, id = this.id, customs = this.customs, $grid = this.$grid;
|
|
4108
4108
|
this.initSettings.pageSizes = $grid.pagerConfig && $grid.pagerConfig.pageSizes || [10, 15, 20, 30, 50, 100];
|
|
4109
4109
|
this.initSettings.pageSize = $grid.pagerConfig && $grid.pagerConfig.pageSize || 10;
|
|
@@ -4122,16 +4122,16 @@ var GridToolbar = defineComponent({
|
|
|
4122
4122
|
GlobalEvent.on(this, "mousedown", this.handleGlobalMousedownEvent);
|
|
4123
4123
|
GlobalEvent.on(this, "blur", this.handleGlobalBlurEvent);
|
|
4124
4124
|
this.removeHandler = function() {
|
|
4125
|
-
GlobalEvent.off(
|
|
4126
|
-
GlobalEvent.off(
|
|
4125
|
+
GlobalEvent.off(_this28, "mousedown");
|
|
4126
|
+
GlobalEvent.off(_this28, "blur");
|
|
4127
4127
|
};
|
|
4128
4128
|
this.$grid.connect({
|
|
4129
4129
|
name: "toolbar",
|
|
4130
4130
|
vm: this
|
|
4131
4131
|
});
|
|
4132
4132
|
},
|
|
4133
|
-
setup: function setup2(props,
|
|
4134
|
-
var slots =
|
|
4133
|
+
setup: function setup2(props, _ref18) {
|
|
4134
|
+
var slots = _ref18.slots, attrs = _ref18.attrs, listeners = _ref18.listeners;
|
|
4135
4135
|
var instance = hooks.getCurrentInstance().proxy;
|
|
4136
4136
|
var tableListeners = getListeners(attrs, listeners);
|
|
4137
4137
|
hooks.onBeforeUnmount(function() {
|
|
@@ -4143,7 +4143,7 @@ var GridToolbar = defineComponent({
|
|
|
4143
4143
|
};
|
|
4144
4144
|
},
|
|
4145
4145
|
render: function render2() {
|
|
4146
|
-
var
|
|
4146
|
+
var _ref19;
|
|
4147
4147
|
var $grid = this.$grid, $slots = this.slots, table = this.table, loading = this.loading, settingStore = this.settingStore, refresh = this.refresh, fullScreen = this.fullScreen;
|
|
4148
4148
|
var setting = this.setting, initSettings = this.initSettings, _this$buttons = this.buttons, buttons = _this$buttons === void 0 ? [] : _this$buttons, vSize2 = this.vSize, tableFullColumn = this.tableFullColumn;
|
|
4149
4149
|
var $buttons = $slots.buttons, $tools = $slots.tools;
|
|
@@ -4153,7 +4153,7 @@ var GridToolbar = defineComponent({
|
|
|
4153
4153
|
isLoading: "is__loading"
|
|
4154
4154
|
};
|
|
4155
4155
|
var propsArg = {
|
|
4156
|
-
class: ["tiny-grid-toolbar", (
|
|
4156
|
+
class: ["tiny-grid-toolbar", (_ref19 = {}, _ref19["size__" + vSize2] = vSize2, _ref19[map.isLoading] = loading, _ref19)]
|
|
4157
4157
|
};
|
|
4158
4158
|
var args = {
|
|
4159
4159
|
_vm: this,
|
|
@@ -4204,11 +4204,11 @@ var GridToolbar = defineComponent({
|
|
|
4204
4204
|
return this.setting && this.setting.customSetting ? this.setting.settingBtnClickFn() : this.handleClickCustomEvent();
|
|
4205
4205
|
},
|
|
4206
4206
|
updateConf: function updateConf() {
|
|
4207
|
-
var
|
|
4207
|
+
var _this29 = this;
|
|
4208
4208
|
var data6 = this.data;
|
|
4209
4209
|
var $children = this.$parent.$children;
|
|
4210
4210
|
var findHandler = function findHandler2(childComp, childIndex) {
|
|
4211
|
-
return childComp && childComp.refreshColumn && childIndex > $children.indexOf(
|
|
4211
|
+
return childComp && childComp.refreshColumn && childIndex > $children.indexOf(_this29) && (data6 ? childComp.data === data6 : childComp.$vnode.componentOptions.tag === "tiny-grid-table");
|
|
4212
4212
|
};
|
|
4213
4213
|
this.table = find$1($children, findHandler);
|
|
4214
4214
|
},
|
|
@@ -4269,7 +4269,7 @@ var GridToolbar = defineComponent({
|
|
|
4269
4269
|
}
|
|
4270
4270
|
},
|
|
4271
4271
|
loadStorage: function loadStorage() {
|
|
4272
|
-
var
|
|
4272
|
+
var _this30 = this;
|
|
4273
4273
|
var $grid = this.$grid, id = this.id, resizable = this.resizable, setting = this.setting, settingOpts2 = this.settingOpts;
|
|
4274
4274
|
if (!$grid) {
|
|
4275
4275
|
return;
|
|
@@ -4290,13 +4290,13 @@ var GridToolbar = defineComponent({
|
|
|
4290
4290
|
var pageSize = settingsStorage.pageSize;
|
|
4291
4291
|
if (this.$grid.pagerConfig && this.$grid.pagerConfig.pageSize !== pageSize) {
|
|
4292
4292
|
this.$grid.createJob("pageSizeChangeCallback", function() {
|
|
4293
|
-
|
|
4293
|
+
_this30.$grid.pageSizeChange(pageSize, $grid.autoLoad === false);
|
|
4294
4294
|
});
|
|
4295
4295
|
}
|
|
4296
4296
|
}
|
|
4297
4297
|
}
|
|
4298
4298
|
this.$grid.createJob("updateCustomsCallback", function() {
|
|
4299
|
-
|
|
4299
|
+
_this30.updateCustoms(customSettings.length ? customSettings : _this30.tableFullColumn);
|
|
4300
4300
|
});
|
|
4301
4301
|
}
|
|
4302
4302
|
},
|
|
@@ -4304,14 +4304,14 @@ var GridToolbar = defineComponent({
|
|
|
4304
4304
|
this.tableFullColumn = fullColumn;
|
|
4305
4305
|
},
|
|
4306
4306
|
updateCustoms: function updateCustoms(customs) {
|
|
4307
|
-
var
|
|
4307
|
+
var _this31 = this;
|
|
4308
4308
|
var $grid = this.$grid, table = this.table, setting = this.setting;
|
|
4309
4309
|
var comp = $grid || table;
|
|
4310
4310
|
var sort = setting && !!setting.sortable;
|
|
4311
4311
|
if (comp) {
|
|
4312
4312
|
var colWidth = this.loadColWidth();
|
|
4313
4313
|
comp.reloadCustoms(customs, sort, colWidth).then(function(fullColumn) {
|
|
4314
|
-
|
|
4314
|
+
_this31.tableFullColumn = fullColumn;
|
|
4315
4315
|
});
|
|
4316
4316
|
}
|
|
4317
4317
|
},
|
|
@@ -4376,8 +4376,8 @@ var GridToolbar = defineComponent({
|
|
|
4376
4376
|
if (storage && !isReset) {
|
|
4377
4377
|
columnWidthStorage = columnWidthStorageMap[id];
|
|
4378
4378
|
columnWidthStorage = isPlainObject(columnWidthStorage) ? columnWidthStorage : {};
|
|
4379
|
-
tableFullColumn.forEach(function(
|
|
4380
|
-
var property =
|
|
4379
|
+
tableFullColumn.forEach(function(_ref20) {
|
|
4380
|
+
var property = _ref20.property, resizeWidth = _ref20.resizeWidth, renderWidth = _ref20.renderWidth;
|
|
4381
4381
|
if (property && resizeWidth) {
|
|
4382
4382
|
columnWidthStorage[property] = renderWidth;
|
|
4383
4383
|
}
|
|
@@ -4399,24 +4399,24 @@ var GridToolbar = defineComponent({
|
|
|
4399
4399
|
return tableComp.recalculate();
|
|
4400
4400
|
},
|
|
4401
4401
|
updateSetting: function updateSetting() {
|
|
4402
|
-
var
|
|
4402
|
+
var _this32 = this;
|
|
4403
4403
|
var tableComp = this.$grid || this.table;
|
|
4404
4404
|
tableComp.refreshColumn();
|
|
4405
4405
|
this.tableFullColumn = this.tableFullColumn.slice(0);
|
|
4406
4406
|
return this.$nextTick(function() {
|
|
4407
|
-
return
|
|
4407
|
+
return _this32.$refs.custom && _this32.$refs.custom.saveSettings();
|
|
4408
4408
|
});
|
|
4409
4409
|
},
|
|
4410
|
-
applySettings: function applySettings(
|
|
4411
|
-
var
|
|
4412
|
-
var columns =
|
|
4410
|
+
applySettings: function applySettings(_ref21) {
|
|
4411
|
+
var _this33 = this;
|
|
4412
|
+
var columns = _ref21.columns, pageSize = _ref21.pageSize, updatedSorting = _ref21.updatedSorting;
|
|
4413
4413
|
var sort = this.setting && !!this.setting.sortable || updatedSorting;
|
|
4414
4414
|
if (this.$grid) {
|
|
4415
4415
|
if (columns && columns.length) {
|
|
4416
4416
|
var colWidth = this.loadColWidth();
|
|
4417
4417
|
this.$grid.reloadCustoms(columns, sort, colWidth).then(function() {
|
|
4418
|
-
|
|
4419
|
-
|
|
4418
|
+
_this33.$grid.handleTableData(true).then(function() {
|
|
4419
|
+
_this33.$grid.recalculate();
|
|
4420
4420
|
});
|
|
4421
4421
|
});
|
|
4422
4422
|
}
|
|
@@ -4504,13 +4504,13 @@ var GridToolbar = defineComponent({
|
|
|
4504
4504
|
});
|
|
4505
4505
|
},
|
|
4506
4506
|
refreshEvent: function refreshEvent() {
|
|
4507
|
-
var
|
|
4507
|
+
var _this34 = this;
|
|
4508
4508
|
var $grid = this.$grid, isRefresh = this.isRefresh, refreshOpts2 = this.refreshOpts;
|
|
4509
4509
|
var catchHandler = function catchHandler2(e) {
|
|
4510
4510
|
return e;
|
|
4511
4511
|
};
|
|
4512
4512
|
var nextHandler = function nextHandler2() {
|
|
4513
|
-
return
|
|
4513
|
+
return _this34.isRefresh = false;
|
|
4514
4514
|
};
|
|
4515
4515
|
if (isRefresh) return;
|
|
4516
4516
|
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.
|
|
4
|
+
"version": "3.24.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.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"
|
|
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;
|