Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载打包没有问题,但是运行报错 #6

Open
sadianliaoer opened this issue Dec 15, 2017 · 0 comments
Open

加载打包没有问题,但是运行报错 #6

sadianliaoer opened this issue Dec 15, 2017 · 0 comments

Comments

@sadianliaoer
Copy link

最简单的应用

myBarOption: {
barColor: '#959595',
barWidth: 6,
railColor: '#eee',
barMarginRight: 0,
barMaginBottom: 0,
barOpacityMin: 0.3,
zIndex: 'auto',
autohidemode: true,
horizrailenabled: true
},

报错信息

Cannot read property 'options' of undefined

Component._Ctor.options.data = Component.options.data

}
}

export function sanitizeComponent (Component) {
if (!Component.options) {
Component = Vue.extend(Component) // fix issue #6
Component._Ctor = Component
} else {
Component._Ctor = Component
Component.extendOptions = Component.options

请问怎么解决?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant