Skip to content

Commit 6b06781

Browse files
committed
Merge pull request #8 from kaorun343/add-name-option
add name option
2 parents fc1905f + 68011c5 commit 6b06781

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var internalHooks = [
1717

1818
function decorator (Component) {
1919
var options = {}
20+
options.name = Component.name
2021
// prototype props.
2122
var proto = Component.prototype
2223
Object.getOwnPropertyNames(proto).forEach(function (key) {

0 commit comments

Comments
 (0)