# testcomponent **Repository Path**: itlxswordsman/testcomponent ## Basic Information - **Project Name**: testcomponent - **Description**: 测试已封装组件 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-02-09 - **Last Updated**: 2023-06-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # vue2 ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). ### 特别注意事项 - zvue 是在ElementUI的基础上进行二次封装的,使用封装组件前先引入ElementUI的相关配置 - zvue 使用的时候需要在main.js中引入 ``` import zvue from './components/zvue' Vue.use(zvue) ``` - 表格或者表单使用 **serverMode** 形势的时,axios 返回的必须是最后一级,否则不会生效 - 封装的组件依赖于 [lodash](https://www.lodashjs.com/) 使用前需要先 npm 安装,然后在 main.js 中引入(如下的形势) ``` import _ from 'lodash' Vue.prototype._ = _ ```