We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e47e8e commit 76b1448Copy full SHA for 76b1448
src/exportHelper.ts
@@ -1,8 +1,9 @@
1
// runtime helper for setting properties on components
2
// in a tree-shakable way
3
export default (sfc: any, props: [string, string][]) => {
4
+ const target = sfc.__vccOpts || sfc
5
for (const [key, val] of props) {
- sfc[key] = val
6
+ target[key] = val
7
}
- return sfc
8
+ return target
9
0 commit comments