We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ea85b1 commit 100cff2Copy full SHA for 100cff2
packages/client/builtin/VClicks.ts
@@ -118,6 +118,24 @@ export default defineComponent({
118
if (defaults.length === 1 && listTags.includes(defaults[0].type as string) && Array.isArray(defaults[0].children))
119
return h(defaults[0], {}, [mapChildren(defaults[0].children)[0]])
120
121
+ if (defaults.length === 1 && defaults[0].type as string === 'table') {
122
+ const tableNode = defaults[0]
123
+ if (Array.isArray(tableNode.children)) {
124
+ return h(tableNode, {}, tableNode.children.map((i) => {
125
+ if (!isVNode(i)) {
126
+ return i
127
+ }
128
+ else {
129
+ if (i.type === 'tbody' && Array.isArray(i.children))
130
+ return h(i, {}, [mapChildren(i.children)[0]])
131
+
132
+ else
133
+ return h(i)
134
135
+ }))
136
137
138
139
return mapChildren(defaults)[0]
140
},
141
})
0 commit comments