gpt4 book ai didi

javascript - [Vue 警告] : Failed to resolve directive: waves (found in at src/views/backend/areachange/Index. vue)

转载 作者:行者123 更新时间:2023-12-02 22:43:32 51 4
gpt4 key购买 nike

enter image description here

我正在使用https://element.eleme.io/#/我在每个列表页面都面临

最佳答案

Vue.directive('custom', {
inserted: function(el) {
el.style.backgroundColor = 'orange'
}
})

var app = new Vue({
el: '#app'
})
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<input v-custom type="text">
<input v-waves type="text">
<!-- The `v-waves` directive will have the same error -->
</div>

原因是没有注册自定义指令。有关自定义指令的更多用法,please see here .

关于javascript - [Vue 警告] : Failed to resolve directive: waves (found in <I18n> at src/views/backend/areachange/Index. vue),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58507005/

51 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com