(component): update

This commit is contained in:
就眠儀式 2022-10-09 11:56:11 +08:00
parent c4cf4efd3d
commit 59b999d253
2 changed files with 13 additions and 12 deletions

View File

@ -77,16 +77,18 @@ const options = ref<any>([]);
var timer: any;
const getOption = (nodes: VNode[]) => {
nodes?.filter((item: VNode) => {
return item.children != "v-if";
})?.map((item: VNode) => {
let component = item.type as Component;
if (component.name === LaySelectOption.name) {
options.value.push(item.props);
} else {
getOption(item.children as VNode[]);
}
});
nodes
?.filter((item: VNode) => {
return item.children != "v-if";
})
?.map((item: VNode) => {
let component = item.type as Component;
if (component.name === LaySelectOption.name) {
options.value.push(item.props);
} else {
getOption(item.children as VNode[]);
}
});
};
const intOption = () => {

View File

@ -457,14 +457,13 @@ watch(
);
onMounted(() => {
getScrollWidth();
getFixedColumn();
tableBody.value?.addEventListener("scroll", () => {
getFixedColumn();
});
window.onresize = () => {
getScrollWidth();
getFixedColumn();