Comments (7)
Thanks for your feedback.I'm trying to confirm this problem.
from vue-drawer-layout.
It does not work with Nuxt because Nuxt is for both server-side and client-side rendering. The component references the window
object, which is not available on the server. We can fix this by adding conditions to check whether or not the component has been loaded on the server or client.
What is the purpose of this code?
window.addEventListener("test", null, opts);
It's on line 23 of DrawerLayout.vue.
from vue-drawer-layout.
I don't think your code should reference the window
object until the mounted
life cycle hook is called. That will guarantee that the component has been loaded in the browser rather than the server. If you can do that, your component will work with server-side rendering frameworks like Nuxt.
mounted()
is only executed on the client side.
from vue-drawer-layout.
Would you mind offering me more information about this problem ?Looks like your problem is about a variable named 'middleware' .Could you show me some source code around this problem?
from vue-drawer-layout.
It a detection of passive event.
from vue-drawer-layout.
I found that it is wrapped in try..catch
block. Will it still be wrong? So do you got any suggestion about the question?
from vue-drawer-layout.
I publish v0.3.5 that put it in mounted hook.Hope you try it.:)
from vue-drawer-layout.
Related Issues (20)
- Default scroll not working HOT 6
- Can't get it working with nuxt HOT 1
- 不用nodejs,你这个控件怎么用? HOT 4
- Option to enable or disable dragging HOT 2
- Can't scroll elements inside the drawer HOT 4
- support TypeScript
- 关于refresh HOT 2
- 移动端,滑动与浏览器左滑退出当前地址冲突 HOT 2
- 左侧滑动和地图滑动冲突,在地图上无法侧滑 HOT 1
- this.$refs.drawerLayout is undefined HOT 8
- 您好,请问有禁止拖拽滑动的方法吗? HOT 2
- Doesn't work on window resize
- 微信内置浏览器无法使用
- Conflict with vue awesome swiper/swiperjs
- Not working on safari browser both on macbook and iphone HOT 1
- 侧滑栏的内容会显示在主页面的底下了 bug吗? 怎么搞? HOT 1
- Vue 3?
- Slot error for vue3
- 这个支持嵌套使用吗 HOT 2
- Disable drawer open on swipe HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-drawer-layout.