# zh1Component-vue2 **Repository Path**: ezh1/zh1-component-vue2 ## Basic Information - **Project Name**: zh1Component-vue2 - **Description**: vue2 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-06-20 - **Last Updated**: 2025-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## zh1-component-vue2 > 个人vue2仓库 ### 1. 组件开发 **1.1 进入组件库目录,执行 link** ```cmd cd zh1-component-vue2 npm link ``` **1.2. 进入示例项目,链接组件库** ```cmd cd examples npm link zh1-component-vue2 ``` **如何取消?** `npm unlink zh1-component-vue2` `npm unlink` ### 2.离线依赖 ``` npm pack ``` 会生成一个`zh1-component-vue2-1.0.0.tgz`文件 copy到项目根目录执行 ``` npm install ./zh1-component-vue2-1.0.0.tgz ``` 再进行引用即可