🐛(component): 修复 select 相关缺陷,并调整文档显示格式
This commit is contained in:
@@ -77,7 +77,9 @@ const options = ref<any>([]);
|
||||
var timer: any;
|
||||
|
||||
const getOption = (nodes: VNode[]) => {
|
||||
nodes?.map((item: 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);
|
||||
|
||||
@@ -457,11 +457,14 @@ watch(
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
|
||||
getScrollWidth();
|
||||
getFixedColumn();
|
||||
|
||||
tableBody.value?.addEventListener("scroll", () => {
|
||||
getFixedColumn();
|
||||
});
|
||||
|
||||
window.onresize = () => {
|
||||
getScrollWidth();
|
||||
getFixedColumn();
|
||||
|
||||
Reference in New Issue
Block a user