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')