@opentinyvue/vue-grid 3.26.0 → 3.27.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 +94 -17
- package/package.json +17 -17
- package/src/body/src/body.d.ts +2 -0
- package/src/config.d.ts +1 -0
- package/src/table/src/table.d.ts +3 -0
- package/src/validator/src/methods.d.ts +1 -0
package/lib/index.js
CHANGED
|
@@ -225,6 +225,7 @@ function _extends() {
|
|
|
225
225
|
var GlobalConfig$1 = {
|
|
226
226
|
validConfig: {
|
|
227
227
|
message: "tooltip",
|
|
228
|
+
highlightError: false,
|
|
228
229
|
icon: iconError()
|
|
229
230
|
},
|
|
230
231
|
editConfig: {
|
|
@@ -1997,6 +1998,38 @@ var getEventParams = function getEventParams2(_ref17, $table) {
|
|
|
1997
1998
|
var isOperateMouse = function isOperateMouse2($table) {
|
|
1998
1999
|
return $table._isResize || $table.lastScrollTime && Date.now() < $table.lastScrollTime + $table.optimizeOpts.delayHover;
|
|
1999
2000
|
};
|
|
2001
|
+
var hideAlignLines = function hideAlignLines2($table, cell) {
|
|
2002
|
+
var _$table$mouseConfig;
|
|
2003
|
+
if (!((_$table$mouseConfig = $table.mouseConfig) != null && _$table$mouseConfig.hover) || cell) {
|
|
2004
|
+
return;
|
|
2005
|
+
}
|
|
2006
|
+
var xBar = $table.elemStore["main-body-alignXBar"];
|
|
2007
|
+
var yBar = $table.elemStore["main-body-alignYBar"];
|
|
2008
|
+
if (xBar) {
|
|
2009
|
+
xBar.style.display = "none";
|
|
2010
|
+
}
|
|
2011
|
+
if (yBar) {
|
|
2012
|
+
yBar.style.display = "none";
|
|
2013
|
+
}
|
|
2014
|
+
};
|
|
2015
|
+
var showAlignLines = function showAlignLines2($table, cell) {
|
|
2016
|
+
var _$table$mouseConfig2;
|
|
2017
|
+
if (!((_$table$mouseConfig2 = $table.mouseConfig) != null && _$table$mouseConfig2.hover)) {
|
|
2018
|
+
return;
|
|
2019
|
+
}
|
|
2020
|
+
var xBar = $table.elemStore["main-body-alignXBar"];
|
|
2021
|
+
var yBar = $table.elemStore["main-body-alignYBar"];
|
|
2022
|
+
if (xBar) {
|
|
2023
|
+
xBar.style.display = "block";
|
|
2024
|
+
xBar.style.top = cell.offsetTop - 1 + "px";
|
|
2025
|
+
xBar.style.setProperty("--after-top-offset", cell.offsetHeight + "px");
|
|
2026
|
+
}
|
|
2027
|
+
if (yBar) {
|
|
2028
|
+
yBar.style.display = "block";
|
|
2029
|
+
yBar.style.left = cell.offsetLeft - 1 + "px";
|
|
2030
|
+
yBar.style.setProperty("--after-left-offset", cell.offsetWidth + "px");
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2000
2033
|
var useCellEvent = function useCellEvent2(_ref21) {
|
|
2001
2034
|
var table = _ref21.table, $table = _ref21.$table;
|
|
2002
2035
|
var isBound = false;
|
|
@@ -2044,7 +2077,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
|
|
|
2044
2077
|
var source = getEventSource(e, $table);
|
|
2045
2078
|
if (source) {
|
|
2046
2079
|
var params = getEventParams(source, $table);
|
|
2047
|
-
var _$table$
|
|
2080
|
+
var _$table$mouseConfig3 = $table.mouseConfig, mouseConfig = _$table$mouseConfig3 === void 0 ? {} : _$table$mouseConfig3;
|
|
2048
2081
|
if (source.part === "header" && mouseConfig.checked) {
|
|
2049
2082
|
$table.triggerHeaderCellMousedownEvent(e, params);
|
|
2050
2083
|
}
|
|
@@ -2062,7 +2095,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
|
|
|
2062
2095
|
var satisfy = function satisfy2(equal, trigger2) {
|
|
2063
2096
|
return trigger2 === "row" || equal(column) && trigger2 === "cell";
|
|
2064
2097
|
};
|
|
2065
|
-
var editConfig = $table.editConfig, _$table$expandConfig = $table.expandConfig, expandConfig = _$table$expandConfig === void 0 ? {} : _$table$expandConfig, highlightCurrentColumn = $table.highlightCurrentColumn, highlightCurrentRow = $table.highlightCurrentRow, _$table$
|
|
2098
|
+
var editConfig = $table.editConfig, _$table$expandConfig = $table.expandConfig, expandConfig = _$table$expandConfig === void 0 ? {} : _$table$expandConfig, highlightCurrentColumn = $table.highlightCurrentColumn, highlightCurrentRow = $table.highlightCurrentRow, _$table$mouseConfig4 = $table.mouseConfig, mouseConfig = _$table$mouseConfig4 === void 0 ? {} : _$table$mouseConfig4, _$table$radioConfig = $table.radioConfig, radioConfig = _$table$radioConfig === void 0 ? {} : _$table$radioConfig, _$table$selectConfig = $table.selectConfig, selectConfig = _$table$selectConfig === void 0 ? {} : _$table$selectConfig, sortOpts2 = $table.sortOpts, tableListeners = $table.tableListeners, _$table$treeConfig = $table.treeConfig, treeConfig = _$table$treeConfig === void 0 ? {} : _$table$treeConfig;
|
|
2066
2099
|
if (source.part === "header" && (highlightCurrentColumn || tableListeners["header-cell-click"] || mouseConfig.checked || sortOpts2.trigger === "cell")) {
|
|
2067
2100
|
$table.triggerHeaderCellClickEvent(e, params);
|
|
2068
2101
|
}
|
|
@@ -2194,6 +2227,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
|
|
|
2194
2227
|
if (tableListeners["cell-mouseleave"]) {
|
|
2195
2228
|
emitEvent($table, "cell-mouseleave", [params, e]);
|
|
2196
2229
|
}
|
|
2230
|
+
hideAlignLines($table, curCell);
|
|
2197
2231
|
}
|
|
2198
2232
|
}
|
|
2199
2233
|
if (curCell) {
|
|
@@ -2203,6 +2237,7 @@ var useCellEvent = function useCellEvent2(_ref21) {
|
|
|
2203
2237
|
if (tableListeners["cell-mouseenter"]) {
|
|
2204
2238
|
emitEvent($table, "cell-mouseenter", [_params, _e]);
|
|
2205
2239
|
}
|
|
2240
|
+
showAlignLines($table, curCell);
|
|
2206
2241
|
}
|
|
2207
2242
|
}
|
|
2208
2243
|
});
|
|
@@ -2743,7 +2778,7 @@ function renderColumn(_ref39) {
|
|
|
2743
2778
|
row: row2,
|
|
2744
2779
|
column
|
|
2745
2780
|
} : _ref40$params;
|
|
2746
|
-
var isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline;
|
|
2781
|
+
var isMessageDefault = validOpts2.isMessageDefault, isMessageInline = validOpts2.isMessageInline, highlightError = validOpts2.highlightError;
|
|
2747
2782
|
var actived = editStore.actived;
|
|
2748
2783
|
var validated = validatedMap[column.id + "-" + row2[rowId]];
|
|
2749
2784
|
var validError = validStore.row === row2 && validStore.column === column;
|
|
@@ -2770,7 +2805,7 @@ function renderColumn(_ref39) {
|
|
|
2770
2805
|
"data-colindex": $columnIndex,
|
|
2771
2806
|
"rowspan": attrs.rowspan > 1 ? attrs.rowspan : void 0,
|
|
2772
2807
|
"colspan": attrs.colspan > 1 ? attrs.colspan : void 0,
|
|
2773
|
-
"class": ["tiny-grid-body__column", column.id, (_ref41 = {}, _ref41["col__" + cellAlign] = cellAlign, _ref41["col__edit"] = editor, _ref41["col__index"] = column.type === "index", _ref41["col__radio"] = column.type === "radio", _ref41["col__selection"] = column.type === "selection", _ref41["col__ellipsis"] = cellOverflowHint, _ref41["edit__visible"] = editor && editor.type === "visible", _ref41["col__dirty"] = isDirty, _ref41["col__actived"] = columnActived, _ref41["col__valid-error"] = validError && validated, _ref41["col__valid-success"] = columnActived ? !validError && !validated : isDirty && !validated, _ref41["col__treenode"] = column.treeNode, _ref41), getClass(className, params), getClass(cellClassName, params), getFixedClass(column, $table), attrs._stickyClass || ""]
|
|
2808
|
+
"class": ["tiny-grid-body__column", column.id, (_ref41 = {}, _ref41["col__" + cellAlign] = cellAlign, _ref41["col__edit"] = editor, _ref41["col__index"] = column.type === "index", _ref41["col__radio"] = column.type === "radio", _ref41["col__selection"] = column.type === "selection", _ref41["col__ellipsis"] = cellOverflowHint, _ref41["edit__visible"] = editor && editor.type === "visible", _ref41["col__dirty"] = isDirty, _ref41["col__actived"] = columnActived, _ref41["col__highlight-error"] = highlightError && validated, _ref41["col__valid-error"] = validError && validated, _ref41["col__valid-success"] = columnActived ? !validError && !validated : isDirty && !validated, _ref41["col__treenode"] = column.treeNode, _ref41), getClass(className, params), getClass(cellClassName, params), getFixedClass(column, $table), attrs._stickyClass || ""]
|
|
2774
2809
|
}, [[
|
|
2775
2810
|
// 行拖拽手柄
|
|
2776
2811
|
dropConfig.rowHandle === "index" && column.type === "index" ? createVNode("div", {
|
|
@@ -2803,7 +2838,7 @@ function renderHeaderRows(_vm) {
|
|
|
2803
2838
|
var $table = _vm.$parent, headerTable = _vm.headerTable;
|
|
2804
2839
|
var headerCellClassName = $table.headerCellClassName, headerRowClassName = $table.headerRowClassName, headerSuffixIconAbsolute = $table.headerSuffixIconAbsolute;
|
|
2805
2840
|
var allAlign = $table.align, border = $table.border, allHeaderAlign = $table.headerAlign, resizable = $table.resizable;
|
|
2806
|
-
var editConfig = $table.editConfig, operationColumnResizable = $table.operationColumnResizable, _$table$
|
|
2841
|
+
var editConfig = $table.editConfig, operationColumnResizable = $table.operationColumnResizable, _$table$mouseConfig5 = $table.mouseConfig, mouseConfig = _$table$mouseConfig5 === void 0 ? {} : _$table$mouseConfig5, _$table$dropConfig2 = $table.dropConfig, dropConfig = _$table$dropConfig2 === void 0 ? {} : _$table$dropConfig2;
|
|
2807
2842
|
return headerTable.map(function(cols, $rowIndex) {
|
|
2808
2843
|
return createVNode("tr", {
|
|
2809
2844
|
"data-rowindex": $rowIndex,
|
|
@@ -3357,6 +3392,8 @@ var Body = /* @__PURE__ */ defineComponent({
|
|
|
3357
3392
|
var thead = hooks.ref();
|
|
3358
3393
|
var tbody = hooks.ref();
|
|
3359
3394
|
var ySpace = hooks.ref();
|
|
3395
|
+
var alignXBar = hooks.ref();
|
|
3396
|
+
var alignYBar = hooks.ref();
|
|
3360
3397
|
hooks.watch(wrapperScrollLeft, function(wrapperScrollLeft2) {
|
|
3361
3398
|
var el = stickyWrapper.value;
|
|
3362
3399
|
if (!el) return;
|
|
@@ -3382,13 +3419,15 @@ var Body = /* @__PURE__ */ defineComponent({
|
|
|
3382
3419
|
$table
|
|
3383
3420
|
});
|
|
3384
3421
|
var _useCellSpan = useCellSpan(vm, props), normalRows = _useCellSpan.normalRows, footerRows = _useCellSpan.footerRows;
|
|
3385
|
-
hooks.watch([body, table, thead, tbody, ySpace], function() {
|
|
3422
|
+
hooks.watch([body, table, thead, tbody, ySpace, alignXBar, alignYBar], function() {
|
|
3386
3423
|
var elemStore = $table.elemStore;
|
|
3387
3424
|
elemStore["main-body-wrapper"] = body.value;
|
|
3388
3425
|
elemStore["main-body-table"] = table.value;
|
|
3389
3426
|
elemStore["main-body-headerList"] = thead.value;
|
|
3390
3427
|
elemStore["main-body-list"] = tbody.value;
|
|
3391
3428
|
elemStore["main-body-ySpace"] = ySpace.value;
|
|
3429
|
+
elemStore["main-body-alignXBar"] = alignXBar.value;
|
|
3430
|
+
elemStore["main-body-alignYBar"] = alignYBar.value;
|
|
3392
3431
|
});
|
|
3393
3432
|
var bodyClientWidth = hooks.ref(0);
|
|
3394
3433
|
var resizeObserver = new ResizeObserver(function(entries) {
|
|
@@ -3463,6 +3502,8 @@ var Body = /* @__PURE__ */ defineComponent({
|
|
|
3463
3502
|
thead,
|
|
3464
3503
|
tbody,
|
|
3465
3504
|
ySpace,
|
|
3505
|
+
alignXBar,
|
|
3506
|
+
alignYBar,
|
|
3466
3507
|
normalRows,
|
|
3467
3508
|
footerRows,
|
|
3468
3509
|
resetStickyWrapperScrollPos
|
|
@@ -3483,11 +3524,26 @@ var Body = /* @__PURE__ */ defineComponent({
|
|
|
3483
3524
|
"no-data": isNoData && $table.isShapeTable
|
|
3484
3525
|
},
|
|
3485
3526
|
"style": {
|
|
3527
|
+
"--body-container-scroll-height": containerScrollHeight + "px",
|
|
3528
|
+
"--body-container-scroll-width": containerScrollWidth + "px",
|
|
3486
3529
|
height: bodyWrapperHeight ? bodyWrapperHeight + "px" : void 0,
|
|
3487
3530
|
minHeight: bodyWrapperMinHeight ? bodyWrapperMinHeight + "px" : void 0,
|
|
3488
3531
|
maxHeight: bodyWrapperMaxHeight ? bodyWrapperMaxHeight + "px" : void 0
|
|
3489
3532
|
}
|
|
3490
3533
|
}, [[
|
|
3534
|
+
mouseConfig != null && mouseConfig.hover ? [createVNode("div", {
|
|
3535
|
+
"ref": "alignYBar",
|
|
3536
|
+
"class": "tiny-grid-body__hover-align-y-bar",
|
|
3537
|
+
"style": {
|
|
3538
|
+
height: containerScrollHeight + "px"
|
|
3539
|
+
}
|
|
3540
|
+
}, null), createVNode("div", {
|
|
3541
|
+
"ref": "alignXBar",
|
|
3542
|
+
"class": "tiny-grid-body__hover-align-x-bar",
|
|
3543
|
+
"style": {
|
|
3544
|
+
width: containerScrollWidth + "px"
|
|
3545
|
+
}
|
|
3546
|
+
}, null)] : null,
|
|
3491
3547
|
createVNode("div", {
|
|
3492
3548
|
"class": "tiny-grid-body__x-space",
|
|
3493
3549
|
"style": {
|
|
@@ -7456,19 +7512,26 @@ var Methods$d = {
|
|
|
7456
7512
|
clearAll: function clearAll(silent) {
|
|
7457
7513
|
var _this$$grid$fetchOpti = this.$grid.fetchOption, fetchOption = _this$$grid$fetchOpti === void 0 ? {} : _this$$grid$fetchOpti;
|
|
7458
7514
|
var isReloadFilter = fetchOption.isReloadFilter, _fetchOption$isReload = fetchOption.isReloadScroll, isReloadScroll = _fetchOption$isReload === void 0 ? false : _fetchOption$isReload;
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
|
|
7462
|
-
|
|
7463
|
-
|
|
7515
|
+
this.clearSort();
|
|
7516
|
+
this.clearCurrentRow();
|
|
7517
|
+
this.clearCurrentColumn();
|
|
7518
|
+
this.clearSelection();
|
|
7519
|
+
this.clearRowExpand();
|
|
7520
|
+
this.clearTreeExpand();
|
|
7521
|
+
this.clearValidateMap();
|
|
7522
|
+
if (!isReloadScroll) {
|
|
7523
|
+
this.clearScroll();
|
|
7464
7524
|
}
|
|
7465
|
-
run(functionNames, this);
|
|
7466
7525
|
this.cellStatus.clear();
|
|
7467
7526
|
if (typeof isReloadFilter === "undefined" ? Grid$1._filter : !isReloadFilter) {
|
|
7468
7527
|
this.clearFilter(silent);
|
|
7469
7528
|
}
|
|
7470
7529
|
if (this.keyboardConfig || this.mouseConfig) {
|
|
7471
|
-
|
|
7530
|
+
this.clearIndexChecked();
|
|
7531
|
+
this.clearHeaderChecked();
|
|
7532
|
+
this.clearChecked();
|
|
7533
|
+
this.clearSelected();
|
|
7534
|
+
this.clearCopyed();
|
|
7472
7535
|
}
|
|
7473
7536
|
return this.clearActived();
|
|
7474
7537
|
},
|
|
@@ -7477,6 +7540,7 @@ var Methods$d = {
|
|
|
7477
7540
|
var next = function next2() {
|
|
7478
7541
|
_this15.tableData = [];
|
|
7479
7542
|
_this15.cellStatus.clear();
|
|
7543
|
+
_this15.clearValidateMap();
|
|
7480
7544
|
return _this15.loadTableData(data7 || _this15.tableFullData);
|
|
7481
7545
|
};
|
|
7482
7546
|
return this.$nextTick().then(next);
|
|
@@ -10783,7 +10847,8 @@ var Table = defineComponent({
|
|
|
10783
10847
|
id: "",
|
|
10784
10848
|
multi: false,
|
|
10785
10849
|
options: [],
|
|
10786
|
-
visible: false
|
|
10850
|
+
visible: false,
|
|
10851
|
+
searchValue: ""
|
|
10787
10852
|
},
|
|
10788
10853
|
// 所有列已禁用
|
|
10789
10854
|
headerCheckDisabled: false,
|
|
@@ -11065,6 +11130,8 @@ var Table = defineComponent({
|
|
|
11065
11130
|
var bodyWrapperHeight = hooks.ref();
|
|
11066
11131
|
var bodyWrapperMinHeight = hooks.ref();
|
|
11067
11132
|
var bodyWrapperMaxHeight = hooks.ref();
|
|
11133
|
+
var containerScrollWidth = hooks.ref(0);
|
|
11134
|
+
var containerScrollHeight = hooks.ref(0);
|
|
11068
11135
|
var bodyTableWidth = hooks.ref();
|
|
11069
11136
|
var scrollLoadScrollHeight = hooks.ref();
|
|
11070
11137
|
var columnStore = hooks.ref({
|
|
@@ -11225,6 +11292,8 @@ var Table = defineComponent({
|
|
|
11225
11292
|
bodyWrapperHeight,
|
|
11226
11293
|
bodyWrapperMinHeight,
|
|
11227
11294
|
bodyWrapperMaxHeight,
|
|
11295
|
+
containerScrollWidth,
|
|
11296
|
+
containerScrollHeight,
|
|
11228
11297
|
bodyTableWidth,
|
|
11229
11298
|
scrollLoadScrollHeight,
|
|
11230
11299
|
columnStore,
|
|
@@ -11246,7 +11315,7 @@ var Table = defineComponent({
|
|
|
11246
11315
|
return h("div", {
|
|
11247
11316
|
class: (_class4 = {
|
|
11248
11317
|
"tiny-grid h-full sm:h-auto !bg-transparent sm:!bg-color-bg-1 after:border-none sm:after:border-solid": true
|
|
11249
|
-
}, _class4["row__valid-" + validOpts2.message] = true, _class4["size__" + vSize3] = vSize3, _class4["tiny-grid-editable"] = editConfig, _class4["show__head"] = showHeader, _class4["show__foot"] = showFooter, _class4["scroll__y"] = overflowY, _class4["scroll__x"] = overflowX, _class4["all-overflow"] = showOverflow, _class4["all-head-overflow"] = showHeaderOverflow, _class4["tiny-grid-cell__highlight"] = highlightCell, _class4["tiny-grid__animat"] = optimizeOpts.animat, _class4["tiny-grid__stripe"] = !isThemeSaas3 && stripe, _class4["tiny-grid__stripe-saas"] = isThemeSaas3 && stripeSaas, _class4["tiny-grid__border"] = border || isGroup2, _class4["tiny-grid__border-saas"] = isThemeSaas3 && borderSaas, _class4["tiny-grid__group-saas"] = isThemeSaas3 && isGroup2, _class4["tiny-grid__border-vertical"] = borderVertical, _class4["tiny-grid__checked"] = mouseConfig.checked, _class4["mark-insert"] = editConfig && editConfig.markInsert, _class4["edit__no-border"] = editConfig && editConfig.showBorder === false, _class4["is__loading"] = loading, _class4["row__highlight"] = highlightHoverRow, _class4["column__highlight"] = highlightHoverColumn, _class4["is__row-span"] = rowSpan && rowSpan.length > 0 || typeof spanMethod === "function", _class4["row__drop-handle--index"] = dropConfig.rowHandle === "index", _class4["fixed__sticky"] = horizonScroll.fixed, _class4["tiny-grid-fixed__left"] = !horizonScroll.isLeft, _class4["tiny-grid-fixed__right"] = !horizonScroll.isRight, _class4)
|
|
11318
|
+
}, _class4["row__valid-" + validOpts2.message] = true, _class4["size__" + vSize3] = vSize3, _class4["tiny-grid-editable"] = editConfig, _class4["show__head"] = showHeader, _class4["show__foot"] = showFooter, _class4["scroll__y"] = overflowY, _class4["scroll__x"] = overflowX, _class4["all-overflow"] = showOverflow, _class4["all-head-overflow"] = showHeaderOverflow, _class4["tiny-grid-cell__highlight"] = highlightCell, _class4["tiny-grid__animat"] = optimizeOpts.animat, _class4["tiny-grid__stripe"] = !isThemeSaas3 && stripe, _class4["tiny-grid__stripe-saas"] = isThemeSaas3 && stripeSaas, _class4["tiny-grid__border"] = border || isGroup2, _class4["tiny-grid__border-saas"] = isThemeSaas3 && borderSaas, _class4["tiny-grid__group-saas"] = isThemeSaas3 && isGroup2, _class4["tiny-grid__border-vertical"] = borderVertical, _class4["tiny-grid__checked"] = mouseConfig.checked, _class4["tiny-grid__hover-align"] = mouseConfig.hover, _class4["mark-insert"] = editConfig && editConfig.markInsert, _class4["edit__no-border"] = editConfig && editConfig.showBorder === false, _class4["is__loading"] = loading, _class4["row__highlight"] = highlightHoverRow, _class4["column__highlight"] = highlightHoverColumn, _class4["is__row-span"] = rowSpan && rowSpan.length > 0 || typeof spanMethod === "function", _class4["row__drop-handle--index"] = dropConfig.rowHandle === "index", _class4["fixed__sticky"] = horizonScroll.fixed, _class4["tiny-grid-fixed__left"] = !horizonScroll.isLeft, _class4["tiny-grid-fixed__right"] = !horizonScroll.isRight, _class4)
|
|
11250
11319
|
}, [
|
|
11251
11320
|
// 隐藏列
|
|
11252
11321
|
h("div", {
|
|
@@ -11274,9 +11343,10 @@ var Table = defineComponent({
|
|
|
11274
11343
|
key: "tinyGridResizeBar"
|
|
11275
11344
|
}) : null,
|
|
11276
11345
|
// 加载中
|
|
11277
|
-
h(
|
|
11346
|
+
h(Loading, {
|
|
11278
11347
|
props: {
|
|
11279
|
-
visible: loading
|
|
11348
|
+
visible: loading,
|
|
11349
|
+
loadingComponent
|
|
11280
11350
|
},
|
|
11281
11351
|
class: this.viewCls("gridLoading")
|
|
11282
11352
|
}),
|
|
@@ -13775,6 +13845,13 @@ var Methods$a = {
|
|
|
13775
13845
|
this.clostValidTooltip(void 0);
|
|
13776
13846
|
return this.$nextTick();
|
|
13777
13847
|
},
|
|
13848
|
+
clearValidateMap: function clearValidateMap() {
|
|
13849
|
+
if (this.validatedMap) {
|
|
13850
|
+
for (var key in this.validatedMap) {
|
|
13851
|
+
this.validatedMap[key] = false;
|
|
13852
|
+
}
|
|
13853
|
+
}
|
|
13854
|
+
},
|
|
13778
13855
|
// 触发校验
|
|
13779
13856
|
triggerValidate: function triggerValidate(type) {
|
|
13780
13857
|
var _this69 = this;
|
package/package.json
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-grid",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.27.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-common": "~3.
|
|
13
|
-
"@opentinyvue/vue-directive": "~3.
|
|
14
|
-
"@opentinyvue/vue-dropdown": "~3.
|
|
15
|
-
"@opentinyvue/vue-dropdown-item": "~3.
|
|
16
|
-
"@opentinyvue/vue-dropdown-menu": "~3.
|
|
17
|
-
"@opentinyvue/vue-exception": "~3.
|
|
18
|
-
"@opentinyvue/vue-icon": "~3.
|
|
19
|
-
"@opentinyvue/vue-loading": "~3.
|
|
20
|
-
"@opentinyvue/vue-locale": "~3.
|
|
21
|
-
"@opentinyvue/vue-modal": "~3.
|
|
22
|
-
"@opentinyvue/vue-pager": "~3.
|
|
23
|
-
"@opentinyvue/vue-renderless": "~3.
|
|
24
|
-
"@opentinyvue/vue-tag": "~3.
|
|
25
|
-
"@opentinyvue/vue-theme": "~3.
|
|
26
|
-
"@opentinyvue/vue-tooltip": "~3.
|
|
11
|
+
"@opentinyvue/utils": "~3.27.0",
|
|
12
|
+
"@opentinyvue/vue-common": "~3.27.0",
|
|
13
|
+
"@opentinyvue/vue-directive": "~3.27.0",
|
|
14
|
+
"@opentinyvue/vue-dropdown": "~3.27.0",
|
|
15
|
+
"@opentinyvue/vue-dropdown-item": "~3.27.0",
|
|
16
|
+
"@opentinyvue/vue-dropdown-menu": "~3.27.0",
|
|
17
|
+
"@opentinyvue/vue-exception": "~3.27.0",
|
|
18
|
+
"@opentinyvue/vue-icon": "~3.27.0",
|
|
19
|
+
"@opentinyvue/vue-loading": "~3.27.0",
|
|
20
|
+
"@opentinyvue/vue-locale": "~3.27.0",
|
|
21
|
+
"@opentinyvue/vue-modal": "~3.27.0",
|
|
22
|
+
"@opentinyvue/vue-pager": "~3.27.0",
|
|
23
|
+
"@opentinyvue/vue-renderless": "~3.27.0",
|
|
24
|
+
"@opentinyvue/vue-tag": "~3.27.0",
|
|
25
|
+
"@opentinyvue/vue-theme": "~3.27.0",
|
|
26
|
+
"@opentinyvue/vue-tooltip": "~3.27.0"
|
|
27
27
|
},
|
|
28
28
|
"types": "index.d.ts",
|
|
29
29
|
"scripts": {
|
package/src/body/src/body.d.ts
CHANGED
|
@@ -48,6 +48,8 @@ declare const _default: hooks.DefineComponent<{
|
|
|
48
48
|
thead: hooks.Ref<any>;
|
|
49
49
|
tbody: hooks.Ref<any>;
|
|
50
50
|
ySpace: hooks.Ref<any>;
|
|
51
|
+
alignXBar: hooks.Ref<any>;
|
|
52
|
+
alignYBar: hooks.Ref<any>;
|
|
51
53
|
normalRows: hooks.ShallowRef<{}>;
|
|
52
54
|
footerRows: hooks.ShallowRef<{}>;
|
|
53
55
|
resetStickyWrapperScrollPos: () => void;
|
package/src/config.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const GlobalConfig: {
|
|
2
2
|
validConfig: {
|
|
3
3
|
message: string;
|
|
4
|
+
highlightError: boolean;
|
|
4
5
|
icon: import("@vue/reactivity").Raw<import("@vue/runtime-core").DefineComponent<{}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
5
6
|
[key: string]: any;
|
|
6
7
|
}>, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>>;
|
package/src/table/src/table.d.ts
CHANGED
|
@@ -255,6 +255,8 @@ declare const _default: hooks.DefineComponent<{
|
|
|
255
255
|
bodyWrapperHeight: hooks.Ref<any>;
|
|
256
256
|
bodyWrapperMinHeight: hooks.Ref<any>;
|
|
257
257
|
bodyWrapperMaxHeight: hooks.Ref<any>;
|
|
258
|
+
containerScrollWidth: hooks.Ref<number>;
|
|
259
|
+
containerScrollHeight: hooks.Ref<number>;
|
|
258
260
|
bodyTableWidth: hooks.Ref<any>;
|
|
259
261
|
scrollLoadScrollHeight: hooks.Ref<any>;
|
|
260
262
|
columnStore: hooks.Ref<{
|
|
@@ -321,6 +323,7 @@ declare const _default: hooks.DefineComponent<{
|
|
|
321
323
|
multi: boolean;
|
|
322
324
|
options: never[];
|
|
323
325
|
visible: boolean;
|
|
326
|
+
searchValue: string;
|
|
324
327
|
};
|
|
325
328
|
headerCheckDisabled: boolean;
|
|
326
329
|
isAllSelected: boolean;
|
|
@@ -35,6 +35,7 @@ declare const _default: {
|
|
|
35
35
|
*/
|
|
36
36
|
validCellRules(type: any, row: any, column: any, defaultValue: any): Promise<void>;
|
|
37
37
|
_clearValidate(): any;
|
|
38
|
+
clearValidateMap(): void;
|
|
38
39
|
triggerValidate(type: any): Promise<void>;
|
|
39
40
|
showValidTooltip(params: any): void;
|
|
40
41
|
clostValidTooltip(): any;
|