From f18a8e98045fe02e27e6ac2df411a2addc00dc05 Mon Sep 17 00:00:00 2001 From: yutent Date: Thu, 9 Feb 2023 17:53:13 +0800 Subject: [PATCH] fixed --- src/table/index.wc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table/index.wc b/src/table/index.wc index 1a5f6c8..b7da528 100644 --- a/src/table/index.wc +++ b/src/table/index.wc @@ -88,7 +88,7 @@ export default class Table { } mounted() { - var tds = Array.from(this.children[0]?.children).map(it => { + var tds = Array.from(this.children[0]?.children || []).map(it => { let flex = +it.getAttribute('flex') || 1 let style = it.getAttribute('style')