bkui-vue 0.0.1-beta.405 → 0.0.1-beta.406
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 +48 -48
- package/dist/index.esm.js +61 -35
- package/dist/index.umd.js +48 -48
- 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",
|
@@ -12812,15 +12812,23 @@ var useFloating = (props2, ctx, {
|
|
12812
12812
|
};
|
12813
12813
|
let popHideTimerId = void 0;
|
12814
12814
|
let isMouseenter = false;
|
12815
|
+
const resolvePopoverDelay = () => {
|
12816
|
+
if (Array.isArray(props2.popoverDelay)) {
|
12817
|
+
return [props2.popoverDelay[0], props2.popoverDelay.slice(-1)[0]];
|
12818
|
+
}
|
12819
|
+
return [props2.popoverDelay, props2.popoverDelay];
|
12820
|
+
};
|
12815
12821
|
const showPopover = () => {
|
12822
|
+
const delay = resolvePopoverDelay()[0];
|
12816
12823
|
setTimeout(() => {
|
12817
12824
|
!props2.disabled && (localIsShow.value = true);
|
12818
|
-
},
|
12825
|
+
}, delay);
|
12819
12826
|
};
|
12820
12827
|
const hidePopover = () => {
|
12828
|
+
const delay = resolvePopoverDelay()[1];
|
12821
12829
|
popHideTimerId = setTimeout(() => {
|
12822
12830
|
localIsShow.value = false;
|
12823
|
-
},
|
12831
|
+
}, delay);
|
12824
12832
|
};
|
12825
12833
|
const hanldePopoverShow = () => {
|
12826
12834
|
var _a;
|
@@ -18953,15 +18961,15 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
18953
18961
|
column_fixed: !!column.fixed,
|
18954
18962
|
column_fixed_left: column.fixed !== "right",
|
18955
18963
|
column_fixed_right: column.fixed === "right",
|
18956
|
-
shadow: column.fixed === "right" ? scrollX
|
18964
|
+
shadow: column.fixed === "right" ? offsetRight - scrollX > 2 : scrollX > 0
|
18957
18965
|
});
|
18958
18966
|
const resolveFixColPos = (column) => column.fixed === "right" ? "right" : "left";
|
18959
18967
|
const resolveFixOffset = {
|
18960
|
-
left: (ignoreFirst = true) => colgroups.filter((col) => col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
18968
|
+
left: (ignoreFirst = true) => colgroups.filter((col) => !col.isHidden && col.fixed && col.fixed !== "right").reduce((offset2, curr, index2) => {
|
18961
18969
|
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
18962
18970
|
return outOffset;
|
18963
18971
|
}, 0),
|
18964
|
-
right: (ignoreFirst = true) => colgroups.filter((col) => col.fixed === "right").reduce((offset2, curr, index2) => {
|
18972
|
+
right: (ignoreFirst = true) => colgroups.filter((col) => !col.isHidden && col.fixed === "right").reduce((offset2, curr, index2) => {
|
18965
18973
|
const outOffset = ignoreFirst && index2 === 0 ? offset2 : offset2 + getColumnReactWidth(curr);
|
18966
18974
|
return outOffset;
|
18967
18975
|
}, hasScrollY ? SCROLLY_WIDTH : 0)
|
@@ -18992,7 +19000,7 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
18992
19000
|
return preOffset + offset2;
|
18993
19001
|
};
|
18994
19002
|
const resolveFixedColumnStyle = (column, hasScrollY2 = false) => {
|
18995
|
-
if (!column.fixed) {
|
19003
|
+
if (!column.fixed || column.isHidden) {
|
18996
19004
|
return {};
|
18997
19005
|
}
|
18998
19006
|
const fixedOffset = {
|
@@ -19009,33 +19017,29 @@ var useFixedColumn = (_props, colgroups, hasScrollY) => {
|
|
19009
19017
|
width: `${resolveFixOffset[colPos](false)}px`,
|
19010
19018
|
bottom: "0px"
|
19011
19019
|
});
|
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));
|
19020
|
+
const fixedColumns = computed(() => {
|
19021
|
+
const colPosExist = {
|
19022
|
+
left: false,
|
19023
|
+
right: false
|
19024
|
+
};
|
19025
|
+
return colgroups.filter((col) => !col.isHidden && col.fixed).map((col) => {
|
19026
|
+
const colPos = resolveFixColPos(col);
|
19027
|
+
const isExist = colPosExist[colPos];
|
19028
|
+
colPosExist[colPos] = true;
|
19029
|
+
return {
|
19030
|
+
isExist,
|
19031
|
+
colPos,
|
19032
|
+
column: col
|
19033
|
+
};
|
19034
|
+
});
|
19035
|
+
});
|
19034
19036
|
const fixedWrapperClass = resolveClassName("table-fixed");
|
19035
19037
|
return {
|
19036
|
-
renderFixedColumns,
|
19037
19038
|
fixedWrapperClass,
|
19038
|
-
resolveFixedColumnStyle
|
19039
|
+
resolveFixedColumnStyle,
|
19040
|
+
fixedColumns,
|
19041
|
+
resolveColumnStyle,
|
19042
|
+
resolveColumnClass
|
19039
19043
|
};
|
19040
19044
|
};
|
19041
19045
|
function _isSlot$1(s2) {
|
@@ -19893,6 +19897,9 @@ const useInit = (props2, targetColumns) => {
|
|
19893
19897
|
[COLUMN_ATTRIBUTE.COL_SOURCE_DATA]: col
|
19894
19898
|
})));
|
19895
19899
|
};
|
19900
|
+
if (typeof props2.settings === "object") {
|
19901
|
+
updateColGroups(props2.settings);
|
19902
|
+
}
|
19896
19903
|
const { dragOffsetXStyle, dragOffsetX, resetResizeEvents, registerResizeEvent } = useColumnResize(colgroups, true);
|
19897
19904
|
const { activeColumns } = useActiveColumns(props2, targetColumns);
|
19898
19905
|
watch(() => [props2.settings], () => {
|
@@ -20185,7 +20192,12 @@ const useInit = (props2, targetColumns) => {
|
|
20185
20192
|
}
|
20186
20193
|
}
|
20187
20194
|
};
|
20188
|
-
const {
|
20195
|
+
const {
|
20196
|
+
fixedColumns,
|
20197
|
+
resolveColumnStyle,
|
20198
|
+
resolveColumnClass,
|
20199
|
+
fixedWrapperClass
|
20200
|
+
} = useFixedColumn(props2, colgroups, false);
|
20189
20201
|
const getSelection = () => indexData.filter((row) => resolveSelection(row));
|
20190
20202
|
return {
|
20191
20203
|
colgroups,
|
@@ -20194,9 +20206,11 @@ const useInit = (props2, targetColumns) => {
|
|
20194
20206
|
reactiveSchema,
|
20195
20207
|
indexData,
|
20196
20208
|
fixedWrapperClass,
|
20209
|
+
fixedColumns,
|
20210
|
+
resolveColumnStyle,
|
20211
|
+
resolveColumnClass,
|
20197
20212
|
initIndexData,
|
20198
20213
|
updateIndexData,
|
20199
|
-
renderFixedColumns,
|
20200
20214
|
setRowExpand,
|
20201
20215
|
updateColGroups,
|
20202
20216
|
clearSelection,
|
@@ -20229,7 +20243,9 @@ var Component$e = defineComponent({
|
|
20229
20243
|
dragOffsetX,
|
20230
20244
|
reactiveSchema,
|
20231
20245
|
indexData,
|
20232
|
-
|
20246
|
+
fixedColumns,
|
20247
|
+
resolveColumnStyle,
|
20248
|
+
resolveColumnClass,
|
20233
20249
|
setRowExpand,
|
20234
20250
|
initIndexData,
|
20235
20251
|
fixedWrapperClass,
|
@@ -20535,7 +20551,17 @@ var Component$e = defineComponent({
|
|
20535
20551
|
createVNode("div", {
|
20536
20552
|
"class": fixedWrapperClass,
|
20537
20553
|
"style": fixedContainerStyle.value
|
20538
|
-
}, [
|
20554
|
+
}, [fixedColumns.value.map(({
|
20555
|
+
isExist,
|
20556
|
+
colPos,
|
20557
|
+
column
|
20558
|
+
}) => {
|
20559
|
+
console.log("fixedWrapperClass");
|
20560
|
+
return isExist ? "" : createVNode("div", {
|
20561
|
+
"class": resolveColumnClass(column, reactiveSchema.scrollTranslateX, tableOffsetRight.value),
|
20562
|
+
"style": resolveColumnStyle(colPos)
|
20563
|
+
}, null);
|
20564
|
+
}), createVNode("div", {
|
20539
20565
|
"class": resizeColumnClass,
|
20540
20566
|
"style": resizeColumnStyle.value
|
20541
20567
|
}, null), createVNode("div", {
|