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

不用nodejs,你这个控件怎么用? #29

Open
gogoqiu opened this issue Apr 19, 2019 · 4 comments
Open

不用nodejs,你这个控件怎么用? #29

gogoqiu opened this issue Apr 19, 2019 · 4 comments

Comments

@gogoqiu
Copy link

gogoqiu commented Apr 19, 2019

No description provided.

@hjl19911127
Copy link
Owner

hjl19911127 commented Apr 20, 2019

直接在页面使用吗?用script标签引入lib目录下的vue-drawer-layout.umd.jsvue-drawer-layout.umd.min.js

@gogoqiu
Copy link
Author

gogoqiu commented Apr 20, 2019

本人vue基础比较差。
在你的demo.html里,console.log(vue-drawer-layout)无法执行,console.log( window["vue-drawer-layout"] );可以执行。chrome73环境下。
能不能给出一个比较全面的例子。
http://share.codehuang.com/vue-drawer-layout这个页面的内容,如果直接写成不依赖nodejs的,源代码是什么样的

@gogoqiu
Copy link
Author

gogoqiu commented Apr 21, 2019

Vue.use( window["vue-drawer-layout"].default );

new Vue({
render: function(createElement) {
return createElement( "vue-drawer-layout")
}
}).$mount('#my-app')
似乎只建立了框架,无法看到样式

@hjl19911127
Copy link
Owner

收到,我这两天试试哈,这块之前改动了一次,可能打包结果有些调整,感谢反馈

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

2 participants