DataV-Team / DataV-Vue3

WIP: DataV Vue3 + Vite + TypeScript
https://datav-vue3.jiaminghi.com/
MIT License
348 stars 44 forks source link

Vue3项目导入不了 #46

Open abinabin2dd opened 7 months ago

abinabin2dd commented 7 months ago

Module not found: Error: Can't resolve '@dataview/datav-vue3'

newpanjing commented 5 months ago

我fork了一个新的包,只是修复了这个错误。大家可以用这个:

yarn add @newpanjing/datav-vue3

然后使用方法还是一模一样,但是包的位置不一样了:

<script setup lang="ts">

import { BorderBox1 } from '@newpanjing/datav-vue3';
</script>

<template>
  <BorderBox1 style="width:200px;height:50px;" />
</template>

<style scoped>

</style>

要从这里导入:import { BorderBox1 } from '@newpanjing/datav-vue3';

源码的github地址:

https://github.com/newpanjing/DataV-Vue3