We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7647e6 commit b19efbcCopy full SHA for b19efbc
packages/vue/src/grid/package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@opentiny/vue-grid",
3
"type": "module",
4
- "version": "3.18.4",
+ "version": "3.18.5",
5
"description": "",
6
"license": "MIT",
7
"sideEffects": false,
packages/vue/src/grid/src/column/src/column.ts
@@ -191,7 +191,9 @@ export default defineComponent({
191
192
const hasSubColumn = findTree(
193
slotVnode,
194
- ({ componentOptions, type }) => {
+ (node) => {
195
+ // 当使用jsx来写默认插槽时,vnode的children为[undefined], 使用fallback值防止解构报错
196
+ const { componentOptions, type } = node || {}
197
const componentName = (type && type.name) || (componentOptions && componentOptions.Ctor.extendOptions.name)
198
199
return $table.isValidCustomColumn(componentName)
0 commit comments