Vue JS Vuetify menu named slot “activator” is not binding to the template, but going to “default”

喜你入骨 提交于 2019-12-06 09:33:22

After reading this answer: https://stackoverflow.com/a/55268990/209288 I found that the older (pre Vue v2.6) syntax worked OK, both in my stripped-down app, and then also in place in my original component.

<template slot="activator" slot-scope="{ on }">

Therefore I realised my app must have still been running an older version, even though I'd used the "Build" option in the Vui UI after doing the npm update.

I just stopped and re-started the vue-cli-service serve command (in the UI) and now it all works as expected!

So I guess I was still running Vue v2.5.22 and the build from VSCode was just hot-reloading some parts.

So the lesson is: after doing an npm update, shut down and restart everything, the build server, VSCode debugger, chrome instance.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!