{"_rev":"4-4808efb49ed63fe58892edb86e60ae49","time":{"created":"2025-09-22T08:25:58.447Z","modified":"2025-09-22T08:25:58.992Z","1.0.0":"2025-09-22T08:19:47.522Z","1.0.1":"2025-09-22T08:25:58.736Z"},"_id":"@df8080/vue2-ui","name":"@df8080/vue2-ui","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@df8080/vue2-ui","version":"1.0.1","description":"🎨 一个基于 Vue 2 的 UI 组件库，目前主要面向微信小程序开发场景，也适用于其他移动端项目。","main":"index.js","module":"index.js","types":"types/index.d.ts","keywords":["vue2","ui","component-library","uni-app","vue2-ui","miniprogram","wechat","mobile"],"author":{"name":"df0808","email":"df0808@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/df0808/vue2-ui.git"},"bugs":{"url":"https://github.com/df0808/vue2-ui/issues"},"homepage":"https://github.com/df0808/vue2-ui#readme","engines":{"node":">=12.0.0"},"peerDependencies":{"vue":"^2.6.0"},"dependencies":{"cos-wx-sdk-v5":"^1.7.2","crypto-js":"^4.2.0","dayjs":"^1.11.13","jsencrypt":"^3.3.2","uview-ui":"^2.0.38"},"devDependencies":{"sass":"^1.71.1","sass-loader":"^10.0.0","vue-template-compiler":"^2.6.14","@types/node":"^20.0.0","typescript":"^5.0.0"},"scripts":{"build":"echo '构建脚本'","prepublishOnly":"npm run build","test":"echo '测试脚本'","lint":"echo '代码检查脚本'"},"_id":"@df8080/vue2-ui@1.0.1","_nodeVersion":"21.5.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-nOp9BEOaRHNde686YYI8drpbvfzvF96LcDLEXhT538PDyVLkH5QoZTOZkB+uvBnN7dUqqoEO1fJfnEPLVT6sLA==","shasum":"305daa91456b074ba6f59978264f417315420ba1","tarball":"https://registry.npmjs.org/@df8080/vue2-ui/-/vue2-ui-1.0.1.tgz","fileCount":115,"unpackedSize":361265,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD0DVeRxoBtwvrDEX/9Y+jjp+3cQ0eTKEzZ/OjEA00TcAIgUzz43ifQT9RhCpwhrJrmckoH1ytWYhQZQdnih+2G5sU="}]},"_npmUser":{"name":"df8080","email":"231127227@qq.com"},"directories":{},"maintainers":[{"name":"df8080","email":"231127227@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/vue2-ui_1.0.1_1758529558554_0.10296731022754235"},"_hasShrinkwrap":false}},"maintainers":[{"name":"df8080","email":"231127227@qq.com"}],"description":"🎨 一个基于 Vue 2 的 UI 组件库，目前主要面向微信小程序开发场景，也适用于其他移动端项目。","homepage":"https://github.com/df0808/vue2-ui#readme","keywords":["vue2","ui","component-library","uni-app","vue2-ui","miniprogram","wechat","mobile"],"repository":{"type":"git","url":"git+https://github.com/df0808/vue2-ui.git"},"author":{"name":"df0808","email":"df0808@gmail.com"},"bugs":{"url":"https://github.com/df0808/vue2-ui/issues"},"license":"MIT","readme":"# @df8080/vue2-ui\n\n🎨 一个基于 Vue 2 的 UI 组件库，目前主要面向微信小程序开发场景，也适用于其他移动端项目。\n\n[![npm version](https://img.shields.io/npm/v/@df8080/vue2-ui.svg)](https://www.npmjs.com/package/@df8080/vue2-ui)\n[![npm downloads](https://img.shields.io/npm/dm/@df8080/vue2-ui.svg)](https://www.npmjs.com/package/@df8080/vue2-ui)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## ✨ 特性\n\n- ✅ 支持 Vue 2.x\n- ✅ 支持微信小程序（通过 `uni-app` 或原生绑定）\n- ✅ 内置多个基础组件（Button、Modal、Form 等）\n- ✅ 完整的 TypeScript 类型支持\n- ✅ 内置加密解密功能\n- ✅ 丰富的工具函数和混入\n\n## 📦 安装\n\n```bash\n# 使用 yarn\nyarn add @df8080/vue2-ui\n\n# 使用 npm\nnpm install @df8080/vue2-ui --save\n\n# 使用 pnpm\npnpm add @df8080/vue2-ui\n```\n\n## 🚀 快速开始\n\n### 基础使用\n\n```javascript\nimport Vue from 'vue'\nimport DfUI from '@df8080/vue2-ui'\n\n// 使用组件库\nVue.use(DfUI)\n\n// 或者带配置使用\nVue.use(DfUI, {\n  empty: '暂无数据',\n  emptyWidth: '400rpx',\n  filterUrl: '/package-search/filter/index',\n  imgMode: 'aspectFill'\n})\n```\n\n### 按需引入\n\n```javascript\nimport { Button, Modal } from '@df8080/vue2-ui'\n\n// 注册组件\nVue.component('DfButton', Button)\nVue.component('DfModal', Modal)\n```\n\n## 🔐 加密解密功能\n\n### 配置\n\n在项目初始化时配置加密解密参数：\n\n```javascript\nimport DfUI from '@df8080/vue2-ui'\n\nVue.use(DfUI, {\n  // 加密解密配置\n  cryptoConfig: {\n    encryptType: 'aes', // 加密类型：'aes' | 'rsa' | 'hybrid'\n    aesKey: 'your-aes-key', // AES密钥\n    randomChars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' // 随机字符集\n  },\n  rsaConfig: {\n    publicKey: 'your-rsa-public-key', // RSA公钥\n    privateKey: 'your-rsa-private-key' // RSA私钥\n  }\n})\n```\n\n### 使用方法\n\n#### 1. 在请求中使用加密\n\n```javascript\nimport { post } from '@df8080/vue2-ui'\n\n// 启用加密\npost('/api/login', userData, {\n  encrypt: true, // 启用加密\n  encryptType: 'aes', // 可选：指定加密类型\n  decrypt: true // 启用解密\n})\n```\n\n#### 2. 手动加密解密\n\n```javascript\nimport { \n  encryptWithAes, \n  decryptWithAes, \n  rsaEncrypt, \n  rsaDecrypt, \n  generateAesKey \n} from '@df8080/vue2-ui'\n\n// AES加密\nconst aesKey = generateAesKey()\nconst encrypted = encryptWithAes('hello world', aesKey)\nconst decrypted = decryptWithAes(encrypted, aesKey)\n\n// RSA加密\nconst rsaEncrypted = rsaEncrypt('hello world')\nconst rsaDecrypted = rsaDecrypt(rsaEncrypted)\n```\n\n## 📚 组件文档\n\n### 基础组件\n\n- **Button** - 按钮组件\n- **Modal** - 模态框组件\n- **Input** - 输入框组件\n- **Form** - 表单组件\n- **Table** - 表格组件\n- **Tabs** - 标签页组件\n\n### 业务组件\n\n- **FilterPanel** - 筛选面板\n- **Search** - 搜索组件\n- **Upload** - 上传组件\n- **Calendar** - 日历组件\n\n## 🛠️ 开发\n\n```bash\n# 克隆项目\ngit clone https://github.com/df0808/vue2-ui.git\n\n# 安装依赖\nyarn install\n\n# 开发模式\nyarn dev\n\n# 构建\nyarn build\n\n# 测试\nyarn test\n```\n\n## 📄 许可证\n\n[MIT](LICENSE)\n\n## 🤝 贡献\n\n欢迎提交 Issue 和 Pull Request！\n\n## 📞 联系方式\n\n- 作者：df0808\n- 邮箱：df0808@gmail.com\n- GitHub：[@df8080](https://github.com/df0808)\n\n---\n\n⭐ 如果这个项目对你有帮助，请给它一个星标！\n","readmeFilename":"README.md"}