# xerath-tools **Repository Path**: sufeiweb/xerath-tools ## Basic Information - **Project Name**: xerath-tools - **Description**: 前端常用组件库 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-14 - **Last Updated**: 2024-10-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # eco-tools 这里仅做初版封装思路,具体还需要在 taro 中以及 H5 中实践得出 本地可以使用,也可以发布到 npm 中使用 [更新文档](./CHANGELOG.md) # 使用方法 ```bash pnpm install eco-tools ``` # 国家化脚本 ```json 向package.json中加入脚本 "i18n": "i18n lang public/i18n/lang" // i18n 跟着两个参数,分为为下载路径,以及存储路径 ``` # axios 支持 taro ```typescript import { taroAdapter } form 'eco-tools' axios.defaults.adapter = taroAdapter // 后续所有的写法和我们正常些web端的axios一样 ``` # hybrid ```typescript import { AhcceHydra } form 'eco-tools' // 里面含有一些 jsBridge 的功能 // 在taro 框架中使用整合,还需要针对业务进行封装,具体看业务线的使用 ```