@@ -110,7 +110,7 @@ export interface FunctionalComponentOptions<Props = DefaultProps, PropDefs = Pro
props?: PropDefs;
inject?: InjectOptions;
functional: boolean;
- render(this: undefined, createElement: CreateElement, context: RenderContext<Props>): VNode;
+ render?(this: undefined, createElement: CreateElement, context: RenderContext<Props>): VNode;
}
export interface RenderContext<Props=DefaultProps> {
@@ -331,6 +331,10 @@ Vue.component('functional-component-object-inject', {
})
+Vue.component('functional-component-check-optional', {
+ functional: true
+})
+
Vue.component("async-component", ((resolve, reject) => {
setTimeout(() => {
resolve(Vue.component("component"));