This template should help get you started developing with Vue 3 and Typescript in Vite.
$ npm i uc-coffee-components
请禁用 Vetur vscode 中下载 voloar 并按需加载你想引入的组件,可以获得良好的代码提示,和每个属性对应的数据类型
- main.ts
import 'uc-coffee-components/lib/index.css';
import { CoffeeImage } from 'uc-coffee-components';
使用 Vutur, 可全局引入,也能活得良好的代码提示
- main.js
import 'uc-coffee-components/lib/index.css';
import CoffeeUI from 'uc-coffee-components';
app.use(CoffeeUI);