@opentinyvue/vue-grid-toolbar 3.22.0 → 3.23.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 +125 -122
- package/package.json +33 -33
- package/src/custom.vue.d.ts +1 -1
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: {
|
|
@@ -2361,8 +2361,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2361
2361
|
this.hideOrShowColumns(false);
|
|
2362
2362
|
}
|
|
2363
2363
|
},
|
|
2364
|
-
|
|
2365
|
-
|
|
2364
|
+
// 勿同步,tree组件check事件参数不一致
|
|
2365
|
+
checkNode: function checkNode(node, data6) {
|
|
2366
|
+
var _data$checkedNodes;
|
|
2367
|
+
var isCheck = data6 == null ? void 0 : (_data$checkedNodes = data6.checkedNodes) == null ? void 0 : _data$checkedNodes.includes(node);
|
|
2368
|
+
node.visible = isCheck;
|
|
2366
2369
|
if (node.children && Array.isArray(node.children)) {
|
|
2367
2370
|
node.children.forEach(function(item) {
|
|
2368
2371
|
item.visible = node.visible;
|
|
@@ -2393,7 +2396,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2393
2396
|
}
|
|
2394
2397
|
},
|
|
2395
2398
|
getColumnConfigs: function getColumnConfigs3(configs) {
|
|
2396
|
-
var
|
|
2399
|
+
var _this16 = this;
|
|
2397
2400
|
var alwaysShowColumns = this.alwaysShowColumns;
|
|
2398
2401
|
this.colIds = [];
|
|
2399
2402
|
var _getColNodes3 = function getColNodes(columns2) {
|
|
@@ -2415,7 +2418,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2415
2418
|
expand: true
|
|
2416
2419
|
};
|
|
2417
2420
|
children && (column.children = _getColNodes3(children));
|
|
2418
|
-
|
|
2421
|
+
_this16.colIds.push(id);
|
|
2419
2422
|
return column;
|
|
2420
2423
|
}
|
|
2421
2424
|
return null;
|
|
@@ -2435,10 +2438,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2435
2438
|
}
|
|
2436
2439
|
},
|
|
2437
2440
|
initSortAndFixedOption: function initSortAndFixedOption(columns) {
|
|
2438
|
-
var
|
|
2441
|
+
var _this17 = this;
|
|
2439
2442
|
columns.forEach(function(column) {
|
|
2440
|
-
column.sortOption = column.order === "asc" ? [
|
|
2441
|
-
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];
|
|
2442
2445
|
});
|
|
2443
2446
|
},
|
|
2444
2447
|
initSortingColumns: function initSortingColumns(columns) {
|
|
@@ -2459,13 +2462,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2459
2462
|
return result;
|
|
2460
2463
|
},
|
|
2461
2464
|
getGroupedColumns: function getGroupedColumns() {
|
|
2462
|
-
var
|
|
2465
|
+
var _this18 = this;
|
|
2463
2466
|
var result = [];
|
|
2464
2467
|
if (this.columnsGroup.length) {
|
|
2465
2468
|
this.columnsGroup.forEach(function(item) {
|
|
2466
2469
|
var data6 = [];
|
|
2467
2470
|
item.data.forEach(function(col) {
|
|
2468
|
-
var column =
|
|
2471
|
+
var column = _this18.originColumns.find(function(c) {
|
|
2469
2472
|
return c.property === col;
|
|
2470
2473
|
});
|
|
2471
2474
|
if (column) {
|
|
@@ -2500,25 +2503,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2500
2503
|
return checkedkeys;
|
|
2501
2504
|
},
|
|
2502
2505
|
deleteTemplate: function deleteTemplate(item, $event) {
|
|
2503
|
-
var
|
|
2506
|
+
var _this19 = this;
|
|
2504
2507
|
$event.stopPropagation();
|
|
2505
2508
|
Modal.confirm(t("ui.grid.individuation.switchdelcon"), t("ui.grid.individuation.switchdelconfirm")).then(function(res) {
|
|
2506
2509
|
if (res === "confirm") {
|
|
2507
|
-
if (!
|
|
2508
|
-
|
|
2510
|
+
if (!_this19.setting.remote && item.id === _this19.selectedTemplate) {
|
|
2511
|
+
_this19.selectedTemplate = "";
|
|
2509
2512
|
setTimeout(function() {
|
|
2510
|
-
|
|
2513
|
+
_this19.templateOptions = _this19.$refs.switch.options;
|
|
2511
2514
|
});
|
|
2512
2515
|
}
|
|
2513
|
-
|
|
2514
|
-
|
|
2516
|
+
_this19.$refs.switch.handleDelConfirm("yes", item);
|
|
2517
|
+
_this19.$emit("delete-template", item);
|
|
2515
2518
|
}
|
|
2516
2519
|
});
|
|
2517
2520
|
},
|
|
2518
2521
|
selectedTemplateChange: function selectedTemplateChange() {
|
|
2519
|
-
var
|
|
2522
|
+
var _this20 = this;
|
|
2520
2523
|
var selected = this.templateOptions.find(function(opt) {
|
|
2521
|
-
return opt.id ===
|
|
2524
|
+
return opt.id === _this20.selectedTemplate;
|
|
2522
2525
|
});
|
|
2523
2526
|
if (selected) {
|
|
2524
2527
|
this.columns = mergeArray(this.columns, selected.setting.custom.columns);
|
|
@@ -2536,7 +2539,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2536
2539
|
this.updatedSorting = true;
|
|
2537
2540
|
if (this.$refs.tree) {
|
|
2538
2541
|
setTimeout(function() {
|
|
2539
|
-
|
|
2542
|
+
_this20.allCheckedKeys = [].concat(_this20.$refs.tree.getCheckedKeys(), _this20.$refs.tree.getHalfCheckedKeys());
|
|
2540
2543
|
}, 100);
|
|
2541
2544
|
}
|
|
2542
2545
|
}
|
|
@@ -2555,11 +2558,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2555
2558
|
},
|
|
2556
2559
|
// 勿同步,search组件input事件第一个参数就是val
|
|
2557
2560
|
searchChange: function searchChange(val) {
|
|
2558
|
-
var
|
|
2561
|
+
var _this21 = this;
|
|
2559
2562
|
var getRenderedTitle = function getRenderedTitle2(col) {
|
|
2560
2563
|
var result = "";
|
|
2561
2564
|
if (typeof col.title === "function") {
|
|
2562
|
-
var titleElm =
|
|
2565
|
+
var titleElm = _this21.$el.querySelector(".custom-saas-title-render." + col.id);
|
|
2563
2566
|
result = titleElm && titleElm.textContent || "";
|
|
2564
2567
|
result = result.toUpperCase();
|
|
2565
2568
|
} else if (col.title) {
|
|
@@ -2659,13 +2662,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2659
2662
|
}).length >= this.maxFixedNum;
|
|
2660
2663
|
},
|
|
2661
2664
|
updateSortingIndex: function updateSortingIndex() {
|
|
2662
|
-
var
|
|
2665
|
+
var _this22 = this;
|
|
2663
2666
|
this.sortingOptions = [];
|
|
2664
2667
|
var index = 1;
|
|
2665
2668
|
this.columns.forEach(function(column) {
|
|
2666
2669
|
if (column.visible) {
|
|
2667
2670
|
column.sortingIndex = index;
|
|
2668
|
-
|
|
2671
|
+
_this22.sortingOptions.push(column.sortingIndex);
|
|
2669
2672
|
index++;
|
|
2670
2673
|
} else {
|
|
2671
2674
|
column.sortingIndex = null;
|
|
@@ -2702,8 +2705,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2702
2705
|
buildSettings: function buildSettings2() {
|
|
2703
2706
|
var props = ["order", "fixed", "visible", "sortable"].concat(this.keys);
|
|
2704
2707
|
!this.updatedSorting && !this.columnsGroup.length && (this.columns = [].concat(this.groupedColumns[0].data));
|
|
2705
|
-
this.settings.columns = mapTree(this.columns, function(
|
|
2706
|
-
var property =
|
|
2708
|
+
this.settings.columns = mapTree(this.columns, function(_ref0) {
|
|
2709
|
+
var property = _ref0.property, rest = _objectWithoutPropertiesLoose(_ref0, _excluded3);
|
|
2707
2710
|
var node = {
|
|
2708
2711
|
property
|
|
2709
2712
|
};
|
|
@@ -2715,13 +2718,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2715
2718
|
return this.settings;
|
|
2716
2719
|
},
|
|
2717
2720
|
saveSettings: function saveSettings2(val) {
|
|
2718
|
-
var
|
|
2721
|
+
var _this23 = this;
|
|
2719
2722
|
var visible = typeof val === "boolean" ? val : false;
|
|
2720
2723
|
this.buildSettings();
|
|
2721
2724
|
this.$emit("saveSettings", this.settings, visible, this.updatedSorting);
|
|
2722
2725
|
if (this.multipleHistory && this.selectedTemplate) {
|
|
2723
2726
|
var selected = this.templateOptions.find(function(opt) {
|
|
2724
|
-
return opt.id ===
|
|
2727
|
+
return opt.id === _this23.selectedTemplate;
|
|
2725
2728
|
});
|
|
2726
2729
|
if (selected && JSON.stringify(selected.setting.custom.columns) !== JSON.stringify(this.settings.columns)) {
|
|
2727
2730
|
this.$refs.switch.handleSaveConfirm("overwrite", true);
|
|
@@ -2730,7 +2733,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2730
2733
|
!visible && this.handleClose();
|
|
2731
2734
|
},
|
|
2732
2735
|
resetSettings: function resetSettings2(event) {
|
|
2733
|
-
var
|
|
2736
|
+
var _this24 = this;
|
|
2734
2737
|
if (this.activeName === "base") {
|
|
2735
2738
|
this.columns = this.getColumnConfigs(this.data);
|
|
2736
2739
|
this.checkedColumns = this.columns.filter(function(col) {
|
|
@@ -2740,7 +2743,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2740
2743
|
});
|
|
2741
2744
|
if (this.settings.columns && this.settings.columns.length) {
|
|
2742
2745
|
this.settings.columns.forEach(function(setting) {
|
|
2743
|
-
var column = find(
|
|
2746
|
+
var column = find(_this24.columns, function(item) {
|
|
2744
2747
|
return item.property === setting.property;
|
|
2745
2748
|
});
|
|
2746
2749
|
if (column) {
|
|
@@ -2764,7 +2767,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2764
2767
|
this.$emit("showModal", false);
|
|
2765
2768
|
},
|
|
2766
2769
|
handleReset: function handleReset2(event) {
|
|
2767
|
-
var
|
|
2770
|
+
var _this25 = this;
|
|
2768
2771
|
var equal = function equal2(cols1, cols2) {
|
|
2769
2772
|
var props1 = [];
|
|
2770
2773
|
var props2 = [];
|
|
@@ -2778,15 +2781,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2778
2781
|
};
|
|
2779
2782
|
if (typeof this.resetMethod === "function") {
|
|
2780
2783
|
this.resetMethod().then(function(sourceSettings) {
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
var
|
|
2784
|
-
if (columns && columns.length &&
|
|
2785
|
-
|
|
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) {
|
|
2786
2789
|
var source = find(columns, function(item) {
|
|
2787
2790
|
return item.property === setting.property;
|
|
2788
2791
|
});
|
|
2789
|
-
var target = find(
|
|
2792
|
+
var target = find(_this25.columns, function(item) {
|
|
2790
2793
|
return item.property === setting.property;
|
|
2791
2794
|
});
|
|
2792
2795
|
if (source) {
|
|
@@ -2794,26 +2797,26 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2794
2797
|
Object.assign(target, source);
|
|
2795
2798
|
}
|
|
2796
2799
|
});
|
|
2797
|
-
if (equal(columns,
|
|
2800
|
+
if (equal(columns, _this25.settings.columns)) {
|
|
2798
2801
|
var settingColumns = [];
|
|
2799
2802
|
var gridColumns = [];
|
|
2800
2803
|
columns.forEach(function(source) {
|
|
2801
|
-
var settingCol = find(
|
|
2804
|
+
var settingCol = find(_this25.settings.columns, function(item) {
|
|
2802
2805
|
return source.property === item.property;
|
|
2803
2806
|
});
|
|
2804
|
-
var targetCol = find(
|
|
2807
|
+
var targetCol = find(_this25.columns, function(item) {
|
|
2805
2808
|
return source.property === item.property;
|
|
2806
2809
|
});
|
|
2807
2810
|
settingColumns.push(settingCol);
|
|
2808
2811
|
gridColumns.push(targetCol);
|
|
2809
2812
|
});
|
|
2810
|
-
|
|
2811
|
-
|
|
2813
|
+
_this25.settings.columns = settingColumns;
|
|
2814
|
+
_this25.columns = gridColumns;
|
|
2812
2815
|
}
|
|
2813
2816
|
}
|
|
2814
|
-
sortType && (
|
|
2815
|
-
pageSize && (
|
|
2816
|
-
|
|
2817
|
+
sortType && (_this25.settings.sortType = sortType);
|
|
2818
|
+
pageSize && (_this25.settings.pageSize = pageSize);
|
|
2819
|
+
_this25.checkedColumns = _this25.columns.filter(function(col) {
|
|
2817
2820
|
return col.visible;
|
|
2818
2821
|
}).map(function(col) {
|
|
2819
2822
|
return col.property;
|
|
@@ -2870,10 +2873,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2870
2873
|
this.columnsSorted = true;
|
|
2871
2874
|
},
|
|
2872
2875
|
initDragEvent: function initDragEvent() {
|
|
2873
|
-
var
|
|
2876
|
+
var _this26 = this;
|
|
2874
2877
|
var handleUpdate = function handleUpdate2(e) {
|
|
2875
2878
|
var from = e.from, to = e.to, oldIndex = e.oldIndex, newIndex = e.newIndex;
|
|
2876
|
-
|
|
2879
|
+
_this26.handleFixed("drag", from, to, oldIndex, newIndex);
|
|
2877
2880
|
};
|
|
2878
2881
|
if (!this.dropConfig.plugin) return;
|
|
2879
2882
|
this.dropConfig.plugin.create(this.$refs.list, {
|
|
@@ -2882,7 +2885,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2882
2885
|
handle: ".toolbar-drag-item",
|
|
2883
2886
|
onUpdate: handleUpdate,
|
|
2884
2887
|
onMove: function onMove(e) {
|
|
2885
|
-
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()) {
|
|
2886
2889
|
Modal.message({
|
|
2887
2890
|
message: t("ui.grid.individuation.maxFreezeNumMsg"),
|
|
2888
2891
|
status: "warning",
|
|
@@ -2891,22 +2894,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2891
2894
|
return false;
|
|
2892
2895
|
}
|
|
2893
2896
|
var rowName = e.dragged && e.dragged.getAttribute("data-row");
|
|
2894
|
-
var row =
|
|
2897
|
+
var row = _this26.columns.find(function(row2) {
|
|
2895
2898
|
return row2.property === rowName;
|
|
2896
2899
|
}) || {};
|
|
2897
|
-
var cancel = typeof
|
|
2900
|
+
var cancel = typeof _this26.onBeforeMove === "function" ? _this26.onBeforeMove("row", row, e) : true;
|
|
2898
2901
|
return cancel === void 0 || cancel;
|
|
2899
2902
|
}
|
|
2900
2903
|
});
|
|
2901
2904
|
},
|
|
2902
2905
|
clickSortDisplay: function clickSortDisplay(column, index) {
|
|
2903
|
-
var
|
|
2906
|
+
var _this27 = this;
|
|
2904
2907
|
column.numberSortVisible = true;
|
|
2905
2908
|
this.columns.forEach(function(col) {
|
|
2906
2909
|
return col !== column && (col.numberSortVisible = false);
|
|
2907
2910
|
});
|
|
2908
2911
|
this.$nextTick(function() {
|
|
2909
|
-
var selectVm =
|
|
2912
|
+
var selectVm = _this27.$refs["select" + index];
|
|
2910
2913
|
selectVm = isArray(selectVm) && selectVm[0] ? selectVm[0] : null;
|
|
2911
2914
|
if (selectVm) {
|
|
2912
2915
|
selectVm.focus();
|
|
@@ -3788,15 +3791,15 @@ var GridCustomSaas = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_ren
|
|
|
3788
3791
|
var classMap = {
|
|
3789
3792
|
isActive: "is__active"
|
|
3790
3793
|
};
|
|
3791
|
-
function createMacroTask(
|
|
3792
|
-
var _vm =
|
|
3794
|
+
function createMacroTask(_ref10) {
|
|
3795
|
+
var _vm = _ref10._vm;
|
|
3793
3796
|
setTimeout(function() {
|
|
3794
3797
|
if (_vm.settingStore.activeBtn || _vm.settingStore.activeWrapper) return;
|
|
3795
3798
|
_vm.closeSetting();
|
|
3796
3799
|
}, 300);
|
|
3797
3800
|
}
|
|
3798
|
-
function renderToolsWrapper(
|
|
3799
|
-
var _vm =
|
|
3801
|
+
function renderToolsWrapper(_ref11) {
|
|
3802
|
+
var _vm = _ref11._vm, $tools = _ref11.$tools, $grid = _ref11.$grid, table = _ref11.table;
|
|
3800
3803
|
return h("div", {
|
|
3801
3804
|
class: "tiny-grid-tools__wrapper"
|
|
3802
3805
|
}, $tools.call(_vm, {
|
|
@@ -3804,8 +3807,8 @@ function renderToolsWrapper(_ref13) {
|
|
|
3804
3807
|
$table: table
|
|
3805
3808
|
}, h));
|
|
3806
3809
|
}
|
|
3807
|
-
function renderFullScreenWrapper(
|
|
3808
|
-
var _vm =
|
|
3810
|
+
function renderFullScreenWrapper(_ref12) {
|
|
3811
|
+
var _vm = _ref12._vm;
|
|
3809
3812
|
return h("div", {
|
|
3810
3813
|
class: "tiny-grid-fullscreen__wrapper"
|
|
3811
3814
|
}, [h("div", {
|
|
@@ -3817,8 +3820,8 @@ function renderFullScreenWrapper(_ref14) {
|
|
|
3817
3820
|
class: "tiny-svg-size"
|
|
3818
3821
|
})])]);
|
|
3819
3822
|
}
|
|
3820
|
-
function renderRefreshWrapper(
|
|
3821
|
-
var _vm =
|
|
3823
|
+
function renderRefreshWrapper(_ref13) {
|
|
3824
|
+
var _vm = _ref13._vm;
|
|
3822
3825
|
return h("div", {
|
|
3823
3826
|
class: "tiny-grid-refresh__wrapper"
|
|
3824
3827
|
}, [h("div", {
|
|
@@ -3832,11 +3835,11 @@ function renderRefreshWrapper(_ref15) {
|
|
|
3832
3835
|
}]
|
|
3833
3836
|
})])]);
|
|
3834
3837
|
}
|
|
3835
|
-
function renderCustomWrapper(
|
|
3836
|
-
var
|
|
3837
|
-
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;
|
|
3838
3841
|
return h("div", {
|
|
3839
|
-
class: ["tiny-grid-custom__wrapper", (
|
|
3842
|
+
class: ["tiny-grid-custom__wrapper", (_ref15 = {}, _ref15[classMap.isActive] = settingStore.customVisible, _ref15)],
|
|
3840
3843
|
ref: "customWrapper"
|
|
3841
3844
|
}, [
|
|
3842
3845
|
// TODO: 此处应使用图标按钮,但saas主题图标按钮样式有问题。
|
|
@@ -3899,8 +3902,8 @@ function renderCustomWrapper(_ref16) {
|
|
|
3899
3902
|
})])
|
|
3900
3903
|
]);
|
|
3901
3904
|
}
|
|
3902
|
-
function getScopedSlots(
|
|
3903
|
-
var item =
|
|
3905
|
+
function getScopedSlots(_ref16) {
|
|
3906
|
+
var item = _ref16.item, _vm = _ref16._vm, vSize2 = _ref16.vSize;
|
|
3904
3907
|
var scopedSlots = null;
|
|
3905
3908
|
var childHandler = function childHandler2(child) {
|
|
3906
3909
|
var res = [null];
|
|
@@ -3933,9 +3936,9 @@ function getScopedSlots(_ref18) {
|
|
|
3933
3936
|
}
|
|
3934
3937
|
return scopedSlots;
|
|
3935
3938
|
}
|
|
3936
|
-
function renderButtonWrapper(
|
|
3939
|
+
function renderButtonWrapper(_ref17) {
|
|
3937
3940
|
var _childrenArg;
|
|
3938
|
-
var _vm =
|
|
3941
|
+
var _vm = _ref17._vm, $buttons = _ref17.$buttons, $grid = _ref17.$grid, table = _ref17.table, buttons = _ref17.buttons, vSize2 = _ref17.vSize;
|
|
3939
3942
|
var childrenArg;
|
|
3940
3943
|
if ($buttons) {
|
|
3941
3944
|
childrenArg = $buttons.call(_vm, {
|
|
@@ -4100,7 +4103,7 @@ var GridToolbar = defineComponent({
|
|
|
4100
4103
|
}
|
|
4101
4104
|
},
|
|
4102
4105
|
created: function created5() {
|
|
4103
|
-
var
|
|
4106
|
+
var _this28 = this;
|
|
4104
4107
|
var settingOpts2 = this.settingOpts, id = this.id, customs = this.customs, $grid = this.$grid;
|
|
4105
4108
|
this.initSettings.pageSizes = $grid.pagerConfig && $grid.pagerConfig.pageSizes || [10, 15, 20, 30, 50, 100];
|
|
4106
4109
|
this.initSettings.pageSize = $grid.pagerConfig && $grid.pagerConfig.pageSize || 10;
|
|
@@ -4119,16 +4122,16 @@ var GridToolbar = defineComponent({
|
|
|
4119
4122
|
GlobalEvent.on(this, "mousedown", this.handleGlobalMousedownEvent);
|
|
4120
4123
|
GlobalEvent.on(this, "blur", this.handleGlobalBlurEvent);
|
|
4121
4124
|
this.removeHandler = function() {
|
|
4122
|
-
GlobalEvent.off(
|
|
4123
|
-
GlobalEvent.off(
|
|
4125
|
+
GlobalEvent.off(_this28, "mousedown");
|
|
4126
|
+
GlobalEvent.off(_this28, "blur");
|
|
4124
4127
|
};
|
|
4125
4128
|
this.$grid.connect({
|
|
4126
4129
|
name: "toolbar",
|
|
4127
4130
|
vm: this
|
|
4128
4131
|
});
|
|
4129
4132
|
},
|
|
4130
|
-
setup: function setup2(props,
|
|
4131
|
-
var slots =
|
|
4133
|
+
setup: function setup2(props, _ref18) {
|
|
4134
|
+
var slots = _ref18.slots, attrs = _ref18.attrs, listeners = _ref18.listeners;
|
|
4132
4135
|
var instance = hooks.getCurrentInstance().proxy;
|
|
4133
4136
|
var tableListeners = getListeners(attrs, listeners);
|
|
4134
4137
|
hooks.onBeforeUnmount(function() {
|
|
@@ -4140,7 +4143,7 @@ var GridToolbar = defineComponent({
|
|
|
4140
4143
|
};
|
|
4141
4144
|
},
|
|
4142
4145
|
render: function render2() {
|
|
4143
|
-
var
|
|
4146
|
+
var _ref19;
|
|
4144
4147
|
var $grid = this.$grid, $slots = this.slots, table = this.table, loading = this.loading, settingStore = this.settingStore, refresh = this.refresh, fullScreen = this.fullScreen;
|
|
4145
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;
|
|
4146
4149
|
var $buttons = $slots.buttons, $tools = $slots.tools;
|
|
@@ -4150,7 +4153,7 @@ var GridToolbar = defineComponent({
|
|
|
4150
4153
|
isLoading: "is__loading"
|
|
4151
4154
|
};
|
|
4152
4155
|
var propsArg = {
|
|
4153
|
-
class: ["tiny-grid-toolbar", (
|
|
4156
|
+
class: ["tiny-grid-toolbar", (_ref19 = {}, _ref19["size__" + vSize2] = vSize2, _ref19[map.isLoading] = loading, _ref19)]
|
|
4154
4157
|
};
|
|
4155
4158
|
var args = {
|
|
4156
4159
|
_vm: this,
|
|
@@ -4201,11 +4204,11 @@ var GridToolbar = defineComponent({
|
|
|
4201
4204
|
return this.setting && this.setting.customSetting ? this.setting.settingBtnClickFn() : this.handleClickCustomEvent();
|
|
4202
4205
|
},
|
|
4203
4206
|
updateConf: function updateConf() {
|
|
4204
|
-
var
|
|
4207
|
+
var _this29 = this;
|
|
4205
4208
|
var data6 = this.data;
|
|
4206
4209
|
var $children = this.$parent.$children;
|
|
4207
4210
|
var findHandler = function findHandler2(childComp, childIndex) {
|
|
4208
|
-
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");
|
|
4209
4212
|
};
|
|
4210
4213
|
this.table = find$1($children, findHandler);
|
|
4211
4214
|
},
|
|
@@ -4266,7 +4269,7 @@ var GridToolbar = defineComponent({
|
|
|
4266
4269
|
}
|
|
4267
4270
|
},
|
|
4268
4271
|
loadStorage: function loadStorage() {
|
|
4269
|
-
var
|
|
4272
|
+
var _this30 = this;
|
|
4270
4273
|
var $grid = this.$grid, id = this.id, resizable = this.resizable, setting = this.setting, settingOpts2 = this.settingOpts;
|
|
4271
4274
|
if (!$grid) {
|
|
4272
4275
|
return;
|
|
@@ -4287,13 +4290,13 @@ var GridToolbar = defineComponent({
|
|
|
4287
4290
|
var pageSize = settingsStorage.pageSize;
|
|
4288
4291
|
if (this.$grid.pagerConfig && this.$grid.pagerConfig.pageSize !== pageSize) {
|
|
4289
4292
|
this.$grid.createJob("pageSizeChangeCallback", function() {
|
|
4290
|
-
|
|
4293
|
+
_this30.$grid.pageSizeChange(pageSize, $grid.autoLoad === false);
|
|
4291
4294
|
});
|
|
4292
4295
|
}
|
|
4293
4296
|
}
|
|
4294
4297
|
}
|
|
4295
4298
|
this.$grid.createJob("updateCustomsCallback", function() {
|
|
4296
|
-
|
|
4299
|
+
_this30.updateCustoms(customSettings.length ? customSettings : _this30.tableFullColumn);
|
|
4297
4300
|
});
|
|
4298
4301
|
}
|
|
4299
4302
|
},
|
|
@@ -4301,14 +4304,14 @@ var GridToolbar = defineComponent({
|
|
|
4301
4304
|
this.tableFullColumn = fullColumn;
|
|
4302
4305
|
},
|
|
4303
4306
|
updateCustoms: function updateCustoms(customs) {
|
|
4304
|
-
var
|
|
4307
|
+
var _this31 = this;
|
|
4305
4308
|
var $grid = this.$grid, table = this.table, setting = this.setting;
|
|
4306
4309
|
var comp = $grid || table;
|
|
4307
4310
|
var sort = setting && !!setting.sortable;
|
|
4308
4311
|
if (comp) {
|
|
4309
4312
|
var colWidth = this.loadColWidth();
|
|
4310
4313
|
comp.reloadCustoms(customs, sort, colWidth).then(function(fullColumn) {
|
|
4311
|
-
|
|
4314
|
+
_this31.tableFullColumn = fullColumn;
|
|
4312
4315
|
});
|
|
4313
4316
|
}
|
|
4314
4317
|
},
|
|
@@ -4373,8 +4376,8 @@ var GridToolbar = defineComponent({
|
|
|
4373
4376
|
if (storage && !isReset) {
|
|
4374
4377
|
columnWidthStorage = columnWidthStorageMap[id];
|
|
4375
4378
|
columnWidthStorage = isPlainObject(columnWidthStorage) ? columnWidthStorage : {};
|
|
4376
|
-
tableFullColumn.forEach(function(
|
|
4377
|
-
var property =
|
|
4379
|
+
tableFullColumn.forEach(function(_ref20) {
|
|
4380
|
+
var property = _ref20.property, resizeWidth = _ref20.resizeWidth, renderWidth = _ref20.renderWidth;
|
|
4378
4381
|
if (property && resizeWidth) {
|
|
4379
4382
|
columnWidthStorage[property] = renderWidth;
|
|
4380
4383
|
}
|
|
@@ -4396,24 +4399,24 @@ var GridToolbar = defineComponent({
|
|
|
4396
4399
|
return tableComp.recalculate();
|
|
4397
4400
|
},
|
|
4398
4401
|
updateSetting: function updateSetting() {
|
|
4399
|
-
var
|
|
4402
|
+
var _this32 = this;
|
|
4400
4403
|
var tableComp = this.$grid || this.table;
|
|
4401
4404
|
tableComp.refreshColumn();
|
|
4402
4405
|
this.tableFullColumn = this.tableFullColumn.slice(0);
|
|
4403
4406
|
return this.$nextTick(function() {
|
|
4404
|
-
return
|
|
4407
|
+
return _this32.$refs.custom && _this32.$refs.custom.saveSettings();
|
|
4405
4408
|
});
|
|
4406
4409
|
},
|
|
4407
|
-
applySettings: function applySettings(
|
|
4408
|
-
var
|
|
4409
|
-
var columns =
|
|
4410
|
+
applySettings: function applySettings(_ref21) {
|
|
4411
|
+
var _this33 = this;
|
|
4412
|
+
var columns = _ref21.columns, pageSize = _ref21.pageSize, updatedSorting = _ref21.updatedSorting;
|
|
4410
4413
|
var sort = this.setting && !!this.setting.sortable || updatedSorting;
|
|
4411
4414
|
if (this.$grid) {
|
|
4412
4415
|
if (columns && columns.length) {
|
|
4413
4416
|
var colWidth = this.loadColWidth();
|
|
4414
4417
|
this.$grid.reloadCustoms(columns, sort, colWidth).then(function() {
|
|
4415
|
-
|
|
4416
|
-
|
|
4418
|
+
_this33.$grid.handleTableData(true).then(function() {
|
|
4419
|
+
_this33.$grid.recalculate();
|
|
4417
4420
|
});
|
|
4418
4421
|
});
|
|
4419
4422
|
}
|
|
@@ -4501,13 +4504,13 @@ var GridToolbar = defineComponent({
|
|
|
4501
4504
|
});
|
|
4502
4505
|
},
|
|
4503
4506
|
refreshEvent: function refreshEvent() {
|
|
4504
|
-
var
|
|
4507
|
+
var _this34 = this;
|
|
4505
4508
|
var $grid = this.$grid, isRefresh = this.isRefresh, refreshOpts2 = this.refreshOpts;
|
|
4506
4509
|
var catchHandler = function catchHandler2(e) {
|
|
4507
4510
|
return e;
|
|
4508
4511
|
};
|
|
4509
4512
|
var nextHandler = function nextHandler2() {
|
|
4510
|
-
return
|
|
4513
|
+
return _this34.isRefresh = false;
|
|
4511
4514
|
};
|
|
4512
4515
|
if (isRefresh) return;
|
|
4513
4516
|
this.isRefresh = true;
|
|
@@ -4562,7 +4565,7 @@ var GridToolbar = defineComponent({
|
|
|
4562
4565
|
}
|
|
4563
4566
|
}
|
|
4564
4567
|
});
|
|
4565
|
-
var version = "3.
|
|
4568
|
+
var version = "3.23.0";
|
|
4566
4569
|
GridToolbar.install = function(Vue) {
|
|
4567
4570
|
Vue.component(GridToolbar.name, GridToolbar);
|
|
4568
4571
|
};
|
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.23.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.23.0",
|
|
12
|
+
"@opentinyvue/vue-alert": "~3.23.0",
|
|
13
|
+
"@opentinyvue/vue-button": "~3.23.0",
|
|
14
|
+
"@opentinyvue/vue-checkbox": "~3.23.0",
|
|
15
|
+
"@opentinyvue/vue-checkbox-group": "~3.23.0",
|
|
16
|
+
"@opentinyvue/vue-col": "~3.23.0",
|
|
17
|
+
"@opentinyvue/vue-common": "~3.23.0",
|
|
18
|
+
"@opentinyvue/vue-dialog-box": "~3.23.0",
|
|
19
|
+
"@opentinyvue/vue-directive": "~3.23.0",
|
|
20
|
+
"@opentinyvue/vue-dropdown": "~3.23.0",
|
|
21
|
+
"@opentinyvue/vue-dropdown-item": "~3.23.0",
|
|
22
|
+
"@opentinyvue/vue-dropdown-menu": "~3.23.0",
|
|
23
|
+
"@opentinyvue/vue-grid": "~3.23.0",
|
|
24
|
+
"@opentinyvue/vue-icon": "~3.23.0",
|
|
25
|
+
"@opentinyvue/vue-input": "~3.23.0",
|
|
26
|
+
"@opentinyvue/vue-layout": "~3.23.0",
|
|
27
|
+
"@opentinyvue/vue-locale": "~3.23.0",
|
|
28
|
+
"@opentinyvue/vue-modal": "~3.23.0",
|
|
29
|
+
"@opentinyvue/vue-option": "~3.23.0",
|
|
30
|
+
"@opentinyvue/vue-popover": "~3.23.0",
|
|
31
|
+
"@opentinyvue/vue-radio": "~3.23.0",
|
|
32
|
+
"@opentinyvue/vue-radio-group": "~3.23.0",
|
|
33
|
+
"@opentinyvue/vue-renderless": "~3.23.0",
|
|
34
|
+
"@opentinyvue/vue-row": "~3.23.0",
|
|
35
|
+
"@opentinyvue/vue-search": "~3.23.0",
|
|
36
|
+
"@opentinyvue/vue-select": "~3.23.0",
|
|
37
|
+
"@opentinyvue/vue-split": "~3.23.0",
|
|
38
|
+
"@opentinyvue/vue-tab-item": "~3.23.0",
|
|
39
|
+
"@opentinyvue/vue-tabs": "~3.23.0",
|
|
40
|
+
"@opentinyvue/vue-theme": "~3.23.0",
|
|
41
|
+
"@opentinyvue/vue-tooltip": "~3.23.0",
|
|
42
|
+
"@opentinyvue/vue-tree": "~3.23.0"
|
|
43
43
|
},
|
|
44
44
|
"types": "index.d.ts",
|
|
45
45
|
"scripts": {
|
package/src/custom.vue.d.ts
CHANGED
|
@@ -156,8 +156,8 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
|
156
156
|
onCancelSettings?: ((...args: any[]) => any) | undefined;
|
|
157
157
|
}, {
|
|
158
158
|
value: boolean;
|
|
159
|
-
data: unknown[];
|
|
160
159
|
keys: unknown[];
|
|
160
|
+
data: unknown[];
|
|
161
161
|
tiny_mode_root: boolean;
|
|
162
162
|
refresh: boolean;
|
|
163
163
|
other: boolean;
|