bkui-vue 0.0.1-beta.405 → 0.0.1-beta.407
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 +51 -51
- package/dist/index.esm.js +65 -36
- package/dist/index.umd.js +51 -51
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.d.ts +11 -19
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +5 -9
- package/lib/popover/props.d.ts +2 -4
- package/lib/select/index.d.ts +6 -12
- package/lib/select/select.d.ts +2 -4
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/use-fixed-column.d.ts +15 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.less +1 -0
- package/lib/table/table.variable.css +1 -0
- package/lib/table/use-common.d.ts +15 -1
- package/lib/tag-input/index.d.ts +8 -16
- package/lib/tag-input/tag-input.d.ts +4 -8
- package/lib/tag-input/tag-props.d.ts +2 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -11288,7 +11288,7 @@ const PopoverProps = __spreadValues({
|
|
11288
11288
|
disableTransform: PropTypes.bool.def(false),
|
11289
11289
|
reference: PropTypes.any.def(null),
|
11290
11290
|
modifiers: PropTypes.array.def([]),
|
11291
|
-
popoverDelay: PropTypes.number.def(100)
|
11291
|
+
popoverDelay: PropTypes.oneOfType([PropTypes.number, PropTypes.arrayOf(PropTypes.number)]).def(100)
|
11292
11292
|
}, EventProps$1);
|
11293
11293
|
var Reference = defineComponent({
|
11294
11294
|
name: "PopReference",
|
@@ -12811,16 +12811,27 @@ var useFloating = (props2, ctx, {
|
|
12811
12811
|
});
|
12812
12812
|
};
|
12813
12813
|
let popHideTimerId = void 0;
|
12814
|
+
let popShowTimerId = void 0;
|
12814
12815
|
let isMouseenter = false;
|
12816
|
+
const resolvePopoverDelay = () => {
|
12817
|
+
if (Array.isArray(props2.popoverDelay)) {
|
12818
|
+
return [props2.popoverDelay[0], props2.popoverDelay.slice(-1)[0]];
|
12819
|
+
}
|
12820
|
+
return [props2.popoverDelay, props2.popoverDelay];
|
12821
|
+
};
|
12815
12822
|
const showPopover = () => {
|
12816
|
-
|
12823
|
+
const delay = resolvePopoverDelay()[0];
|
12824
|
+
popShowTimerId = setTimeout(() => {
|
12825
|
+
popHideTimerId && clearTimeout(popHideTimerId);
|
12817
12826
|
!props2.disabled && (localIsShow.value = true);
|
12818
|
-
},
|
12827
|
+
}, delay);
|
12819
12828
|
};
|
12820
12829
|
const hidePopover = () => {
|
12830
|
+
const delay = resolvePopoverDelay()[1];
|
12821
12831
|
popHideTimerId = setTimeout(() => {
|
12832
|
+
popShowTimerId && clearTimeout(popShowTimerId);
|
12822
12833
|
localIsShow.value = false;
|
12823
|
-
},
|
12834
|
+
}, delay);
|
12824
12835
|
};
|
12825
12836
|
const hanldePopoverShow = () => {
|
12826
12837
|
var _a;
|
@@ -18953,15 +18964,15 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
18953
18964
|
column_fixed: !!column.fixed,
|
18954
18965
|
column_fixed_left: column.fixed !== "right",
|
18955
18966
|
column_fixed_right: column.fixed === "right",
|
18956
|
-
shadow: column.fixed === "right" ? scrollX
|
18967
|
+
shadow: column.fixed === "right" ? offsetRight - scrollX > 2 : scrollX > 0
|
18957
18968
|
});
|
18958
18969
|
const resolveFixColPos = (column) => column.fixed === "right" ? "right" : "left";
|
18959
18970
|
const resolveFixOffset = {
|
18960
|
-
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
18971
|
+
left: (ignoreFirst = true) => colgroups.filter((col) => !col.isHidden && col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
18961
18972
|
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
18962
18973
|
return outOffset;
|
18963
18974
|
}, 0),
|
18964
|
-
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr, index2) => {
|
18975
|
+
right: (ignoreFirst = true) => colgroups.filter((col) => !col.isHidden && col.fixed === "right").reduce((offset2, curr, index2) => {
|
18965
18976
|
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
18966
18977
|
return outOffset;
|
18967
18978
|
}, hasScrollY ? SCROLLY_WIDTH : 0)
|
@@ -18992,7 +19003,7 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
18992
19003
|
return preOffset + offset2;
|
18993
19004
|
};
|
18994
19005
|
const resolveFixedColumnStyle = (column, hasScrollY2 = false) => {
|
18995
|
-
if (!column.fixed) {
|
19006
|
+
if (!column.fixed || column.isHidden) {
|
18996
19007
|
return {};
|
18997
19008
|
}
|
18998
19009
|
const fixedOffset = {
|
@@ -19009,33 +19020,29 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
19009
19020
|
width: `${resolveFixOffset[colPos](false)}px`,
|
19010
19021
|
bottom: "0px"
|
19011
19022
|
});
|
19012
|
-
const
|
19013
|
-
|
19014
|
-
|
19015
|
-
|
19016
|
-
|
19017
|
-
|
19018
|
-
|
19019
|
-
|
19020
|
-
|
19021
|
-
|
19022
|
-
|
19023
|
-
|
19024
|
-
|
19025
|
-
|
19026
|
-
|
19027
|
-
|
19028
|
-
colPos,
|
19029
|
-
column
|
19030
|
-
}) => isExist ? "" : createVNode("div", {
|
19031
|
-
"class": resolveColumnClass(column, scrollX, offsetRight),
|
19032
|
-
"style": resolveColumnStyle(colPos)
|
19033
|
-
}, null));
|
19023
|
+
const fixedColumns = computed(() => {
|
19024
|
+
const colPosExist = {
|
19025
|
+
left: false,
|
19026
|
+
right: false
|
19027
|
+
};
|
19028
|
+
return colgroups.filter((col) => !col.isHidden && col.fixed).map((col) => {
|
19029
|
+
const colPos = resolveFixColPos(col);
|
19030
|
+
const isExist = colPosExist[colPos];
|
19031
|
+
colPosExist[colPos] = true;
|
19032
|
+
return {
|
19033
|
+
isExist,
|
19034
|
+
colPos,
|
19035
|
+
column: col
|
19036
|
+
};
|
19037
|
+
});
|
19038
|
+
});
|
19034
19039
|
const fixedWrapperClass = resolveClassName("table-fixed");
|
19035
19040
|
return {
|
19036
|
-
renderFixedColumns,
|
19037
19041
|
fixedWrapperClass,
|
19038
|
-
resolveFixedColumnStyle
|
19042
|
+
resolveFixedColumnStyle,
|
19043
|
+
fixedColumns,
|
19044
|
+
resolveColumnStyle,
|
19045
|
+
resolveColumnClass
|
19039
19046
|
};
|
19040
19047
|
};
|
19041
19048
|
function _isSlot$1(s2) {
|
@@ -19893,6 +19900,9 @@ const useInit = (props2, targetColumns) => {
|
|
19893
19900
|
[COLUMN_ATTRIBUTE.COL_SOURCE_DATA]: col
|
19894
19901
|
})));
|
19895
19902
|
};
|
19903
|
+
if (typeof props2.settings === "object") {
|
19904
|
+
updateColGroups(props2.settings);
|
19905
|
+
}
|
19896
19906
|
const { dragOffsetXStyle, dragOffsetX, resetResizeEvents, registerResizeEvent } = useColumnResize(colgroups, true);
|
19897
19907
|
const { activeColumns } = useActiveColumns(props2, targetColumns);
|
19898
19908
|
watch(() => [props2.settings], () => {
|
@@ -20185,7 +20195,12 @@ const useInit = (props2, targetColumns) => {
|
|
20185
20195
|
}
|
20186
20196
|
}
|
20187
20197
|
};
|
20188
|
-
const {
|
20198
|
+
const {
|
20199
|
+
fixedColumns,
|
20200
|
+
resolveColumnStyle,
|
20201
|
+
resolveColumnClass,
|
20202
|
+
fixedWrapperClass
|
20203
|
+
} = useFixedColumn(props2, colgroups, false);
|
20189
20204
|
const getSelection = () => indexData.filter((row) => resolveSelection(row));
|
20190
20205
|
return {
|
20191
20206
|
colgroups,
|
@@ -20194,9 +20209,11 @@ const useInit = (props2, targetColumns) => {
|
|
20194
20209
|
reactiveSchema,
|
20195
20210
|
indexData,
|
20196
20211
|
fixedWrapperClass,
|
20212
|
+
fixedColumns,
|
20213
|
+
resolveColumnStyle,
|
20214
|
+
resolveColumnClass,
|
20197
20215
|
initIndexData,
|
20198
20216
|
updateIndexData,
|
20199
|
-
renderFixedColumns,
|
20200
20217
|
setRowExpand,
|
20201
20218
|
updateColGroups,
|
20202
20219
|
clearSelection,
|
@@ -20229,7 +20246,9 @@ var Component$e = defineComponent({
|
|
20229
20246
|
dragOffsetX,
|
20230
20247
|
reactiveSchema,
|
20231
20248
|
indexData,
|
20232
|
-
|
20249
|
+
fixedColumns,
|
20250
|
+
resolveColumnStyle,
|
20251
|
+
resolveColumnClass,
|
20233
20252
|
setRowExpand,
|
20234
20253
|
initIndexData,
|
20235
20254
|
fixedWrapperClass,
|
@@ -20535,7 +20554,17 @@ var Component$e = defineComponent({
|
|
20535
20554
|
createVNode("div", {
|
20536
20555
|
"class": fixedWrapperClass,
|
20537
20556
|
"style": fixedContainerStyle.value
|
20538
|
-
}, [
|
20557
|
+
}, [fixedColumns.value.map(({
|
20558
|
+
isExist,
|
20559
|
+
colPos,
|
20560
|
+
column
|
20561
|
+
}) => {
|
20562
|
+
console.log("fixedWrapperClass");
|
20563
|
+
return isExist ? "" : createVNode("div", {
|
20564
|
+
"class": resolveColumnClass(column, reactiveSchema.scrollTranslateX, tableOffsetRight.value),
|
20565
|
+
"style": resolveColumnStyle(colPos)
|
20566
|
+
}, null);
|
20567
|
+
}), createVNode("div", {
|
20539
20568
|
"class": resizeColumnClass,
|
20540
20569
|
"style": resizeColumnStyle.value
|
20541
20570
|
}, null), createVNode("div", {
|