(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; var timer: any;
const getOption = (nodes: VNode[]) => { const getOption = (nodes: VNode[]) => {
nodes?.filter((item: VNode) => { nodes
return item.children != "v-if"; ?.filter((item: VNode) => {
})?.map((item: VNode) => { return item.children != "v-if";
let component = item.type as Component; })
if (component.name === LaySelectOption.name) { ?.map((item: VNode) => {
options.value.push(item.props); let component = item.type as Component;
} else { if (component.name === LaySelectOption.name) {
getOption(item.children as VNode[]); options.value.push(item.props);
} } else {
}); getOption(item.children as VNode[]);
}
});
}; };
const intOption = () => { const intOption = () => {

View File

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