grapewheel / avvw

Apicloud + Vue2 + Vant(有赞前端)+ Webpack4打包,极速开发APP框架,将apicloud的渲染效率和vue数据绑定特性发挥极致!
153 stars 55 forks source link

popup组件问题 #28

Closed xiaosatufu closed 5 years ago

xiaosatufu commented 5 years ago

直接调用popup组件会出现 [Vue warn]: Error in nextTick: "TypeError: Cannot set property 'zIndex' of undefined" vue.js:1841 TypeError: Cannot set property 'zIndex' of undefined 不知道有没有解决方案。

grapewheel commented 5 years ago

请问您使用的vant版本是多少?或者贴一下代码

xiaosatufu commented 5 years ago

1,clone本项目 2,cnpm i 3, image 4,npm run dev

image 版本 image

grapewheel commented 5 years ago

@xiaosatufu 请降级使用 vant 1.x,经过测试2.x版本在不使用vue3-cli编译的话会有bug

"dependencies": {
    "@babel/polyfill": "^7.4.4",
    "@babel/runtime": "^7.5.5",
    "vant": "^1.6.24",
    "vue": "^2.6.10"
  }