bkui-vue 0.0.1-beta.407 → 0.0.1-beta.408
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/dist/index.cjs.js +26 -26
- package/dist/index.esm.js +24 -6
- package/dist/index.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/message/message.css +1 -1
- package/lib/message/message.less +1 -1
- package/lib/message/message.variable.css +1 -1
- package/lib/search-select/index.js +1 -1
- package/lib/table/components/table-cell.d.ts +2 -0
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +27 -2
- package/lib/table-column/index.js +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
@@ -16866,6 +16866,11 @@ const settingSizeType = j("columnSize", {
|
|
16866
16866
|
});
|
16867
16867
|
const fixedType = j("columnSize", {});
|
16868
16868
|
const sortScopeType = j("sortScope", {}).def("current");
|
16869
|
+
var ResizerWay = /* @__PURE__ */ ((ResizerWay2) => {
|
16870
|
+
ResizerWay2["DEBOUNCE"] = "debounce";
|
16871
|
+
ResizerWay2["THROTTLE"] = "throttle";
|
16872
|
+
return ResizerWay2;
|
16873
|
+
})(ResizerWay || {});
|
16869
16874
|
const IColumnType = {
|
16870
16875
|
label: PropTypes.oneOfType([PropTypes.func.def(() => ""), PropTypes.string.def("")]),
|
16871
16876
|
field: PropTypes.oneOfType([PropTypes.func.def(() => ""), PropTypes.string.def("")]),
|
@@ -16978,7 +16983,7 @@ const tableProps = {
|
|
16978
16983
|
PropTypes.bool.def(true)
|
16979
16984
|
]).def(true),
|
16980
16985
|
resizerWay: j("ResizerWay", {
|
16981
|
-
default: "
|
16986
|
+
default: "debounce"
|
16982
16987
|
}),
|
16983
16988
|
observerResize: PropTypes.bool.def(true)
|
16984
16989
|
};
|
@@ -18373,7 +18378,10 @@ var TableCell = defineComponent({
|
|
18373
18378
|
mode: overflowModeType
|
18374
18379
|
})]).def(void 0),
|
18375
18380
|
title: PropTypes.string.def(void 0),
|
18376
|
-
observerResize: PropTypes.bool.def(true)
|
18381
|
+
observerResize: PropTypes.bool.def(true),
|
18382
|
+
resizerWay: j("ResizerWay", {
|
18383
|
+
default: ResizerWay.DEBOUNCE
|
18384
|
+
})
|
18377
18385
|
},
|
18378
18386
|
setup(props2, {
|
18379
18387
|
slots
|
@@ -18394,6 +18402,9 @@ var TableCell = defineComponent({
|
|
18394
18402
|
let bkEllipsisIns = null;
|
18395
18403
|
const resolveTooltipOption = () => {
|
18396
18404
|
let disabled = true;
|
18405
|
+
let {
|
18406
|
+
resizerWay
|
18407
|
+
} = props2;
|
18397
18408
|
let content = refRoot.value.innerText;
|
18398
18409
|
let mode = "auto";
|
18399
18410
|
if (typeof showOverflowTooltip === "boolean") {
|
@@ -18401,6 +18412,7 @@ var TableCell = defineComponent({
|
|
18401
18412
|
}
|
18402
18413
|
if (typeof showOverflowTooltip === "object") {
|
18403
18414
|
disabled = showOverflowTooltip.disabled;
|
18415
|
+
resizerWay = showOverflowTooltip.resizerWay || "debounce";
|
18404
18416
|
content = showOverflowTooltip.content || refRoot.value.innerText;
|
18405
18417
|
if (typeof showOverflowTooltip.content === "function") {
|
18406
18418
|
content = showOverflowTooltip.content(props2.column, props2.row);
|
@@ -18413,7 +18425,8 @@ var TableCell = defineComponent({
|
|
18413
18425
|
return {
|
18414
18426
|
disabled,
|
18415
18427
|
content,
|
18416
|
-
mode
|
18428
|
+
mode,
|
18429
|
+
resizerWay
|
18417
18430
|
};
|
18418
18431
|
};
|
18419
18432
|
const resolveOverflowTooltip = () => {
|
@@ -18444,14 +18457,15 @@ var TableCell = defineComponent({
|
|
18444
18457
|
onMounted(() => {
|
18445
18458
|
var _a;
|
18446
18459
|
const {
|
18447
|
-
disabled
|
18460
|
+
disabled,
|
18461
|
+
resizerWay
|
18448
18462
|
} = resolveTooltipOption();
|
18449
18463
|
if (!disabled) {
|
18450
18464
|
resolveOverflowTooltip();
|
18451
18465
|
if (((_a = props2.column.showOverflowTooltip) == null ? void 0 : _a.watchCellResize) !== false && props2.observerResize) {
|
18452
18466
|
let observerIns = observerResize(refRoot.value, () => {
|
18453
18467
|
resolveOverflowTooltip();
|
18454
|
-
}, 60, true);
|
18468
|
+
}, 60, true, resizerWay);
|
18455
18469
|
observerIns.start();
|
18456
18470
|
onBeforeUnmount(() => {
|
18457
18471
|
observerIns.disconnect();
|
@@ -19287,7 +19301,8 @@ class TableRender {
|
|
19287
19301
|
const showTitle = typeof cellText === "string" ? cellText : void 0;
|
19288
19302
|
return createVNode(TableCell, {
|
19289
19303
|
"title": showTitle,
|
19290
|
-
"observerResize": this.props.observerResize
|
19304
|
+
"observerResize": this.props.observerResize,
|
19305
|
+
"resizerWay": this.props.resizerWay
|
19291
19306
|
}, _isSlot$1(cells) ? cells : {
|
19292
19307
|
default: () => [cells]
|
19293
19308
|
});
|
@@ -39186,6 +39201,9 @@ var SearchSelectInput = defineComponent({
|
|
39186
39201
|
return;
|
39187
39202
|
}
|
39188
39203
|
usingItem.value.addValue(item);
|
39204
|
+
if (usingItem.value.multiple) {
|
39205
|
+
keyword.value = "";
|
39206
|
+
}
|
39189
39207
|
const res = await validateUsingItemValues(item);
|
39190
39208
|
if (!res)
|
39191
39209
|
return;
|