wchbrad / vue-easy-tree

A tree component based on vue2.x that supports a small amount of data or a large amount of data, multiple functions, and virtual scrolling.
MIT License
130 stars 40 forks source link

npm下载包无/dist目录 #17

Closed gongxiansheng closed 1 year ago

gongxiansheng commented 1 year ago

package.json里面的 main: './dist/***',没有对应文件呢

wchbrad commented 1 year ago

如果是npm下载的,并没有对应文件,但不影响在项目中引用: 全局引用: import Vue from "vue"; import VueEasyTree from "@wchbrad/vue-easy-tree"; // 样式文件,可以根据需要自定义样式或主题 import "@wchbrad/vue-easy-tree/src/assets/index.scss" Vue.use(VueEasyTree)

组件内引用: import VueEasyTree from "@wchbrad/vue-easy-tree"; // 样式文件,可以根据需要自定义样式或主题 import "@wchbrad/vue-easy-tree/src/assets/index.scss"

export default { components: { VueEasyTree } }

wchbrad commented 1 year ago

现在已经增加了/dist目录