# xctc-vue-utils **Repository Path**: npm-management/xctc-vue-utils ## Basic Information - **Project Name**: xctc-vue-utils - **Description**: vue3相关方法集合 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-08 - **Last Updated**: 2024-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### npm run build (npm环境下管理员使用) ### npm publish (npm环境下管理员使用) ### 使用时引入该 npm 包 ``` npm install xctc-vue-utils@latest npm uninstall xctc-vue-utils ``` ### 公共组件注册 * 在vue项目入口文件 main.ts 中注册组件 ``` import {componentsPlugins} from "xctc-vue-utils" import "xctc-vue-utils/lib/style.css" app.use(componentsPlugins) ``` ### 公共函数使用 * 在vue对应的文件中使用 ``` import {vueUtils} from "xctc-vue-utils" eg: vueUtils.formatRouterDataSource() 格式化得到动态路由 vue-router 需要的数据 ```