|
|
@ -69,11 +69,13 @@ export function _createElement ( |
|
|
|
if (process.env.NODE_ENV !== 'production' && |
|
|
|
isDef(data) && isDef(data.key) && !isPrimitive(data.key) |
|
|
|
) { |
|
|
|
warn( |
|
|
|
'Avoid using non-primitive value as key, ' + |
|
|
|
'use string/number value instead.', |
|
|
|
context |
|
|
|
) |
|
|
|
if (!__WEEX__ || !('@binding' in data.key)) { |
|
|
|
warn( |
|
|
|
'Avoid using non-primitive value as key, ' + |
|
|
|
'use string/number value instead.', |
|
|
|
context |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
// support single function children as default scoped slot
|
|
|
|
if (Array.isArray(children) && |
|
|
|