mixins 在裝飾器 vue-property-decorator 中的使用

 

網上搜了下,有好多寫的用法是不對的,下面是正確用法

import { Component, Vue, Mixins } from 'vue-property-decorator'
import sendMixins1 from './sendMixins'
import sendMixins2 from './sendMixins'
@Component
export default class SignaDetail extends Mixins(sendMixins1, sendMixins2) {}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章