forked from pocka/vue-docgen-loader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added support for multiple exports
- Loading branch information
1 parent
4c41490
commit 1a21690
Showing
5 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import Vue from 'vue' | ||
|
||
export const MyButton1 = { | ||
props: { | ||
/** | ||
* Foo the number. | ||
*/ | ||
foo: { | ||
type: Number, | ||
default: -1 | ||
} | ||
}, | ||
template: '<span>{{foo}}</span>' | ||
} | ||
|
||
export const MyButton2 = { | ||
props: { | ||
/** | ||
* Foo the number. | ||
*/ | ||
foo: { | ||
type: Number, | ||
default: -1 | ||
} | ||
}, | ||
template: '<span>{{foo}}</span>' | ||
} | ||
|
||
// NOTE: vue-docgen-api cannot handle default exports (is it expected behavor or bug? idk...) | ||
// export default MyButton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters