diff --git a/package.json b/package.json index ccb1009..9f194a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-corator", - "version": "1.6.5", + "version": "1.6.6", "description": "this is TypeScript Vue decorator.", "main": "lib/vue-corator.d.ts", "module": "lib/vue-corator.js", diff --git a/src/vue-corator.ts b/src/vue-corator.ts index fdcdba8..e025ae9 100644 --- a/src/vue-corator.ts +++ b/src/vue-corator.ts @@ -57,6 +57,7 @@ export function Render(componentName?: string) { const props = parameta.split(','); const newComponent = { props, + functional: true, render(createElement: any) { return compiledTemplate.render.call(this, createElement); } @@ -66,8 +67,8 @@ export function Render(componentName?: string) { options.components[componentName || key] = newComponent; })(target, key); }; -} - + } + export function ScopedId(key?: string) { return createDecorator((options, k) => { options.computed = options.computed || {};