fix table 滚动条head宽度
This commit is contained in:
parent
8f0cb42c5f
commit
7f37117c39
@ -986,7 +986,6 @@ const _sfc_main = defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
scrollWidthCell.value = 0;
|
scrollWidthCell.value = 0;
|
||||||
}
|
}
|
||||||
console.log("\u6EDA\u52A8\u6761\u5BBD\u5EA6", scrollWidthCell.value);
|
|
||||||
tableBodyEmptyWidth.value = ((_c = tableHeaderTable.value) == null ? void 0 : _c.offsetWidth) + "px";
|
tableBodyEmptyWidth.value = ((_c = tableHeaderTable.value) == null ? void 0 : _c.offsetWidth) + "px";
|
||||||
};
|
};
|
||||||
const hasl = ref(false);
|
const hasl = ref(false);
|
||||||
@ -999,7 +998,6 @@ const _sfc_main = defineComponent({
|
|||||||
});
|
});
|
||||||
watch(() => [props.height, props.maxHeight, props.dataSource], () => {
|
watch(() => [props.height, props.maxHeight, props.dataSource], () => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
console.log("\u6570\u636E\u53D8\u5316", scrollWidthCell.value);
|
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
}, {
|
}, {
|
||||||
|
@ -19404,7 +19404,6 @@ const _sfc_main$D = defineComponent({
|
|||||||
} else {
|
} else {
|
||||||
scrollWidthCell.value = 0;
|
scrollWidthCell.value = 0;
|
||||||
}
|
}
|
||||||
console.log("\u6EDA\u52A8\u6761\u5BBD\u5EA6", scrollWidthCell.value);
|
|
||||||
tableBodyEmptyWidth.value = ((_c = tableHeaderTable.value) == null ? void 0 : _c.offsetWidth) + "px";
|
tableBodyEmptyWidth.value = ((_c = tableHeaderTable.value) == null ? void 0 : _c.offsetWidth) + "px";
|
||||||
};
|
};
|
||||||
const hasl = ref(false);
|
const hasl = ref(false);
|
||||||
@ -19417,7 +19416,6 @@ const _sfc_main$D = defineComponent({
|
|||||||
});
|
});
|
||||||
watch(() => [props.height, props.maxHeight, props.dataSource], () => {
|
watch(() => [props.height, props.maxHeight, props.dataSource], () => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
console.log("\u6570\u636E\u53D8\u5316", scrollWidthCell.value);
|
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
}, {
|
}, {
|
||||||
|
@ -434,7 +434,6 @@ const getScrollWidth = () => {
|
|||||||
} else {
|
} else {
|
||||||
scrollWidthCell.value = 0;
|
scrollWidthCell.value = 0;
|
||||||
}
|
}
|
||||||
console.log("滚动条宽度",scrollWidthCell.value)
|
|
||||||
|
|
||||||
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
|
tableBodyEmptyWidth.value = tableHeaderTable.value?.offsetWidth + "px";
|
||||||
};
|
};
|
||||||
@ -453,7 +452,6 @@ watch(
|
|||||||
() => [props.height, props.maxHeight, props.dataSource],
|
() => [props.height, props.maxHeight, props.dataSource],
|
||||||
() => {
|
() => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
console.log("数据变化",scrollWidthCell.value)
|
|
||||||
getScrollWidth();
|
getScrollWidth();
|
||||||
});
|
});
|
||||||
},{
|
},{
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user