我遇到的大多数包都是用Options API编写的。确定如何使用<script setup>
+复合API编写它的最佳方法是什么?
例如:
https://github.com/twickstrom/vue-papa-parse使用我安装了它并尝试:
import VuePapaParse from 'vue-papa-parse
VuePapaParse.parse(file)
但是我得到一个错误:
TypeError: VuePapaParse.parse is not a function
我觉得包里不能用。只在该组件上使用Options API。这不是问题。