Skip to content

Commit 82109e3

Browse files
committed
@Render added functional option
1 parent 2a472fe commit 82109e3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-corator",
3-
"version": "1.6.5",
3+
"version": "1.6.6",
44
"description": "this is TypeScript Vue decorator.",
55
"main": "lib/vue-corator.d.ts",
66
"module": "lib/vue-corator.js",

src/vue-corator.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export function Render(componentName?: string) {
5757
const props = parameta.split(',');
5858
const newComponent = {
5959
props,
60+
functional: true,
6061
render(createElement: any) {
6162
return compiledTemplate.render.call(this, createElement);
6263
}
@@ -66,8 +67,8 @@ export function Render(componentName?: string) {
6667
options.components[componentName || key] = newComponent;
6768
})(target, key);
6869
};
69-
}
70-
70+
}
71+
7172
export function ScopedId(key?: string) {
7273
return createDecorator((options, k) => {
7374
options.computed = options.computed || {};

0 commit comments

Comments
 (0)