Custom delimiters don't work for components in .vue files

眉间皱痕 提交于 2019-12-11 18:31:51

问题


I'm trying to use Flask with Vuejs. To keep constant style I want to set up other delimiters than curly brackets.

In main app file, before even defining app I use the code:

Vue.mixin({
    delimiters: ['[[', ']]']
});

It works for every app and components except those that are defined in .vue files. Even if I use the same code inside component's code in .vue file it spreads everywhere except that component:

<script> 
    import Vue from 'vue';
    Vue.mixin({ delimiters: ['[[',']]'] }); // tried it, no result
    export default {
        name: 'testComponentInVueFile',
        //delimiters: ['[[', ']]'], // tried it too, no result
        data: function(){
        ...
        }}
        ...
</script>

Version is 2.5.17. What am I doing wrong? Thanks!

来源:https://stackoverflow.com/questions/52409448/custom-delimiters-dont-work-for-components-in-vue-files

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