我有下面的确切代码,它就像导入单个组件时在 vueSax 中呈现的文档一样,但它似乎不起作用。在我的控制台中,它打印了这个错误:
TypeError: Cannot read properties of undefined (reading 'install')
我目前正在使用 Vue 2 和 vuesax 4.0.1-alpha.25
<template>
<div class="playgrond2">
<vs-button>test</vs-button>
</div>
</template>
<script>
import Vue from "vue";
import { vsButton } from "vuesax";
import "vuesax/dist/vuesax.css";
Vue.use(vsButton);
export default {
name: "Playground2",
};
</script>