扩展第三方组件?

时间:2018-11-20 18:27:06

标签: vue.js vuejs2

我正在尝试扩展第三方套餐:

<template>
<div>
    Some data
    <third-party-component></third-party-component>
</div>
</template>

<script>
import TPC from 'third-party-component';

export default {
    extends:TPC,
    props: {
        message: {
            type: Number,
            required: false
        }
    }
};
</script>

我得到了错误:

Uncaught TypeError: Cannot read property 'props' of undefined

我要去哪里错了?

0 个答案:

没有答案