DataV-Team / DataV-Vue3

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

Vue3项目导入不了 #46

Open abinabin2dd opened 1 year ago

abinabin2dd commented 1 year ago

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

newpanjing commented 10 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

LouisLiu00 commented 4 months ago

@newpanjing 你是牛的