diff --git a/package/component/src/component/select/index.vue b/package/component/src/component/select/index.vue index 44772969..91c23c66 100644 --- a/package/component/src/component/select/index.vue +++ b/package/component/src/component/select/index.vue @@ -77,16 +77,18 @@ const options = ref([]); 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 = () => { diff --git a/package/component/src/component/table/index.vue b/package/component/src/component/table/index.vue index a8316525..57e02295 100644 --- a/package/component/src/component/table/index.vue +++ b/package/component/src/component/table/index.vue @@ -457,14 +457,13 @@ watch( ); onMounted(() => { - getScrollWidth(); getFixedColumn(); tableBody.value?.addEventListener("scroll", () => { getFixedColumn(); }); - + window.onresize = () => { getScrollWidth(); getFixedColumn();