安装
小于 1 分钟
安装
组件库暂未上传 npm,目前通过项目本地打包使用
拉取项目
git clone https://github.com/2290774104/niuka.git安装依赖
pnpm install打包组件
pnpm run build将打包后项目根目录的 niuka-components 文件夹复制到项目中
可以通过 pnpm 软链接安装为本地依赖
{
  // ...
  "devDependencies": {
    // ...
    "niuka-components": "file:/资源路径/niuka-components"
  }
}也可以通过路径直接引用
<head>
  <!-- 引入样式 -->
  <link rel="stylesheet" href="/资源路径/niuka-components/style.css" />
  <!-- 引入vue -->
  <script src="/资源路径/vue.js"></script>
  <!-- 引入组件库 -->
  <script src="/资源路径/niuka-components/index.umd.js"></script>
</head>